Package org.jboss.as.jpa.config
Class Configuration
java.lang.Object
org.jboss.as.jpa.config.Configuration
configuration properties that may appear in persistence.xml
- Author:
- Scott Marlow
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringname of the persistence provider adapter classstatic final Stringname of the AS module that contains the persistence provider adapterstatic final Stringstatic final Stringstatic final Stringname of the Hibernate Search configuration property allowing to set the backend typestatic final StringThe value of theHIBERNATE_SEARCH_BACKEND_TYPEproperty that identifies the use of an Elasticsearch backend.static final StringThe value of theHIBERNATE_SEARCH_BACKEND_TYPEproperty that identifies the use of a Lucene backend.static final StringName of the Hibernate Search configuration property allowing to set the coordination strategystatic final StringThe value of theHIBERNATE_SEARCH_COORDINATION_STRATEGYproperty that identifies the use of an Elasticsearch backend.static final Stringname of the Hibernate Search integrator adaptor modulestatic final Stringname of the Hibernate Search module name configuration setting in persistence unit definitionstatic final Stringname of the Hibernate Search module providing the Elasticsearch backendstatic final Stringname of the Hibernate Search module providing the Lucene backendstatic final Stringname of the Hibernate Search module providing the ORM mapperstatic final Stringname of the Hibernate Search module providing the outbox-polling coordination strategystatic final Stringset to false to force a single phase persistence unit bootstrap to be used (default is true which uses two phases to start the persistence unit).static final Stringdefaults to true, if false, persistence unit will not support jakarta.persistence.spi.ClassTransformer Interface which means no application class rewritingstatic final Stringdefaults to true, if changed to false (in the persistence.xml), the Jakarta Persistence container will not start the persistence unit service.static final Stringstatic final StringDataNucleus providerstatic final StringDataNucleus provider GAEstatic final Stringdefault provider classstatic final StringEclipseLink provider class namestatic final StringHibernate 4.3.x persistence provider classstatic final StringHibernate OGM persistence provider classstatic final StringHibernate 4.1.x persistence provider classstatic final Stringstatic final Stringstatic final StringTopLink provider class namesstatic final Stringname of the AS module that contains the persistence providerstatic final Stringif the PROVIDER_MODULE is this value, it is expected that the application has its own provider in the deployment.static final Stringstatic final Stringstatic final Stringdefault if no PROVIDER_MODULE is specified.static final Stringstatic final StringHibernate main module (default) persistence providerstatic final StringHibernate OGM persistence providerstatic final StringHibernate 4.1.x persistence provider, note that Hibernate 4.1.x is expected to be in the 4.1 slotstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermine if persistence unit can use application defined DataSource (e.g.static booleanDetermine if the default data-source should be usedstatic booleanallowJoinedUnsyncPersistenceContext(jakarta.persistence.EntityManagerFactory emf, Map targetEntityManagerProperties) Allow an unsynchronized persistence context that is joined to the transaction, be treated the same as a synchronized persistence context, with respect to the checking for mixed unsync/sync types.static booleanDetermine if two phase persistence unit start is allowedstatic booleandeferEntityDetachUntilClose(Map<String, Object> properties) Return true if detaching of managed entities should be deferred until the entity manager is closed.static Stringstatic StringgetProviderAdapterModuleNameFromProviderClassName(String providerClassName) static StringgetProviderModuleNameFromProviderClassName(String providerClassName) Get the provider module name for the specified provider class.static Stringstatic booleanisDefaultPersistenceUnit(PersistenceUnitMetadata persistenceUnit) static booleanDetermine if class file transformer is needed for the specified persistence unit for all persistence providers, the transformer is assumed to be needed unless the application indicates otherwise.static booleanskipMixedSynchronizationTypeCheck(jakarta.persistence.EntityManagerFactory emf, Map targetEntityManagerProperties) Allow the mixed synchronization checking to be skipped for backward compatibility with WildFly 10.1.0static booleanskipQueryDetach(Map<String, Object> properties) Return true if detaching of query results (entities) should be deferred until the entity manager is closed.
-
Field Details
-
PROVIDER_MODULE
name of the AS module that contains the persistence provider- See Also:
-
PROVIDER_MODULE_HIBERNATE
Hibernate main module (default) persistence provider- See Also:
-
PROVIDER_MODULE_HIBERNATE4_1
Hibernate 4.1.x persistence provider, note that Hibernate 4.1.x is expected to be in the 4.1 slot- See Also:
-
PROVIDER_MODULE_HIBERNATE_OGM
Hibernate OGM persistence provider- See Also:
-
PROVIDER_MODULE_ECLIPSELINK
- See Also:
-
PROVIDER_MODULE_TOPLINK
- See Also:
-
PROVIDER_MODULE_DATANUCLEUS
- See Also:
-
PROVIDER_MODULE_DATANUCLEUS_GAE
- See Also:
-
PROVIDER_MODULE_OPENJPA
- See Also:
-
PROVIDER_MODULE_DEFAULT
default if no PROVIDER_MODULE is specified.- See Also:
-
PROVIDER_CLASS_HIBERNATE4_1
Hibernate 4.1.x persistence provider class- See Also:
-
PROVIDER_CLASS_HIBERNATE
Hibernate 4.3.x persistence provider class- See Also:
-
PROVIDER_CLASS_HIBERNATE_OGM
Hibernate OGM persistence provider class- See Also:
-
PROVIDER_CLASS_TOPLINK_ESSENTIALS
TopLink provider class names- See Also:
-
PROVIDER_CLASS_TOPLINK
- See Also:
-
PROVIDER_CLASS_ECLIPSELINK
EclipseLink provider class name- See Also:
-
PROVIDER_CLASS_DATANUCLEUS
DataNucleus provider- See Also:
-
PROVIDER_CLASS_DATANUCLEUS_GAE
DataNucleus provider GAE- See Also:
-
PROVIDER_CLASS_OPENJPA
- See Also:
-
PROVIDER_CLASS_DEFAULT
default provider class- See Also:
-
PROVIDER_MODULE_APPLICATION_SUPPLIED
if the PROVIDER_MODULE is this value, it is expected that the application has its own provider in the deployment.- See Also:
-
ADAPTER_MODULE_OPENJPA
- See Also:
-
ADAPTER_MODULE
name of the AS module that contains the persistence provider adapter- See Also:
-
JPA_CONTAINER_MANAGED
defaults to true, if changed to false (in the persistence.xml), the Jakarta Persistence container will not start the persistence unit service.- See Also:
-
JPA_DEFAULT_PERSISTENCE_UNIT
- See Also:
-
JPA_CONTAINER_CLASS_TRANSFORMER
defaults to true, if false, persistence unit will not support jakarta.persistence.spi.ClassTransformer Interface which means no application class rewriting- See Also:
-
JPA_ALLOW_TWO_PHASE_BOOTSTRAP
set to false to force a single phase persistence unit bootstrap to be used (default is true which uses two phases to start the persistence unit).- See Also:
-
ADAPTER_CLASS
name of the persistence provider adapter class- See Also:
-
ALLOWJOINEDUNSYNCPC
- See Also:
-
SKIPMIXEDSYNCTYPECHECKING
- See Also:
-
HIBERNATE_SEARCH_MODULE
name of the Hibernate Search module name configuration setting in persistence unit definition- See Also:
-
HIBERNATE_SEARCH_INTEGRATOR_ADAPTOR_MODULE_NAME
name of the Hibernate Search integrator adaptor module- See Also:
-
HIBERNATE_SEARCH_MODULE_MAPPER_ORM
name of the Hibernate Search module providing the ORM mapper- See Also:
-
HIBERNATE_SEARCH_MODULE_MAPPER_ORM_OUTBOXPOLLING
name of the Hibernate Search module providing the outbox-polling coordination strategy- See Also:
-
HIBERNATE_SEARCH_MODULE_BACKEND_LUCENE
name of the Hibernate Search module providing the Lucene backend- See Also:
-
HIBERNATE_SEARCH_MODULE_BACKEND_ELASTICSEARCH
name of the Hibernate Search module providing the Elasticsearch backend- See Also:
-
HIBERNATE_SEARCH_BACKEND_TYPE
name of the Hibernate Search configuration property allowing to set the backend type- See Also:
-
HIBERNATE_SEARCH_BACKEND_TYPE_VALUE_LUCENE
The value of theHIBERNATE_SEARCH_BACKEND_TYPEproperty that identifies the use of a Lucene backend.- See Also:
-
HIBERNATE_SEARCH_BACKEND_TYPE_VALUE_ELASTICSEARCH
The value of theHIBERNATE_SEARCH_BACKEND_TYPEproperty that identifies the use of an Elasticsearch backend.- See Also:
-
HIBERNATE_SEARCH_COORDINATION_STRATEGY
Name of the Hibernate Search configuration property allowing to set the coordination strategy- See Also:
-
HIBERNATE_SEARCH_COORDINATION_STRATEGY_VALUE_OUTBOX_POLLING
The value of theHIBERNATE_SEARCH_COORDINATION_STRATEGYproperty that identifies the use of an Elasticsearch backend.- See Also:
-
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
getProviderModuleNameFromProviderClassName
Get the provider module name for the specified provider class.- Parameters:
providerClassName- the PU class name- Returns:
- provider module name or null if not known
-
needClassFileTransformer
Determine if class file transformer is needed for the specified persistence unit for all persistence providers, the transformer is assumed to be needed unless the application indicates otherwise.- Parameters:
pu- the PU- Returns:
- true if class file transformer support is needed for pu
-
getProviderAdapterModuleNameFromProviderClassName
-
getDefaultProviderModuleName
-
allowTwoPhaseBootstrap
Determine if two phase persistence unit start is allowed- Parameters:
pu-- Returns:
-
allowApplicationDefinedDatasource
Determine if persistence unit can use application defined DataSource (e.g. DataSourceDefinition or resource ref).- Parameters:
pu-- Returns:
- true if application defined DataSource can be used, false (default) if not.
-
allowDefaultDataSourceUse
Determine if the default data-source should be used- Parameters:
pu-- Returns:
- true if the default data-source should be used
-
deferEntityDetachUntilClose
Return true if detaching of managed entities should be deferred until the entity manager is closed. Note: only applies to transaction scoped entity managers used without an active Jakarta Transactions transaction.- Parameters:
properties-- Returns:
-
skipQueryDetach
Return true if detaching of query results (entities) should be deferred until the entity manager is closed. Note: only applies to transaction scoped entity managers used without an active Jakarta Transactions transaction.- Parameters:
properties-- Returns:
-
getScopedPersistenceUnitName
-
skipMixedSynchronizationTypeCheck
public static boolean skipMixedSynchronizationTypeCheck(jakarta.persistence.EntityManagerFactory emf, Map targetEntityManagerProperties) Allow the mixed synchronization checking to be skipped for backward compatibility with WildFly 10.1.0- Parameters:
emf-targetEntityManagerProperties-- Returns:
-
allowJoinedUnsyncPersistenceContext
public static boolean allowJoinedUnsyncPersistenceContext(jakarta.persistence.EntityManagerFactory emf, Map targetEntityManagerProperties) Allow an unsynchronized persistence context that is joined to the transaction, be treated the same as a synchronized persistence context, with respect to the checking for mixed unsync/sync types.- Parameters:
emf-targetEntityManagerProperties-- Returns:
-
isDefaultPersistenceUnit
-