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
SpecializedIdentifierGeneratingInsert
which appends the database specific clause which signifies to return generatedIDENTITY
values 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 Object
executeAndExtract(String insertSql, PreparedStatement insertStatement, SharedSessionContractImplementor session)
String
prepareIdentifierGeneratingInsert(String insertSQL)
Append SQL specific to this delegate's mode of handling generated primary key values to the giveninsert
statement.-
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:InsertGeneratedIdentifierDelegate
Append SQL specific to this delegate's mode of handling generated primary key values to the giveninsert
statement.- Returns:
- The processed
insert
statement string
-
executeAndExtract
public Object executeAndExtract(String insertSql, PreparedStatement insertStatement, SharedSessionContractImplementor session)
- Overrides:
executeAndExtract
in classGetGeneratedKeysDelegate
-
-