Top Constructors Methods
org.hibernate.dialect.identity

public Class SQLServerIdentityColumnSupport

extends AbstractTransactSQLIdentityColumnSupport
Class Inheritance

Author
Andrea Boriero

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
appendIdentitySelectToInsert(String
The insert command
insertSQL
)

Overrides org.hibernate.dialect.identity.AbstractTransactSQLIdentityColumnSupport.appendIdentitySelectToInsert.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.appendIdentitySelectToInsert.

Use insert table(...) values(...) select SCOPE_IDENTITY()

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

Inherited from org.hibernate.dialect.identity.AbstractTransactSQLIdentityColumnSupport:
getIdentityColumnStringgetIdentitySelectStringsupportsIdentityColumnssupportsInsertSelectIdentity

Constructor Detail

SQLServerIdentityColumnSupportback to summary
public SQLServerIdentityColumnSupport()

Method Detail

appendIdentitySelectToInsertback to summary
public String appendIdentitySelectToInsert(String insertSQL)

Overrides org.hibernate.dialect.identity.AbstractTransactSQLIdentityColumnSupport.appendIdentitySelectToInsert.

Implements org.hibernate.dialect.identity.IdentityColumnSupport.appendIdentitySelectToInsert.

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

Use insert table(...) values(...) select SCOPE_IDENTITY()

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
insertSQL:String

The insert command

Returns:String

The insert command with any necessary identity select clause attached.

Annotations
@Override