| Modifier and Type | Field and Description |
|---|---|
| private static final ViolatedConstraintNameExtracter | |
| private final boolean | |
| private final boolean | |
| private static final AbstractLimitHandler | |
| private static final CoreMessageLogger | |
| private final String | |
| private final SequenceInformationExtractor | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | augmentPhysicalTableTypes(List<String> tableTypesList)
Overrides org. |
| public boolean | bindLimitParametersFirst()
Overrides org. |
| public boolean | bindLimitParametersInReverseOrder()
Overrides org. |
| public SQLExceptionConversionDelegate | buildSQLExceptionConversionDelegate()
Overrides org. SQLExceptionConversionDelegate for
interpreting dialect-specific error or SQLState codes.
|
| public boolean | doesReadCommittedCauseWritersToBlockReaders()
Overrides org. |
| public boolean | dropConstraints()
Do we need to drop constraints before dropping tables in this dialect?
|
| public String | getAddColumnString()
The syntax used to add a column to a table (optional).
|
| public String | getCascadeConstraintsString()
Overrides org. |
| public String | getCreateSequenceString(String
The name of the sequence sequenceName)Overrides org. |
| public String | getCurrentTimestampSelectString()
Overrides org. |
| public MultiTableBulkIdStrategy | |
| public String | getDropSequenceString(String
The name of the sequence sequenceName)Overrides org. |
| public String | getForUpdateString()
Get the string to append to SELECT statements to acquire locks
for this dialect.
|
| public IdentityColumnSupport | getIdentityColumnSupport()
Overrides org. IdentityColumnSupport
|
| public LimitHandler | getLimitHandler()
Returns the delegate managing LIMIT clause.
|
| public String | getLimitString(String
The query to which to apply the limit. sql, boolean Is the query requesting an offset? hasOffset)Overrides org. |
| public String | getQueryHintString(String
The query to which to apply the hint. query, String The hints to apply hints)
Apply a hint to the query.
|
| public String | getQuerySequencesString()
Overrides org. |
| public String | getSelectSequenceNextValString(String
the name of the sequence sequenceName)Overrides org. |
| public SequenceInformationExtractor | |
| public String | getSequenceNextValString(String
the name of the sequence sequenceName)Overrides org. |
| public ViolatedConstraintNameExtracter | |
| public boolean | |
| public boolean | isCurrentTimestampSelectStringCallable()
Overrides org. getCurrentTimestampSelectString
be treated as callable.
|
| public boolean | |
| public boolean | requiresParensForTupleDistinctCounts()
Overrides org. supportsTupleDistinctCounts() is true, does the Dialect require the tuple to be wrapped with parens?
|
| public boolean | supportsCurrentTimestampSelection()
Overrides org. |
| public boolean | supportsIfExistsAfterTableName()
Overrides org. |
| public boolean | supportsIfExistsBeforeConstraintName()
Overrides org. |
| public boolean | supportsIfExistsBeforeTableName()
Overrides org. |
| public boolean | supportsLimit()
Overrides org. |
| public boolean | supportsLobValueChangePropogation()
Overrides org. |
| public boolean | supportsPooledSequences()
Overrides org. |
| public boolean | |
| public boolean | supportsSequences()
Does this dialect support sequences?
|
| public boolean | supportsTuplesInSubqueries()
Overrides org. |
| public boolean | supportsUnionAll()
Does this dialect support UNION ALL, which is generally a faster
variant of UNION?
|
| public String | toBooleanValueString(boolean
The boolean value bool)Overrides org. |
| EXTRACTER | back to summary |
|---|---|
| private static final ViolatedConstraintNameExtracter EXTRACTER | |
| hasOddDstBehavior | back to summary |
|---|---|
| private final boolean hasOddDstBehavior | |
| isVersion2 | back to summary |
|---|---|
| private final boolean isVersion2 | |
| LIMIT_HANDLER | back to summary |
|---|---|
| private static final AbstractLimitHandler LIMIT_HANDLER | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG | |
| querySequenceString | back to summary |
|---|---|
| private final String querySequenceString | |
| sequenceInformationExtractor | back to summary |
|---|---|
| private final SequenceInformationExtractor sequenceInformationExtractor | |
| supportsTuplesInSubqueries | back to summary |
|---|---|
| private final boolean supportsTuplesInSubqueries | |
| H2Dialect | back to summary |
|---|---|
| public H2Dialect() Constructs a H2Dialect | |
| augmentPhysicalTableTypes | back to summary |
|---|---|
| public void augmentPhysicalTableTypes(List<String> tableTypesList) Overrides org.
| |
| bindLimitParametersFirst | back to summary |
|---|---|
| public boolean bindLimitParametersFirst() Overrides org. Doc from org. Does the LIMIT clause come at the start of the SELECT statement, rather than at the end?
| |
| bindLimitParametersInReverseOrder | back to summary |
|---|---|
| public boolean bindLimitParametersInReverseOrder() Overrides org. Doc from org. ANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit. Does this dialect require us to bind the parameters in reverse order?
| |
| buildSQLExceptionConversionDelegate | back to summary |
|---|---|
| public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate() Overrides org. Doc from org. Build an instance of a
When
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 vendor-specific ErrorCode rather than the SQLState. Specific Dialects may override to return whatever is most appropriate for that vendor.
| |
| doesReadCommittedCauseWritersToBlockReaders | back to summary |
|---|---|
| public boolean doesReadCommittedCauseWritersToBlockReaders() Overrides org. Doc from org. For the underlying database, is READ_COMMITTED isolation implemented by forcing readers to wait for write locks to be released?
| |
| dropConstraints | back to summary |
|---|---|
| public boolean dropConstraints() Overrides org. Doc from org. Do we need to drop constraints before dropping tables in this dialect?
| |
| getAddColumnString | back to summary |
|---|---|
| public String getAddColumnString() Overrides org. Doc from org. The syntax used to add a column to a table (optional). | |
| getCascadeConstraintsString | back to summary |
|---|---|
| public String getCascadeConstraintsString() Overrides org. Doc from org. Completely optional cascading drop clause | |
| getCreateSequenceString | back to summary |
|---|---|
| public String getCreateSequenceString(String sequenceName) Overrides org. Doc from org. Typically dialects which support sequences can create a sequence
with a single command. This is convenience form of
Dialects which support sequences and can create a sequence in a
single command need *only* override this method. Dialects
which support sequences but require multiple commands to create
a sequence should instead override | |
| getCurrentTimestampSelectString | back to summary |
|---|---|
| public String getCurrentTimestampSelectString() Overrides org. Doc from org. Retrieve the command used to retrieve the current timestamp from the database. | |
| getDefaultMultiTableBulkIdStrategy | back to summary |
|---|---|
| public MultiTableBulkIdStrategy getDefaultMultiTableBulkIdStrategy() Overrides org.
| |
| getDropSequenceString | back to summary |
|---|---|
| public String getDropSequenceString(String sequenceName) Overrides org. Doc from org. Typically dialects which support sequences can drop a sequence
with a single command. This is convenience form of
Dialects which support sequences and can drop a sequence in a
single command need *only* override this method. Dialects
which support sequences but require multiple commands to drop
a sequence should instead override | |
| 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. | |
| getIdentityColumnSupport | back to summary |
|---|---|
| public IdentityColumnSupport getIdentityColumnSupport() Overrides org. Doc from org. Get the appropriate
| |
| 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 sql, boolean hasOffset) Overrides org. Doc from org. Apply a limit clause to the query.
Typically dialects utilize
Here we do still pass along whether or not an offset was specified
so that dialects not supporting offsets can generate proper exceptions.
In general, dialects will override one or the other of this method and
| |
| getQueryHintString | back to summary |
|---|---|
| public String getQueryHintString(String query, String hints) Overrides org. Doc from org. Apply a hint to the query. The entire query is provided, allowing the Dialect full control over the placement and syntax of the hint. By default, ignore the hint and simply return the query. | |
| getQuerySequencesString | back to summary |
|---|---|
| public String getQuerySequencesString() Overrides org. Doc from org. Get the select command used retrieve the names of all sequences. | |
| getSelectSequenceNextValString | back to summary |
|---|---|
| public String getSelectSequenceNextValString(String sequenceName) Overrides org. Doc from org. Generate the select expression fragment that will retrieve the next value of a sequence as part of another (typically DML) statement.
This differs from | |
| 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. | |
| getViolatedConstraintNameExtracter | back to summary |
|---|---|
| public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter() Overrides org. Implements org.
| |
| hasOddDstBehavior | back to summary |
|---|---|
| public boolean hasOddDstBehavior() | |
| isCurrentTimestampSelectStringCallable | back to summary |
|---|---|
| public boolean isCurrentTimestampSelectStringCallable() Overrides org. Doc from org. Should the value returned by
| |
| isVersion2 | back to summary |
|---|---|
| public boolean isVersion2() | |
| requiresParensForTupleDistinctCounts | back to summary |
|---|---|
| public boolean requiresParensForTupleDistinctCounts() Overrides org. Doc from org. If
| |
| supportsCurrentTimestampSelection | back to summary |
|---|---|
| public boolean supportsCurrentTimestampSelection() Overrides org. Doc from org. Does this dialect support a way to retrieve the database's current timestamp value?
| |
| supportsIfExistsAfterTableName | back to summary |
|---|---|
| public boolean supportsIfExistsAfterTableName() Overrides org. Doc from org. For dropping a table, can the phrase "if exists" be applied after the table name?
NOTE : Only one or the other (or neither) of this and
| |
| supportsIfExistsBeforeConstraintName | back to summary |
|---|---|
| public boolean supportsIfExistsBeforeConstraintName() Overrides org. Doc from org. For dropping a constraint with an "alter table", can the phrase "if exists" be applied before the constraint name?
NOTE : Only one or the other (or neither) of this and
| |
| supportsIfExistsBeforeTableName | back to summary |
|---|---|
| public boolean supportsIfExistsBeforeTableName() Overrides org. Doc from org. For dropping a table, can the phrase "if exists" be applied before the table name?
NOTE : Only one or the other (or neither) of this and
| |
| 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?
| |
| 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
| |
| supportsPooledSequences | back to summary |
|---|---|
| public boolean supportsPooledSequences() Overrides org. Doc from org. Does this dialect support "pooled" sequences. Not aware of a better name for this. Essentially can we specify the initial and increment values?
| |
| supportsSelectAliasInGroupByClause | back to summary |
|---|---|
| public boolean supportsSelectAliasInGroupByClause() Overrides org.
| |
| 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)
| |
| supportsUnionAll | back to summary |
|---|---|
| public boolean supportsUnionAll() Overrides org. Doc from org. Does this dialect support UNION ALL, which is generally a faster variant of UNION?
| |
| toBooleanValueString | back to summary |
|---|---|
| public String toBooleanValueString(boolean bool) Overrides org. Doc from org. The SQL literal value to which this database maps boolean values. | |