FileDocCategorySizeDatePackage
IdentifierGenerator.javaAPI DocHibernate 3.2.51348Sat Feb 12 00:19:50 GMT 2005org.hibernate.id

IdentifierGenerator

public interface IdentifierGenerator
The general contract between a class that generates unique identifiers and the Session. It is not intended that this interface ever be exposed to the application. It is intended that users implement this interface to provide custom identifier generation strategies.

Implementors should provide a public default constructor.

Implementations that accept configuration parameters should also implement Configurable.
Implementors must be threadsafe
author
Gavin King
see
PersistentIdentifierGenerator
see
Configurable

Fields Summary
public static final String
ENTITY_NAME
The configuration parameter holding the entity name
Constructors Summary
Methods Summary
public java.io.Serializablegenerate(org.hibernate.engine.SessionImplementor session, java.lang.Object object)
Generate a new identifier.

param
session
param
object the entity or toplevel collection for which the id is being generated
return
a new identifier
throws
HibernateException