Class AbstractHibernateTest

java.lang.Object
io.hypersistence.utils.test.AbstractHibernateTest

public abstract class AbstractHibernateTest extends Object
  • Field Details

    • LOGGER

      protected final org.slf4j.Logger LOGGER
    • dataSourceProviderMap

      public static Map<org.hibernate.dialect.Database,DataSourceProvider> dataSourceProviderMap
    • executorService

      protected final ExecutorService executorService
  • Constructor Details

    • AbstractHibernateTest

      public AbstractHibernateTest()
  • Method Details

    • init

      public void init()
    • beforeInit

      protected void beforeInit()
    • afterInit

      protected void afterInit()
    • destroy

      public void destroy()
    • entityManagerFactory

      public jakarta.persistence.EntityManagerFactory entityManagerFactory()
    • sessionFactory

      public org.hibernate.SessionFactory sessionFactory()
    • nativeHibernateSessionFactoryBootstrap

      protected boolean nativeHibernateSessionFactoryBootstrap()
    • entities

      protected Class<?>[] entities()
    • entityClassNames

      protected List<String> entityClassNames()
    • packages

      protected String[] packages()
    • resources

      protected String[] resources()
    • interceptor

      protected org.hibernate.Interceptor interceptor()
    • newEntityManagerFactory

      protected jakarta.persistence.EntityManagerFactory newEntityManagerFactory()
    • integrator

      protected org.hibernate.integrator.spi.Integrator integrator()
    • persistenceUnitInfo

      protected AbstractHibernateTest.PersistenceUnitInfoImpl persistenceUnitInfo(String name)
    • properties

      protected Properties properties()
    • dialect

      protected org.hibernate.dialect.Dialect dialect()
    • additionalProperties

      protected void additionalProperties(Properties properties)
    • dataSource

      protected DataSource dataSource()
    • newDataSource

      protected DataSource newDataSource()
    • proxyDataSource

      protected boolean proxyDataSource()
    • connectionPoolDataSource

      protected com.zaxxer.hikari.HikariDataSource connectionPoolDataSource(DataSource dataSource)
    • hikariConfig

      protected com.zaxxer.hikari.HikariConfig hikariConfig(DataSource dataSource)
    • connectionPooling

      protected boolean connectionPooling()
    • connectionPoolSize

      protected int connectionPoolSize()
    • database

      protected org.hibernate.dialect.Database database()
    • setDatabase

      public void setDatabase(org.hibernate.dialect.Database database)
    • dataSourceProvider

      protected DataSourceProvider dataSourceProvider()
    • additionalTypes

      protected List<?> additionalTypes()
    • doInHibernate

      protected <T> T doInHibernate(SessionTransactionFunction<T> callable)
    • doInHibernate

      protected void doInHibernate(SessionTransactionConsumer callable)
    • doInJPA

      protected <T> T doInJPA(EntityManagerTransactionFunction<T> function)
    • doInJPA

      protected void doInJPA(EntityManagerTransactionConsumer function)
    • doInJDBC

      protected <T> T doInJDBC(ConnectionTransactionFunction<T> function)
    • doInJDBC

      protected void doInJDBC(ConnectionTransactionConsumer function)
    • executeSync

      protected void executeSync(VoidCallable callable)
    • executeSync

      protected <T> T executeSync(Callable<T> callable)
    • awaitOnLatch

      protected void awaitOnLatch(CountDownLatch latch)
    • sleep

      protected void sleep(long millis)
    • stringValue

      public static String stringValue(Object value)
    • intValue

      public static int intValue(Object number)
    • longValue

      public static long longValue(Object number)
    • doubleValue

      public static double doubleValue(Object number)
    • urlValue

      public static URL urlValue(String url)
    • localDateTimeValue

      public static LocalDateTime localDateTimeValue(Object value)
    • executeStatement

      protected void executeStatement(String sql)