Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.id.insert.AbstractSelectingDelegate
org.hibernate.id.SelectGenerator.SelectGeneratorDelegate
public static class SelectGenerator.SelectGeneratorDelegate
extends AbstractSelectingDelegate
implements InsertGeneratedIdentifierDelegate
Method Summary | |
protected void |
|
protected Serializable |
|
protected String |
|
IdentifierGeneratingInsert |
Methods inherited from class org.hibernate.id.insert.AbstractSelectingDelegate | |
bindParameters , getResult , getSelectSQL , performInsert |
protected void bindParameters(SessionImplementor session, PreparedStatement ps, Object entity) throws SQLException
Bind any required parameter values into the SQL commandAbstractSelectingDelegate.getSelectSQL()
.
- Overrides:
- bindParameters in interface AbstractSelectingDelegate
- Parameters:
session
- The sessionps
- The preparedSQL
commandentity
- The entity being saved.
protected Serializable getResult(SessionImplementor session, ResultSet rs, Object entity) throws SQLException
Extract the generated key value from the given result set.
- Overrides:
- getResult in interface AbstractSelectingDelegate
- Parameters:
session
- The sessionrs
- The result set containing the generated primay key values.entity
- The entity being saved.
- Returns:
- The generated identifier
protected String getSelectSQL()
Get the SQL statement to be used to retrieve generated key values.
- Overrides:
- getSelectSQL in interface AbstractSelectingDelegate
- Returns:
- The SQL command string
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
- Specified by:
- prepareIdentifierGeneratingInsert in interface InsertGeneratedIdentifierDelegate