类 EntityManagerFactoryBuilderImpl
- java.lang.Object
-
- org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl
-
- 所有已实现的接口:
EntityManagerFactoryBuilder
public class EntityManagerFactoryBuilderImpl extends Object implements EntityManagerFactoryBuilder
- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringINTEGRATOR_PROVIDERNames aIntegratorProviderstatic StringJANDEX_INDEXNames a JandexIndexinstance to use.static StringMETADATA_BUILDER_CONTRIBUTORNames aMetadataBuilderImplementorstatic StringSTRATEGY_REGISTRATION_PROVIDERSNames aStrategyRegistrationProviderListstatic StringTYPE_CONTRIBUTORSNames aTypeContributorList
-
构造器概要
构造器 构造器 说明 EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit, Map integrationSettings)EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit, Map integrationSettings, ClassLoader providedClassLoader)EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit, Map integrationSettings, ClassLoaderService providedClassLoaderService)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 javax.persistence.EntityManagerFactorybuild()BuildEntityManagerFactoryinstancevoidcancel()Cancel the building processing.voidgenerateSchema()Perform an explicit schema generation (rather than an "auto" one) based on theMapgetConfigurationValues()protected EnhancementContextgetEnhancementContext(boolean dirtyTrackingEnabled, boolean lazyInitializationEnabled, boolean associationManagementEnabled)Builds the context to be used in runtime bytecode enhancementMetadataImplementorgetMetadata()Intended for internal testing only...protected voidpopulateSfBuilder(SessionFactoryBuilder sfBuilder, StandardServiceRegistry ssr)EntityManagerFactoryBuilderwithDataSource(DataSource dataSource)Allows passing in a DataSource (delayed from constructing the builder, AKA phase 2) to be used in building the EntityManagerFactoryEntityManagerFactoryBuilderwithValidatorFactory(Object validatorFactory)Allows passing in a Java EE ValidatorFactory (delayed from constructing the builder, AKA phase 2) to be used in building the EntityManagerFactory
-
-
-
字段详细资料
-
INTEGRATOR_PROVIDER
public static final String INTEGRATOR_PROVIDER
Names aIntegratorProvider- 另请参阅:
- 常量字段值
-
STRATEGY_REGISTRATION_PROVIDERS
public static final String STRATEGY_REGISTRATION_PROVIDERS
Names aStrategyRegistrationProviderList- 另请参阅:
- 常量字段值
-
TYPE_CONTRIBUTORS
public static final String TYPE_CONTRIBUTORS
Names aTypeContributorList- 另请参阅:
- 常量字段值
-
METADATA_BUILDER_CONTRIBUTOR
public static final String METADATA_BUILDER_CONTRIBUTOR
Names aMetadataBuilderImplementor- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
EntityManagerFactoryBuilderImpl
public EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit, Map integrationSettings)
-
EntityManagerFactoryBuilderImpl
public EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit, Map integrationSettings, ClassLoader providedClassLoader)
-
EntityManagerFactoryBuilderImpl
public EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit, Map integrationSettings, ClassLoaderService providedClassLoaderService)
-
-
方法详细资料
-
getConfigurationValues
public Map getConfigurationValues()
-
getEnhancementContext
protected EnhancementContext getEnhancementContext(boolean dirtyTrackingEnabled, boolean lazyInitializationEnabled, boolean associationManagementEnabled)
Builds the context to be used in runtime bytecode enhancement- 参数:
dirtyTrackingEnabled- To enable dirty tracking featurelazyInitializationEnabled- To enable lazy initialization featureassociationManagementEnabled- To enable association management feature- 返回:
- An enhancement context for classes managed by this EM
-
getMetadata
public MetadataImplementor getMetadata()
Intended for internal testing only...
-
withValidatorFactory
public EntityManagerFactoryBuilder withValidatorFactory(Object validatorFactory)
从接口复制的说明:EntityManagerFactoryBuilderAllows passing in a Java EE ValidatorFactory (delayed from constructing the builder, AKA phase 2) to be used in building the EntityManagerFactory- 指定者:
withValidatorFactory在接口中EntityManagerFactoryBuilder- 参数:
validatorFactory- The ValidatorFactory- 返回:
this, for method chaining
-
withDataSource
public EntityManagerFactoryBuilder withDataSource(DataSource dataSource)
从接口复制的说明:EntityManagerFactoryBuilderAllows passing in a DataSource (delayed from constructing the builder, AKA phase 2) to be used in building the EntityManagerFactory- 指定者:
withDataSource在接口中EntityManagerFactoryBuilder- 参数:
dataSource- The DataSource to use- 返回:
this, for method chaining
-
cancel
public void cancel()
从接口复制的说明:EntityManagerFactoryBuilderCancel the building processing. This is used to signal the builder to release any resources in the case of something having gone wrong during the bootstrap process- 指定者:
cancel在接口中EntityManagerFactoryBuilder
-
generateSchema
public void generateSchema()
从接口复制的说明:EntityManagerFactoryBuilderPerform an explicit schema generation (rather than an "auto" one) based on the- 指定者:
generateSchema在接口中EntityManagerFactoryBuilder
-
build
public javax.persistence.EntityManagerFactory build()
从接口复制的说明:EntityManagerFactoryBuilderBuildEntityManagerFactoryinstance- 指定者:
build在接口中EntityManagerFactoryBuilder- 返回:
- The built
EntityManagerFactory
-
populateSfBuilder
protected void populateSfBuilder(SessionFactoryBuilder sfBuilder, StandardServiceRegistry ssr)
-
-