Package org.hibernate.dialect.identity
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 org.hibernate.dialect.identity.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.void
render
(TableInsert tableInsert, Consumer<String> sqlAppender, Consumer<ColumnReference> returnColumnHandler, H2IdentityColumnSupport.InsertValuesHandler insertValuesHandler, SessionFactoryImplementor sessionFactory) Deprecated.boolean
Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.Methods inherited from class org.hibernate.dialect.identity.H2IdentityColumnSupport
getIdentityColumnString, getIdentityInsertString, getIdentitySelectString, supportsIdentityColumns
Methods inherited from class org.hibernate.dialect.identity.IdentityColumnSupportImpl
appendIdentitySelectToInsert, buildGetGeneratedKeysDelegate, hasDataTypeInIdentityColumn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.dialect.identity.IdentityColumnSupport
buildGetGeneratedKeysDelegate, hasIdentityInsertKeyword
-
Field Details
-
INSTANCE
-
-
Method Details
-
supportsInsertSelectIdentity
public boolean supportsInsertSelectIdentity()Description copied from interface:IdentityColumnSupport
Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.- Specified by:
supportsInsertSelectIdentity
in interfaceIdentityColumnSupport
- Overrides:
supportsInsertSelectIdentity
in classIdentityColumnSupportImpl
- Returns:
- True if the dialect supports selecting the just generated IDENTITY in the insert statement.
-
appendIdentitySelectToInsert
Description copied from interface:IdentityColumnSupport
Provided 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:
render
in classH2IdentityColumnSupport
-