Package org.hibernate.dialect.identity
Class H2IdentityColumnSupport
java.lang.Object
org.hibernate.dialect.identity.IdentityColumnSupportImpl
org.hibernate.dialect.identity.H2IdentityColumnSupport
- All Implemented Interfaces:
IdentityColumnSupport
- Direct Known Subclasses:
H2FinalTableIdentityColumnSupport
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIdentityColumnString
(int type) The syntax used during DDL to define a column as being an IDENTITY of a particular type.The keyword used to insert a generated value into an identity column (or null).getIdentitySelectString
(String table, String column, int type) Get the select command to use to retrieve the last generated IDENTITY value for a particular tablevoid
render
(TableInsert tableInsert, Consumer<String> sqlAppender, Consumer<ColumnReference> returnColumnHandler, H2IdentityColumnSupport.InsertValuesHandler insertValuesHandler, SessionFactoryImplementor sessionFactory) Deprecated.boolean
Does this dialect support identity column key generation?Methods inherited from class org.hibernate.dialect.identity.IdentityColumnSupportImpl
appendIdentitySelectToInsert, buildGetGeneratedKeysDelegate, hasDataTypeInIdentityColumn, supportsInsertSelectIdentity
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
appendIdentitySelectToInsert, hasIdentityInsertKeyword
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
H2IdentityColumnSupport
protected H2IdentityColumnSupport()
-
-
Method Details
-
supportsIdentityColumns
public boolean supportsIdentityColumns()Description copied from interface:IdentityColumnSupport
Does this dialect support identity column key generation?- Specified by:
supportsIdentityColumns
in interfaceIdentityColumnSupport
- Overrides:
supportsIdentityColumns
in classIdentityColumnSupportImpl
- Returns:
- True if IDENTITY columns are supported; false otherwise.
-
getIdentityColumnString
Description copied from interface:IdentityColumnSupport
The syntax used during DDL to define a column as being an IDENTITY of a particular type.- Specified by:
getIdentityColumnString
in interfaceIdentityColumnSupport
- Overrides:
getIdentityColumnString
in classIdentityColumnSupportImpl
- Parameters:
type
- TheTypes
type code.- Returns:
- The appropriate DDL fragment.
-
getIdentitySelectString
Description copied from interface:IdentityColumnSupport
Get the select command to use to retrieve the last generated IDENTITY value for a particular table- Specified by:
getIdentitySelectString
in interfaceIdentityColumnSupport
- Overrides:
getIdentitySelectString
in classIdentityColumnSupportImpl
- Parameters:
table
- The table into which the insert was donecolumn
- The PK column.type
- TheTypes
type code.- Returns:
- The appropriate select command
-
getIdentityInsertString
Description copied from interface:IdentityColumnSupport
The keyword used to insert a generated value into an identity column (or null). Need if the dialect does not support inserts that specify no column values.- Specified by:
getIdentityInsertString
in interfaceIdentityColumnSupport
- Overrides:
getIdentityInsertString
in classIdentityColumnSupportImpl
- Returns:
- The appropriate keyword.
-
render
@Deprecated public void render(TableInsert tableInsert, Consumer<String> sqlAppender, Consumer<ColumnReference> returnColumnHandler, H2IdentityColumnSupport.InsertValuesHandler insertValuesHandler, SessionFactoryImplementor sessionFactory) Deprecated.
-