程序包 org.hibernate.id
类 AbstractPostInsertGenerator
- java.lang.Object
-
- org.hibernate.id.AbstractPostInsertGenerator
-
- 所有已实现的接口:
BulkInsertionCapableIdentifierGenerator,IdentifierGenerator,PostInsertIdentifierGenerator
- 直接已知子类:
IdentityGenerator,SelectGenerator
public abstract class AbstractPostInsertGenerator extends Object implements PostInsertIdentifierGenerator, BulkInsertionCapableIdentifierGenerator
Basic implementation of thePostInsertIdentifierGeneratorcontract.- 作者:
- Gavin King
-
-
字段概要
-
从接口继承的字段 org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
构造器概要
构造器 构造器 说明 AbstractPostInsertGenerator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringdetermineBulkInsertionIdentifierGenerationSelectFragment(Dialect dialect)Return the select expression fragment, if any, that generates the identifier values.Serializablegenerate(SharedSessionContractImplementor s, Object obj)Generate a new identifier.booleansupportsBulkInsertionIdentifierGeneration()Given the configuration of this generator, is identifier generation as part of bulk insertion supported?-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.PostInsertIdentifierGenerator
getInsertGeneratedIdentifierDelegate, supportsJdbcBatchInserts
-
-
-
-
方法详细资料
-
generate
public Serializable generate(SharedSessionContractImplementor s, Object obj)
从接口复制的说明:IdentifierGeneratorGenerate a new identifier.- 指定者:
generate在接口中IdentifierGenerator- 参数:
s- The session from which the request originatesobj- the entity or collection (idbag) for which the id is being generated- 返回:
- a new identifier
-
supportsBulkInsertionIdentifierGeneration
public boolean supportsBulkInsertionIdentifierGeneration()
从接口复制的说明:BulkInsertionCapableIdentifierGeneratorGiven the configuration of this generator, is identifier generation as part of bulk insertion supported? IMPL NOTE : Mainly here to allow stuff like SequenceStyleGenerator which *can* support this based on configuration- 指定者:
supportsBulkInsertionIdentifierGeneration在接口中BulkInsertionCapableIdentifierGenerator- 返回:
trueif bulk insertions are supported;falseotherwise.
-
determineBulkInsertionIdentifierGenerationSelectFragment
public String determineBulkInsertionIdentifierGenerationSelectFragment(Dialect dialect)
从接口复制的说明:BulkInsertionCapableIdentifierGeneratorReturn the select expression fragment, if any, that generates the identifier values.- 指定者:
determineBulkInsertionIdentifierGenerationSelectFragment在接口中BulkInsertionCapableIdentifierGenerator- 参数:
dialect- The dialect against which the insert will be performed.- 返回:
- The identifier value generation fragment (SQL).
nullindicates that no fragment is needed.
-
-