Package org.hibernate.id.insert
Class SybaseJConnGetGeneratedKeysDelegate
- java.lang.Object
-
- org.hibernate.id.insert.AbstractReturningDelegate
-
- org.hibernate.id.insert.GetGeneratedKeysDelegate
-
- org.hibernate.id.insert.SybaseJConnGetGeneratedKeysDelegate
-
- All Implemented Interfaces:
InsertGeneratedIdentifierDelegate
public class SybaseJConnGetGeneratedKeysDelegate extends GetGeneratedKeysDelegate
SpecializedIdentifierGeneratingInsertwhich appends the database specific clause which signifies to return generatedIDENTITYvalues to the end of the insert statement.
-
-
Constructor Summary
Constructors Constructor Description SybaseJConnGetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectexecuteAndExtract(String insertSql, PreparedStatement insertStatement, SharedSessionContractImplementor session)StringprepareIdentifierGeneratingInsert(String insertSQL)Append SQL specific to this delegate's mode of handling generated primary key values to the giveninsertstatement.-
Methods inherited from class org.hibernate.id.insert.GetGeneratedKeysDelegate
createTableInsertBuilder, performInsert, prepareIdentifierGeneratingInsert, prepareStatement
-
Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
getPersister, performInsert, releaseStatement
-
-
-
-
Constructor Detail
-
SybaseJConnGetGeneratedKeysDelegate
public SybaseJConnGetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
-
-
Method Detail
-
prepareIdentifierGeneratingInsert
public String prepareIdentifierGeneratingInsert(String insertSQL)
Description copied from interface:InsertGeneratedIdentifierDelegateAppend SQL specific to this delegate's mode of handling generated primary key values to the giveninsertstatement.- Returns:
- The processed
insertstatement string
-
executeAndExtract
public Object executeAndExtract(String insertSql, PreparedStatement insertStatement, SharedSessionContractImplementor session)
- Overrides:
executeAndExtractin classGetGeneratedKeysDelegate
-
-