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, QualifiedName physicalSequenceName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.Serializable
executeAndExtract(java.sql.PreparedStatement insert, SharedSessionContractImplementor session)
protected java.sql.PreparedStatement
prepare(java.lang.String insertSQL, SharedSessionContractImplementor session)
IdentifierGeneratingInsert
prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.id.insert.InsertGeneratedIdentifierDelegate
prepareIdentifierGeneratingInsert
-
-
-
-
Constructor Detail
-
Delegate
public Delegate(PostInsertIdentityPersister persister, QualifiedName physicalSequenceName)
-
-
Method Detail
-
prepareIdentifierGeneratingInsert
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert(SqlStringGenerationContext context)
Description copied from interface:InsertGeneratedIdentifierDelegate
Build aInsert
specific to the delegate's mode of handling generated key values.- Parameters:
context
- A context to help generate SQL strings- Returns:
- The insert object.
-
prepare
protected java.sql.PreparedStatement prepare(java.lang.String insertSQL, SharedSessionContractImplementor session) throws java.sql.SQLException
- Specified by:
prepare
in classAbstractReturningDelegate
- Throws:
java.sql.SQLException
-
executeAndExtract
protected java.io.Serializable executeAndExtract(java.sql.PreparedStatement insert, SharedSessionContractImplementor session) throws java.sql.SQLException
- Specified by:
executeAndExtract
in classAbstractReturningDelegate
- Throws:
java.sql.SQLException
-
-