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 |
|---|---|
| public EntityManagerFactory | |
| public void | |
| public void | |
| public EntityManagerFactoryBuilder | Returns: this, for method chainingThe DataSource to use dataSource)Allows passing in a DataSource (delayed from constructing the builder, AKA phase 2) to be used in building the EntityManagerFactory |
| public EntityManagerFactoryBuilder | Returns: this, for method chainingThe ValidatorFactory validatorFactory)Allows passing in a Java EE ValidatorFactory (delayed from constructing the builder, AKA phase 2) to be used in building the EntityManagerFactory |
| build | back to summary |
|---|---|
| public EntityManagerFactory build() Build
| |
| cancel | back to summary |
|---|---|
| public void cancel() Cancel 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 | |
| generateSchema | back to summary |
|---|---|
| public void generateSchema() Perform an explicit schema generation (rather than an "auto" one) based on the | |
| withDataSource | back to summary |
|---|---|
| public EntityManagerFactoryBuilder withDataSource(DataSource dataSource) Allows passing in a DataSource (delayed from constructing the builder, AKA phase 2) to be used in building the EntityManagerFactory
| |
| withValidatorFactory | back to summary |
|---|---|
| public 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
| |