org.hibernate.id

Class SequenceIdentityGenerator.Delegate

Enclosing Class:
SequenceIdentityGenerator
Implemented Interfaces:
InsertGeneratedIdentifierDelegate

public static class SequenceIdentityGenerator.Delegate
extends AbstractReturningDelegate

Constructor Summary

Delegate(PostInsertIdentityPersister persister, Dialect dialect, String sequenceName)

Method Summary

protected Serializable
executeAndExtract(PreparedStatement insert)
protected PreparedStatement
prepare(String insertSQL, SessionImplementor session)
IdentifierGeneratingInsert
prepareIdentifierGeneratingInsert()

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

executeAndExtract, getPersister, performInsert, prepare, releaseStatement

Constructor Details

Delegate

public Delegate(PostInsertIdentityPersister persister,
                Dialect dialect,
                String sequenceName)

Method Details

executeAndExtract

protected Serializable executeAndExtract(PreparedStatement insert)
            throws SQLException
Overrides:
executeAndExtract in interface AbstractReturningDelegate

prepare

protected PreparedStatement prepare(String insertSQL,
                                    SessionImplementor session)
            throws SQLException
Overrides:
prepare in interface AbstractReturningDelegate

prepareIdentifierGeneratingInsert

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