程序包 org.hibernate.id
类 SelectGenerator
- java.lang.Object
-
- org.hibernate.id.AbstractPostInsertGenerator
-
- org.hibernate.id.SelectGenerator
-
- 所有已实现的接口:
BulkInsertionCapableIdentifierGenerator,Configurable,IdentifierGenerator,PostInsertIdentifierGenerator
public class SelectGenerator extends AbstractPostInsertGenerator implements Configurable
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).- 作者:
- Gavin King
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSelectGenerator.SelectGeneratorDelegateThe delegate for the select generation strategy.
-
字段概要
-
从接口继承的字段 org.hibernate.id.IdentifierGenerator
ENTITY_NAME, GENERATOR_NAME, JPA_ENTITY_NAME
-
-
构造器概要
构造器 构造器 说明 SelectGenerator()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidconfigure(Type type, Properties params, ServiceRegistry serviceRegistry)Configure this instance, given the value of parameters specified by the user as <param> elements.InsertGeneratedIdentifierDelegategetInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled)-
从类继承的方法 org.hibernate.id.AbstractPostInsertGenerator
determineBulkInsertionIdentifierGenerationSelectFragment, generate, supportsBulkInsertionIdentifierGeneration
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.id.PostInsertIdentifierGenerator
supportsJdbcBatchInserts
-
-
-
-
方法详细资料
-
configure
public void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException
从接口复制的说明:ConfigurableConfigure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.- 指定者:
configure在接口中Configurable- 参数:
type- The id property type descriptorparams- param values, keyed by parameter nameserviceRegistry- Access to service that may be needed.- 抛出:
MappingException
-
getInsertGeneratedIdentifierDelegate
public InsertGeneratedIdentifierDelegate getInsertGeneratedIdentifierDelegate(PostInsertIdentityPersister persister, Dialect dialect, boolean isGetGeneratedKeysEnabled) throws HibernateException
-
-