Package org.hibernate.id.insert
Class SybaseJConnGetGeneratedKeysDelegate
- java.lang.Object
-
- org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
-
- org.hibernate.id.insert.AbstractReturningDelegate
-
- org.hibernate.id.insert.GetGeneratedKeysDelegate
-
- org.hibernate.id.insert.SybaseJConnGetGeneratedKeysDelegate
-
- All Implemented Interfaces:
GeneratedValuesMutationDelegate
,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.
-
-
Field Summary
-
Fields inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
jdbcValuesMappingProducer, persister
-
-
Constructor Summary
Constructors Constructor Description SybaseJConnGetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
Deprecated, for removal: This API element is subject to removal in a future version.UseSybaseJConnGetGeneratedKeysDelegate(EntityPersister)
instead.SybaseJConnGetGeneratedKeysDelegate(EntityPersister persister)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneratedValues
executeAndExtractReturning(String sql, PreparedStatement preparedStatement, 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
createTableMutationBuilder, performMutation, prepareStatement
-
Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
executeAndExtract, performInsertReturning, releaseStatement
-
Methods inherited from class org.hibernate.generator.values.AbstractGeneratedValuesMutationDelegate
dialect, getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.generator.values.GeneratedValuesMutationDelegate
getGeneratedValuesMappingProducer, getTiming, supportsArbitraryValues, supportsRowId
-
Methods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
createTableInsertBuilder, performInsert, performInsert
-
-
-
-
Constructor Detail
-
SybaseJConnGetGeneratedKeysDelegate
@Deprecated(forRemoval=true, since="6.5") public SybaseJConnGetGeneratedKeysDelegate(PostInsertIdentityPersister persister, Dialect dialect)
Deprecated, for removal: This API element is subject to removal in a future version.UseSybaseJConnGetGeneratedKeysDelegate(EntityPersister)
instead.
-
SybaseJConnGetGeneratedKeysDelegate
public SybaseJConnGetGeneratedKeysDelegate(EntityPersister persister)
-
-
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
-
executeAndExtractReturning
public GeneratedValues executeAndExtractReturning(String sql, PreparedStatement preparedStatement, SharedSessionContractImplementor session)
- Overrides:
executeAndExtractReturning
in classGetGeneratedKeysDelegate
-
-