public abstract class AbstractReturningDelegate extends Object implements InsertGeneratedIdentifierDelegate
| Constructor and Description |
|---|
AbstractReturningDelegate(PostInsertIdentityPersister persister) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Serializable |
executeAndExtract(PreparedStatement insert) |
protected PostInsertIdentityPersister |
getPersister() |
Serializable |
performInsert(String insertSQL,
SessionImplementor session,
Binder binder)
Perform the indicated insert SQL statement and determine the identifier value
generated.
|
protected abstract PreparedStatement |
prepare(String insertSQL,
SessionImplementor session) |
protected void |
releaseStatement(PreparedStatement insert,
SessionImplementor session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareIdentifierGeneratingInsertpublic AbstractReturningDelegate(PostInsertIdentityPersister persister)
public final Serializable performInsert(String insertSQL, SessionImplementor session, Binder binder)
InsertGeneratedIdentifierDelegateperformInsert in interface InsertGeneratedIdentifierDelegateinsertSQL - The INSERT statement stringsession - The session in which we are operatingbinder - The param binderprotected PostInsertIdentityPersister getPersister()
protected abstract PreparedStatement prepare(String insertSQL, SessionImplementor session) throws SQLException
SQLExceptionprotected abstract Serializable executeAndExtract(PreparedStatement insert) throws SQLException
SQLExceptionprotected void releaseStatement(PreparedStatement insert, SessionImplementor session) throws SQLException
SQLExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.