com.j256.ormlite.db
Class SqliteDatabaseType
java.lang.Object
com.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.SqliteDatabaseType
- All Implemented Interfaces:
- DatabaseType
- Direct Known Subclasses:
- SqlDroidDatabaseType, SqliteAndroidDatabaseType
public class SqliteDatabaseType
- extends BaseDatabaseType
- implements DatabaseType
Sqlite database type information used to create the tables, etc..
- Author:
- graywatson
| Methods inherited from class com.j256.ormlite.db.BaseDatabaseType |
appendBooleanType, appendByteType, appendCanBeNull, appendColumnArg, appendCreateTableSuffix, appendDateType, appendDefaultValue, appendDoubleType, appendEnumIntType, appendEnumStringType, appendEscapedEntityName, appendEscapedWord, appendFloatType, appendIntegerType, appendLimitValue, appendLongType, appendObjectType, appendSelectNextValFromSequence, appendShortType, appendStringType, buildDatabaseAccess, configureGeneratedIdSequence, configureId, convertColumnName, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, getDefaultVarcharWidth, getFieldConverter, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, loadDriver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.j256.ormlite.db.DatabaseType |
appendColumnArg, appendCreateTableSuffix, appendEscapedEntityName, appendEscapedWord, appendLimitValue, appendSelectNextValFromSequence, buildDatabaseAccess, convertColumnName, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, loadDriver |
SqliteDatabaseType
public SqliteDatabaseType()
getDriverUrlPart
public String getDriverUrlPart()
- Description copied from interface:
DatabaseType
- Return the part in the database URI which identifies the particular database. Usually the URI is in the form
jdbc:ddd:... where ddd is the driver url part.
- Specified by:
getDriverUrlPart in interface DatabaseType
getDriverClassName
public String getDriverClassName()
- Description copied from interface:
DatabaseType
- Return the class name of the database driver.
- Specified by:
getDriverClassName in interface DatabaseType
configureGeneratedId
protected void configureGeneratedId(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
- Description copied from class:
BaseDatabaseType
- Output the SQL necessary to configure a generated-id column. This may add to the before statements list or
additional arguments later.
NOTE: Only one of configureGeneratedIdSequence, configureGeneratedId, or configureId will be called.
- Overrides:
configureGeneratedId in class BaseDatabaseType
isVarcharFieldWidthSupported
public boolean isVarcharFieldWidthSupported()
- Description copied from interface:
DatabaseType
- Return true if the database supports the width parameter on VARCHAR fields.
- Specified by:
isVarcharFieldWidthSupported in interface DatabaseType- Overrides:
isVarcharFieldWidthSupported in class BaseDatabaseType
isCreateTableReturnsZero
public boolean isCreateTableReturnsZero()
- Description copied from interface:
DatabaseType
- Returns true if a 'CREATE TABLE' statement should return 0. False if > 0.
- Specified by:
isCreateTableReturnsZero in interface DatabaseType- Overrides:
isCreateTableReturnsZero in class BaseDatabaseType
Copyright © 2010. All Rights Reserved.