public class HsqldbDialect extends StandardDialect
| Modifier and Type | Class and Description |
|---|---|
static class |
HsqldbDialect.HsqldbExpressionFunctions |
static class |
HsqldbDialect.HsqldbJdbcMappingVisitor |
static class |
HsqldbDialect.HsqldbSqlLogFormattingVisitor |
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 |
|---|
HsqldbDialect() |
HsqldbDialect(ExpressionFunctions expressionFunctions) |
HsqldbDialect(JdbcMappingVisitor jdbcMappingVisitor) |
HsqldbDialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor) |
HsqldbDialect(JdbcMappingVisitor jdbcMappingVisitor,
SqlLogFormattingVisitor sqlLogFormattingVisitor,
ExpressionFunctions expressionFunctions) |
HsqldbDialect(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 |
supportsIdentity()
Whether this object supports the IDENTITY column.
|
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, supportsAutoGeneratedKeys, supportsBatchUpdateResults, supportsIdentityReservation, supportsResultSetReturningAsOutParameter, supportsSelectForUpdate, 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 HsqldbDialect()
public HsqldbDialect(JdbcMappingVisitor jdbcMappingVisitor)
public HsqldbDialect(SqlLogFormattingVisitor sqlLogFormattingVisitor)
public HsqldbDialect(ExpressionFunctions expressionFunctions)
public HsqldbDialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor)
public HsqldbDialect(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 it