|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.dialect.Dialect net.sf.hibernate.dialect.DB2Dialect
An SQL dialect for DB2.
Field Summary |
Fields inherited from class net.sf.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 |
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 |
getDropSequenceString(String sequenceName)
The syntax used to drop a sequence, if sequences are supported. |
String |
getIdentityColumnString()
The keyword used to specify an identity column, if identity column key generation is supported. |
String |
getIdentityInsertString()
The keyword used to insert a generated value into an identity column (or null) |
String |
getIdentitySelectString()
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 |
String |
getSequenceNextValString(String sequenceName)
The syntax that fetches the next value of a sequence, if sequences are supported. |
boolean |
supportsIdentityColumns()
Does this dialect support identity column key generation? |
boolean |
supportsLimit()
Does this Dialect have some kind of LIMIT syntax? |
boolean |
supportsSequences()
Does this dialect support sequences? |
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 getAddColumnString()
Dialect
getAddColumnString
in class Dialect
public boolean dropConstraints()
Dialect
dropConstraints
in class Dialect
public boolean supportsIdentityColumns()
Dialect
supportsIdentityColumns
in class Dialect
public String getIdentitySelectString()
Dialect
getIdentitySelectString
in class Dialect
public String getIdentityColumnString()
Dialect
getIdentityColumnString
in class Dialect
public String getIdentityInsertString()
Dialect
getIdentityInsertString
in class Dialect
public String getSequenceNextValString(String sequenceName)
Dialect
getSequenceNextValString
in class Dialect
sequenceName
- the name of the sequence
public String getCreateSequenceString(String sequenceName)
Dialect
getCreateSequenceString
in class Dialect
sequenceName
- the name of the sequence
public String getDropSequenceString(String sequenceName)
Dialect
getDropSequenceString
in class Dialect
sequenceName
- the name of the sequence
public boolean supportsSequences()
Dialect
supportsSequences
in class Dialect
public boolean supportsLimit()
Dialect
supportsLimit
in class Dialect
public String getLimitString(String sql, boolean hasOffset)
Dialect
getLimitString
in class Dialect
public boolean useMaxForLimit()
Dialect
useMaxForLimit
in class Dialect
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |