Package org.jboss.as.jpa.hibernate5
Class HibernatePersistenceProviderAdaptor
- java.lang.Object
-
- org.jboss.as.jpa.hibernate5.HibernatePersistenceProviderAdaptor
-
- All Implemented Interfaces:
org.jipijapa.plugin.spi.PersistenceProviderAdaptor
,org.jipijapa.plugin.spi.TwoPhaseBootstrapCapable
public class HibernatePersistenceProviderAdaptor extends java.lang.Object implements org.jipijapa.plugin.spi.PersistenceProviderAdaptor, org.jipijapa.plugin.spi.TwoPhaseBootstrapCapable
Implements the PersistenceProviderAdaptor for Hibernate
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HIBERNATE_EXTENDED_BEANMANAGER
static java.lang.String
NAMING_STRATEGY_JPA_COMPLIANT_IMPL
-
Constructor Summary
Constructors Constructor Description HibernatePersistenceProviderAdaptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProviderDependencies(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
void
addProviderProperties(java.util.Map properties, org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
void
afterCreateContainerEntityManagerFactory(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
java.lang.Object
beanManagerLifeCycle(BeanManager beanManager)
void
beforeCreateContainerEntityManagerFactory(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
void
cleanup(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
boolean
doesScopedPersistenceUnitNameIdentifyCacheRegionName(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
determine if management console can display the second level cache entriesorg.jipijapa.plugin.spi.EntityManagerFactoryBuilder
getBootstrap(PersistenceUnitInfo info, java.util.Map map)
org.jipijapa.plugin.spi.ManagementAdaptor
getManagementAdaptor()
void
injectJtaManager(org.jipijapa.plugin.spi.JtaManager jtaManager)
void
injectPlatform(org.jipijapa.plugin.spi.Platform platform)
void
markPersistenceUnitAvailable(java.lang.Object wrapperBeanManagerLifeCycle)
-
-
-
Field Detail
-
NAMING_STRATEGY_JPA_COMPLIANT_IMPL
public static final java.lang.String NAMING_STRATEGY_JPA_COMPLIANT_IMPL
- See Also:
- Constant Field Values
-
HIBERNATE_EXTENDED_BEANMANAGER
public static final java.lang.String HIBERNATE_EXTENDED_BEANMANAGER
- See Also:
- Constant Field Values
-
-
Method Detail
-
injectJtaManager
public void injectJtaManager(org.jipijapa.plugin.spi.JtaManager jtaManager)
- Specified by:
injectJtaManager
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
injectPlatform
public void injectPlatform(org.jipijapa.plugin.spi.Platform platform)
- Specified by:
injectPlatform
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
addProviderProperties
public void addProviderProperties(java.util.Map properties, org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
- Specified by:
addProviderProperties
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
addProviderDependencies
public void addProviderDependencies(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
- Specified by:
addProviderDependencies
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
beforeCreateContainerEntityManagerFactory
public void beforeCreateContainerEntityManagerFactory(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
- Specified by:
beforeCreateContainerEntityManagerFactory
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
afterCreateContainerEntityManagerFactory
public void afterCreateContainerEntityManagerFactory(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
- Specified by:
afterCreateContainerEntityManagerFactory
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
getManagementAdaptor
public org.jipijapa.plugin.spi.ManagementAdaptor getManagementAdaptor()
- Specified by:
getManagementAdaptor
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
doesScopedPersistenceUnitNameIdentifyCacheRegionName
public boolean doesScopedPersistenceUnitNameIdentifyCacheRegionName(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
determine if management console can display the second level cache entries- Specified by:
doesScopedPersistenceUnitNameIdentifyCacheRegionName
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
- Returns:
- false if a custom AvailableSettings.CACHE_REGION_PREFIX property is specified. true if the scoped persistence unit name is used to prefix cache entries.
-
cleanup
public void cleanup(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
- Specified by:
cleanup
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
beanManagerLifeCycle
public java.lang.Object beanManagerLifeCycle(BeanManager beanManager)
- Specified by:
beanManagerLifeCycle
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
markPersistenceUnitAvailable
public void markPersistenceUnitAvailable(java.lang.Object wrapperBeanManagerLifeCycle)
- Specified by:
markPersistenceUnitAvailable
in interfaceorg.jipijapa.plugin.spi.PersistenceProviderAdaptor
-
getBootstrap
public org.jipijapa.plugin.spi.EntityManagerFactoryBuilder getBootstrap(PersistenceUnitInfo info, java.util.Map map)
- Specified by:
getBootstrap
in interfaceorg.jipijapa.plugin.spi.TwoPhaseBootstrapCapable
-
-