com.j256.ormlite.db
Class H2DatabaseType

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

public class H2DatabaseType
extends com.j256.ormlite.db.BaseDatabaseType
implements com.j256.ormlite.db.DatabaseType

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

Constructor Detail

H2DatabaseType

public H2DatabaseType()
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

appendBooleanType

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

configureGeneratedId

protected void configureGeneratedId(StringBuilder sb,
                                    com.j256.ormlite.field.FieldType fieldType,
                                    List<String> statementsBefore,
                                    List<String> additionalArgs,
                                    List<String> queriesAfter)
Overrides:
configureGeneratedId 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

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

isTruncateSupported

public boolean isTruncateSupported()
Specified by:
isTruncateSupported in interface com.j256.ormlite.db.DatabaseType
Overrides:
isTruncateSupported 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.