|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.j256.ormlite.db.BaseDatabaseType
com.j256.ormlite.db.PostgresDatabaseType
public class PostgresDatabaseType
Postgres database type information used to create the tables, etc..
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.j256.ormlite.db.BaseDatabaseType |
|---|
BaseDatabaseType.BooleanNumberFieldConverter |
| Field Summary |
|---|
| Fields inherited from class com.j256.ormlite.db.BaseDatabaseType |
|---|
booleanConverter |
| Constructor Summary | |
|---|---|
PostgresDatabaseType()
|
|
| Method Summary | |
|---|---|
protected void |
appendByteType(StringBuilder sb)
Output the SQL type for a Java byte. |
void |
appendEscapedEntityName(StringBuilder sb,
String word)
Add a entity-name word to the string builder wrapped in the proper characters to escape it. |
void |
appendEscapedWordEntityName(StringBuilder sb,
String word)
|
protected void |
appendObjectType(StringBuilder sb)
Output the SQL type for a Java object. |
void |
appendSelectNextValFromSequence(StringBuilder sb,
String sequenceName)
Append the SQL necessary to get the next-value from a sequence. |
protected void |
configureGeneratedIdSequence(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
Output the SQL necessary to configure a generated-id column. |
void |
dropColumnArg(FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter)
Takes a FieldType and adds the necessary statements to the before and after lists necessary so that the
dropping of the table will succeed and will clear other associated sequences or other database artifacts |
String |
getDriverClassName()
Return the class name of the database driver. |
String |
getDriverUrlPart()
Return the part in the database URI which identifies the particular database. |
boolean |
isIdSequenceNeeded()
Return true if the database needs a sequence when you use generated IDs. |
| 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 |
|---|
appendColumnArg, appendCreateTableSuffix, appendEscapedWord, appendLimitValue, buildDatabaseAccess, convertColumnName, generateIdSequenceName, getCommentLinePrefix, getFieldConverter, isCreateTableReturnsZero, isEntityNamesMustBeUpCase, isLimitAfterSelect, isLimitSqlSupported, isVarcharFieldWidthSupported, loadDriver |
| Constructor Detail |
|---|
public PostgresDatabaseType()
| Method Detail |
|---|
public String getDriverUrlPart()
DatabaseType
getDriverUrlPart in interface DatabaseTypepublic String getDriverClassName()
DatabaseType
getDriverClassName in interface DatabaseTypeprotected void appendByteType(StringBuilder sb)
BaseDatabaseType
appendByteType in class BaseDatabaseTypeprotected void appendObjectType(StringBuilder sb)
BaseDatabaseType
appendObjectType in class BaseDatabaseType
protected void configureGeneratedIdSequence(StringBuilder sb,
FieldType fieldType,
List<String> statementsBefore,
List<String> additionalArgs,
List<String> queriesAfter)
BaseDatabaseType
configureGeneratedIdSequence in class BaseDatabaseType
public void dropColumnArg(FieldType fieldType,
List<String> statementsBefore,
List<String> statementsAfter)
DatabaseTypeFieldType and adds the necessary statements to the before and after lists necessary so that the
dropping of the table will succeed and will clear other associated sequences or other database artifacts
dropColumnArg in interface DatabaseTypedropColumnArg in class BaseDatabaseType
public void appendEscapedEntityName(StringBuilder sb,
String word)
DatabaseType
appendEscapedEntityName in interface DatabaseTypeappendEscapedEntityName in class BaseDatabaseType
public void appendEscapedWordEntityName(StringBuilder sb,
String word)
public boolean isIdSequenceNeeded()
DatabaseType
isIdSequenceNeeded in interface DatabaseTypeisIdSequenceNeeded in class BaseDatabaseType
public void appendSelectNextValFromSequence(StringBuilder sb,
String sequenceName)
DatabaseTypeDatabaseType.isIdSequenceNeeded() is true.
appendSelectNextValFromSequence in interface DatabaseTypeappendSelectNextValFromSequence in class BaseDatabaseType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||