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, upCaseStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDatabaseName, isDatabaseUrlThisTypeprotected void appendLongType(StringBuilder sb, FieldType fieldType, int fieldWidth)
BaseDatabaseTypeappendLongType in class BaseDatabaseTypeprotected void configureGeneratedId(String tableName, StringBuilder sb, FieldType fieldType, List<String> statementsBefore, List<String> statementsAfter, List<String> additionalArgs, List<String> queriesAfter)
BaseDatabaseTypeconfigureGeneratedId in class BaseDatabaseTypeprotected boolean generatedIdSqlAtEnd()
BaseDatabaseTypeBaseDatabaseType.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 BaseDatabaseTypepublic boolean isVarcharFieldWidthSupported()
DatabaseTypeisVarcharFieldWidthSupported in interface DatabaseTypeisVarcharFieldWidthSupported in class BaseDatabaseTypepublic boolean isCreateTableReturnsZero()
DatabaseTypeisCreateTableReturnsZero in interface DatabaseTypeisCreateTableReturnsZero in class BaseDatabaseTypepublic boolean isCreateIfNotExistsSupported()
DatabaseTypeisCreateIfNotExistsSupported in interface DatabaseTypeisCreateIfNotExistsSupported in class BaseDatabaseTypepublic FieldConverter getFieldConverter(DataPersister dataPersister, FieldType fieldType)
DatabaseTypegetFieldConverter in interface DatabaseTypegetFieldConverter in class BaseDatabaseTypepublic void appendInsertNoColumns(StringBuilder sb)
DatabaseTypeappendInsertNoColumns in interface DatabaseTypeappendInsertNoColumns in class BaseDatabaseTypeThis documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.