| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| private final List | |
| private static final ViolatedConstraintNameExtracter | |
| private final TypeNames | |
| private static final Logger | |
| public static final String | |
| private final Properties | |
| public static final String | QUOTE
Characters used for quoting SQL identifiers |
| private final Map | |
| private final Set | |
| private static final Set | |
| private final TypeNames |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| public String | Returns: The insert command with any necessary identity select clause attached.The insert command insertString)Provided we |
| public String | Returns: The table with any required lock hints.The lock mode to apply mode, String The name of the table to which to apply the lock hint. tableName)Some dialects support an alternative means to SELECT FOR UPDATE, whereby a "lock hint" is appends to the table name in the from clause. |
| public String | Returns: the modified SQL string.the SQL string to modify sql, LockOptions lock options indexed by aliased table names. aliasedLockOptions, Map<K, V> a map of key columns indexed by aliased table names. keyColumnNames)Modifies the given SQL by applying the appropriate updates for the specified lock modes and key columns. |
| public boolean | Returns: True if comparisons are case insensitive.Are string comparisons implicitly case insensitive. |
| public boolean | Returns: true if limit parameters should come before other parametersDoes the LIMIT clause come at the start of the SELECT statement, rather than at the end? |
| public boolean | Returns: true if the correct order is limit, offsetANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit. |
| public SQLExceptionConverter | Returns: The Dialect's preferred SQLExceptionConverter.Build an instance of the SQLExceptionConverter preferred by this dialect for converting SQLExceptions into Hibernate's JDBCException hierarchy. |
| public char | Returns: The dialect's specific close quote character.The character specific to this dialect used to close a quoted identifier. |
| public int | Returns: The corresponding db/dialect specific offset.The user-supplied, zero-based first row offset. zeroBasedFirstResult)Hibernate APIs explicitly state that setFirstResult() should be a zero-based offset. |
| public CaseFragment | Returns: This dialect'sorg. strategy.Create a |
| public JoinFragment | Returns: This dialect'sorg. strategy.Create a |
| public boolean | Returns: True if writers block readers to achieve READ_COMMITTED; false otherwise.For the underlying database, is READ_COMMITTED isolation implemented by forcing readers to wait for write locks to be released? |
| public boolean | Returns: True if readers block writers to achieve REPEATABLE_READ; false otherwise.For the underlying database, is REPEATABLE_READ isolation implemented by forcing writers to wait for read locks to be released? |
| public boolean | Returns: True if constraints must be dropped prior to dropping the table; false otherwise.Do we need to drop constraints before dropping tables in this dialect? |
| public boolean | Returns: True if the table should be dropped.Do we need to drop the temporary table after use? |
| public boolean | Returns: True to force limit into SQL query even if none specified in Hibernate query; false otherwise.Generally, if there is no limit applied to a Hibernate query we do not apply any limits to the SQL query. |
| public boolean | Returns: True if the database supports FOR UPDATE OF syntax; false otherwise.Is FOR UPDATE OF syntax supported? |
| public String | Returns: The generated temp table name.The table name from which to base the temp table name. baseTableName)Generate a temporary table name given the base table. |
| public String | Returns: The "add column" fragment.The syntax used to add a column to a table (optional). |
| public String | Returns: the "add FK" fragmentThe FK constraint name. constraintName, String[] The names of the columns comprising the FK foreignKey, String The table referenced by the FK referencedTable, String[] The explicit columns in the referencedTable referenced
by this FK. primaryKey, boolean if false, constraint should be
explicit about which column names the constraint refers to referencesPrimaryKey)The syntax used to add a foreign key constraint to a table. |
| public String | Returns: The "add PK" fragmentThe name of the PK constraint. constraintName)The syntax used to add a primary key constraint to a table. |
| public String | |
| public String | Returns: The database type nameThe code)java. typecodeGet the name of the database type appropriate for casting operations
(via the CAST() SQL function) for the given |
| public ColumnAliasExtractor | |
| public String | |
| public String | Returns: The command used to create a multiset table.Slight variation on |
| protected String | Returns: The sequence creation commandThe name of the sequence sequenceName)Typically dialects which support sequences can create a sequence with a single command. |
| protected String | Returns: The sequence creation commandThe name of the sequence sequenceName, int The initial value to apply to 'create sequence' statement initialValue, int The increment value to apply to 'create sequence' statement incrementSize)Overloaded form of |
| public String[] | Returns: The sequence creation commandsThe name of the sequence sequenceName)
Deprecated
Use
The multiline script used to create a sequence.
getCreateSequenceString(String, int, int) instead
|
| public String[] | Returns: The sequence creation commandsThe name of the sequence sequenceName, int The initial value to apply to 'create sequence' statement initialValue, int The increment value to apply to 'create sequence' statement incrementSize)An optional multi-line form for databases which |
| public String | |
| public String | Returns: Any required postfix.Get any fragments needing to be postfixed to the command for temporary table creation. |
| public String | Returns: The command used to create a temporary table.Command used to create a temporary table. |
| public String | getCrossJoinSeparator()
Get the separator to use for defining cross joins when translating HQL queries. |
| public String | Returns: The command.Retrieve the command used to retrieve the current timestamp from the database. |
| public String | Returns: The function name.The name of the database-specific SQL function for retrieving the current timestamp. |
| public final Properties | Returns: a set of Hibernate propertiesRetrieve a set of default Hibernate properties for this database. |
| public static Dialect | Returns: The specified DialectGet an instance of the dialect specified by the current System properties. |
| public static Dialect | Returns: The specified DialectThe properties to use for finding the dialect class to use. props)Get an instance of the dialect specified by the given properties or by the current System properties. |
| public String | |
| protected String | Returns: The sequence drop commandsThe name of the sequence sequenceName)Typically dialects which support sequences can drop a sequence with a single command. |
| public String[] | Returns: The sequence drop commandsThe name of the sequence sequenceName)The multiline script used to drop a sequence. |
| public String | Returns: The command used to drop a temporary table.Command used to drop a temporary table. |
| public String | Returns: The appropriate FOR UPDATE NOWAIT clause string.Retrieves the FOR UPDATE NOWAIT syntax specific to this dialect. |
| public String | Returns: The appropriate FOR UPDATE OF colunm_list NOWAIT clause string.The columns to be write locked. aliases)Get the FOR UPDATE OF column_list NOWAIT fragment appropriate for this dialect given the aliases of the columns to be write locked. |
| public String | Returns: The appropriate for update fragment.contains the lock mode to apply. lockOptions)Given LockOptions (lockMode, timeout), determine the appropriate for update fragment to use. |
| public String | Returns: The appropriate for update fragment.The lock mode to apply. lockMode)Given a lock mode, determine the appropriate for update fragment to use. |
| public String | Returns: The appropriate FOR UPDATE clause string.Get the string to append to SELECT statements to acquire locks for this dialect. |
| public String | Returns: The appropriate FOR UPDATE OF column_list clause string.The columns to be write locked. aliases)Get the FOR UPDATE OF column_list fragment appropriate for this dialect given the aliases of the columns to be write locked. |
| public String | Returns: The appropriate FOR UPDATE OF column_list clause string.The columns to be write locked. aliases, LockOptions lockOptions)Get the FOR UPDATE OF column_list fragment appropriate for this dialect given the aliases of the columns to be write locked. |
| public final Map | Returns: The map of registered functions.Retrieves a map of the dialect's registered functions
(functionName => |
| public String | Returns: The Hibernateorg. name.The code)java. typecodeGet the name of the Hibernate |
| public String | Returns: The Hibernateorg. name.The code, int java. typecodeThe datatype length length, int The datatype precision precision, int The datatype scale scale)Get the name of the Hibernate |
| public String | Returns: The appropriate DDL fragment.The type)java. type code.The syntax used during DDL to define a column as being an IDENTITY of a particular type. |
| protected String | Returns: The appropriate DDL fragment.The syntax used during DDL to define a column as being an IDENTITY. |
| public String | Returns: The appropriate keyword.The keyword used to insert a generated value into an identity column (or null). |
| public String | Returns: The appropriate select commandThe table into which the insert was done table, String The PK column. column, int The type)java. type code.Get the select command to use to retrieve the last generated IDENTITY value for a particular table |
| protected String | Returns: The appropriate select commandGet the select command to use to retrieve the last generated IDENTITY value. |
| public Set | |
| public String | Returns: The modified query statement with the limit applied.The query to which to apply the limit. query, int The offset of the limit offset, int The limit of the limit ;) limit)Given a limit and an offset, apply the limit clause to the query. |
| protected String | Returns: the modified SQLThe query to which to apply the limit. query, boolean Is the query requesting an offset? hasOffset)Apply s limit clause to the query. |
| public LockingStrategy | Returns: The appropriate locking strategy.The persister for the entity to be locked. lockable, LockMode The type of lock to be acquired. lockMode)Get a strategy instance which knows how to acquire a database-level lock of the specified mode for this dialect. |
| public String | Returns: The dialect-specific lowercase function.The name of the SQL function that transforms a string to lowercase |
| public int | Returns: The maximum length.What is the maximum length Hibernate can use for generated aliases? |
| public Class | Returns: The native generator class.The class (which implements |
| public String | Returns: The appropriate empty values clause.The fragment used to insert a row without specifying any column values. |
| public String | |
| public String | Returns: The select command; or null if sequences are not supported.Get the select command used retrieve the names of all sequences. |
| public String | Returns: The appropriate LOCK clause string.in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Get the string to append to SELECT statements to acquire WRITE locks for this dialect. |
| public ResultSet | Returns: The extracted result set.The callable statement. statement)Given a callable statement previously processed by |
| public String | Returns: The appropriate select clause value fragment.The sqlType)java. type code.Given a |
| public String | Returns: The appropriate command.Get the command used to select a GUID from the underlying database. |
| public String | Returns: The "nextval" fragment.the name of the sequence sequenceName)Generate the select expression fragment that will retrieve the next value of a sequence as part of another (typically DML) statement. |
| public String | Returns: String The "nextval" select string.the name of the sequence sequenceName)Generate the appropriate select statement to to retrieve the next value of a sequence. |
| public String | |
| public String | |
| public String | Returns: the database type nameThe code)java. typecodeGet the name of the database type associated with the given
|
| public String | Returns: the database type nameThe code, int java. typecodeThe datatype length length, int The datatype precision precision, int The datatype scale scale)Get the name of the database type associated with the given
|
| public final List | Returns: the dialect-specific typesRetrieve dialect-specific types for overriding "basic" types. |
| public ViolatedConstraintNameExtracter | |
| public String | Returns: The appropriate LOCK clause string.in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)Get the string to append to SELECT statements to acquire WRITE locks for this dialect. |
| public boolean | Returns: True if we support altering of tables; false otherwise.Does this dialect support the ALTER TABLE syntax? |
| public boolean | Returns: booleanWhether this dialect have an Identity clause added to the data type or a completely separate identity data type |
| public boolean | |
| private static Dialect | |
| public boolean | Returns: True if thegetCurrentTimestampSelectString return
is callable; false otherwise.Should the value returned by |
| public boolean | Returns: True if the lock timeout is rendered into the SQL string as a parameter; false otherwise.If this dialect supports specifying lock timeouts, are those timeouts rendered into the SQL string as parameters. |
| public char | Returns: The dialect's specific open quote character.The character specific to this dialect used to begin a quoted identifier. |
| public Boolean | Returns: see the result matrix above.Does the dialect require that temporary table DDL statements occur in isolation from other statements? |
| public boolean | |
| public final String | |
| protected void | registerColumnType(int
The code, int java. typecodeThe maximum length of database type capacity, String The database type name name)Subclasses register a type name for the given type code and maximum column length. |
| protected void | registerColumnType(int
The code, String java. typecodeThe database type name name)Subclasses register a type name for the given type code. |
| protected void | |
| protected void | registerHibernateType(int
The code, int java. typecodeThe maximum length of database type capacity, String The Hibernate name)org. nameRegisters a Hibernate |
| protected void | registerHibernateType(int
The code, String java. typecodeThe Hibernate name)org. nameRegisters a Hibernate |
| protected void | |
| public int | Returns: The number of (contiguous) bind positions used.The callable statement. statement, int The bind position at which to register the OUT param. position)Registers an OUT parameter which will be returning a
|
| public boolean | Returns: true if result variable references in the ORDER BY clause should be replaced by column positions; false otherwise.Does this dialect require that references to result variables (i.e, select expresssion aliases) in an ORDER BY clause be replaced by column positions (1-origin) as defined by the select clause? |
| public boolean | Returns: True if select clause parameter must be cast()edDoes this dialect require that parameters appearing in the SELECT clause be wrapped in cast() calls to tell the db parser the expected type. |
| public boolean | Returns: True if the database supports accepting bind params as args; false otherwise.Does this dialect support using a JDBC bind parameter as an argument to a function or procedure call? |
| public boolean | |
| public boolean | Returns: True if circular cascade delete constraints are supported; false otherwise.Does this dialect support definition of cascade delete constraints which can cause circular chains? |
| public boolean | Returns: True if column-level CHECK constraints are supported; false otherwise.Does this dialect support column-level check constraints? |
| public boolean | |
| public boolean | Returns: True if the current timestamp can be retrieved; false otherwise.Does this dialect support a way to retrieve the database's current timestamp value? |
| public boolean | Returns: True if empty in lists are supported; false otherwise.Does this dialect support empty IN lists? |
| public boolean | Returns: True if exists checks are allowed in the select clause; false otherwise.Does the dialect support an exists statement in the select clause? |
| public boolean | Returns: True if normal LOB usage patterns can be used with this driver; false if driver-specific hookiness needs to be applied.Expected LOB usage pattern is such that I can perform an insert via prepared statement with a parameter binding for a LOB value without crazy casting to JDBC driver implementation-specific classes... |
| public boolean | Returns: True if IDENTITY columns are supported; false otherwise.Does this dialect support identity column key generation? |
| public boolean | |
| public boolean | |
| public boolean | Returns: True if the dialect supports selecting the just generated IDENTITY in the insert statement.Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement. |
| public boolean | Returns: True if this dialect supports some form of LIMIT.Does this dialect support some form of limiting query results via a SQL clause? |
| public boolean | Returns: True if the dialect supports an offset within the limit support.Does this dialect's LIMIT support (if any) additionally support specifying an offset? |
| public boolean | Returns: True if the changes are propagated back to the database; false otherwise.Does the dialect support propagating changes to LOB values back to the database? |
| public boolean | Returns: True is this dialect supports specifying lock timeouts.Informational metadata about whether this dialect is known to support specifying timeouts for requested lock acquisitions. |
| public boolean | |
| public boolean | Returns: True if outer joined rows can be locked via FOR UPDATE.Does this dialect support FOR UPDATE in conjunction with outer joined rows? |
| public boolean | Returns: True if this is supported; false otherwise.Does this dialect support parameters within the SELECT clause of INSERT ... |
| public boolean | Returns: True if such "pooled" sequences are supported; false otherwise.Does this dialect support "pooled" sequences. |
| public boolean | Returns: True if methods likejava. and
java. are supported for forward
only cursors; false otherwise.Does this dialect support asking the result set its positioning information on forward only cursors. |
| public boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax; false otherwise.Is this dialect known to support what ANSI-SQL terms "row value constructor" syntax; sometimes called tuple syntax. |
| public boolean | Returns: True if this SQL dialect is known to support "row value constructor" syntax in the IN list; false otherwise.If the dialect supports |
| public boolean | Returns: True if sequences supported; false otherwise.Does this dialect support sequences? |
| public boolean | Returns: True if this dialect allows references the mutating table from a subquery.Does this dialect support referencing the table being mutated in a subquery. |
| public boolean | Returns: True if subselects can appear as the LHS of an in-predicate; false otherwise.Are subselects supported as the left-hand-side (LHS) of IN-predicates. |
| public boolean | Returns: True if table-level CHECK constraints are supported; false otherwise.Does this dialect support table-level check constraints? |
| public boolean | Returns: True if temp tables are supported; false otherwise.Does this dialect support temporary tables? |
| public boolean | Returns: True if the database supports counting tuples; false otherwise.Does this dialect support `count(a,b)`? |
| public boolean | Returns: True if the database supports counting disintct tuples; false otherwise.Does this dialect support `count(distinct a,b)`? |
| public boolean | Returns: True if unbounded materialization is supported; false otherwise.Is it supported to materialize a LOB locator outside the transaction in which it was created? |
| public boolean | Returns: True if UNION ALL is supported; false otherwise.Does this dialect support UNION ALL, which is generally a faster variant of UNION? |
| public boolean | |
| public boolean | Returns: booleanDoes this dialect support adding Unique constraints via create and alter table ? |
| public boolean | Returns: True if bind variables can be used; false otherwise.Does this dialect support bind variables (i.e., prepared statement parameters) for its limit/offset? |
| public String | Returns: The appropriate SQL literal.The boolean value bool)The SQL literal value to which this database maps boolean values. |
| public String | |
| public String | Returns: The mutated select command, or the same as was passed in.The select command select)Meant as a means for end users to affect the select strings being sent to the database and perhaps manipulate them in some fashion. |
| public boolean | Returns: True if BLOBs and CLOBs should be bound using stream operations.Should LOBs (both BLOB and CLOB) be bound using stream operations (i.e.
|
| public boolean | Returns: True if limit is relative from offset; false otherwise.Does the LIMIT clause take a "maximum" row number instead of a total number of returned rows? |