public interface EntityManagerFactoryBuilder
build()
.
If anything goes wrong during either phase and the bootstrap process needs to be aborted, cancel()
should
be called.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
|
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
|
EntityManagerFactoryBuilder withValidatorFactory(Object validatorFactory)
validatorFactory
- The ValidatorFactorythis
, for method chainingEntityManagerFactoryBuilder withDataSource(DataSource dataSource)
dataSource
- The DataSource to usethis
, for method chainingEntityManagerFactory build()
EntityManagerFactory
instanceEntityManagerFactory
void cancel()
void generateSchema()
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.