com.j256.ormlite.db
Class SqliteAndroidDatabaseType

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

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

Sqlite database type information for the Android OS that makes native calls to the Android OS database APIs.

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
SqliteAndroidDatabaseType()
           
 
Method Summary
protected  void appendBooleanType(StringBuilder sb, int fieldWidth)
           
protected  void appendDateType(StringBuilder sb, int fieldWidth)
           
 String getDatabaseName()
           
protected  String getDriverClassName()
           
 com.j256.ormlite.field.FieldConverter getFieldConverter(com.j256.ormlite.field.DataPersister dataPersister)
           
 boolean isBatchUseTransaction()
           
 boolean isDatabaseUrlThisType(String url, String dbTypePart)
           
 boolean isNestedSavePointsSupported()
           
 void loadDriver()
           
 
Methods inherited from class com.j256.ormlite.db.BaseSqliteDatabaseType
configureGeneratedId, generatedIdSqlAtEnd, isCreateIfNotExistsSupported, isCreateTableReturnsZero, isVarcharFieldWidthSupported
 
Methods inherited from class com.j256.ormlite.db.BaseDatabaseType
addPrimaryKeySql, addSingleUnique, addUniqueComboSql, appendByteArrayType, appendByteType, appendCanBeNull, appendCharType, appendColumnArg, appendCreateTableSuffix, appendDefaultValue, appendDoubleType, appendEscapedEntityName, appendEscapedWord, appendFloatType, appendIntegerType, appendLimitValue, appendLongStringType, appendLongType, appendOffsetValue, appendSelectNextValFromSequence, appendSerializableType, appendShortType, appendStringType, configureGeneratedIdSequence, configureId, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, getPingStatement, isAllowGeneratedIdInsertSupported, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, isOffsetLimitArgument, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isTruncateSupported, 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, appendLimitValue, appendOffsetValue, appendSelectNextValFromSequence, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, getPingStatement, isAllowGeneratedIdInsertSupported, isCreateIfNotExistsSupported, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isIdSequenceNeeded, isLimitAfterSelect, isLimitSqlSupported, isOffsetLimitArgument, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isTruncateSupported, isVarcharFieldWidthSupported, setDriver
 

Constructor Detail

SqliteAndroidDatabaseType

public SqliteAndroidDatabaseType()
Method Detail

loadDriver

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

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 interface com.j256.ormlite.db.DatabaseType

appendDateType

protected void appendDateType(StringBuilder sb,
                              int fieldWidth)
Overrides:
appendDateType in class com.j256.ormlite.db.BaseDatabaseType

appendBooleanType

protected void appendBooleanType(StringBuilder sb,
                                 int fieldWidth)
Overrides:
appendBooleanType in class com.j256.ormlite.db.BaseDatabaseType

getFieldConverter

public com.j256.ormlite.field.FieldConverter getFieldConverter(com.j256.ormlite.field.DataPersister dataPersister)
Specified by:
getFieldConverter in interface com.j256.ormlite.db.DatabaseType
Overrides:
getFieldConverter in class com.j256.ormlite.db.BaseSqliteDatabaseType

isNestedSavePointsSupported

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

isBatchUseTransaction

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


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