Class HibernatePropertiesBuilder
java.lang.Object
ch.tocco.nice2.persist.core.api.hibernate.HibernatePropertiesBuilder
Builder for a
Map
of commonly used hibernate properties.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplyAutoCommit
(boolean autoCommit) applyBeanContainer
(org.hibernate.resource.beans.container.spi.BeanContainer beanContainer) applyConnectionProperties
(boolean enableSqlLogging, HibernateConfiguration configuration) applyConnectionProperties
(HibernateConfiguration configuration) applyConnectionProperties
(String url, @Nullable String username, @Nullable String password, String driverName, boolean enableSqlLogging) applyConnectionProvider
(Class<? extends org.hibernate.engine.jdbc.connections.spi.ConnectionProvider> clazz) applyCurrentSessionContext
(Class<? extends org.hibernate.context.spi.CurrentSessionContext> clazz) applyDialectResolver
(Class<? extends org.hibernate.engine.jdbc.dialect.spi.DialectResolver> clazz) applyQueryPlanCacheSize
(int cacheSize, int parameterMetadataSize) applyValueHandlingMode
(org.hibernate.query.criteria.ValueHandlingMode mode)
-
Constructor Details
-
HibernatePropertiesBuilder
public HibernatePropertiesBuilder() -
HibernatePropertiesBuilder
-
-
Method Details
-
applyCurrentSessionContext
public HibernatePropertiesBuilder applyCurrentSessionContext(Class<? extends org.hibernate.context.spi.CurrentSessionContext> clazz) -
applyConnectionProvider
public HibernatePropertiesBuilder applyConnectionProvider(Class<? extends org.hibernate.engine.jdbc.connections.spi.ConnectionProvider> clazz) -
getProperties
-
applyDialectResolver
public HibernatePropertiesBuilder applyDialectResolver(Class<? extends org.hibernate.engine.jdbc.dialect.spi.DialectResolver> clazz) -
applyAutoCommit
-
applyValueHandlingMode
public HibernatePropertiesBuilder applyValueHandlingMode(org.hibernate.query.criteria.ValueHandlingMode mode) -
applyBeanContainer
public HibernatePropertiesBuilder applyBeanContainer(org.hibernate.resource.beans.container.spi.BeanContainer beanContainer) -
applyQueryPlanCacheSize
-
applyConnectionProperties
public HibernatePropertiesBuilder applyConnectionProperties(String url, @Nullable @Nullable String username, @Nullable @Nullable String password, String driverName, boolean enableSqlLogging) -
applyConnectionProperties
-
applyConnectionProperties
public HibernatePropertiesBuilder applyConnectionProperties(boolean enableSqlLogging, HibernateConfiguration configuration) -
apply
-