|
|||||||||
| Home >> All >> org >> hibernate >> [ dialect overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hibernate.dialect
Class Dialect

java.lang.Objectorg.hibernate.dialect.Dialect
- Direct Known Subclasses:
- DB2Dialect, FrontBaseDialect, GenericDialect, HSQLDialect, InformixDialect, IngresDialect, InterbaseDialect, JDataStoreDialect, MckoiDialect, MimerSQLDialect, MySQLDialect, Oracle9Dialect, PointbaseDialect, PostgreSQLDialect, ProgressDialect, RDMSOS2200Dialect, SAPDBDialect, SybaseDialect, TimesTenDialect
- public abstract class Dialect
- extends java.lang.Object
Represents a dialect of SQL implemented by a particular RDBMS.
Subclasses implement Hibernate compatibility with different systems.
Subclasses should provide a public default constructor that register()
a set of type mappings and default Hibernate properties.
Subclasses should be immutable.
| Field Summary | |
static java.lang.String |
CLOSED_QUOTE
|
(package private) static java.lang.String |
DEFAULT_BATCH_SIZE
|
private static org.hibernate.exception.ViolatedConstraintNameExtracter |
EXTRACTER
|
private TypeNames |
hibernateTypeNames
|
private static org.apache.commons.logging.Log |
log
|
(package private) static java.lang.String |
NO_BATCH
|
private java.util.Properties |
properties
|
static java.lang.String |
QUOTE
Characters used for quoting SQL identifiers |
private java.util.Map |
sqlFunctions
|
private java.util.Set |
sqlKeywords
|
private static java.util.Map |
STANDARD_AGGREGATE_FUNCTIONS
|
private TypeNames |
typeNames
|
| Constructor Summary | |
protected |
Dialect()
|
| Method Summary | |
java.lang.String |
appendIdentitySelectToInsert(java.lang.String insertString)
Append a clause to retrieve the generated identity value for the given INSERT statement. |
java.lang.String |
appendLockHint(org.hibernate.LockMode mode,
java.lang.String tableName)
Method appendLockHint appends according to the given
lock mode a lock hint behind the given table name, if this dialect
needs this. |
boolean |
bindLimitParametersFirst()
Does the LIMIT clause come at the start of the SELECT statement, rather than at the end? |
boolean |
bindLimitParametersInReverseOrder()
Does the LIMIT clause specify arguments in the "reverse" order limit, offset instead of offset, limit? |
org.hibernate.exception.SQLExceptionConverter |
buildSQLExceptionConverter()
Build an instance of the SQLExceptionConverter preferred by this dialect for converting SQLExceptions into Hibernate's JDBCException hierarchy. |
char |
closeQuote()
The closing quote for a quoted identifier |
org.hibernate.sql.CaseFragment |
createCaseFragment()
Create a CaseFragment for this dialect. |
org.hibernate.sql.JoinFragment |
createOuterJoinFragment()
Create an OuterJoinGenerator for this dialect. |
boolean |
dropConstraints()
Do we need to drop constraints before dropping tables in this dialect? |
boolean |
dropTemporaryTableAfterUse()
|
boolean |
forUpdateOfColumns()
Does the FOR UPDATE OF syntax specify particular columns? |
java.lang.String |
generateTemporaryTableName(java.lang.String baseTableName)
|
java.lang.String |
getAddColumnString()
The syntax used to add a column to a table (optional). |
java.lang.String |
getAddForeignKeyConstraintString(java.lang.String constraintName,
java.lang.String[] foreignKey,
java.lang.String referencedTable,
java.lang.String[] primaryKey,
boolean referencesPrimaryKey)
The syntax used to add a foreign key constraint to a table. |
java.lang.String |
getAddPrimaryKeyConstraintString(java.lang.String constraintName)
The syntax used to add a primary key constraint to a table. |
java.lang.String |
getCascadeConstraintsString()
Completely optional cascading drop clause |
java.lang.String |
getCastTypeName(int code)
|
java.lang.String |
getColumnComment(java.lang.String comment)
|
protected java.lang.String |
getCreateSequenceString(java.lang.String sequenceName)
The syntax used to create a sequence, if sequences are supported. |
java.lang.String[] |
getCreateSequenceStrings(java.lang.String sequenceName)
The multiline script used to create a sequence, if sequences are supported. |
java.lang.String |
getCreateTemporaryTablePostfix()
|
java.lang.String |
getCreateTemporaryTableString()
|
java.lang.String |
getCurrentTimestampSelectString()
|
java.lang.String |
getCurrentTimestampSQLFunctionName()
The name of the database-specific SQL function for retrieving the current timestamp. |
java.util.Properties |
getDefaultProperties()
Retrieve a set of default Hibernate properties for this database. |
static Dialect |
getDialect()
Get the Dialect specified by the current System properties. |
static Dialect |
getDialect(java.util.Properties props)
Get the Dialect specified by the given properties or system properties. |
java.lang.String |
getDropForeignKeyString()
|
protected java.lang.String |
getDropSequenceString(java.lang.String sequenceName)
The syntax used to drop a sequence, if sequences are supported. |
java.lang.String[] |
getDropSequenceStrings(java.lang.String sequenceName)
The multiline script used to drop a sequence, if sequences are supported. |
java.lang.String |
getForUpdateNowaitString()
Retrieves the FOR UPDATE NOWAIT syntax specific to this dialect. |
java.lang.String |
getForUpdateNowaitString(java.lang.String aliases)
Retrieves the FOR UPDATE OF column_list NOWAIT syntax specific to this dialect, where the given aliases represent the aliases of the columns which are to be write locked. |
java.lang.String |
getForUpdateString()
Retrieves the FOR UPDATE syntax specific to this dialect. |
java.lang.String |
getForUpdateString(org.hibernate.LockMode lockMode)
|
java.lang.String |
getForUpdateString(java.lang.String aliases)
Retrieves the FOR UPDATE OF column_list syntax specific to this dialect, where the given aliases represent the aliases of the columns which are to be write locked. |
java.util.Map |
getFunctions()
SQL functions as defined in general. |
java.lang.String |
getHibernateTypeName(int code)
|
java.lang.String |
getHibernateTypeName(int code,
int length,
int precision,
int scale)
|
protected java.lang.String |
getIdentityColumnString()
|
java.lang.String |
getIdentityColumnString(int type)
The keyword used to specify an identity column, if identity column key generation is supported. |
java.lang.String |
getIdentityInsertString()
The keyword used to insert a generated value into an identity column (or null). |
protected java.lang.String |
getIdentitySelectString()
|
java.lang.String |
getIdentitySelectString(java.lang.String table,
java.lang.String column,
int type)
The syntax that returns the identity value of the last insert, if identity column key generation is supported. |
java.util.Set |
getKeywords()
|
java.lang.String |
getLimitString(java.lang.String querySelect,
boolean hasOffset)
Add a LIMIT clause to the given SQL SELECT |
java.lang.String |
getLimitString(java.lang.String querySelect,
int offset,
int limit)
|
org.hibernate.dialect.lock.LockingStrategy |
getLockingStrategy(org.hibernate.persister.entity.Lockable lockable,
org.hibernate.LockMode lockMode)
Get a strategy instance which knows how to acquire a database-level lock of the specified mode for this dialect. |
java.lang.String |
getLowercaseFunction()
The name of the SQL function that transforms a string to lowercase |
int |
getMaxAliasLength()
|
java.lang.Class |
getNativeIdentifierGeneratorClass()
|
java.lang.String |
getNoColumnsInsertString()
The keyword used to insert a row without specifying any column values. |
java.lang.String |
getNullColumnString()
The keyword used to specify a nullable column. |
java.lang.String |
getQuerySequencesString()
A query used to find all sequences |
java.sql.ResultSet |
getResultSet(java.sql.CallableStatement ps)
|
java.lang.String |
getSelectClauseNullString(int sqlType)
|
java.lang.String |
getSelectGUIDString()
|
java.lang.String |
getSelectSequenceNextValString(java.lang.String sequenceName)
Generate the select expression fragment that will retreive the next value of a sequence, if sequences are supported. |
java.lang.String |
getSequenceNextValString(java.lang.String sequenceName)
Generate the appropriate select statement to to retreive the next value of a sequence, if sequences are supported. |
java.lang.String |
getTableComment(java.lang.String comment)
|
java.lang.String |
getTableTypeString()
|
java.lang.String |
getTypeName(int code)
Get the name of the database type associated with the given java.sql.Types typecode. |
java.lang.String |
getTypeName(int code,
int length,
int precision,
int scale)
Get the name of the database type associated with the given java.sql.Types typecode. |
org.hibernate.exception.ViolatedConstraintNameExtracter |
getViolatedConstraintNameExtracter()
|
boolean |
hasAlterTable()
Does this dialect support the ALTER TABLE syntax? |
boolean |
hasDataTypeInIdentityColumn()
Whether this dialect have an Identity clause added to the data type or a completely seperate identity data type |
boolean |
hasSelfReferentialForeignKeyBug()
|
boolean |
isCurrentTimestampSelectStringCallable()
|
char |
openQuote()
The opening quote for a quoted identifier |
boolean |
performTemporaryTableDDLInIsolation()
|
boolean |
qualifyIndexName()
Do we need to qualify index names with the schema name? |
java.lang.String |
quote(java.lang.String column)
|
protected void |
registerColumnType(int code,
int capacity,
java.lang.String name)
Subclasses register a typename for the given type code and maximum column length. |
protected void |
registerColumnType(int code,
java.lang.String name)
Subclasses register a typename for the given type code. |
protected void |
registerFunction(java.lang.String name,
org.hibernate.dialect.function.SQLFunction function)
|
protected void |
registerHibernateType(int sqlcode,
int capacity,
java.lang.String name)
|
protected void |
registerHibernateType(int sqlcode,
java.lang.String name)
|
protected void |
registerKeyword(java.lang.String word)
|
int |
registerResultSetOutParameter(java.sql.CallableStatement statement,
int col)
|
boolean |
supportsCascadeDelete()
|
boolean |
supportsColumnCheck()
Does this dialect support column-level check constraints? |
boolean |
supportsCommentOn()
|
boolean |
supportsCurrentTimestampSelection()
|
boolean |
supportsIdentityColumns()
Does this dialect support identity column key generation? |
boolean |
supportsIfExistsAfterTableName()
|
boolean |
supportsIfExistsBeforeTableName()
|
boolean |
supportsInsertSelectIdentity()
|
boolean |
supportsLimit()
Does this Dialect have some kind of LIMIT syntax? |
boolean |
supportsLimitOffset()
Does this dialect support an offset? |
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 |
supportsTableCheck()
Does this dialect support table-level check constraints? |
boolean |
supportsTemporaryTables()
|
boolean |
supportsUnionAll()
|
boolean |
supportsUnique()
Does this dialect support the UNIQUE column syntax? |
boolean |
supportsUniqueConstraintInCreateAlterTable()
Does this dialect support adding Unique constraints via create and alter table ? |
boolean |
supportsVariableLimit()
|
java.lang.String |
toBooleanValueString(boolean bool)
The SQL value that the JDBC driver maps boolean values to |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
java.lang.String |
transformSelectString(java.lang.String select)
|
boolean |
useInputStreamToInsertBlob()
|
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 |
| Field Detail |
log
private static final org.apache.commons.logging.Log log
DEFAULT_BATCH_SIZE
static final java.lang.String DEFAULT_BATCH_SIZE
- See Also:
- Constant Field Values
NO_BATCH
static final java.lang.String NO_BATCH
- See Also:
- Constant Field Values
STANDARD_AGGREGATE_FUNCTIONS
private static final java.util.Map STANDARD_AGGREGATE_FUNCTIONS
typeNames
private final TypeNames typeNames
hibernateTypeNames
private final TypeNames hibernateTypeNames
properties
private final java.util.Properties properties
sqlFunctions
private final java.util.Map sqlFunctions
sqlKeywords
private final java.util.Set sqlKeywords
QUOTE
public static final java.lang.String QUOTE
- Characters used for quoting SQL identifiers
- See Also:
- Constant Field Values
CLOSED_QUOTE
public static final java.lang.String CLOSED_QUOTE
- See Also:
- Constant Field Values
EXTRACTER
private static final org.hibernate.exception.ViolatedConstraintNameExtracter EXTRACTER
| Constructor Detail |
Dialect
protected Dialect()
| Method Detail |
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
getTypeName
public java.lang.String getTypeName(int code) throws org.hibernate.HibernateException
- Get the name of the database type associated with the given
java.sql.Types typecode.
getHibernateTypeName
public java.lang.String getHibernateTypeName(int code) throws org.hibernate.HibernateException
getHibernateTypeName
public java.lang.String getHibernateTypeName(int code, int length, int precision, int scale) throws org.hibernate.HibernateException
getTypeName
public java.lang.String getTypeName(int code, int length, int precision, int scale) throws org.hibernate.HibernateException
- Get the name of the database type associated with the given
java.sql.Types typecode.
getCastTypeName
public java.lang.String getCastTypeName(int code)
registerFunction
protected void registerFunction(java.lang.String name, org.hibernate.dialect.function.SQLFunction function)
registerKeyword
protected void registerKeyword(java.lang.String word)
getKeywords
public java.util.Set getKeywords()
registerColumnType
protected void registerColumnType(int code,
int capacity,
java.lang.String name)
- Subclasses register a typename for the given type code and maximum
column length. $l in the type name with be replaced by the
column length (if appropriate).
registerColumnType
protected void registerColumnType(int code,
java.lang.String name)
- Subclasses register a typename for the given type code. $l in
the type name with be replaced by the column length (if appropriate).
registerHibernateType
protected void registerHibernateType(int sqlcode,
java.lang.String name)
registerHibernateType
protected void registerHibernateType(int sqlcode,
int capacity,
java.lang.String name)
hasAlterTable
public boolean hasAlterTable()
- Does this dialect support the ALTER TABLE syntax?
dropConstraints
public boolean dropConstraints()
- Do we need to drop constraints before dropping tables in this dialect?
qualifyIndexName
public boolean qualifyIndexName()
- Do we need to qualify index names with the schema name?
forUpdateOfColumns
public boolean forUpdateOfColumns()
- Does the FOR UPDATE OF syntax specify particular
columns?
getForUpdateString
public java.lang.String getForUpdateString(java.lang.String aliases)
- Retrieves the FOR UPDATE OF column_list syntax specific to this
dialect, where the given aliases represent the aliases of the columns
which are to be write locked.
getForUpdateNowaitString
public java.lang.String getForUpdateNowaitString(java.lang.String aliases)
- Retrieves the FOR UPDATE OF column_list NOWAIT syntax specific
to this dialect, where the given aliases represent the aliases of the
columns which are to be write locked.
getForUpdateString
public java.lang.String getForUpdateString()
- Retrieves the FOR UPDATE syntax specific to this dialect.
getForUpdateNowaitString
public java.lang.String getForUpdateNowaitString()
- Retrieves the FOR UPDATE NOWAIT syntax specific to this dialect.
supportsUnique
public boolean supportsUnique()
- Does this dialect support the UNIQUE column syntax?
supportsUniqueConstraintInCreateAlterTable
public boolean supportsUniqueConstraintInCreateAlterTable()
- Does this dialect support adding Unique constraints via create and alter table ?
getAddColumnString
public java.lang.String getAddColumnString()
- The syntax used to add a column to a table (optional).
getDropForeignKeyString
public java.lang.String getDropForeignKeyString()
getTableTypeString
public java.lang.String getTableTypeString()
getAddForeignKeyConstraintString
public java.lang.String getAddForeignKeyConstraintString(java.lang.String constraintName, java.lang.String[] foreignKey, java.lang.String referencedTable, java.lang.String[] primaryKey, boolean referencesPrimaryKey)
- The syntax used to add a foreign key constraint to a table.
getAddPrimaryKeyConstraintString
public java.lang.String getAddPrimaryKeyConstraintString(java.lang.String constraintName)
- The syntax used to add a primary key constraint to a table.
getNullColumnString
public java.lang.String getNullColumnString()
- The keyword used to specify a nullable column.
supportsIdentityColumns
public boolean supportsIdentityColumns()
- Does this dialect support identity column key generation?
supportsSequences
public boolean supportsSequences()
- Does this dialect support sequences?
supportsInsertSelectIdentity
public boolean supportsInsertSelectIdentity()
appendIdentitySelectToInsert
public java.lang.String appendIdentitySelectToInsert(java.lang.String insertString)
- Append a clause to retrieve the generated identity value for the
given INSERT statement.
getIdentitySelectString
protected java.lang.String getIdentitySelectString() throws org.hibernate.MappingException
getIdentitySelectString
public java.lang.String getIdentitySelectString(java.lang.String table, java.lang.String column, int type) throws org.hibernate.MappingException
- The syntax that returns the identity value of the last insert, if
identity column key generation is supported.
getIdentityColumnString
protected java.lang.String getIdentityColumnString() throws org.hibernate.MappingException
getIdentityColumnString
public java.lang.String getIdentityColumnString(int type) throws org.hibernate.MappingException
- The keyword used to specify an identity column, if identity
column key generation is supported.
getIdentityInsertString
public java.lang.String getIdentityInsertString()
- The keyword used to insert a generated value into an identity column (or null).
Need if the dialect does not support inserts that specify no column values.
getNoColumnsInsertString
public java.lang.String getNoColumnsInsertString()
- The keyword used to insert a row without specifying any column values.
This is not possible on some databases.
getSequenceNextValString
public java.lang.String getSequenceNextValString(java.lang.String sequenceName) throws org.hibernate.MappingException
- Generate the appropriate select statement to to retreive the next value
of a sequence, if sequences are supported.
This should be a "stand alone" select statement.
getSelectSequenceNextValString
public java.lang.String getSelectSequenceNextValString(java.lang.String sequenceName) throws org.hibernate.MappingException
- Generate the select expression fragment that will retreive the next
value of a sequence, if sequences are supported.
This differs from
getSequenceNextValString(String)55 in that this should return an expression usable within another select statement.
getCreateSequenceString
protected java.lang.String getCreateSequenceString(java.lang.String sequenceName) throws org.hibernate.MappingException
- The syntax used to create a sequence, if sequences are supported.
getCreateSequenceStrings
public java.lang.String[] getCreateSequenceStrings(java.lang.String sequenceName) throws org.hibernate.MappingException
- The multiline script used to create a sequence, if sequences are supported.
getDropSequenceString
protected java.lang.String getDropSequenceString(java.lang.String sequenceName) throws org.hibernate.MappingException
- The syntax used to drop a sequence, if sequences are supported.
getDropSequenceStrings
public java.lang.String[] getDropSequenceStrings(java.lang.String sequenceName) throws org.hibernate.MappingException
- The multiline script used to drop a sequence, if sequences are supported.
getQuerySequencesString
public java.lang.String getQuerySequencesString()
- A query used to find all sequences
getDialect
public static Dialect getDialect() throws org.hibernate.HibernateException
- Get the Dialect specified by the current System properties.
getDialect
public static Dialect getDialect(java.util.Properties props) throws org.hibernate.HibernateException
- Get the Dialect specified by the given properties or system properties.
getDefaultProperties
public final java.util.Properties getDefaultProperties()
- Retrieve a set of default Hibernate properties for this database.
getCascadeConstraintsString
public java.lang.String getCascadeConstraintsString()
- Completely optional cascading drop clause
createOuterJoinFragment
public org.hibernate.sql.JoinFragment createOuterJoinFragment()
- Create an OuterJoinGenerator for this dialect.
createCaseFragment
public org.hibernate.sql.CaseFragment createCaseFragment()
- Create a CaseFragment for this dialect.
getLowercaseFunction
public java.lang.String getLowercaseFunction()
- The name of the SQL function that transforms a string to
lowercase
supportsLimit
public boolean supportsLimit()
- Does this Dialect have some kind of LIMIT syntax?
supportsLimitOffset
public boolean supportsLimitOffset()
- Does this dialect support an offset?
getLimitString
public java.lang.String getLimitString(java.lang.String querySelect, boolean hasOffset)
- Add a LIMIT clause to the given SQL SELECT
getLimitString
public java.lang.String getLimitString(java.lang.String querySelect, int offset, int limit)
supportsVariableLimit
public boolean supportsVariableLimit()
bindLimitParametersInReverseOrder
public boolean bindLimitParametersInReverseOrder()
- Does the LIMIT clause specify arguments in the "reverse" order
limit, offset instead of offset, limit?
bindLimitParametersFirst
public boolean bindLimitParametersFirst()
- Does the LIMIT clause come at the start of the
SELECT statement, rather than at the end?
useMaxForLimit
public boolean useMaxForLimit()
- Does the LIMIT clause take a "maximum" row number instead
of a total number of returned rows?
openQuote
public char openQuote()
- The opening quote for a quoted identifier
closeQuote
public char closeQuote()
- The closing quote for a quoted identifier
getFunctions
public final java.util.Map getFunctions()
- SQL functions as defined in general. The results of this
method should be integrated with the specialisation's data.
supportsIfExistsBeforeTableName
public boolean supportsIfExistsBeforeTableName()
supportsIfExistsAfterTableName
public boolean supportsIfExistsAfterTableName()
supportsColumnCheck
public boolean supportsColumnCheck()
- Does this dialect support column-level check constraints?
supportsTableCheck
public boolean supportsTableCheck()
- Does this dialect support table-level check constraints?
hasDataTypeInIdentityColumn
public boolean hasDataTypeInIdentityColumn()
- Whether this dialect have an Identity clause added to the data type or a
completely seperate identity data type
supportsCascadeDelete
public boolean supportsCascadeDelete()
appendLockHint
public java.lang.String appendLockHint(org.hibernate.LockMode mode, java.lang.String tableName)
- Method
appendLockHintappends according to the given lock mode a lock hint behind the given table name, if this dialect needs this. MS SQL Server for example doesn't support the standard "select ... for update" syntax and use a special "select ... from TABLE as ALIAS with (updlock, rowlock) where ..." syntax instead.
getNativeIdentifierGeneratorClass
public java.lang.Class getNativeIdentifierGeneratorClass()
getSelectGUIDString
public java.lang.String getSelectGUIDString()
supportsOuterJoinForUpdate
public boolean supportsOuterJoinForUpdate()
getSelectClauseNullString
public java.lang.String getSelectClauseNullString(int sqlType)
supportsNotNullUnique
public boolean supportsNotNullUnique()
buildSQLExceptionConverter
public org.hibernate.exception.SQLExceptionConverter buildSQLExceptionConverter()
- Build an instance of the SQLExceptionConverter preferred by this dialect for
converting SQLExceptions into Hibernate's JDBCException hierarchy. The default
Dialect implementation simply returns a converter based on X/Open SQLState codes.
It is strongly recommended that specific Dialect implementations override this
method, since interpretation of a SQL error is much more accurate when based on
the ErrorCode rather than the SQLState. Unfortunately, the ErrorCode is a vendor-
specific approach.
getViolatedConstraintNameExtracter
public org.hibernate.exception.ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter()
quote
public final java.lang.String quote(java.lang.String column)
hasSelfReferentialForeignKeyBug
public boolean hasSelfReferentialForeignKeyBug()
useInputStreamToInsertBlob
public boolean useInputStreamToInsertBlob()
registerResultSetOutParameter
public int registerResultSetOutParameter(java.sql.CallableStatement statement, int col) throws java.sql.SQLException
getResultSet
public java.sql.ResultSet getResultSet(java.sql.CallableStatement ps) throws java.sql.SQLException
supportsUnionAll
public boolean supportsUnionAll()
supportsCommentOn
public boolean supportsCommentOn()
getTableComment
public java.lang.String getTableComment(java.lang.String comment)
getColumnComment
public java.lang.String getColumnComment(java.lang.String comment)
transformSelectString
public java.lang.String transformSelectString(java.lang.String select)
supportsTemporaryTables
public boolean supportsTemporaryTables()
generateTemporaryTableName
public java.lang.String generateTemporaryTableName(java.lang.String baseTableName)
getCreateTemporaryTableString
public java.lang.String getCreateTemporaryTableString()
performTemporaryTableDDLInIsolation
public boolean performTemporaryTableDDLInIsolation()
getCreateTemporaryTablePostfix
public java.lang.String getCreateTemporaryTablePostfix()
dropTemporaryTableAfterUse
public boolean dropTemporaryTableAfterUse()
getForUpdateString
public java.lang.String getForUpdateString(org.hibernate.LockMode lockMode)
getMaxAliasLength
public int getMaxAliasLength()
supportsCurrentTimestampSelection
public boolean supportsCurrentTimestampSelection()
getCurrentTimestampSelectString
public java.lang.String getCurrentTimestampSelectString()
isCurrentTimestampSelectStringCallable
public boolean isCurrentTimestampSelectStringCallable()
toBooleanValueString
public java.lang.String toBooleanValueString(boolean bool)
- The SQL value that the JDBC driver maps boolean values to
supportsParametersInInsertSelect
public boolean supportsParametersInInsertSelect()
- Does this dialect support parameters within the select clause of
INSERT ... SELECT ... statements?
getCurrentTimestampSQLFunctionName
public java.lang.String getCurrentTimestampSQLFunctionName()
- The name of the database-specific SQL function for retrieving the
current timestamp.
getLockingStrategy
public org.hibernate.dialect.lock.LockingStrategy getLockingStrategy(org.hibernate.persister.entity.Lockable lockable, org.hibernate.LockMode lockMode)
- Get a strategy instance which knows how to acquire a database-level lock
of the specified mode for this dialect.
- Since:
- 3.2
|
|||||||||
| Home >> All >> org >> hibernate >> [ dialect overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.hibernate.dialect.Dialect