|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.hibernate.dialect.Dialect
org.hibernate.dialect.PostgreSQLDialect
An SQL dialect for Postgres
| Field Summary |
| Fields inherited from class org.hibernate.dialect.Dialect |
CLOSED_QUOTE, QUOTE |
| Constructor Summary | |
PostgreSQLDialect()
|
|
| Method Summary | |
boolean |
bindLimitParametersInReverseOrder()
Does the LIMIT clause specify arguments in the "reverse" order limit, offset instead of offset, limit? |
boolean |
dropConstraints()
Do we need to drop constraints before dropping tables in this dialect? |
String |
getAddColumnString()
The syntax used to add a column to a table (optional). |
String |
getCascadeConstraintsString()
Completely optional cascading drop clause |
String |
getCreateSequenceString(String sequenceName)
The syntax used to create a sequence, if sequences are supported. |
String |
getCreateTemporaryTablePostfix()
|
String |
getCreateTemporaryTableString()
|
String |
getCurrentTimestampSelectString()
|
String |
getDropSequenceString(String sequenceName)
The syntax used to drop a sequence, if sequences are supported. |
String |
getForUpdateString(String aliases)
Does this dialect support the FOR UPDATE OF syntax? |
String |
getIdentityColumnString(int type)
The keyword used to specify an identity column, if identity column key generation is supported. |
String |
getIdentitySelectString(String table,
String column,
int type)
The syntax that returns the identity value of the last insert, if identity column key generation is supported. |
String |
getLimitString(String sql,
boolean hasOffset)
Add a LIMIT clause to the given SQL SELECT |
Class |
getNativeIdentifierGeneratorClass()
|
String |
getNoColumnsInsertString()
The keyword used to insert a row without specifying any column values. |
String |
getQuerySequencesString()
A query used to find all sequences |
String |
getSelectClauseNullString(int sqlType)
Workaround for postgres bug #1453 |
String |
getSelectSequenceNextValString(String sequenceName)
Generate the select expression fragment that will retreive the next value of a sequence, if sequences are supported. |
String |
getSequenceNextValString(String sequenceName)
Generate the appropriate select statement to to retreive the next value of a sequence, if sequences are supported. |
ViolatedConstraintNameExtracter |
getViolatedConstraintNameExtracter()
|
boolean |
hasDataTypeInIdentityColumn()
Whether this dialect have an Identity clause added to the data type or a completely seperate identity data type |
boolean |
isCurrentTimestampSelectStringCallable()
|
boolean |
supportsCommentOn()
|
boolean |
supportsCurrentTimestampSelection()
|
boolean |
supportsIdentityColumns()
Does this dialect support identity column key generation? |
boolean |
supportsLimit()
Does this Dialect have some kind of LIMIT syntax? |
boolean |
supportsOuterJoinForUpdate()
|
boolean |
supportsSequences()
Does this dialect support sequences? |
boolean |
supportsTemporaryTables()
|
boolean |
supportsUnionAll()
|
String |
toBooleanValueString(boolean bool)
The SQL value that the JDBC driver maps boolean values to |
boolean |
useInputStreamToInsertBlob()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PostgreSQLDialect()
| Method Detail |
public String getAddColumnString()
Dialect
getAddColumnString in class Dialectpublic String getSequenceNextValString(String sequenceName)
Dialect
getSequenceNextValString in class DialectsequenceName - the name of the sequence
public String getSelectSequenceNextValString(String sequenceName)
DialectDialect.getSequenceNextValString(String) in that this
should return an expression usable within another select statement.
getSelectSequenceNextValString in class DialectsequenceName - the name of the sequence
public String getCreateSequenceString(String sequenceName)
Dialect
getCreateSequenceString in class DialectsequenceName - the name of the sequence
public String getDropSequenceString(String sequenceName)
Dialect
getDropSequenceString in class DialectsequenceName - the name of the sequence
public String getCascadeConstraintsString()
Dialect
getCascadeConstraintsString in class Dialectpublic boolean dropConstraints()
Dialect
dropConstraints in class Dialectpublic boolean supportsSequences()
Dialect
supportsSequences in class Dialectpublic String getQuerySequencesString()
Dialect
getQuerySequencesString in class DialectSchemaUpdatepublic boolean supportsLimit()
Dialect
supportsLimit in class Dialect
public String getLimitString(String sql,
boolean hasOffset)
Dialect
getLimitString in class Dialectpublic boolean bindLimitParametersInReverseOrder()
Dialect
bindLimitParametersInReverseOrder in class Dialectpublic boolean supportsIdentityColumns()
Dialect
supportsIdentityColumns in class Dialectpublic String getForUpdateString(String aliases)
Dialect
getForUpdateString in class Dialect
public String getIdentitySelectString(String table,
String column,
int type)
Dialect
getIdentitySelectString in class Dialecttype - TODOpublic String getIdentityColumnString(int type)
Dialect
getIdentityColumnString in class Dialecttype - the SQL column type, as defined by java.sql.Typespublic boolean hasDataTypeInIdentityColumn()
Dialect
hasDataTypeInIdentityColumn in class Dialectpublic String getNoColumnsInsertString()
Dialect
getNoColumnsInsertString in class Dialectpublic Class getNativeIdentifierGeneratorClass()
getNativeIdentifierGeneratorClass in class Dialectpublic boolean supportsOuterJoinForUpdate()
supportsOuterJoinForUpdate in class Dialectpublic boolean useInputStreamToInsertBlob()
useInputStreamToInsertBlob in class Dialectpublic boolean supportsUnionAll()
supportsUnionAll in class Dialectpublic String getSelectClauseNullString(int sqlType)
getSelectClauseNullString in class Dialectpublic boolean supportsCommentOn()
supportsCommentOn in class Dialectpublic boolean supportsTemporaryTables()
supportsTemporaryTables in class Dialectpublic String getCreateTemporaryTableString()
getCreateTemporaryTableString in class Dialectpublic String getCreateTemporaryTablePostfix()
getCreateTemporaryTablePostfix in class Dialectpublic boolean supportsCurrentTimestampSelection()
supportsCurrentTimestampSelection in class Dialectpublic boolean isCurrentTimestampSelectStringCallable()
isCurrentTimestampSelectStringCallable in class Dialectpublic String getCurrentTimestampSelectString()
getCurrentTimestampSelectString in class Dialectpublic String toBooleanValueString(boolean bool)
Dialect
toBooleanValueString in class Dialectpublic ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter()
getViolatedConstraintNameExtracter in class Dialect
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||