站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

AbstractPostInsertGenerator (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.id
Class AbstractPostInsertGenerator

java.lang.Object
  extended byorg.hibernate.id.AbstractPostInsertGenerator
All Implemented Interfaces:
IdentifierGenerator, PostInsertIdentifierGenerator
Direct Known Subclasses:
IdentityGenerator, SelectGenerator

public abstract class AbstractPostInsertGenerator
extends Object
implements PostInsertIdentifierGenerator

Author:
Gavin King

Field Summary
 
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME
 
Constructor Summary
AbstractPostInsertGenerator()
           
 
Method Summary
 Serializable generate(SessionImplementor s, Object obj)
          Generate a new identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.id.PostInsertIdentifierGenerator
getInsertGeneratedIdentifierDelegate
 

Constructor Detail

AbstractPostInsertGenerator

public AbstractPostInsertGenerator()
Method Detail

generate

public Serializable generate(SessionImplementor s,
                             Object obj)
Description copied from interface: IdentifierGenerator
Generate a new identifier.

Specified by:
generate in interface IdentifierGenerator
Parameters:
s -
obj - the entity or toplevel collection for which the id is being generated
Returns:
a new identifier