|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
PersistentIdentifierGenerator
,
Configurable
Field Summary | |
---|---|
static String |
ENTITY_NAME
The configuration parameter holding the entity name |
static String |
JPA_ENTITY_NAME
The configuration parameter holding the JPA entity name |
Method Summary | |
---|---|
Serializable |
generate(SessionImplementor session,
Object object)
Generate a new identifier. |
Field Detail |
---|
static final String ENTITY_NAME
static final String JPA_ENTITY_NAME
Method Detail |
---|
Serializable generate(SessionImplementor session, Object object) throws HibernateException
session
- object
- the entity or toplevel collection for which the id is being generated
HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |