|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.BaseSqliteDatabaseType
public abstract class BaseSqliteDatabaseType
Sqlite database type information used to create the tables, etc..
NOTE: We need this here because the Android version subclasses it.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.j256.ormlite.db.BaseDatabaseType |
---|
BaseDatabaseType.BooleanNumberFieldConverter |
Field Summary |
---|
Fields inherited from class com.j256.ormlite.db.BaseDatabaseType |
---|
DEFAULT_SEQUENCE_SUFFIX, driver |
Constructor Summary | |
---|---|
BaseSqliteDatabaseType()
|
Method Summary | |
---|---|
protected void |
appendLongType(FieldType fieldType,
StringBuilder sb,
int fieldWidth)
Output the SQL type for a Java long. |
protected void |
configureGeneratedId(String tableName,
StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter,
List<String> additionalArgs,
List<String> queriesAfter)
Output the SQL necessary to configure a generated-id column. |
protected boolean |
generatedIdSqlAtEnd()
Return true if we should add generated-id SQL in the BaseDatabaseType.addPrimaryKeySql(com.j256.ormlite.field.FieldType[], java.util.List method at the end. |
FieldConverter |
getFieldConverter(DataPersister dataPersister)
Return the FieldConverter to associate with the DataType. |
boolean |
isCreateIfNotExistsSupported()
Returns true if the table creation IF NOT EXISTS syntax is supported. |
boolean |
isCreateTableReturnsZero()
Returns true if a 'CREATE TABLE' statement should return 0. |
boolean |
isVarcharFieldWidthSupported()
Return true if the database supports the width parameter on VARCHAR fields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseSqliteDatabaseType()
Method Detail |
---|
protected void appendLongType(FieldType fieldType, StringBuilder sb, int fieldWidth)
BaseDatabaseType
appendLongType
in class BaseDatabaseType
protected void configureGeneratedId(String tableName, StringBuilder sb, FieldType fieldType, List<String> statementsBefore, List<String> statementsAfter, List<String> additionalArgs, List<String> queriesAfter)
BaseDatabaseType
configureGeneratedId
in class BaseDatabaseType
protected boolean generatedIdSqlAtEnd()
BaseDatabaseType
BaseDatabaseType.addPrimaryKeySql(com.j256.ormlite.field.FieldType[], java.util.List, java.util.List, java.util.List, java.util.List)
method at the end. If false then
it needs to be done by hand inline.
generatedIdSqlAtEnd
in class BaseDatabaseType
public boolean isVarcharFieldWidthSupported()
DatabaseType
isVarcharFieldWidthSupported
in interface DatabaseType
isVarcharFieldWidthSupported
in class BaseDatabaseType
public boolean isCreateTableReturnsZero()
DatabaseType
isCreateTableReturnsZero
in interface DatabaseType
isCreateTableReturnsZero
in class BaseDatabaseType
public boolean isCreateIfNotExistsSupported()
DatabaseType
isCreateIfNotExistsSupported
in interface DatabaseType
isCreateIfNotExistsSupported
in class BaseDatabaseType
public FieldConverter getFieldConverter(DataPersister dataPersister)
DatabaseType
getFieldConverter
in interface DatabaseType
getFieldConverter
in class BaseDatabaseType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |