com.j256.ormlite.db
Class SqliteDatabaseType

java.lang.Object
  extended by com.j256.ormlite.db.BaseDatabaseType
      extended by com.j256.ormlite.db.BaseSqliteDatabaseType
          extended by com.j256.ormlite.db.SqliteDatabaseType
All Implemented Interfaces:
com.j256.ormlite.db.DatabaseType

public class SqliteDatabaseType
extends com.j256.ormlite.db.BaseSqliteDatabaseType
implements com.j256.ormlite.db.DatabaseType

Sqlite database type information used to create the tables, etc..

Author:
graywatson

Nested Class Summary
 
Nested classes/interfaces inherited from class com.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.BaseDatabaseType.BooleanNumberFieldConverter
 
Field Summary
 
Fields inherited from class com.j256.ormlite.db.BaseDatabaseType
DEFAULT_SEQUENCE_SUFFIX, driver
 
Constructor Summary
SqliteDatabaseType()
           
 
Method Summary
 void appendLimitValue(StringBuilder sb, int limit, Integer offset)
           
 void appendOffsetValue(StringBuilder sb, int offset)
           
 String getDatabaseName()
           
protected  String getDriverClassName()
           
 boolean isCreateIfNotExistsSupported()
           
 boolean isDatabaseUrlThisType(String url, String dbTypePart)
           
 boolean isNestedSavePointsSupported()
           
 boolean isOffsetLimitArgument()
           
 
Methods inherited from class com.j256.ormlite.db.BaseSqliteDatabaseType
configureGeneratedId, generatedIdSqlAtEnd, getFieldConverter, isCreateTableReturnsZero, isVarcharFieldWidthSupported
 
Methods inherited from class com.j256.ormlite.db.BaseDatabaseType
addPrimaryKeySql, addSingleUnique, addUniqueComboSql, appendBooleanType, appendByteArrayType, appendByteType, appendCanBeNull, appendCharType, appendColumnArg, appendCreateTableSuffix, appendDateType, appendDefaultValue, appendDoubleType, appendEscapedEntityName, appendEscapedWord, appendFloatType, appendIntegerType, appendLongStringType, appendLongType, appendSelectNextValFromSequence, appendSerializableType, appendShortType, appendStringType, configureGeneratedIdSequence, configureId, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, getPingStatement, isBatchUseTransaction, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isTruncateSupported, loadDriver, setDriver
 
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
addPrimaryKeySql, addUniqueComboSql, appendColumnArg, appendCreateTableSuffix, appendEscapedEntityName, appendEscapedWord, appendSelectNextValFromSequence, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, getPingStatement, isBatchUseTransaction, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isTruncateSupported, isVarcharFieldWidthSupported, loadDriver, setDriver
 

Constructor Detail

SqliteDatabaseType

public SqliteDatabaseType()
Method Detail

isDatabaseUrlThisType

public boolean isDatabaseUrlThisType(String url,
                                     String dbTypePart)
Specified by:
isDatabaseUrlThisType in interface com.j256.ormlite.db.DatabaseType

getDriverClassName

protected String getDriverClassName()
Specified by:
getDriverClassName in class com.j256.ormlite.db.BaseDatabaseType

getDatabaseName

public String getDatabaseName()
Specified by:
getDatabaseName in class com.j256.ormlite.db.BaseDatabaseType

appendLimitValue

public void appendLimitValue(StringBuilder sb,
                             int limit,
                             Integer offset)
Specified by:
appendLimitValue in interface com.j256.ormlite.db.DatabaseType
Overrides:
appendLimitValue in class com.j256.ormlite.db.BaseDatabaseType

isOffsetLimitArgument

public boolean isOffsetLimitArgument()
Specified by:
isOffsetLimitArgument in interface com.j256.ormlite.db.DatabaseType
Overrides:
isOffsetLimitArgument in class com.j256.ormlite.db.BaseDatabaseType

isNestedSavePointsSupported

public boolean isNestedSavePointsSupported()
Specified by:
isNestedSavePointsSupported in interface com.j256.ormlite.db.DatabaseType
Overrides:
isNestedSavePointsSupported in class com.j256.ormlite.db.BaseDatabaseType

appendOffsetValue

public void appendOffsetValue(StringBuilder sb,
                              int offset)
Specified by:
appendOffsetValue in interface com.j256.ormlite.db.DatabaseType
Overrides:
appendOffsetValue in class com.j256.ormlite.db.BaseDatabaseType

isCreateIfNotExistsSupported

public boolean isCreateIfNotExistsSupported()
Specified by:
isCreateIfNotExistsSupported in interface com.j256.ormlite.db.DatabaseType
Overrides:
isCreateIfNotExistsSupported in class com.j256.ormlite.db.BaseDatabaseType


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.