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

public Class H2FinalTableIdentityColumnSupport

extends H2IdentityColumnSupport
Class Inheritance

Identity column support for H2 2+ versions
Author
Jan Schatteman

Field Summary

Modifier and TypeField and Description
public static final H2FinalTableIdentityColumnSupport

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
appendIdentitySelectToInsert(String
The name of the identity column
identityColumnName
,
String
The insert command
insertString
)

Overrides default org.hibernate.dialect.identity.IdentityColumnSupport.appendIdentitySelectToInsert.

Provided we supportsInsertSelectIdentity, then attach the "select identity" clause to the insert statement.
public boolean
supportsInsertSelectIdentity()

Overrides org.hibernate.dialect.identity.IdentityColumnSupportImpl.supportsInsertSelectIdentity.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.supportsInsertSelectIdentity.

Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.
Inherited from org.hibernate.dialect.identity.H2IdentityColumnSupport:
getIdentityColumnStringgetIdentityInsertStringgetIdentitySelectStringsupportsIdentityColumns

Field Detail

INSTANCEback to summary
public static final H2FinalTableIdentityColumnSupport INSTANCE

Hides org.hibernate.dialect.identity.H2IdentityColumnSupport.INSTANCE.

Constructor Detail

H2FinalTableIdentityColumnSupportback to summary
private H2FinalTableIdentityColumnSupport()

Method Detail

appendIdentitySelectToInsertback to summary
public String appendIdentitySelectToInsert(String identityColumnName, String insertString)

Overrides default org.hibernate.dialect.identity.IdentityColumnSupport.appendIdentitySelectToInsert.

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

Provided we supportsInsertSelectIdentity, then attach the "select identity" clause to the insert statement.

Note, if supportsInsertSelectIdentity == false then the insert-string should be returned without modification.

Parameters
identityColumnName:String

The name of the identity column

insertString:String

The insert command

Returns:String

The insert command with any necessary identity select clause attached.

Annotations
@Override
supportsInsertSelectIdentityback to summary
public boolean supportsInsertSelectIdentity()

Overrides org.hibernate.dialect.identity.IdentityColumnSupportImpl.supportsInsertSelectIdentity.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.supportsInsertSelectIdentity.

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

Does the dialect support some form of inserting and selecting the generated IDENTITY value all in the same statement.

Returns:boolean

True if the dialect supports selecting the just generated IDENTITY in the insert statement.

Annotations
@Override