public class

SelectGenerator

extends AbstractPostInsertGenerator
implements Configurable
java.lang.Object
   ↳ org.hibernate.id.AbstractPostInsertGenerator
     ↳ org.hibernate.id.SelectGenerator

Class Overview

A generator that selects the just inserted row to determine the identifier value assigned by the database. The correct row is located using a unique key.

One mapping parameter is required: key (unless a natural-id is defined in the mapping).

Summary

Nested Classes
class SelectGenerator.SelectGeneratorDelegate The delegate for the select generation strategy. 
[Expand]
Inherited Constants
From interface org.hibernate.id.IdentifierGenerator
Public Constructors
SelectGenerator()
Public Methods
void configure(Type type, Properties params, Dialect d)
Configure this instance, given the value of parameters specified by the user as <param> elements.
InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)
[Expand]
Inherited Methods
From class org.hibernate.id.AbstractPostInsertGenerator
From class java.lang.Object
From interface org.hibernate.id.Configurable
From interface org.hibernate.id.IdentifierGenerator
From interface org.hibernate.id.PostInsertIdentifierGenerator

Public Constructors

public SelectGenerator ()

Public Methods

public void configure (Type type, Properties params, Dialect d)

Configure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.

Parameters
params param values, keyed by parameter name

public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate (PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)