com.j256.ormlite.db
Class DerbyEmbeddedDatabaseType
java.lang.Object
com.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.DerbyEmbeddedDatabaseType
- All Implemented Interfaces:
- com.j256.ormlite.db.DatabaseType
- Direct Known Subclasses:
- DerbyClientServerDatabaseType
public class DerbyEmbeddedDatabaseType
- extends com.j256.ormlite.db.BaseDatabaseType
- implements com.j256.ormlite.db.DatabaseType
Derby database type information used to create the tables, etc.. This is for an embedded Derby database. For client
connections to a remote Derby server, you should use DerbyClientServerDatabaseType
.
- Author:
- graywatson
Nested classes/interfaces inherited from class com.j256.ormlite.db.BaseDatabaseType |
com.j256.ormlite.db.BaseDatabaseType.BooleanNumberFieldConverter |
Fields inherited from class com.j256.ormlite.db.BaseDatabaseType |
DEFAULT_SEQUENCE_SUFFIX, driver |
Method Summary |
protected void |
appendBooleanType(StringBuilder sb,
int fieldWidth)
|
protected void |
appendByteArrayType(StringBuilder sb,
int fieldWidth)
|
protected void |
appendByteType(StringBuilder sb,
int fieldWidth)
|
protected void |
appendCharType(StringBuilder sb,
int fieldWidth)
|
void |
appendEscapedEntityName(StringBuilder sb,
String name)
|
protected void |
appendLongStringType(StringBuilder sb,
int fieldWidth)
|
void |
appendOffsetValue(StringBuilder sb,
long offset)
|
protected void |
configureGeneratedId(String tableName,
StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter,
List<String> additionalArgs,
List<String> queriesAfter)
|
String |
getDatabaseName()
|
protected String |
getDriverClassName()
|
com.j256.ormlite.field.FieldConverter |
getFieldConverter(com.j256.ormlite.field.DataPersister dataType)
|
String |
getPingStatement()
|
boolean |
isAllowGeneratedIdInsertSupported()
|
boolean |
isDatabaseUrlThisType(String url,
String dbTypePart)
|
boolean |
isEntityNamesMustBeUpCase()
|
boolean |
isLimitSqlSupported()
|
Methods inherited from class com.j256.ormlite.db.BaseDatabaseType |
addPrimaryKeySql, addUniqueComboSql, appendColumnArg, appendCreateTableSuffix, appendDateType, appendEscapedWord, appendLimitValue, appendLongType, appendSelectNextValFromSequence, appendSerializableType, appendShortType, appendStringType, configureGeneratedIdSequence, configureId, dropColumnArg, generatedIdSqlAtEnd, generateIdSequenceName, getCommentLinePrefix, isBatchUseTransaction, isCreateIfNotExistsSupported, isCreateTableReturnsZero, isIdSequenceNeeded, isLimitAfterSelect, isNestedSavePointsSupported, isOffsetLimitArgument, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isTruncateSupported, 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, appendEscapedWord, appendLimitValue, appendSelectNextValFromSequence, dropColumnArg, generateIdSequenceName, getCommentLinePrefix, isBatchUseTransaction, isCreateIfNotExistsSupported, isCreateTableReturnsZero, isIdSequenceNeeded, isLimitAfterSelect, isNestedSavePointsSupported, isOffsetLimitArgument, isOffsetSqlSupported, isSelectSequenceBeforeInsert, isTruncateSupported, isVarcharFieldWidthSupported, loadDriver, setDriver |
DATABASE_URL_PORTION
protected static final String DATABASE_URL_PORTION
- See Also:
- Constant Field Values
DerbyEmbeddedDatabaseType
public DerbyEmbeddedDatabaseType()
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
getFieldConverter
public com.j256.ormlite.field.FieldConverter getFieldConverter(com.j256.ormlite.field.DataPersister dataType)
- Specified by:
getFieldConverter
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
getFieldConverter
in class com.j256.ormlite.db.BaseDatabaseType
appendLongStringType
protected void appendLongStringType(StringBuilder sb,
int fieldWidth)
- Overrides:
appendLongStringType
in class com.j256.ormlite.db.BaseDatabaseType
appendOffsetValue
public void appendOffsetValue(StringBuilder sb,
long offset)
- Specified by:
appendOffsetValue
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
appendOffsetValue
in class com.j256.ormlite.db.BaseDatabaseType
appendBooleanType
protected void appendBooleanType(StringBuilder sb,
int fieldWidth)
- Overrides:
appendBooleanType
in class com.j256.ormlite.db.BaseDatabaseType
appendCharType
protected void appendCharType(StringBuilder sb,
int fieldWidth)
- Overrides:
appendCharType
in class com.j256.ormlite.db.BaseDatabaseType
appendByteType
protected void appendByteType(StringBuilder sb,
int fieldWidth)
- Overrides:
appendByteType
in class com.j256.ormlite.db.BaseDatabaseType
appendByteArrayType
protected void appendByteArrayType(StringBuilder sb,
int fieldWidth)
- Overrides:
appendByteArrayType
in class com.j256.ormlite.db.BaseDatabaseType
configureGeneratedId
protected void configureGeneratedId(String tableName,
StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter,
List<String> additionalArgs,
List<String> queriesAfter)
- Overrides:
configureGeneratedId
in class com.j256.ormlite.db.BaseDatabaseType
appendEscapedEntityName
public void appendEscapedEntityName(StringBuilder sb,
String name)
- Specified by:
appendEscapedEntityName
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
appendEscapedEntityName
in class com.j256.ormlite.db.BaseDatabaseType
isLimitSqlSupported
public boolean isLimitSqlSupported()
- Specified by:
isLimitSqlSupported
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
isLimitSqlSupported
in class com.j256.ormlite.db.BaseDatabaseType
getPingStatement
public String getPingStatement()
- Specified by:
getPingStatement
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
getPingStatement
in class com.j256.ormlite.db.BaseDatabaseType
isEntityNamesMustBeUpCase
public boolean isEntityNamesMustBeUpCase()
- Specified by:
isEntityNamesMustBeUpCase
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
isEntityNamesMustBeUpCase
in class com.j256.ormlite.db.BaseDatabaseType
isAllowGeneratedIdInsertSupported
public boolean isAllowGeneratedIdInsertSupported()
- Specified by:
isAllowGeneratedIdInsertSupported
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
isAllowGeneratedIdInsertSupported
in class com.j256.ormlite.db.BaseDatabaseType
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.