|
|||||||||
| Home >> All >> org >> hibernate >> id >> [ insert overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hibernate.id.insert
Class AbstractSelectingDelegate

java.lang.Objectorg.hibernate.id.insert.AbstractSelectingDelegate
- All Implemented Interfaces:
- InsertGeneratedIdentifierDelegate
- public abstract class AbstractSelectingDelegate
- extends java.lang.Object
- implements InsertGeneratedIdentifierDelegate
- extends java.lang.Object
Abstract InsertGeneratedIdentifierDelegate implementation where the underlying strategy requires an subsequent select after the insert to determine the generated identifier.
| Field Summary | |
private org.hibernate.id.PostInsertIdentityPersister |
persister
|
| Constructor Summary | |
protected |
AbstractSelectingDelegate(org.hibernate.id.PostInsertIdentityPersister persister)
|
| Method Summary | |
protected void |
bindParameters(org.hibernate.engine.SessionImplementor session,
java.sql.PreparedStatement ps,
java.lang.Object entity)
Bind any required parameter values into the SQL command getSelectSQL() 55 . |
protected abstract java.io.Serializable |
getResult(org.hibernate.engine.SessionImplementor session,
java.sql.ResultSet rs,
java.lang.Object entity)
Extract the generated key value from the given result set. |
protected abstract java.lang.String |
getSelectSQL()
Get the SQL statement to be used to retrieve generated key values. |
java.io.Serializable |
performInsert(java.lang.String insertSQL,
org.hibernate.engine.SessionImplementor session,
Binder binder)
Perform the indicated insert SQL statement and determine the identifier value generated. |
| 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 |
| Field Detail |
persister
private final org.hibernate.id.PostInsertIdentityPersister persister
| Constructor Detail |
AbstractSelectingDelegate
protected AbstractSelectingDelegate(org.hibernate.id.PostInsertIdentityPersister persister)
| Method Detail |
performInsert
public final java.io.Serializable performInsert(java.lang.String insertSQL, org.hibernate.engine.SessionImplementor session, Binder binder)
- Description copied from interface:
InsertGeneratedIdentifierDelegate - Perform the indicated insert SQL statement and determine the identifier value
generated.
- Specified by:
performInsertin interfaceInsertGeneratedIdentifierDelegate
getSelectSQL
protected abstract java.lang.String getSelectSQL()
- Get the SQL statement to be used to retrieve generated key values.
bindParameters
protected void bindParameters(org.hibernate.engine.SessionImplementor session, java.sql.PreparedStatement ps, java.lang.Object entity) throws java.sql.SQLException
- Bind any required parameter values into the SQL command
getSelectSQL()55 .
getResult
protected abstract java.io.Serializable getResult(org.hibernate.engine.SessionImplementor session, java.sql.ResultSet rs, java.lang.Object entity) throws java.sql.SQLException
- Extract the generated key value from the given result set.
|
|||||||||
| Home >> All >> org >> hibernate >> id >> [ insert overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.hibernate.id.insert.AbstractSelectingDelegate