java.lang.Object
org.seasar.doma.jdbc.dialect.StandardDialect
org.seasar.doma.jdbc.dialect.H212126Dialect
org.seasar.doma.jdbc.dialect.H214199Dialect
org.seasar.doma.jdbc.dialect.H2Dialect
- All Implemented Interfaces:
Dialect
A dialect for H2 version 1.4.200 and above.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class org.seasar.doma.jdbc.dialect.H214199Dialect
H214199Dialect.H214199ExpressionFunctions, H214199Dialect.H214199JdbcMappingVisitor, H214199Dialect.H214199SqlLogFormattingVisitorNested classes/interfaces inherited from class org.seasar.doma.jdbc.dialect.H212126Dialect
H212126Dialect.H212126ExpressionFunctions, H212126Dialect.H212126JdbcMappingVisitor, H212126Dialect.H212126SqlLogFormattingVisitorNested classes/interfaces inherited from class org.seasar.doma.jdbc.dialect.StandardDialect
StandardDialect.StandardCriteriaBuilder, StandardDialect.StandardExpressionFunctions, StandardDialect.StandardJdbcMappingVisitor, StandardDialect.StandardScriptBlockContext, StandardDialect.StandardSqlLogFormattingVisitor -
Field Summary
Fields inherited from class org.seasar.doma.jdbc.dialect.H214199Dialect
UNIQUE_CONSTRAINT_VIOLATION_ERROR_CODEFields inherited from class org.seasar.doma.jdbc.dialect.StandardDialect
CLOSE_QUOTE, expressionFunctions, jdbcMappingVisitor, OPEN_QUOTE, sqlLogFormattingVisitor, UNIQUE_CONSTRAINT_VIOLATION_STATE_CODES -
Constructor Summary
ConstructorsConstructorDescriptionH2Dialect(ExpressionFunctions expressionFunctions) H2Dialect(JdbcMappingVisitor jdbcMappingVisitor) H2Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor) H2Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor, ExpressionFunctions expressionFunctions) H2Dialect(SqlLogFormattingVisitor sqlLogFormattingVisitor) -
Method Summary
Modifier and TypeMethodDescription<ENTITY> DeleteAssemblergetDeleteAssembler(DeleteAssemblerContext<ENTITY> context) Provides an implementation ofDeleteAssemblerbased on the given context.<ENTITY> InsertAssemblergetInsertAssembler(InsertAssemblerContext<ENTITY> context) Provides an implementation ofInsertAssemblerbased on the given context.<ENTITY> MultiInsertAssemblergetMultiInsertAssembler(MultiInsertAssemblerContext<ENTITY> context) Provides an implementation ofMultiInsertAssemblerbased on the given context.<ENTITY> UpdateAssemblergetUpdateAssembler(UpdateAssemblerContext<ENTITY> context) Provides an implementation ofUpdateAssemblerbased on the given context.getUpsertAssembler(UpsertAssemblerContext context) Returns the UpsertAssembler implementation for the given context.booleanDetermines whether this dialect includes IDENTITY columns in SQL INSERT statements.booleanDetermines whether this dialect supports retrieving generated values from batch executions.booleanDetermines whether this dialect supports upsert emulation using MERGE statements.Methods inherited from class org.seasar.doma.jdbc.dialect.H214199Dialect
isUniqueConstraintViolated, toForUpdateSqlNode, toPagingSqlNodeMethods inherited from class org.seasar.doma.jdbc.dialect.H212126Dialect
getIdentitySelectSql, getName, getSequenceNextValSql, supportsAutoGeneratedKeys, supportsIdentity, supportsSelectForUpdate, supportsSequenceMethods inherited from class org.seasar.doma.jdbc.dialect.StandardDialect
applyQuote, createScriptBlockContext, getAutoGeneratedKeysType, getCauseSQLException, getCriteriaBuilder, getErrorCode, getExpressionFunctions, getIdentityReservationSql, getJdbcMappingVisitor, getResultSetType, getRootCause, getScriptBlockDelimiter, getSqlLogFormattingVisitor, getSQLState, removeQuote, supportsBatchUpdateResults, supportsIdentityReservation, supportsResultSetReturningAsOutParameter, toCountCalculatingSqlNode, toCountGettingSqlNode, transformSelectSqlNode, transformSelectSqlNodeForGettingCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.seasar.doma.jdbc.dialect.Dialect
includesIdentityColumn, supportsAliasInDeleteClause, supportsAliasInDeleteStatement, supportsAliasInUpdateClause, supportsAliasInUpdateStatement, supportsAutoIncrementWhenInsertingMultipleRows, supportsModOperator, supportsMultiRowInsertStatement, supportsParenthesesForSetOperands, supportsReturning
-
Constructor Details
-
H2Dialect
public H2Dialect() -
H2Dialect
-
H2Dialect
-
H2Dialect
-
H2Dialect
public H2Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor) -
H2Dialect
public H2Dialect(JdbcMappingVisitor jdbcMappingVisitor, SqlLogFormattingVisitor sqlLogFormattingVisitor, ExpressionFunctions expressionFunctions)
-
-
Method Details
-
includesIdentityColumn
public boolean includesIdentityColumn()Description copied from interface:DialectDetermines whether this dialect includes IDENTITY columns in SQL INSERT statements.Some database systems require that IDENTITY columns be excluded from INSERT statements, while others allow or require them to be included.
- Specified by:
includesIdentityColumnin interfaceDialect- Overrides:
includesIdentityColumnin classH212126Dialect- Returns:
trueif this dialect includes IDENTITY columns in INSERT statements,falseotherwise
-
supportsUpsertEmulationWithMergeStatement
public boolean supportsUpsertEmulationWithMergeStatement()Description copied from interface:DialectDetermines whether this dialect supports upsert emulation using MERGE statements.An upsert operation (update or insert) can be emulated using MERGE statements in some database systems. This method indicates whether the dialect supports this approach.
The default implementation returns
false.- Returns:
trueif this dialect supports upsert emulation with MERGE statements,falseotherwise
-
supportsBatchExecutionReturningGeneratedValues
public boolean supportsBatchExecutionReturningGeneratedValues()Description copied from interface:DialectDetermines whether this dialect supports retrieving generated values from batch executions.Some database systems can return auto-generated values (like identity columns) even when executing statements in batch mode, while others cannot.
The default implementation returns
false.- Returns:
trueif this dialect supports retrieving generated values from batch executions,falseotherwise
-
getUpsertAssembler
Description copied from interface:DialectReturns the UpsertAssembler implementation for the given context.- Specified by:
getUpsertAssemblerin interfaceDialect- Overrides:
getUpsertAssemblerin classStandardDialect- Parameters:
context- the UpsertAssemblerContext object- Returns:
- the UpsertAssembler object for the given context
-
getInsertAssembler
Description copied from interface:DialectProvides an implementation ofInsertAssemblerbased on the given context.- Specified by:
getInsertAssemblerin interfaceDialect- Overrides:
getInsertAssemblerin classStandardDialect- Type Parameters:
ENTITY- the type of the entity to be handled by the assembler- Parameters:
context- the context that holds the information required to create theInsertAssembler- Returns:
- an instance of
InsertAssemblerspecific to the provided entity context
-
getMultiInsertAssembler
public <ENTITY> MultiInsertAssembler getMultiInsertAssembler(MultiInsertAssemblerContext<ENTITY> context) Description copied from interface:DialectProvides an implementation ofMultiInsertAssemblerbased on the given context.- Specified by:
getMultiInsertAssemblerin interfaceDialect- Overrides:
getMultiInsertAssemblerin classStandardDialect- Type Parameters:
ENTITY- the type of the entity to be handled by the assembler- Parameters:
context- the context that holds the information required to create theMultiInsertAssembler- Returns:
- an instance of
MultiInsertAssemblerspecific to the provided entity context
-
getUpdateAssembler
Description copied from interface:DialectProvides an implementation ofUpdateAssemblerbased on the given context.- Specified by:
getUpdateAssemblerin interfaceDialect- Overrides:
getUpdateAssemblerin classStandardDialect- Type Parameters:
ENTITY- the type of the entity to be handled by the assembler- Parameters:
context- the context that holds the information required to create theUpdateAssembler- Returns:
- an instance of
UpdateAssemblerspecific to the provided entity context
-
getDeleteAssembler
Description copied from interface:DialectProvides an implementation ofDeleteAssemblerbased on the given context.- Specified by:
getDeleteAssemblerin interfaceDialect- Overrides:
getDeleteAssemblerin classStandardDialect- Type Parameters:
ENTITY- the type of the entity to be handled by the assembler- Parameters:
context- the context that holds the information required to create theDeleteAssembler- Returns:
- an instance of
DeleteAssemblerspecific to the provided entity context
-