Class H2FinalTableIdentityColumnSupport
java.lang.Object
org.hibernate.dialect.identity.IdentityColumnSupportImpl
org.hibernate.dialect.identity.H2IdentityColumnSupport
org.hibernate.dialect.identity.H2FinalTableIdentityColumnSupport
- All Implemented Interfaces:
IdentityColumnSupport
Identity column support for H2 2+ versions
-
Nested Class Summary
Nested classes/interfaces inherited from class H2IdentityColumnSupport
H2IdentityColumnSupport.InsertValuesHandler -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionappendIdentitySelectToInsert(String identityColumnName, String insertString) Provided weIdentityColumnSupport.supportsInsertSelectIdentity(), then attach the "select identity" clause to the insert statement.voidrender(TableInsert tableInsert, Consumer<String> sqlAppender, Consumer<ColumnReference> returnColumnHandler, H2IdentityColumnSupport.InsertValuesHandler insertValuesHandler, SessionFactoryImplementor sessionFactory) Deprecated.booleanDoes the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.Methods inherited from class H2IdentityColumnSupport
getIdentityColumnString, getIdentityInsertString, getIdentitySelectString, supportsIdentityColumnsMethods inherited from class IdentityColumnSupportImpl
appendIdentitySelectToInsert, buildGetGeneratedKeysDelegate, hasDataTypeInIdentityColumnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IdentityColumnSupport
hasIdentityInsertKeyword
-
Field Details
-
INSTANCE
-
-
Method Details
-
supportsInsertSelectIdentity
public boolean supportsInsertSelectIdentity()Description copied from interface:IdentityColumnSupportDoes the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.- Specified by:
supportsInsertSelectIdentityin interfaceIdentityColumnSupport- Overrides:
supportsInsertSelectIdentityin classIdentityColumnSupportImpl- Returns:
- True if the dialect supports selecting the just generated IDENTITY in the insert statement.
-
appendIdentitySelectToInsert
Description copied from interface:IdentityColumnSupportProvided weIdentityColumnSupport.supportsInsertSelectIdentity(), then attach the "select identity" clause to the insert statement.Note, if
IdentityColumnSupport.supportsInsertSelectIdentity()== false then the insert-string should be returned without modification.- Parameters:
identityColumnName- The name of the identity columninsertString- The insert command- Returns:
- The insert command with any necessary identity select clause attached.
-
render
@Deprecated public void render(TableInsert tableInsert, Consumer<String> sqlAppender, Consumer<ColumnReference> returnColumnHandler, H2IdentityColumnSupport.InsertValuesHandler insertValuesHandler, SessionFactoryImplementor sessionFactory) Deprecated.- Overrides:
renderin classH2IdentityColumnSupport
-