public class H212126Dialect extends StandardDialect
| Modifier and Type | Class and Description |
|---|---|
static class |
H212126Dialect.H212126ExpressionFunctions |
static class |
H212126Dialect.H212126JdbcMappingVisitor |
static class |
H212126Dialect.H212126SqlLogFormattingVisitor |
StandardDialect.StandardCriteriaBuilder, StandardDialect.StandardExpressionFunctions, StandardDialect.StandardJdbcMappingVisitor, StandardDialect.StandardScriptBlockContext, StandardDialect.StandardSqlLogFormattingVisitor| Modifier and Type | Field and Description |
|---|---|
protected static int |
UNIQUE_CONSTRAINT_VIOLATION_ERROR_CODE
the error code that represents unique violation
|
CLOSE_QUOTE, expressionFunctions, jdbcMappingVisitor, OPEN_QUOTE, sqlLogFormattingVisitor, UNIQUE_CONSTRAINT_VIOLATION_STATE_CODES| Constructor and Description |
|---|
H212126Dialect() |
H212126Dialect(ExpressionFunctions expressionFunctions) |
H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor) |
H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor) |
H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor,
ExpressionFunctions expressionFunctions) |
H212126Dialect(SqlLogFormattingVisitor sqlLogFormattingVisitor) |
| Modifier and Type | Method and Description |
|---|---|
PreparedSql |
getIdentitySelectSql(java.lang.String catalogName,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String columnName,
boolean isQuoteRequired,
boolean isIdColumnQuoteRequired)
Returns an SQL object to get IDENTITY values that are generated in the database.
|
java.lang.String |
getName()
The dialect name.
|
PreparedSql |
getSequenceNextValSql(java.lang.String qualifiedSequenceName,
long allocationSize)
Returns an SQL object to get next sequence values.
|
boolean |
includesIdentityColumn()
Whether this object includes the IDENTITY column in SQL INSERT statements.
|
boolean |
isUniqueConstraintViolated(java.sql.SQLException sqlException)
Whether the
sqlException represents an unique violation. |
boolean |
supportsAutoGeneratedKeys()
Whether this object supports
Statement.getGeneratedKeys(). |
boolean |
supportsIdentity()
Whether this object supports the IDENTITY column.
|
boolean |
supportsSelectForUpdate(SelectForUpdateType type,
boolean withTargets)
Whether this object supports pessimistic locking.
|
boolean |
supportsSequence()
Whether this object supports the SEQUENCE.
|
protected SqlNode |
toForUpdateSqlNode(SqlNode sqlNode,
SelectForUpdateType forUpdateType,
int waitSeconds,
java.lang.String... aliases) |
protected SqlNode |
toPagingSqlNode(SqlNode sqlNode,
long offset,
long limit) |
applyQuote, createScriptBlockContext, getAutoGeneratedKeysType, getCauseSQLException, getCriteriaBuilder, getErrorCode, getExpressionFunctions, getIdentityReservationSql, getJdbcMappingVisitor, getResultSetType, getRootCause, getScriptBlockDelimiter, getSqlLogFormattingVisitor, getSQLState, getUpsertAssembler, removeQuote, supportsBatchUpdateResults, supportsIdentityReservation, supportsResultSetReturningAsOutParameter, toCountCalculatingSqlNode, toCountGettingSqlNode, transformSelectSqlNode, transformSelectSqlNodeForGettingCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsAliasInDeleteClause, supportsAliasInUpdateClause, supportsBatchExecutionReturningGeneratedValues, supportsModOperatorprotected static final int UNIQUE_CONSTRAINT_VIOLATION_ERROR_CODE
public H212126Dialect()
public H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor)
public H212126Dialect(SqlLogFormattingVisitor sqlLogFormattingVisitor)
public H212126Dialect(ExpressionFunctions expressionFunctions)
public H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor)
public H212126Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor, ExpressionFunctions expressionFunctions)
public java.lang.String getName()
DialectgetName in interface DialectgetName in class StandardDialectpublic boolean includesIdentityColumn()
DialectincludesIdentityColumn in interface DialectincludesIdentityColumn in class StandardDialecttrue, if this object includes itpublic PreparedSql getIdentitySelectSql(java.lang.String catalogName, java.lang.String schemaName, java.lang.String tableName, java.lang.String columnName, boolean isQuoteRequired, boolean isIdColumnQuoteRequired)
DialectThis method is available, only if Dialect.supportsIdentity() returns true.
getIdentitySelectSql in interface DialectgetIdentitySelectSql in class StandardDialectcatalogName - the catalog nameschemaName - the schema nametableName - the table namecolumnName - the IDENTITY column nameisQuoteRequired - whether the quotation marks are requiredisIdColumnQuoteRequired - whether the quotation marks are required for the IDENTITY columnpublic PreparedSql getSequenceNextValSql(java.lang.String qualifiedSequenceName, long allocationSize)
DialectThis method is available, only if Dialect.supportsSequence() returns true.
getSequenceNextValSql in interface DialectgetSequenceNextValSql in class StandardDialectqualifiedSequenceName - the qualified sequence nameallocationSize - the allocation size of the sequencepublic boolean isUniqueConstraintViolated(java.sql.SQLException sqlException)
DialectsqlException represents an unique violation.isUniqueConstraintViolated in interface DialectisUniqueConstraintViolated in class StandardDialectsqlException - the SQL exceptiontrue, if the sqlException represents an unique violationprotected SqlNode toPagingSqlNode(SqlNode sqlNode, long offset, long limit)
toPagingSqlNode in class StandardDialectprotected SqlNode toForUpdateSqlNode(SqlNode sqlNode, SelectForUpdateType forUpdateType, int waitSeconds, java.lang.String... aliases)
toForUpdateSqlNode in class StandardDialectpublic boolean supportsIdentity()
DialectsupportsIdentity in interface DialectsupportsIdentity in class StandardDialecttrue, if this object supports itpublic boolean supportsSequence()
DialectsupportsSequence in interface DialectsupportsSequence in class StandardDialecttrue, if this object supports itpublic boolean supportsAutoGeneratedKeys()
DialectStatement.getGeneratedKeys().supportsAutoGeneratedKeys in interface DialectsupportsAutoGeneratedKeys in class StandardDialecttrue, if this object supports itpublic boolean supportsSelectForUpdate(SelectForUpdateType type, boolean withTargets)
DialectsupportsSelectForUpdate in interface DialectsupportsSelectForUpdate in class StandardDialecttype - a kind of pessimistic lockingwithTargets - true if a lock target is specifiedtrue, if this object supports it