org.hibernate.id

Class IdentityGenerator.BasicDelegate

Enclosing Class:
IdentityGenerator
Implemented Interfaces:
InsertGeneratedIdentifierDelegate

public static class IdentityGenerator.BasicDelegate
extends AbstractSelectingDelegate
implements InsertGeneratedIdentifierDelegate

Delegate for dealing with IDENTITY columns where the dialect requires an additional command execution to retrieve the generated IDENTITY value

Constructor Summary

BasicDelegate(PostInsertIdentityPersister persister, Dialect dialect)

Method Summary

protected Serializable
getResult(SessionImplementor session, ResultSet rs, Object object)
protected String
getSelectSQL()
IdentifierGeneratingInsert
prepareIdentifierGeneratingInsert()

Methods inherited from class org.hibernate.id.insert.AbstractSelectingDelegate

bindParameters, getResult, getSelectSQL, performInsert

Constructor Details

BasicDelegate

public BasicDelegate(PostInsertIdentityPersister persister,
                     Dialect dialect)

Method Details

getResult

protected Serializable getResult(SessionImplementor session,
                                 ResultSet rs,
                                 Object object)
            throws SQLException
Overrides:
getResult in interface AbstractSelectingDelegate

getSelectSQL

protected String getSelectSQL()
Overrides:
getSelectSQL in interface AbstractSelectingDelegate

prepareIdentifierGeneratingInsert

public IdentifierGeneratingInsert prepareIdentifierGeneratingInsert()
Specified by:
prepareIdentifierGeneratingInsert in interface InsertGeneratedIdentifierDelegate