|
|||||||||||
| 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.DB2Dialect
An SQL dialect for DB2.
| Field Summary |
| Fields inherited from class org.hibernate.dialect.Dialect |
CLOSED_QUOTE, QUOTE |
| Constructor Summary | |
DB2Dialect()
|
|
| Method Summary | |
boolean |
dropConstraints()
Do we need to drop constraints before dropping tables in this dialect? |
String |
generateTemporaryTableName(String baseTableName)
|
String |
getAddColumnString()
The syntax used to add a column to a table (optional). |
String |
getCreateSequenceString(String sequenceName)
The syntax used to create a sequence, if sequences are supported. |
String |
getCreateTemporaryTablePostfix()
|
String |
getCreateTemporaryTableString()
|
String |
getCurrentTimestampSelectString()
|
String |
getCurrentTimestampSQLFunctionName()
The name of the database-specific SQL function for retrieving the current timestamp. |
String |
getDropSequenceString(String sequenceName)
The syntax used to drop a sequence, if sequences are supported. |
String |
getForUpdateString()
Does this dialect support the FOR UPDATE syntax? |
String |
getIdentityColumnString()
|
String |
getIdentityInsertString()
The keyword used to insert a generated value into an identity column (or null). |
String |
getIdentitySelectString()
|
String |
getLimitString(String sql,
boolean hasOffset)
Add a LIMIT clause to the given SQL SELECT |
String |
getLowercaseFunction()
The name of the SQL function that transforms a string to lowercase |
String |
getQuerySequencesString()
A query used to find all sequences |
ResultSet |
getResultSet(CallableStatement ps)
|
String |
getSelectClauseNullString(int sqlType)
|
String |
getSequenceNextValString(String sequenceName)
Generate the appropriate select statement to to retreive the next value of a sequence, if sequences are supported. |
boolean |
isCurrentTimestampSelectStringCallable()
|
static void |
main(String[] args)
|
int |
registerResultSetOutParameter(CallableStatement statement,
int col)
|
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 |
supportsNotNullUnique()
|
boolean |
supportsOuterJoinForUpdate()
|
boolean |
supportsParametersInInsertSelect()
Does this dialect support parameters within the select clause of INSERT ... |
boolean |
supportsSequences()
Does this dialect support sequences? |
boolean |
supportsTemporaryTables()
|
boolean |
supportsUnionAll()
|
boolean |
useMaxForLimit()
Does the LIMIT clause take a "maximum" row number instead of a total number of returned rows? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DB2Dialect()
| Method Detail |
public String getLowercaseFunction()
Dialect
getLowercaseFunction in class Dialectpublic String getAddColumnString()
Dialect
getAddColumnString in class Dialectpublic boolean dropConstraints()
Dialect
dropConstraints in class Dialectpublic boolean supportsIdentityColumns()
Dialect
supportsIdentityColumns in class Dialectpublic String getIdentitySelectString()
getIdentitySelectString in class Dialectpublic String getIdentityColumnString()
getIdentityColumnString in class Dialectpublic String getIdentityInsertString()
Dialect
getIdentityInsertString in class Dialectpublic String getSequenceNextValString(String sequenceName)
Dialect
getSequenceNextValString 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 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 String getForUpdateString()
Dialect
getForUpdateString in class Dialectpublic boolean useMaxForLimit()
Dialect
useMaxForLimit in class Dialectpublic boolean supportsOuterJoinForUpdate()
supportsOuterJoinForUpdate in class Dialectpublic boolean supportsNotNullUnique()
supportsNotNullUnique in class Dialectpublic String getSelectClauseNullString(int sqlType)
getSelectClauseNullString in class Dialectpublic static void main(String[] args)
public boolean supportsUnionAll()
supportsUnionAll in class Dialect
public int registerResultSetOutParameter(CallableStatement statement,
int col)
throws SQLException
registerResultSetOutParameter in class DialectSQLException
public ResultSet getResultSet(CallableStatement ps)
throws SQLException
getResultSet in class DialectSQLExceptionpublic boolean supportsCommentOn()
supportsCommentOn in class Dialectpublic boolean supportsTemporaryTables()
supportsTemporaryTables in class Dialectpublic String getCreateTemporaryTableString()
getCreateTemporaryTableString in class Dialectpublic String getCreateTemporaryTablePostfix()
getCreateTemporaryTablePostfix in class Dialectpublic String generateTemporaryTableName(String baseTableName)
generateTemporaryTableName in class Dialectpublic boolean supportsCurrentTimestampSelection()
supportsCurrentTimestampSelection in class Dialectpublic String getCurrentTimestampSelectString()
getCurrentTimestampSelectString in class Dialectpublic boolean isCurrentTimestampSelectStringCallable()
isCurrentTimestampSelectStringCallable in class Dialectpublic boolean supportsParametersInInsertSelect()
Dialect
supportsParametersInInsertSelect in class Dialectpublic String getCurrentTimestampSQLFunctionName()
Dialect
getCurrentTimestampSQLFunctionName in class Dialect
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||