Deprecated
HHH-6073
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private final LimitHandler | |
| private static final CoreMessageLogger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IdentifierHelper | buildIdentifierHelper(IdentifierHelperBuilder
A semi-configured IdentifierHelper builder. builder, DatabaseMetaData Access to the metadata returned from the driver if needed and if available. dbMetaData)Warning may be Overrides org. |
| public CaseFragment | createCaseFragment()
Overrides org. CaseFragment strategy responsible
for handling this dialect's variations in how CASE statements are
handled.
|
| private void | |
| public boolean | dropConstraints()
Do we need to drop constraints before dropping tables in this dialect?
|
| public String | getCrossJoinSeparator()
Overrides org. |
| public MultiTableBulkIdStrategy | getDefaultMultiTableBulkIdStrategy()
Overrides org. From Derby docs:
The DECLARE GLOBAL TEMPORARY TABLE statement defines a temporary table for the current connection.
|
| public String | getForUpdateString()
Overrides org. |
| public LimitHandler | getLimitHandler()
Returns the delegate managing LIMIT clause.
|
| public String | getLimitString(String
The query to which to apply the limit. query, final int The offset of the limit offset, final int The limit of the limit ;) limit)
Given a limit and an offset, apply the limit clause to the query.
|
| public String | getQuerySequencesString()
Overrides org. |
| public String | getReadLockString(int
in milliseconds, -1 for indefinite wait and 0 for no wait. timeout)
Get the string to append to SELECT statements to acquire READ locks
for this dialect.
|
| public SequenceInformationExtractor | |
| public String | getSequenceNextValString(String
the name of the sequence sequenceName)Overrides org. |
| private int | |
| public String | getWriteLockString(int
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.
|
| private boolean | |
| private boolean | |
| private boolean | |
| protected void | |
| public boolean | supportsCommentOn()
Overrides org. |
| public boolean | supportsLimit()
Does this dialect support some form of limiting query results
via a SQL clause?
|
| public boolean | supportsLimitOffset()
Overrides org. |
| public boolean | supportsLobValueChangePropogation()
Overrides org. |
| public boolean | supportsPartitionBy()
Overrides org. |
| public boolean | supportsSequences()
Overrides org. |
| public boolean | supportsTuplesInSubqueries()
Overrides org. |
| public boolean | supportsUnboundedLobLocatorMaterialization()
Overrides org. |
| public boolean | supportsVariableLimit()
Overrides org. |
| driverVersionMajor | back to summary |
|---|---|
| private int driverVersionMajor | |
| driverVersionMinor | back to summary |
|---|---|
| private int driverVersionMinor | |
| limitHandler | back to summary |
|---|---|
| private final LimitHandler limitHandler | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG Hides org.
| |
| DerbyDialect | back to summary |
|---|---|
| public DerbyDialect() Constructs a DerbyDialect
| |
| buildIdentifierHelper | back to summary |
|---|---|
| public IdentifierHelper buildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData) throws SQLException Overrides org. Doc from org. Build the IdentifierHelper indicated by this Dialect for handling identifier conversions.
Returning The incoming builder will have the following set:
By default Hibernate will do the following:
| |
| createCaseFragment | back to summary |
|---|---|
| public CaseFragment createCaseFragment() Overrides org. Doc from org. Create a
| |
| determineDriverVersion | back to summary |
|---|---|
| private void determineDriverVersion() | |
| dropConstraints | back to summary |
|---|---|
| public boolean dropConstraints() Overrides org. Doc from org. Do we need to drop constraints before dropping tables in this dialect?
| |
| getCrossJoinSeparator | back to summary |
|---|---|
| public String getCrossJoinSeparator() Overrides org. Doc from org. Returns the separator to use for defining cross joins when translating HQL queries. Typically this will be either [ cross join ] or [, ] Note that the spaces are important! | |
| getDefaultMultiTableBulkIdStrategy | back to summary |
|---|---|
| public MultiTableBulkIdStrategy getDefaultMultiTableBulkIdStrategy() Overrides org.
From Derby docs:
The DECLARE GLOBAL TEMPORARY TABLE statement defines a temporary table for the current connection.
DB2Dialect returns a org. that
will make temporary tables created at startup and hence unavailable for subsequent connections.see HHH-10238.
| |
| getForUpdateString | back to summary |
|---|---|
| public String getForUpdateString() Overrides org. Doc from org. Get the string to append to SELECT statements to acquire locks for this dialect. | |
| getLimitHandler | back to summary |
|---|---|
| public LimitHandler getLimitHandler() Overrides org. Doc from org. Returns the delegate managing LIMIT clause.
| |
| getLimitString | back to summary |
|---|---|
| public String getLimitString(String query, final int offset, final int limit) Overrides org. Doc from org. Given a limit and an offset, apply the limit clause to the query. From Derby 10.5 Docs:
Query
[ORDER BY clause]
[result offset clause]
[fetch first clause]
[FOR UPDATE clause]
[WITH {RR|RS|CS|UR}]
| |
| getQuerySequencesString | back to summary |
|---|---|
| public String getQuerySequencesString() Overrides org. Doc from org. Get the select command used retrieve the names of all sequences. | |
| getReadLockString | back to summary |
|---|---|
| public String getReadLockString(int timeout) Overrides org. Doc from org. Get the string to append to SELECT statements to acquire READ locks for this dialect. Location of the returned string is treated the same as getForUpdateString. | |
| getSequenceInformationExtractor | back to summary |
|---|---|
| public SequenceInformationExtractor getSequenceInformationExtractor() Overrides org.
| |
| getSequenceNextValString | back to summary |
|---|---|
| public String getSequenceNextValString(String sequenceName) Overrides org. Doc from org. Generate the appropriate select statement to to retrieve the next value of a sequence. This should be a "stand alone" select statement. | |
| getWithIndex | back to summary |
|---|---|
| private int getWithIndex(String querySelect) | |
| getWriteLockString | back to summary |
|---|---|
| public String getWriteLockString(int timeout) Overrides org. Doc from org. Get the string to append to SELECT statements to acquire WRITE locks for this dialect. Location of the returned string is treated the same as getForUpdateString. | |
| hasForUpdateClause | back to summary |
|---|---|
| private boolean hasForUpdateClause(int forUpdateIndex) | |
| hasWithClause | back to summary |
|---|---|
| private boolean hasWithClause(String normalizedSelect) | |
| isTenPointFiveReleaseOrNewer | back to summary |
|---|---|
| private boolean isTenPointFiveReleaseOrNewer() | |
| registerDerbyKeywords | back to summary |
|---|---|
| protected void registerDerbyKeywords() | |
| supportsCommentOn | back to summary |
|---|---|
| public boolean supportsCommentOn() Overrides org. Doc from org. Does this dialect/database support commenting on tables, columns, etc?
| |
| supportsLimit | back to summary |
|---|---|
| public boolean supportsLimit() Overrides org. Doc from org. Does this dialect support some form of limiting query results via a SQL clause?
| |
| supportsLimitOffset | back to summary |
|---|---|
| public boolean supportsLimitOffset() Overrides org. Doc from org. Does this dialect's LIMIT support (if any) additionally support specifying an offset?
| |
| supportsLobValueChangePropogation | back to summary |
|---|---|
| public boolean supportsLobValueChangePropogation() Overrides org. Doc from org. Does the dialect support propagating changes to LOB values back to the database? Talking about mutating the internal value of the locator as opposed to supplying a new locator instance...
For BLOBs, the internal value might be changed by:
For CLOBs, the internal value might be changed by:
NOTE : I do not know the correct answer currently for
databases which (1) are not part of the cruise control process
or (2) do not
| |
| supportsPartitionBy | back to summary |
|---|---|
| public boolean supportsPartitionBy() Overrides org. Doc from org. Does the underlying database support partition by
| |
| supportsSequences | back to summary |
|---|---|
| public boolean supportsSequences() Overrides org. Doc from org. Does this dialect support sequences?
| |
| supportsTuplesInSubqueries | back to summary |
|---|---|
| public boolean supportsTuplesInSubqueries() Overrides org. Doc from org. Does this dialect support tuples in subqueries? Ex: delete from Table1 where (col1, col2) in (select col1, col2 from Table2)
| |
| supportsUnboundedLobLocatorMaterialization | back to summary |
|---|---|
| public boolean supportsUnboundedLobLocatorMaterialization() Overrides org. Doc from org. Is it supported to materialize a LOB locator outside the transaction in which it was created? Again, part of the trickiness here is the fact that this is largely driver dependent. Note all database I have tested which
| |
| supportsVariableLimit | back to summary |
|---|---|
| public boolean supportsVariableLimit() Overrides org. Doc from org. Does this dialect support bind variables (i.e., prepared statement parameters) for its limit/offset?
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | processSql(String
the SQL query to process. sql, RowSelection the selection criteria for rows. selection)Overrides org. Implements org. |
| public boolean | supportsLimit()
Overrides org. Implements org. |
| public boolean | supportsLimitOffset()
Overrides org. Implements org. |
| public boolean | supportsVariableLimit()
Overrides org. |
| DerbyLimitHandler | back to summary |
|---|---|
| private DerbyLimitHandler() | |
| processSql | back to summary |
|---|---|
| public String processSql(String sql, RowSelection selection) Overrides org. Implements org. Doc from org. Return processed SQL query. From Derby 10.5 Docs:
Query
[ORDER BY clause]
[result offset clause]
[fetch first clause]
[FOR UPDATE clause]
[WITH {RR|RS|CS|UR}]
| |
| supportsLimit | back to summary |
|---|---|
| public boolean supportsLimit() Overrides org. Implements org. Doc from org. Does this handler support some form of limiting query results via a SQL clause?
| |
| supportsLimitOffset | back to summary |
|---|---|
| public boolean supportsLimitOffset() Overrides org. Implements org. Doc from org. Does this handler's LIMIT support (if any) additionally support specifying an offset?
| |
| supportsVariableLimit | back to summary |
|---|---|
| public boolean supportsVariableLimit() Overrides org. Doc from org. Does this handler support bind variables (i.e., prepared statement parameters) for its limit/offset?
| |