com.j256.ormlite.db
Class PostgresDatabaseType
java.lang.Object
com.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.PostgresDatabaseType
- All Implemented Interfaces:
- com.j256.ormlite.db.DatabaseType
public class PostgresDatabaseType
- extends com.j256.ormlite.db.BaseDatabaseType
- implements com.j256.ormlite.db.DatabaseType
Postgres database type information used to create the tables, etc..
- 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 |
appendByteArrayType(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
int fieldWidth)
|
protected void |
appendByteType(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
int fieldWidth)
|
void |
appendEscapedEntityName(StringBuilder sb,
String name)
|
void |
appendSelectNextValFromSequence(StringBuilder sb,
String sequenceName)
|
protected void |
appendSerializableType(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
int fieldWidth)
|
protected void |
configureGeneratedIdSequence(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
|
void |
dropColumnArg(com.j256.ormlite.field.FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter)
|
String |
getDatabaseName()
|
protected String |
getDriverClassName()
|
boolean |
isCreateIfNotExistsSupported()
|
boolean |
isDatabaseUrlThisType(String url,
String dbTypePart)
|
boolean |
isIdSequenceNeeded()
|
boolean |
isSelectSequenceBeforeInsert()
|
boolean |
isTruncateSupported()
|
Methods inherited from class com.j256.ormlite.db.BaseDatabaseType |
addPrimaryKeySql, addUniqueComboSql, appendBigDecimalNumericType, appendBooleanType, appendCharType, appendColumnArg, appendCreateTableSuffix, appendDateType, appendEscapedWord, appendLimitValue, appendLongStringType, appendLongType, appendOffsetValue, appendShortType, appendStringType, configureGeneratedId, configureId, extractDatabaseTableConfig, generatedIdSqlAtEnd, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, getPingStatement, isAllowGeneratedIdInsertSupported, isBatchUseTransaction, isCreateIndexIfNotExistsSupported, isCreateTableReturnsNegative, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isLimitAfterSelect, isLimitSqlSupported, isNestedSavePointsSupported, isOffsetLimitArgument, isOffsetSqlSupported, 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, appendOffsetValue, extractDatabaseTableConfig, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, getPingStatement, isAllowGeneratedIdInsertSupported, isBatchUseTransaction, isCreateIndexIfNotExistsSupported, isCreateTableReturnsNegative, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isLimitAfterSelect, isLimitSqlSupported, isNestedSavePointsSupported, isOffsetLimitArgument, isOffsetSqlSupported, isVarcharFieldWidthSupported, loadDriver, setDriver |
PostgresDatabaseType
public PostgresDatabaseType()
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
appendByteType
protected void appendByteType(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
int fieldWidth)
- Overrides:
appendByteType
in class com.j256.ormlite.db.BaseDatabaseType
appendByteArrayType
protected void appendByteArrayType(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
int fieldWidth)
- Overrides:
appendByteArrayType
in class com.j256.ormlite.db.BaseDatabaseType
appendSerializableType
protected void appendSerializableType(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
int fieldWidth)
- Overrides:
appendSerializableType
in class com.j256.ormlite.db.BaseDatabaseType
configureGeneratedIdSequence
protected void configureGeneratedIdSequence(StringBuilder sb,
com.j256.ormlite.field.FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
- Overrides:
configureGeneratedIdSequence
in class com.j256.ormlite.db.BaseDatabaseType
dropColumnArg
public void dropColumnArg(com.j256.ormlite.field.FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter)
- Specified by:
dropColumnArg
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
dropColumnArg
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
isIdSequenceNeeded
public boolean isIdSequenceNeeded()
- Specified by:
isIdSequenceNeeded
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
isIdSequenceNeeded
in class com.j256.ormlite.db.BaseDatabaseType
isSelectSequenceBeforeInsert
public boolean isSelectSequenceBeforeInsert()
- Specified by:
isSelectSequenceBeforeInsert
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
isSelectSequenceBeforeInsert
in class com.j256.ormlite.db.BaseDatabaseType
appendSelectNextValFromSequence
public void appendSelectNextValFromSequence(StringBuilder sb,
String sequenceName)
- Specified by:
appendSelectNextValFromSequence
in interface com.j256.ormlite.db.DatabaseType
- Overrides:
appendSelectNextValFromSequence
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 documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.