Top Inners Fields Constructors Methods
org.hibernate.dialect.identity

public Class H2IdentityColumnSupport

extends IdentityColumnSupportImpl
Class Inheritance
Known Direct Subclasses
org.hibernate.dialect.identity.H2FinalTableIdentityColumnSupport
Imports
java.util.function.Consumer, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.sql.ast.tree.expression.ColumnReference, org.hibernate.sql.model.ast.TableInsert

Author
Andrea Boriero

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
public static final H2IdentityColumnSupport

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public String
getIdentityColumnString(int
The java.sql.Types type code.
type
)

Overrides org.hibernate.dialect.identity.IdentityColumnSupportImpl.getIdentityColumnString.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.getIdentityColumnString.

The syntax used during DDL to define a column as being an IDENTITY of a particular type.
public String
public String
getIdentitySelectString(String
The table into which the insert was done
table
,
String
The PK column.
column
,
int
The java.sql.Types type code.
type
)

Overrides org.hibernate.dialect.identity.IdentityColumnSupportImpl.getIdentitySelectString.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.getIdentitySelectString.

Get the select command to use to retrieve the last generated IDENTITY value for a particular table
public void
render(TableInsert tableInsert, Consumer<String> sqlAppender, Consumer<ColumnReference> returnColumnHandler, H2IdentityColumnSupport.InsertValuesHandler insertValuesHandler, SessionFactoryImplementor sessionFactory)

Deprecated
public boolean
Inherited from org.hibernate.dialect.identity.IdentityColumnSupportImpl:
appendIdentitySelectToInsertbuildGetGeneratedKeysDelegatehasDataTypeInIdentityColumnsupportsInsertSelectIdentity

Field Detail

INSTANCEback to summary
public static final H2IdentityColumnSupport INSTANCE

Hides org.hibernate.dialect.identity.IdentityColumnSupportImpl.INSTANCE.

Constructor Detail

H2IdentityColumnSupportback to summary
protected H2IdentityColumnSupport()

Method Detail

getIdentityColumnStringback to summary
public String getIdentityColumnString(int type)

Overrides org.hibernate.dialect.identity.IdentityColumnSupportImpl.getIdentityColumnString.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.getIdentityColumnString.

Doc from org.hibernate.dialect.identity.IdentityColumnSupport.getIdentityColumnString.

The syntax used during DDL to define a column as being an IDENTITY of a particular type.

Parameters
type:int

The java.sql.Types type code.

Returns:String

The appropriate DDL fragment.

Annotations
@Override
getIdentityInsertStringback to summary
public String getIdentityInsertString()

Overrides org.hibernate.dialect.identity.IdentityColumnSupportImpl.getIdentityInsertString.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.getIdentityInsertString.

Doc from org.hibernate.dialect.identity.IdentityColumnSupport.getIdentityInsertString.

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.

Returns:String

The appropriate keyword.

Annotations
@Override
getIdentitySelectStringback to summary
public String getIdentitySelectString(String table, String column, int type)

Overrides org.hibernate.dialect.identity.IdentityColumnSupportImpl.getIdentitySelectString.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.getIdentitySelectString.

Doc from org.hibernate.dialect.identity.IdentityColumnSupport.getIdentitySelectString.

Get the select command to use to retrieve the last generated IDENTITY value for a particular table

Parameters
table:String

The table into which the insert was done

column:String

The PK column.

type:int

The java.sql.Types type code.

Returns:String

The appropriate select command

Annotations
@Override
renderback to summary
public void render(TableInsert tableInsert, Consumer<String> sqlAppender, Consumer<ColumnReference> returnColumnHandler, H2IdentityColumnSupport.InsertValuesHandler insertValuesHandler, SessionFactoryImplementor sessionFactory)

Deprecated

Annotations
@Deprecated
supportsIdentityColumnsback to summary
public boolean supportsIdentityColumns()

Overrides org.hibernate.dialect.identity.IdentityColumnSupportImpl.supportsIdentityColumns.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.supportsIdentityColumns.

Doc from org.hibernate.dialect.identity.IdentityColumnSupport.supportsIdentityColumns.

Does this dialect support identity column key generation?

Returns:boolean

True if IDENTITY columns are supported; false otherwise.

Annotations
@Override
org.hibernate.dialect.identity back to summary

public Interface H2IdentityColumnSupport.InsertValuesHandler

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

renderInsertValuesback to summary
public void renderInsertValues()