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
public class H2FinalTableIdentityColumnSupport extends H2IdentityColumnSupport
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 Modifier and Type Field Description static H2FinalTableIdentityColumnSupport
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
appendIdentitySelectToInsert(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
supportsInsertSelectIdentity()
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
hasIdentityInsertKeyword
-
-
-
-
Field Detail
-
INSTANCE
public static final H2FinalTableIdentityColumnSupport INSTANCE
-
-
Method Detail
-
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
public String appendIdentitySelectToInsert(String identityColumnName, String insertString)
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
-
-