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
-
-
Field Summary
Fields Modifier and Type Field Description static H2FinalTableIdentityColumnSupportINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringappendIdentitySelectToInsert(java.lang.String identityColumnName, java.lang.String insertString)Provided weIdentityColumnSupport.supportsInsertSelectIdentity(), then attach the "select identity" clause to the insert statement.booleansupportsInsertSelectIdentity()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
-
-
-
-
Field Detail
-
INSTANCE
public static final H2FinalTableIdentityColumnSupport INSTANCE
-
-
Method Detail
-
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
public java.lang.String appendIdentitySelectToInsert(java.lang.String identityColumnName, java.lang.String insertString)Description copied from interface:IdentityColumnSupportProvided weIdentityColumnSupport.supportsInsertSelectIdentity(), then attach the "select identity" clause to the insert statement. Note, ifIdentityColumnSupport.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.
-
-