Known Direct Subclasses
|
Class Overview
Abstract InsertGeneratedIdentifierDelegate implementation where the
underlying strategy requires an subsequent select after the insert
to determine the generated identifier.
Protected Constructors
Public Methods
Perform the indicated insert SQL statement and determine the identifier value
generated.
Parameters
insertSQL
| The INSERT statement string |
session
| The session in which we are operating |
binder
| The param binder |
Returns
- The generated identifier value.
Protected Methods
Bind any required parameter values into the SQL command getSelectSQL()
.
Parameters
session
| The session |
ps
| The prepared SQL command |
entity
| The entity being saved. |
Extract the generated key value from the given result set.
Parameters
session
| The session |
rs
| The result set containing the generated primay key values. |
entity
| The entity being saved. |
protected
abstract
String
getSelectSQL
()
Get the SQL statement to be used to retrieve generated key values.