public abstract class BaseSqliteDatabaseType extends BaseDatabaseType
NOTE: We need this here because the Android and JDBC versions both subclasses it.
DEFAULT_SEQUENCE_SUFFIX, driver, logger
Constructor and Description |
---|
BaseSqliteDatabaseType() |
Modifier and Type | Method and Description |
---|---|
void |
appendInsertNoColumns(StringBuilder sb)
Append the SQL necessary to properly finish a "INSERT INTO xxx" line when there are no arguments.
|
protected void |
appendLongType(StringBuilder sb,
FieldType fieldType,
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<java.lang.String>, java.util.List<java.lang.String>, java.util.List<java.lang.String>, java.util.List<java.lang.String>) method at the end. |
FieldConverter |
getFieldConverter(DataPersister dataPersister,
FieldType fieldType)
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.
|
addPrimaryKeySql, addUniqueComboSql, appendBigDecimalNumericType, appendBooleanType, appendByteArrayType, appendByteType, appendCharType, appendColumnArg, appendCreateSchemaSuffix, appendCreateTableSuffix, appendDateType, appendDeleteLimitValue, appendDoubleType, appendEscapedEntityName, appendEscapedWord, appendFloatType, appendIntegerType, appendLimitValue, appendLongStringType, appendOffsetValue, appendSelectNextValFromSequence, appendSerializableType, appendShortType, appendStringType, appendUpdateLimitValue, appendUuidNativeType, configureGeneratedIdSequence, configureId, downCaseString, dropColumnArg, extractDatabaseTableConfig, generateIdSequenceName, getCommentLinePrefix, getDataPersister, getDriverClassNames, getPingStatement, isAllowGeneratedIdInsertSupported, isBatchUseTransaction, isCreateIndexIfNotExistsSupported, isCreateSchemaIfNotExistsSupported, isCreateSchemaReturnsNegative, isCreateSchemaReturnsZero, isCreateTableReturnsNegative, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterDeleteSupported, isLimitAfterSelect, isLimitAfterUpdateSupported, isLimitDeleteAtEndSupported, isLimitSqlSupported, isLimitUpdateAtEndSupported, isNestedSavePointsSupported, isOffsetLimitArgument, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isSequenceNamesMustBeLowerCase, isTruncateSupported, loadDriver, setDriver, upCaseEntityName, upCaseString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDatabaseName, isDatabaseUrlThisType
protected void appendLongType(StringBuilder sb, FieldType fieldType, 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.lang.String>, java.util.List<java.lang.String>, java.util.List<java.lang.String>, java.util.List<java.lang.String>)
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, FieldType fieldType)
DatabaseType
getFieldConverter
in interface DatabaseType
getFieldConverter
in class BaseDatabaseType
public void appendInsertNoColumns(StringBuilder sb)
DatabaseType
appendInsertNoColumns
in interface DatabaseType
appendInsertNoColumns
in class BaseDatabaseType
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.