| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.id.insert.AbstractSelectingDelegate
public abstract class AbstractSelectingDelegate
Abstract InsertGeneratedIdentifierDelegate implementation where the underlying strategy requires an subsequent select after the insert to determine the generated identifier.
| Constructor Summary | |
|---|---|
| protected  | AbstractSelectingDelegate(PostInsertIdentityPersister persister) | 
| Method Summary | |
|---|---|
| protected  void | bindParameters(SessionImplementor session,
               PreparedStatement ps,
               Object entity)Bind any required parameter values into the SQL command getSelectSQL(). | 
| protected abstract  Serializable | getResult(SessionImplementor session,
          ResultSet rs,
          Object entity)Extract the generated key value from the given result set. | 
| protected abstract  String | getSelectSQL()Get the SQL statement to be used to retrieve generated key values. | 
|  Serializable | performInsert(String insertSQL,
              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 | 
| Constructor Detail | 
|---|
protected AbstractSelectingDelegate(PostInsertIdentityPersister persister)
| Method Detail | 
|---|
public final Serializable performInsert(String insertSQL,
                                        SessionImplementor session,
                                        Binder binder)
InsertGeneratedIdentifierDelegate
performInsert in interface InsertGeneratedIdentifierDelegateinsertSQL - The INSERT statement stringsession - The session in which we are operatingbinder - The param binder
protected abstract String getSelectSQL()
protected void bindParameters(SessionImplementor session,
                              PreparedStatement ps,
                              Object entity)
                       throws SQLException
getSelectSQL().
session - The sessionps - The prepared SQL commandentity - The entity being saved.
SQLException
protected abstract Serializable getResult(SessionImplementor session,
                                          ResultSet rs,
                                          Object entity)
                                   throws SQLException
session - The sessionrs - The result set containing the generated primay key values.entity - The entity being saved.
SQLException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||