Package io.hypersistence.utils.test
Class AbstractHibernateTest
java.lang.Object
io.hypersistence.utils.test.AbstractHibernateTest
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Map<org.hibernate.dialect.Database,DataSourceProvider> protected final ExecutorServiceprotected final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadditionalProperties(Properties properties) protected List<?>protected voidprotected voidawaitOnLatch(CountDownLatch latch) protected voidprotected com.zaxxer.hikari.HikariDataSourceconnectionPoolDataSource(DataSource dataSource) protected booleanprotected intprotected org.hibernate.dialect.Databasedatabase()protected DataSourceprotected DataSourceProvidervoiddestroy()protected org.hibernate.dialect.Dialectdialect()protected voiddoInHibernate(SessionTransactionConsumer callable) protected <T> TdoInHibernate(SessionTransactionFunction<T> callable) protected voiddoInJDBC(ConnectionTransactionConsumer function) protected <T> TdoInJDBC(ConnectionTransactionFunction<T> function) protected voiddoInJPA(EntityManagerTransactionConsumer function) protected <T> TdoInJPA(EntityManagerTransactionFunction<T> function) static doubledoubleValue(Object number) protected Class<?>[]entities()jakarta.persistence.EntityManagerFactoryprotected voidexecuteSync(VoidCallable callable) protected <T> TexecuteSync(Callable<T> callable) protected com.zaxxer.hikari.HikariConfighikariConfig(DataSource dataSource) voidinit()protected org.hibernate.integrator.spi.Integratorprotected org.hibernate.Interceptorstatic intstatic LocalDateTimelocalDateTimeValue(Object value) static longprotected booleanprotected DataSourceprotected jakarta.persistence.EntityManagerFactoryprotected String[]packages()persistenceUnitInfo(String name) protected Propertiesprotected booleanprotected String[]org.hibernate.SessionFactoryvoidsetDatabase(org.hibernate.dialect.Database database) protected voidsleep(long millis) static StringstringValue(Object value) static URL
-
Field Details
-
LOGGER
protected final org.slf4j.Logger LOGGER -
dataSourceProviderMap
-
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
-
entityClassNames
-
packages
-
resources
-
interceptor
protected org.hibernate.Interceptor interceptor() -
newEntityManagerFactory
protected jakarta.persistence.EntityManagerFactory newEntityManagerFactory() -
integrator
protected org.hibernate.integrator.spi.Integrator integrator() -
persistenceUnitInfo
-
properties
-
dialect
protected org.hibernate.dialect.Dialect dialect() -
additionalProperties
-
dataSource
-
newDataSource
-
proxyDataSource
protected boolean proxyDataSource() -
connectionPoolDataSource
-
hikariConfig
-
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
-
additionalTypes
-
doInHibernate
-
doInHibernate
-
doInJPA
-
doInJPA
-
doInJDBC
-
doInJDBC
-
executeSync
-
executeSync
-
awaitOnLatch
-
sleep
protected void sleep(long millis) -
stringValue
-
intValue
-
longValue
-
doubleValue
-
urlValue
-
localDateTimeValue
-