Package org.hibernate.id
Class SequenceIdentityGenerator.Delegate
- java.lang.Object
-
- org.hibernate.id.insert.AbstractReturningDelegate
-
- org.hibernate.id.SequenceIdentityGenerator.Delegate
-
- All Implemented Interfaces:
InsertGeneratedIdentifierDelegate
- Enclosing class:
- SequenceIdentityGenerator
public static class SequenceIdentityGenerator.Delegate extends AbstractReturningDelegate
-
-
Constructor Summary
Constructors Constructor Description Delegate(PostInsertIdentityPersister persister, Dialect dialect, String sequenceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Serializable
executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session)
protected PreparedStatement
prepare(String insertSQL, SharedSessionContractImplementor session)
IdentifierGeneratingInsert
prepareIdentifierGeneratingInsert()
Build aInsert
specific to the delegate's mode of handling generated key values.-
Methods inherited from class org.hibernate.id.insert.AbstractReturningDelegate
getPersister, performInsert, releaseStatement
-
-
-
-
Constructor Detail
-
Delegate
public Delegate(PostInsertIdentityPersister persister, Dialect dialect, String sequenceName)
-
-
Method Detail
-
prepareIdentifierGeneratingInsert
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
Description copied from interface:InsertGeneratedIdentifierDelegate
Build aInsert
specific to the delegate's mode of handling generated key values.- Returns:
- The insert object.
-
prepare
protected PreparedStatement prepare(String insertSQL, SharedSessionContractImplementor session) throws SQLException
- Specified by:
prepare
in classAbstractReturningDelegate
- Throws:
SQLException
-
executeAndExtract
protected Serializable executeAndExtract(PreparedStatement insert, SharedSessionContractImplementor session) throws SQLException
- Specified by:
executeAndExtract
in classAbstractReturningDelegate
- Throws:
SQLException
-
-