|
|||||||||||
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.InformixDialect
Informix dialect.
Seems to work with Informix Dynamic Server Version 7.31.UD3,
Informix JDBC driver version 2.21JC3.
Field Summary |
Fields inherited from class org.hibernate.dialect.Dialect |
CLOSED_QUOTE, QUOTE |
Constructor Summary | |
InformixDialect()
Creates new InformixDialect instance. |
Method Summary | |
String |
getAddColumnString()
The syntax used to add a column to a table (optional). |
String |
getAddForeignKeyConstraintString(String constraintName,
String[] foreignKey,
String referencedTable,
String[] primaryKey,
boolean referencesPrimaryKey)
The syntax used to add a foreign key constraint to a table. |
String |
getAddPrimaryKeyConstraintString(String constraintName)
The syntax used to add a primary key constraint to a table. |
String |
getCreateSequenceString(String sequenceName)
The syntax used to create a sequence, if sequences are supported. |
String |
getCurrentTimestampSelectString()
|
String |
getDropSequenceString(String sequenceName)
The syntax used to drop a sequence, if sequences are supported. |
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 querySelect,
int offset,
int limit)
|
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 |
supportsCurrentTimestampSelection()
|
boolean |
supportsIdentityColumns()
Does this dialect support identity column key generation? |
boolean |
supportsLimit()
Does this Dialect have some kind of LIMIT syntax? |
boolean |
supportsLimitOffset()
Does this dialect support an offset? |
boolean |
supportsSequences()
Does this dialect support sequences? |
boolean |
supportsVariableLimit()
|
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 InformixDialect()
InformixDialect
instance. Sets up the JDBC /
Informix type mappings.
Method Detail |
public String getAddColumnString()
Dialect
getAddColumnString
in class Dialect
public boolean supportsIdentityColumns()
Dialect
supportsIdentityColumns
in class Dialect
public String getIdentitySelectString(String table, String column, int type) throws MappingException
Dialect
getIdentitySelectString
in class Dialect
type
- TODO
MappingException
- if no native key generationpublic String getIdentityColumnString(int type) throws MappingException
Dialect
getIdentityColumnString
in class Dialect
type
- the SQL column type, as defined by java.sql.Types
MappingException
- if no native key generationpublic boolean hasDataTypeInIdentityColumn()
Dialect
hasDataTypeInIdentityColumn
in class Dialect
public String getAddForeignKeyConstraintString(String constraintName, String[] foreignKey, String referencedTable, String[] primaryKey, boolean referencesPrimaryKey)
getAddForeignKeyConstraintString
in class Dialect
referencesPrimaryKey
- if false, constraint should be
explicit about which column names the constraint refers to
public String getAddPrimaryKeyConstraintString(String constraintName)
getAddPrimaryKeyConstraintString
in class Dialect
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 String getSequenceNextValString(String sequenceName)
Dialect
getSequenceNextValString
in class Dialect
sequenceName
- the name of the sequence
public String getSelectSequenceNextValString(String sequenceName)
Dialect
Dialect.getSequenceNextValString(String)
in that this
should return an expression usable within another select statement.
getSelectSequenceNextValString
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 boolean useMaxForLimit()
Dialect
useMaxForLimit
in class Dialect
public boolean supportsLimitOffset()
Dialect
supportsLimitOffset
in class Dialect
public String getLimitString(String querySelect, int offset, int limit)
getLimitString
in class Dialect
public boolean supportsVariableLimit()
supportsVariableLimit
in class Dialect
public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter()
getViolatedConstraintNameExtracter
in class Dialect
public boolean supportsCurrentTimestampSelection()
supportsCurrentTimestampSelection
in class Dialect
public boolean isCurrentTimestampSelectStringCallable()
isCurrentTimestampSelectStringCallable
in class Dialect
public String getCurrentTimestampSelectString()
getCurrentTimestampSelectString
in class Dialect
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |