org.hibernate.dialect

Class InformixDialect


public class InformixDialect
extends Dialect

Informix dialect.

Seems to work with Informix Dynamic Server Version 7.31.UD3, Informix JDBC driver version 2.21JC3.
Author:
Steve Molitor

Field Summary

Fields inherited from class org.hibernate.dialect.Dialect

CLOSED_QUOTE, DEFAULT_BATCH_SIZE, NO_BATCH, QUOTE

Constructor Summary

InformixDialect()
Creates new InformixDialect instance.

Method Summary

String
getAddColumnString()
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)
String
getCurrentTimestampSelectString()
String
getDropSequenceString(String sequenceName)
String
getIdentityColumnString(int type)
String
getIdentitySelectString(String table, String column, int type)
String
getLimitString(String querySelect, int offset, int limit)
String
getSelectSequenceNextValString(String sequenceName)
String
getSequenceNextValString(String sequenceName)
ViolatedConstraintNameExtracter
getViolatedConstraintNameExtracter()
boolean
hasDataTypeInIdentityColumn()
boolean
isCurrentTimestampSelectStringCallable()
boolean
supportsCurrentTimestampSelection()
boolean
supportsIdentityColumns()
boolean
supportsLimit()
boolean
supportsLimitOffset()
boolean
supportsSequences()
boolean
supportsVariableLimit()
boolean
useMaxForLimit()

Methods inherited from class org.hibernate.dialect.Dialect

appendIdentitySelectToInsert, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildSQLExceptionConverter, closeQuote, createCaseFragment, createOuterJoinFragment, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, dropConstraints, dropTemporaryTableAfterUse, forUpdateOfColumns, generateTemporaryTableName, getAddColumnString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getCascadeConstraintsString, getCastTypeName, getColumnComment, getCreateMultisetTableString, getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCreateTemporaryTablePostfix, getCreateTemporaryTableString, getCurrentTimestampSQLFunctionName, getCurrentTimestampSelectString, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceString, getDropSequenceStrings, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityColumnString, getIdentityColumnString, getIdentityInsertString, getIdentitySelectString, getIdentitySelectString, getKeywords, getLimitString, getLimitString, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNativeIdentifierGeneratorClass, getNoColumnsInsertString, getNullColumnString, getQuerySequencesString, getResultSet, getSelectClauseNullString, getSelectGUIDString, getSelectSequenceNextValString, getSequenceNextValString, getTableComment, getTableTypeString, getTypeName, getTypeName, getViolatedConstraintNameExtracter, hasAlterTable, hasDataTypeInIdentityColumn, hasSelfReferentialForeignKeyBug, isCurrentTimestampSelectStringCallable, openQuote, performTemporaryTableDDLInIsolation, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsCommentOn, supportsCurrentTimestampSelection, supportsEmptyInList, supportsExistsInSelect, supportsExpectedLobUsagePattern, supportsIdentityColumns, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportsInsertSelectIdentity, supportsLimit, supportsLimitOffset, supportsLobValueChangePropogation, supportsNotNullUnique, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsPooledSequences, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSequences, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTemporaryTables, supportsUnboundedLobLocatorMaterialization, supportsUnionAll, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useInputStreamToInsertBlob, useMaxForLimit

Constructor Details

InformixDialect

public InformixDialect()
Creates new InformixDialect instance. Sets up the JDBC / Informix type mappings.

Method Details

getAddColumnString

public String getAddColumnString()
Overrides:
getAddColumnString in interface Dialect

getAddForeignKeyConstraintString

public String getAddForeignKeyConstraintString(String constraintName,
                                               String[] foreignKey,
                                               String referencedTable,
                                               String[] primaryKey,
                                               boolean referencesPrimaryKey)
The syntax used to add a foreign key constraint to a table. Informix constraint name must be at the end.
Overrides:
getAddForeignKeyConstraintString in interface Dialect
Returns:
String

getAddPrimaryKeyConstraintString

public String getAddPrimaryKeyConstraintString(String constraintName)
The syntax used to add a primary key constraint to a table. Informix constraint name must be at the end.
Overrides:
getAddPrimaryKeyConstraintString in interface Dialect
Returns:
String

getCreateSequenceString

public String getCreateSequenceString(String sequenceName)
Overrides:
getCreateSequenceString in interface Dialect

getCurrentTimestampSelectString

public String getCurrentTimestampSelectString()
Overrides:
getCurrentTimestampSelectString in interface Dialect

getDropSequenceString

public String getDropSequenceString(String sequenceName)
Overrides:
getDropSequenceString in interface Dialect

getIdentityColumnString

public String getIdentityColumnString(int type)
            throws MappingException
Overrides:
getIdentityColumnString in interface Dialect

getIdentitySelectString

public String getIdentitySelectString(String table,
                                      String column,
                                      int type)
            throws MappingException
Overrides:
getIdentitySelectString in interface Dialect

getLimitString

public String getLimitString(String querySelect,
                             int offset,
                             int limit)
Overrides:
getLimitString in interface Dialect

getSelectSequenceNextValString

public String getSelectSequenceNextValString(String sequenceName)
Overrides:
getSelectSequenceNextValString in interface Dialect

getSequenceNextValString

public String getSequenceNextValString(String sequenceName)
Overrides:
getSequenceNextValString in interface Dialect

getViolatedConstraintNameExtracter

public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter()
Overrides:
getViolatedConstraintNameExtracter in interface Dialect

hasDataTypeInIdentityColumn

public boolean hasDataTypeInIdentityColumn()
Overrides:
hasDataTypeInIdentityColumn in interface Dialect

isCurrentTimestampSelectStringCallable

public boolean isCurrentTimestampSelectStringCallable()
Overrides:
isCurrentTimestampSelectStringCallable in interface Dialect

supportsCurrentTimestampSelection

public boolean supportsCurrentTimestampSelection()
Overrides:
supportsCurrentTimestampSelection in interface Dialect

supportsIdentityColumns

public boolean supportsIdentityColumns()
Overrides:
supportsIdentityColumns in interface Dialect

supportsLimit

public boolean supportsLimit()
Overrides:
supportsLimit in interface Dialect

supportsLimitOffset

public boolean supportsLimitOffset()
Overrides:
supportsLimitOffset in interface Dialect

supportsSequences

public boolean supportsSequences()
Overrides:
supportsSequences in interface Dialect

supportsVariableLimit

public boolean supportsVariableLimit()
Overrides:
supportsVariableLimit in interface Dialect

useMaxForLimit

public boolean useMaxForLimit()
Overrides:
useMaxForLimit in interface Dialect