Class 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 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
    • Constructor Detail

      • HibernatePersistenceProviderAdaptor

        public HibernatePersistenceProviderAdaptor()
    • Method Detail

      • injectJtaManager

        public void injectJtaManager​(org.jipijapa.plugin.spi.JtaManager jtaManager)
        Specified by:
        injectJtaManager in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • injectPlatform

        public void injectPlatform​(org.jipijapa.plugin.spi.Platform platform)
        Specified by:
        injectPlatform in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • addProviderProperties

        public void addProviderProperties​(java.util.Map properties,
                                          org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
        Specified by:
        addProviderProperties in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • addProviderDependencies

        public void addProviderDependencies​(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
        Specified by:
        addProviderDependencies in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • beforeCreateContainerEntityManagerFactory

        public void beforeCreateContainerEntityManagerFactory​(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
        Specified by:
        beforeCreateContainerEntityManagerFactory in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • afterCreateContainerEntityManagerFactory

        public void afterCreateContainerEntityManagerFactory​(org.jipijapa.plugin.spi.PersistenceUnitMetadata pu)
        Specified by:
        afterCreateContainerEntityManagerFactory in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • getManagementAdaptor

        public org.jipijapa.plugin.spi.ManagementAdaptor getManagementAdaptor()
        Specified by:
        getManagementAdaptor in interface org.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 interface org.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 interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • beanManagerLifeCycle

        public java.lang.Object beanManagerLifeCycle​(BeanManager beanManager)
        Specified by:
        beanManagerLifeCycle in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • markPersistenceUnitAvailable

        public void markPersistenceUnitAvailable​(java.lang.Object wrapperBeanManagerLifeCycle)
        Specified by:
        markPersistenceUnitAvailable in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • getBootstrap

        public org.jipijapa.plugin.spi.EntityManagerFactoryBuilder getBootstrap​(PersistenceUnitInfo info,
                                                                                java.util.Map map)
        Specified by:
        getBootstrap in interface org.jipijapa.plugin.spi.TwoPhaseBootstrapCapable