public class EntityManagerFactoryBuilderImpl extends Object implements EntityManagerFactoryBuilder
Modifier and Type | Class and Description |
---|---|
static class |
EntityManagerFactoryBuilderImpl.MergedSettings |
static class |
EntityManagerFactoryBuilderImpl.ServiceRegistryCloser |
Modifier and Type | Field and Description |
---|---|
static String |
INTEGRATOR_PROVIDER
Names a
IntegratorProvider |
static String |
JANDEX_INDEX
Names a Jandex
Index instance to use. |
static String |
STRATEGY_REGISTRATION_PROVIDERS
Names a
StrategyRegistrationProviderList |
static String |
TYPE_CONTRIBUTORS
Names a
TypeContributorList |
Constructor and Description |
---|
EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit,
Map integrationSettings) |
EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit,
Map integrationSettings,
ClassLoader providedClassLoader) |
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
build()
Build
EntityManagerFactory instance |
void |
cancel()
Cancel the building processing.
|
void |
generateSchema()
Perform an explicit schema generation (rather than an "auto" one) based on the
|
Map |
getConfigurationValues() |
protected EnhancementContext |
getEnhancementContext(boolean dirtyTrackingEnabled,
boolean lazyInitializationEnabled,
boolean associationManagementEnabled)
Builds the context to be used in runtime bytecode enhancement
|
MetadataImplementor |
getMetadata()
Intended for internal testing only...
|
protected void |
populate(MetadataBuilder metamodelBuilder,
EntityManagerFactoryBuilderImpl.MergedSettings mergedSettings,
StandardServiceRegistry ssr,
List<AttributeConverterDefinition> attributeConverterDefinitions) |
protected List<AttributeConverterDefinition> |
populate(MetadataSources metadataSources,
EntityManagerFactoryBuilderImpl.MergedSettings mergedSettings,
StandardServiceRegistry ssr) |
protected void |
populate(SessionFactoryBuilder sfBuilder,
StandardServiceRegistry ssr) |
EntityManagerFactoryBuilder |
withDataSource(DataSource dataSource)
Allows passing in a DataSource (delayed from constructing the builder, AKA phase 2) to be used
in building the EntityManagerFactory
|
EntityManagerFactoryBuilder |
withValidatorFactory(Object validatorFactory)
Allows passing in a Java EE ValidatorFactory (delayed from constructing the builder, AKA phase 2) to be used
in building the EntityManagerFactory
|
public static final String INTEGRATOR_PROVIDER
IntegratorProvider
public static final String STRATEGY_REGISTRATION_PROVIDERS
StrategyRegistrationProviderList
public static final String TYPE_CONTRIBUTORS
TypeContributorList
public static final String JANDEX_INDEX
Index
instance to use.public EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit, Map integrationSettings)
public EntityManagerFactoryBuilderImpl(PersistenceUnitDescriptor persistenceUnit, Map integrationSettings, ClassLoader providedClassLoader)
public Map getConfigurationValues()
protected EnhancementContext getEnhancementContext(boolean dirtyTrackingEnabled, boolean lazyInitializationEnabled, boolean associationManagementEnabled)
dirtyTrackingEnabled
- To enable dirty tracking featurelazyInitializationEnabled
- To enable lazy initialization featureassociationManagementEnabled
- To enable association management featureprotected List<AttributeConverterDefinition> populate(MetadataSources metadataSources, EntityManagerFactoryBuilderImpl.MergedSettings mergedSettings, StandardServiceRegistry ssr)
protected void populate(MetadataBuilder metamodelBuilder, EntityManagerFactoryBuilderImpl.MergedSettings mergedSettings, StandardServiceRegistry ssr, List<AttributeConverterDefinition> attributeConverterDefinitions)
public MetadataImplementor getMetadata()
public EntityManagerFactoryBuilder withValidatorFactory(Object validatorFactory)
EntityManagerFactoryBuilder
withValidatorFactory
in interface EntityManagerFactoryBuilder
validatorFactory
- The ValidatorFactorythis
, for method chainingpublic EntityManagerFactoryBuilder withDataSource(DataSource dataSource)
EntityManagerFactoryBuilder
withDataSource
in interface EntityManagerFactoryBuilder
dataSource
- The DataSource to usethis
, for method chainingpublic void cancel()
EntityManagerFactoryBuilder
cancel
in interface EntityManagerFactoryBuilder
public void generateSchema()
EntityManagerFactoryBuilder
generateSchema
in interface EntityManagerFactoryBuilder
public EntityManagerFactory build()
EntityManagerFactoryBuilder
EntityManagerFactory
instancebuild
in interface EntityManagerFactoryBuilder
EntityManagerFactory
protected void populate(SessionFactoryBuilder sfBuilder, StandardServiceRegistry ssr)
Copyright © 2016 JBoss by Red Hat. All rights reserved.