public static class IdentityGenerator.BasicDelegate extends AbstractSelectingDelegate implements InsertGeneratedIdentifierDelegate
Constructor and Description |
---|
BasicDelegate(PostInsertIdentityPersister persister,
Dialect dialect) |
Modifier and Type | Method and Description |
---|---|
protected Serializable |
getResult(SessionImplementor session,
ResultSet rs,
Object object)
Extract the generated key value from the given result set.
|
protected String |
getSelectSQL()
Get the SQL statement to be used to retrieve generated key values.
|
IdentifierGeneratingInsert |
prepareIdentifierGeneratingInsert()
Build a
Insert specific to the delegate's mode
of handling generated key values. |
bindParameters, performInsert
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
performInsert
public BasicDelegate(PostInsertIdentityPersister persister, Dialect dialect)
public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
InsertGeneratedIdentifierDelegate
Insert
specific to the delegate's mode
of handling generated key values.prepareIdentifierGeneratingInsert
in interface InsertGeneratedIdentifierDelegate
protected String getSelectSQL()
AbstractSelectingDelegate
getSelectSQL
in class AbstractSelectingDelegate
protected Serializable getResult(SessionImplementor session, ResultSet rs, Object object) throws SQLException
AbstractSelectingDelegate
getResult
in class AbstractSelectingDelegate
session
- The sessionrs
- The result set containing the generated primay key values.object
- The entity being saved.SQLException
Copyright © 2017 JBoss by Red Hat. All rights reserved.