public class EntityManagerFactoryBuilderImpl extends Object implements EntityManagerFactoryBuilder
Modifier and Type | Class and Description |
---|---|
static class |
EntityManagerFactoryBuilderImpl.CacheRegionDefinition |
static class |
EntityManagerFactoryBuilderImpl.JaccDefinition |
static class |
EntityManagerFactoryBuilderImpl.MetadataSources |
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 |
Configuration |
buildHibernateConfiguration(ServiceRegistry serviceRegistry) |
ServiceRegistry |
buildServiceRegistry() |
void |
cancel()
Cancel the building processing.
|
void |
generateSchema()
Perform an explicit schema generation (rather than an "auto" one) based on the
|
Map |
getConfigurationValues() |
Configuration |
getHibernateConfiguration() |
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()
public Configuration getHibernateConfiguration()
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
public ServiceRegistry buildServiceRegistry()
public Configuration buildHibernateConfiguration(ServiceRegistry serviceRegistry)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.