Class HibernatePersistenceProviderAdaptor

  • All Implemented Interfaces:
    org.jipijapa.plugin.spi.PersistenceProviderAdaptor, org.jipijapa.plugin.spi.TwoPhaseBootstrapCapable

    public class HibernatePersistenceProviderAdaptor
    extends Object
    implements org.jipijapa.plugin.spi.PersistenceProviderAdaptor, org.jipijapa.plugin.spi.TwoPhaseBootstrapCapable
    Implements the PersistenceProviderAdaptor for Hibernate
    • 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​(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 Object beanManagerLifeCycle​(BeanManager beanManager)
        Specified by:
        beanManagerLifeCycle in interface org.jipijapa.plugin.spi.PersistenceProviderAdaptor
      • markPersistenceUnitAvailable

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

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