Class SessionFactoryOptionsBuilder
- All Implemented Interfaces:
SessionFactoryOptions,QueryEngineOptions
SessionFactoryOptions during SessionFactoryBuilder
processing.
The intention is that SessionFactoryBuilder internally creates and populates this builder, which
is then used to construct the SessionFactoryOptions as part of building the SessionFactory
from SessionFactoryBuilder.build().
- Author:
- Steve Ebersole
-
Constructor Summary
ConstructorsConstructorDescriptionSessionFactoryOptionsBuilder(StandardServiceRegistry serviceRegistry, BootstrapContext context) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntityNameResolvers(EntityNameResolver... entityNameResolvers) voidaddSessionFactoryObservers(SessionFactoryObserver... observers) voidallowDirectReferenceCacheEntries(boolean enabled) voidallowLazyInitializationOutsideTransaction(boolean enabled) voidallowOutOfTransactionUpdateOperations(boolean allow) voidDeprecated.: No longer used internallyvoidapplyBeanManager(Object beanManager) voidapplyCacheRegionPrefix(String prefix) voidvoidapplyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit) voidvoidvoidapplyDefaultBatchFetchSize(int size) voidapplyDefaultNullPrecedence(NullPrecedence nullPrecedence) voidapplyDelayedEntityLoaderCreations(boolean delay) voidapplyEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate) voidapplyInterceptor(Interceptor interceptor) voidapplyJdbcBatchSize(int size) voidapplyJdbcFetchSize(int size) voidapplyJsonFormatMapper(FormatMapper jsonFormatMapper) voidapplyMaximumFetchDepth(int depth) voidapplyMultiTenancy(boolean enabled) voidapplyQueryCacheLayout(CacheLayout queryCacheLayout) voidapplySessionFactoryName(String sessionFactoryName) voidapplySqlFunction(String registrationName, SqmFunctionDescriptor sqlFunction) voidapplySqmFunctionRegistry(SqmFunctionRegistry sqmFunctionRegistry) voidapplyStatelessInterceptor(Class<? extends Interceptor> statelessInterceptorClass) voidapplyStatelessInterceptorSupplier(Supplier<? extends Interceptor> statelessInterceptorSupplier) voidapplyStatementInspector(StatementInspector statementInspector) voidapplySubselectFetchEnabled(boolean subselectFetchEnabled) voidvoidvoidapplyValidatorFactory(Object validatorFactory) voidapplyXmlFormatMapper(FormatMapper xmlFormatMapper) booleanvoidvoidbooleanvoidenableAutoEvictCollectionCaches(boolean enabled) voidenableCollectionInDefaultFetchGroup(boolean enabled) voidenableCommentsSupport(boolean enabled) voidenabledStructuredCacheEntries(boolean enabled) voidenableGeneratedKeysSupport(boolean enabled) voidenableGeneratorNameScopeCompliance(boolean enabled) voidenableIdentifierRollbackSupport(boolean enabled) voidenableJdbcBatchingForVersionedEntities(boolean enabled) voidenableJpaCachingCompliance(boolean enabled) voidenableJpaCascadeCompliance(boolean enabled) voidenableJpaClosedCompliance(boolean enabled) voidenableJpaListCompliance(boolean enabled) voidenableJpaOrderByMappingCompliance(boolean enabled) voidenableJpaProxyCompliance(boolean enabled) voidenableJpaQueryCompliance(boolean enabled) voidenableJpaTransactionCompliance(boolean enabled) voidenableJtaTrackingByThread(boolean enabled) voidenableMinimalPuts(boolean enabled) voidenableNamedQueryCheckingOnStartup(boolean enabled) voidenableNullabilityChecking(boolean enabled) voidenableOrderingOfInserts(boolean enabled) voidenableOrderingOfUpdates(boolean enabled) voidenablePreferUserTransaction(boolean preferUserTransaction) voidenableQueryCacheSupport(boolean enabled) voidenableReleaseResourcesOnClose(boolean enable) voidenableScrollableResultSupport(boolean enabled) voidenableSecondLevelCacheSupport(boolean enabled) voidenableSessionAutoClosing(boolean autoClosingEnabled) voidenableSessionAutoFlushing(boolean flushBeforeCompletionEnabled) voidenableSessionFactoryNameAsJndiName(boolean isJndiName) voidenableStatisticsSupport(boolean enabled) Translator for transforming HQL (as an Antlr parse tree) into an SQM tree.User defined SQM functions available for use in HQL and Criteria.User supplied registry of SQM functions available for use in HQL and CriteriaContract for handling SQM trees representing insertion (INSERT) queries where the target of the mutation is a multi-table entity.Contract for handling SQM trees representing mutation (UPDATE or DELETE) queries where the target of the mutation is a multi-table entity.Factory for translators transforming an SQM tree into a different form.intThe default catalog to use in generated SQL when a catalog wasn't specified in the mapping, neither explicitly nor implicitly (see the concept of implicit catalog in XML mapping).The default schema to use in generated SQL when a catalog wasn't specified in the mapping, neither explicitly nor implicitly (see the concept of implicit schema in XML mapping).Get the delegate for handling entity-not-found exception conditions.Get the interceptor to use by default for all sessions opened from this factory.intThe format mapper to use for serializing/deserializing JSON data.booleanintintintintintintThe service registry to use in building the factory.The name to be used for the SessionFactory.Supplier<? extends Interceptor>Get the interceptor to use by default for all sessions opened from this factory.getUuid()Get the UUID unique to this SessionFactoryOptions.The format mapper to use for serializing/deserializing XML data.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanWas building of the SessionFactory initiated through JPA bootstrapping, or through Hibernate's native bootstrapping?booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanIs theSesssionFactory namealso a JNDI name, indicating we should bind it into JNDI?booleanbooleanbooleanbooleanbooleanControls whether Hibernate should try to map named parameter names specified in aProcedureCallorStoredProcedureQueryto named parameters in the JDBCCallableStatement.voidsetCheckNullability(boolean enabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions
getDefaultTenantIdentifierJavaType
-
Constructor Details
-
SessionFactoryOptionsBuilder
public SessionFactoryOptionsBuilder(StandardServiceRegistry serviceRegistry, BootstrapContext context)
-
-
Method Details
-
getUuid
Description copied from interface:SessionFactoryOptionsGet the UUID unique to this SessionFactoryOptions. Will be the same value available asSessionFactoryImplementor.getUuid().- Specified by:
getUuidin interfaceSessionFactoryOptions- Returns:
- The UUID for this SessionFactory.
- See Also:
-
getServiceRegistry
Description copied from interface:SessionFactoryOptionsThe service registry to use in building the factory.- Specified by:
getServiceRegistryin interfaceSessionFactoryOptions- Returns:
- The service registry to use.
-
isJpaBootstrap
public boolean isJpaBootstrap()Description copied from interface:SessionFactoryOptionsWas building of the SessionFactory initiated through JPA bootstrapping, or through Hibernate's native bootstrapping?- Specified by:
isJpaBootstrapin interfaceSessionFactoryOptions- Returns:
trueindicates the SessionFactory was built through JPA bootstrapping;falseindicates it was built through native bootstrapping.
-
isJtaTransactionAccessEnabled
public boolean isJtaTransactionAccessEnabled()- Specified by:
isJtaTransactionAccessEnabledin interfaceSessionFactoryOptions
-
isAllowRefreshDetachedEntity
public boolean isAllowRefreshDetachedEntity()- Specified by:
isAllowRefreshDetachedEntityin interfaceSessionFactoryOptions
-
isAllowOutOfTransactionUpdateOperations
public boolean isAllowOutOfTransactionUpdateOperations()- Specified by:
isAllowOutOfTransactionUpdateOperationsin interfaceSessionFactoryOptions
-
isReleaseResourcesOnCloseEnabled
public boolean isReleaseResourcesOnCloseEnabled()- Specified by:
isReleaseResourcesOnCloseEnabledin interfaceSessionFactoryOptions
-
getBeanManagerReference
- Specified by:
getBeanManagerReferencein interfaceSessionFactoryOptions
-
getValidatorFactoryReference
- Specified by:
getValidatorFactoryReferencein interfaceSessionFactoryOptions
-
getSessionFactoryName
Description copied from interface:SessionFactoryOptionsThe name to be used for the SessionFactory. This is used both in:- in-VM serialization
- JNDI binding, depending on
SessionFactoryOptions.isSessionFactoryNameAlsoJndiName()
- Specified by:
getSessionFactoryNamein interfaceSessionFactoryOptions- Returns:
- The SessionFactory name
-
isSessionFactoryNameAlsoJndiName
public boolean isSessionFactoryNameAlsoJndiName()Description copied from interface:SessionFactoryOptionsIs theSesssionFactory namealso a JNDI name, indicating we should bind it into JNDI?- Specified by:
isSessionFactoryNameAlsoJndiNamein interfaceSessionFactoryOptions- Returns:
trueif the SessionFactory name is also a JNDI name;falseotherwise.
-
isFlushBeforeCompletionEnabled
public boolean isFlushBeforeCompletionEnabled()- Specified by:
isFlushBeforeCompletionEnabledin interfaceSessionFactoryOptions
-
isAutoCloseSessionEnabled
public boolean isAutoCloseSessionEnabled()- Specified by:
isAutoCloseSessionEnabledin interfaceSessionFactoryOptions
-
isStatisticsEnabled
public boolean isStatisticsEnabled()- Specified by:
isStatisticsEnabledin interfaceSessionFactoryOptions
-
getInterceptor
Description copied from interface:SessionFactoryOptionsGet the interceptor to use by default for all sessions opened from this factory.- Specified by:
getInterceptorin interfaceSessionFactoryOptions- Returns:
- The interceptor to use factory wide. May be
null
-
getStatelessInterceptorImplementorSupplier
Description copied from interface:SessionFactoryOptionsGet the interceptor to use by default for all sessions opened from this factory.- Specified by:
getStatelessInterceptorImplementorSupplierin interfaceSessionFactoryOptions- Returns:
- The interceptor to use factory wide. May be
null
-
getCustomHqlTranslator
Description copied from interface:QueryEngineOptionsTranslator for transforming HQL (as an Antlr parse tree) into an SQM tree.- Specified by:
getCustomHqlTranslatorin interfaceQueryEngineOptions- See Also:
-
getCustomSqmTranslatorFactory
Description copied from interface:QueryEngineOptionsFactory for translators transforming an SQM tree into a different form. For standard ORM implementations this will generally be some form of SQL tree.- Specified by:
getCustomSqmTranslatorFactoryin interfaceQueryEngineOptions- See Also:
-
getCustomSqmMultiTableMutationStrategy
Description copied from interface:QueryEngineOptionsContract for handling SQM trees representing mutation (UPDATE or DELETE) queries where the target of the mutation is a multi-table entity.- Specified by:
getCustomSqmMultiTableMutationStrategyin interfaceQueryEngineOptions
-
getCustomSqmMultiTableInsertStrategy
Description copied from interface:QueryEngineOptionsContract for handling SQM trees representing insertion (INSERT) queries where the target of the mutation is a multi-table entity.- Specified by:
getCustomSqmMultiTableInsertStrategyin interfaceQueryEngineOptions
-
isUseOfJdbcNamedParametersEnabled
public boolean isUseOfJdbcNamedParametersEnabled()Description copied from interface:SessionFactoryOptionsControls whether Hibernate should try to map named parameter names specified in aProcedureCallorStoredProcedureQueryto named parameters in the JDBCCallableStatement.As JPA is defined, the use of named parameters is essentially of dubious value since by spec the parameters have to be defined in the order they are defined in the procedure/function declaration - we can always bind them positionally. The whole idea of named parameters for CallableStatement is the ability to bind these in any order, but since we unequivocally know the order anyway binding them via name really gains nothing.
If this is
true, we still need to make sure the Dialect supports named binding. Setting this tofalsesimply circumvents that check and always performs positional binding.- Specified by:
isUseOfJdbcNamedParametersEnabledin interfaceSessionFactoryOptions- Returns:
trueindicates we should try to useCallableStatementnamed parameters, if the Dialect says it is supported;falseindicates that we should never try to useCallableStatementnamed parameters, regardless of what the Dialect says.- See Also:
-
getCustomSqmFunctionRegistry
Description copied from interface:QueryEngineOptionsUser supplied registry of SQM functions available for use in HQL and CriteriaCan be used in conjunction with
QueryEngineOptions.getCustomSqlFunctionMap(), but generally one or the other will be used.- Specified by:
getCustomSqmFunctionRegistryin interfaceQueryEngineOptions
-
getStatementInspector
- Specified by:
getStatementInspectorin interfaceSessionFactoryOptions
-
getSessionFactoryObservers
- Specified by:
getSessionFactoryObserversin interfaceSessionFactoryOptions
-
getBaselineSessionEventsListenerBuilder
- Specified by:
getBaselineSessionEventsListenerBuilderin interfaceSessionFactoryOptions
-
isIdentifierRollbackEnabled
public boolean isIdentifierRollbackEnabled()- Specified by:
isIdentifierRollbackEnabledin interfaceSessionFactoryOptions
-
isCheckNullability
public boolean isCheckNullability()- Specified by:
isCheckNullabilityin interfaceSessionFactoryOptions
-
isInitializeLazyStateOutsideTransactionsEnabled
public boolean isInitializeLazyStateOutsideTransactionsEnabled()- Specified by:
isInitializeLazyStateOutsideTransactionsEnabledin interfaceSessionFactoryOptions
-
getTempTableDdlTransactionHandling
- Specified by:
getTempTableDdlTransactionHandlingin interfaceSessionFactoryOptions
-
getBatchFetchStyle
- Specified by:
getBatchFetchStylein interfaceSessionFactoryOptions
-
isDelayBatchFetchLoaderCreationsEnabled
public boolean isDelayBatchFetchLoaderCreationsEnabled()- Specified by:
isDelayBatchFetchLoaderCreationsEnabledin interfaceSessionFactoryOptions
-
getDefaultBatchFetchSize
public int getDefaultBatchFetchSize()- Specified by:
getDefaultBatchFetchSizein interfaceSessionFactoryOptions
-
getMaximumFetchDepth
- Specified by:
getMaximumFetchDepthin interfaceSessionFactoryOptions
-
isSubselectFetchEnabled
public boolean isSubselectFetchEnabled()- Specified by:
isSubselectFetchEnabledin interfaceSessionFactoryOptions
-
getDefaultNullPrecedence
- Specified by:
getDefaultNullPrecedencein interfaceSessionFactoryOptions
-
isOrderUpdatesEnabled
public boolean isOrderUpdatesEnabled()- Specified by:
isOrderUpdatesEnabledin interfaceSessionFactoryOptions
-
isOrderInsertsEnabled
public boolean isOrderInsertsEnabled()- Specified by:
isOrderInsertsEnabledin interfaceSessionFactoryOptions
-
isMultiTenancyEnabled
public boolean isMultiTenancyEnabled()- Specified by:
isMultiTenancyEnabledin interfaceSessionFactoryOptions
-
getCurrentTenantIdentifierResolver
- Specified by:
getCurrentTenantIdentifierResolverin interfaceSessionFactoryOptions
-
isJtaTrackByThread
public boolean isJtaTrackByThread()- Specified by:
isJtaTrackByThreadin interfaceSessionFactoryOptions
-
isNamedQueryStartupCheckingEnabled
public boolean isNamedQueryStartupCheckingEnabled()- Specified by:
isNamedQueryStartupCheckingEnabledin interfaceSessionFactoryOptions
-
isSecondLevelCacheEnabled
public boolean isSecondLevelCacheEnabled()- Specified by:
isSecondLevelCacheEnabledin interfaceSessionFactoryOptions
-
isQueryCacheEnabled
public boolean isQueryCacheEnabled()- Specified by:
isQueryCacheEnabledin interfaceSessionFactoryOptions
-
getQueryCacheLayout
- Specified by:
getQueryCacheLayoutin interfaceSessionFactoryOptions
-
getTimestampsCacheFactory
- Specified by:
getTimestampsCacheFactoryin interfaceSessionFactoryOptions
-
getCacheRegionPrefix
- Specified by:
getCacheRegionPrefixin interfaceSessionFactoryOptions
-
isMinimalPutsEnabled
public boolean isMinimalPutsEnabled()- Specified by:
isMinimalPutsEnabledin interfaceSessionFactoryOptions
-
isStructuredCacheEntriesEnabled
public boolean isStructuredCacheEntriesEnabled()- Specified by:
isStructuredCacheEntriesEnabledin interfaceSessionFactoryOptions
-
isDirectReferenceCacheEntriesEnabled
public boolean isDirectReferenceCacheEntriesEnabled()- Specified by:
isDirectReferenceCacheEntriesEnabledin interfaceSessionFactoryOptions
-
isAutoEvictCollectionCache
public boolean isAutoEvictCollectionCache()- Specified by:
isAutoEvictCollectionCachein interfaceSessionFactoryOptions
-
getSchemaAutoTooling
- Specified by:
getSchemaAutoToolingin interfaceSessionFactoryOptions
-
getJdbcBatchSize
public int getJdbcBatchSize()- Specified by:
getJdbcBatchSizein interfaceSessionFactoryOptions
-
isJdbcBatchVersionedData
public boolean isJdbcBatchVersionedData()- Specified by:
isJdbcBatchVersionedDatain interfaceSessionFactoryOptions
-
isScrollableResultSetsEnabled
public boolean isScrollableResultSetsEnabled()- Specified by:
isScrollableResultSetsEnabledin interfaceSessionFactoryOptions
-
isGetGeneratedKeysEnabled
public boolean isGetGeneratedKeysEnabled()- Specified by:
isGetGeneratedKeysEnabledin interfaceSessionFactoryOptions
-
getJdbcFetchSize
- Specified by:
getJdbcFetchSizein interfaceSessionFactoryOptions
-
getPhysicalConnectionHandlingMode
- Specified by:
getPhysicalConnectionHandlingModein interfaceSessionFactoryOptions
-
setCheckNullability
public void setCheckNullability(boolean enabled) - Specified by:
setCheckNullabilityin interfaceSessionFactoryOptions
-
doesConnectionProviderDisableAutoCommit
public boolean doesConnectionProviderDisableAutoCommit()- Specified by:
doesConnectionProviderDisableAutoCommitin interfaceSessionFactoryOptions
-
isCommentsEnabled
public boolean isCommentsEnabled()- Specified by:
isCommentsEnabledin interfaceSessionFactoryOptions
-
getCustomEntityDirtinessStrategy
- Specified by:
getCustomEntityDirtinessStrategyin interfaceSessionFactoryOptions
-
getEntityNameResolvers
- Specified by:
getEntityNameResolversin interfaceSessionFactoryOptions
-
getEntityNotFoundDelegate
Description copied from interface:SessionFactoryOptionsGet the delegate for handling entity-not-found exception conditions.- Specified by:
getEntityNotFoundDelegatein interfaceSessionFactoryOptions- Returns:
- The specific EntityNotFoundDelegate to use, May be
null
-
getCustomSqlFunctionMap
Description copied from interface:QueryEngineOptionsUser defined SQM functions available for use in HQL and Criteria.Ultimately made available to the
SqmTranslatorFactoryfor use in translating an SQM tree.Can be used in conjunction with
QueryEngineOptions.getCustomSqmFunctionRegistry(), but generally one or the other will be used.- Specified by:
getCustomSqlFunctionMapin interfaceQueryEngineOptions
-
isPreferUserTransaction
public boolean isPreferUserTransaction()- Specified by:
isPreferUserTransactionin interfaceSessionFactoryOptions
-
getJdbcTimeZone
- Specified by:
getJdbcTimeZonein interfaceSessionFactoryOptions
-
getCriteriaValueHandlingMode
- Specified by:
getCriteriaValueHandlingModein interfaceQueryEngineOptions- Specified by:
getCriteriaValueHandlingModein interfaceSessionFactoryOptions- See Also:
-
isCriteriaCopyTreeEnabled
public boolean isCriteriaCopyTreeEnabled()- Specified by:
isCriteriaCopyTreeEnabledin interfaceSessionFactoryOptions- See Also:
-
getNativeJdbcParametersIgnored
public boolean getNativeJdbcParametersIgnored()- Specified by:
getNativeJdbcParametersIgnoredin interfaceSessionFactoryOptions- See Also:
-
getImmutableEntityUpdateQueryHandlingMode
- Specified by:
getImmutableEntityUpdateQueryHandlingModein interfaceSessionFactoryOptions
-
getDefaultCatalog
Description copied from interface:SessionFactoryOptionsThe default catalog to use in generated SQL when a catalog wasn't specified in the mapping, neither explicitly nor implicitly (see the concept of implicit catalog in XML mapping).- Specified by:
getDefaultCatalogin interfaceSessionFactoryOptions- Returns:
- The default catalog to use.
-
getDefaultSchema
Description copied from interface:SessionFactoryOptionsThe default schema to use in generated SQL when a catalog wasn't specified in the mapping, neither explicitly nor implicitly (see the concept of implicit schema in XML mapping).- Specified by:
getDefaultSchemain interfaceSessionFactoryOptions- Returns:
- The default schema to use.
-
isFailOnPaginationOverCollectionFetchEnabled
public boolean isFailOnPaginationOverCollectionFetchEnabled()- Specified by:
isFailOnPaginationOverCollectionFetchEnabledin interfaceSessionFactoryOptions
-
inClauseParameterPaddingEnabled
public boolean inClauseParameterPaddingEnabled()- Specified by:
inClauseParameterPaddingEnabledin interfaceSessionFactoryOptions- See Also:
-
isPortableIntegerDivisionEnabled
public boolean isPortableIntegerDivisionEnabled()- Specified by:
isPortableIntegerDivisionEnabledin interfaceQueryEngineOptions- Specified by:
isPortableIntegerDivisionEnabledin interfaceSessionFactoryOptions- See Also:
-
getJpaCompliance
- Specified by:
getJpaCompliancein interfaceQueryEngineOptions- Specified by:
getJpaCompliancein interfaceSessionFactoryOptions
-
getQueryStatisticsMaxSize
public int getQueryStatisticsMaxSize()- Specified by:
getQueryStatisticsMaxSizein interfaceSessionFactoryOptions
-
areJPACallbacksEnabled
public boolean areJPACallbacksEnabled()- Specified by:
areJPACallbacksEnabledin interfaceSessionFactoryOptions
-
isCollectionsInDefaultFetchGroupEnabled
public boolean isCollectionsInDefaultFetchGroupEnabled()- Specified by:
isCollectionsInDefaultFetchGroupEnabledin interfaceSessionFactoryOptions
-
isUnownedAssociationTransientCheck
public boolean isUnownedAssociationTransientCheck()- Specified by:
isUnownedAssociationTransientCheckin interfaceSessionFactoryOptions
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()- Specified by:
getPreferredSqlTypeCodeForBooleanin interfaceSessionFactoryOptions
-
getPreferredSqlTypeCodeForDuration
public int getPreferredSqlTypeCodeForDuration()- Specified by:
getPreferredSqlTypeCodeForDurationin interfaceSessionFactoryOptions
-
getPreferredSqlTypeCodeForUuid
public int getPreferredSqlTypeCodeForUuid()- Specified by:
getPreferredSqlTypeCodeForUuidin interfaceSessionFactoryOptions
-
getPreferredSqlTypeCodeForInstant
public int getPreferredSqlTypeCodeForInstant()- Specified by:
getPreferredSqlTypeCodeForInstantin interfaceSessionFactoryOptions
-
getPreferredSqlTypeCodeForArray
public int getPreferredSqlTypeCodeForArray()- Specified by:
getPreferredSqlTypeCodeForArrayin interfaceSessionFactoryOptions
-
getDefaultTimeZoneStorageStrategy
- Specified by:
getDefaultTimeZoneStorageStrategyin interfaceSessionFactoryOptions
-
isPreferJavaTimeJdbcTypesEnabled
public boolean isPreferJavaTimeJdbcTypesEnabled()- Specified by:
isPreferJavaTimeJdbcTypesEnabledin interfaceSessionFactoryOptions
-
isPreferNativeEnumTypesEnabled
public boolean isPreferNativeEnumTypesEnabled()- Specified by:
isPreferNativeEnumTypesEnabledin interfaceSessionFactoryOptions
-
getJsonFormatMapper
Description copied from interface:SessionFactoryOptionsThe format mapper to use for serializing/deserializing JSON data.- Specified by:
getJsonFormatMapperin interfaceSessionFactoryOptions
-
getXmlFormatMapper
Description copied from interface:SessionFactoryOptionsThe format mapper to use for serializing/deserializing XML data.- Specified by:
getXmlFormatMapperin interfaceSessionFactoryOptions
-
isPassProcedureParameterNames
public boolean isPassProcedureParameterNames()- Specified by:
isPassProcedureParameterNamesin interfaceSessionFactoryOptions
-
applyBeanManager
-
applyValidatorFactory
-
applyJsonFormatMapper
-
applyXmlFormatMapper
-
applySessionFactoryName
-
enableSessionFactoryNameAsJndiName
public void enableSessionFactoryNameAsJndiName(boolean isJndiName) -
enableSessionAutoClosing
public void enableSessionAutoClosing(boolean autoClosingEnabled) -
enableSessionAutoFlushing
public void enableSessionAutoFlushing(boolean flushBeforeCompletionEnabled) -
enableJtaTrackingByThread
public void enableJtaTrackingByThread(boolean enabled) -
enablePreferUserTransaction
public void enablePreferUserTransaction(boolean preferUserTransaction) -
enableStatisticsSupport
public void enableStatisticsSupport(boolean enabled) -
addSessionFactoryObservers
-
applyInterceptor
-
applyStatelessInterceptor
-
applyStatelessInterceptorSupplier
public void applyStatelessInterceptorSupplier(Supplier<? extends Interceptor> statelessInterceptorSupplier) -
applySqmFunctionRegistry
-
applyStatementInspector
-
applyCustomEntityDirtinessStrategy
-
addEntityNameResolvers
-
applyEntityNotFoundDelegate
-
enableIdentifierRollbackSupport
public void enableIdentifierRollbackSupport(boolean enabled) -
enableNullabilityChecking
public void enableNullabilityChecking(boolean enabled) -
allowLazyInitializationOutsideTransaction
public void allowLazyInitializationOutsideTransaction(boolean enabled) -
applyTempTableDdlTransactionHandling
-
applyBatchFetchStyle
Deprecated.: No longer used internally -
applyDelayedEntityLoaderCreations
public void applyDelayedEntityLoaderCreations(boolean delay) -
applyDefaultBatchFetchSize
public void applyDefaultBatchFetchSize(int size) -
applyMaximumFetchDepth
public void applyMaximumFetchDepth(int depth) -
applySubselectFetchEnabled
public void applySubselectFetchEnabled(boolean subselectFetchEnabled) -
applyDefaultNullPrecedence
-
enableOrderingOfInserts
public void enableOrderingOfInserts(boolean enabled) -
enableOrderingOfUpdates
public void enableOrderingOfUpdates(boolean enabled) -
applyMultiTenancy
public void applyMultiTenancy(boolean enabled) -
applyCurrentTenantIdentifierResolver
-
enableNamedQueryCheckingOnStartup
public void enableNamedQueryCheckingOnStartup(boolean enabled) -
enableSecondLevelCacheSupport
public void enableSecondLevelCacheSupport(boolean enabled) -
enableQueryCacheSupport
public void enableQueryCacheSupport(boolean enabled) -
applyQueryCacheLayout
-
applyTimestampsCacheFactory
-
applyCacheRegionPrefix
-
enableMinimalPuts
public void enableMinimalPuts(boolean enabled) -
enabledStructuredCacheEntries
public void enabledStructuredCacheEntries(boolean enabled) -
allowDirectReferenceCacheEntries
public void allowDirectReferenceCacheEntries(boolean enabled) -
enableAutoEvictCollectionCaches
public void enableAutoEvictCollectionCaches(boolean enabled) -
applyJdbcBatchSize
public void applyJdbcBatchSize(int size) -
enableJdbcBatchingForVersionedEntities
public void enableJdbcBatchingForVersionedEntities(boolean enabled) -
enableScrollableResultSupport
public void enableScrollableResultSupport(boolean enabled) -
enableGeneratedKeysSupport
public void enableGeneratedKeysSupport(boolean enabled) -
applyJdbcFetchSize
public void applyJdbcFetchSize(int size) -
applyConnectionHandlingMode
-
applyConnectionProviderDisablesAutoCommit
public void applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit) -
enableCommentsSupport
public void enableCommentsSupport(boolean enabled) -
applySqlFunction
-
allowOutOfTransactionUpdateOperations
public void allowOutOfTransactionUpdateOperations(boolean allow) -
enableReleaseResourcesOnClose
public void enableReleaseResourcesOnClose(boolean enable) -
enableJpaQueryCompliance
public void enableJpaQueryCompliance(boolean enabled) -
enableJpaTransactionCompliance
public void enableJpaTransactionCompliance(boolean enabled) -
enableJpaListCompliance
public void enableJpaListCompliance(boolean enabled) -
enableJpaCascadeCompliance
public void enableJpaCascadeCompliance(boolean enabled) -
enableJpaClosedCompliance
public void enableJpaClosedCompliance(boolean enabled) -
enableJpaProxyCompliance
public void enableJpaProxyCompliance(boolean enabled) -
enableJpaCachingCompliance
public void enableJpaCachingCompliance(boolean enabled) -
enableJpaOrderByMappingCompliance
public void enableJpaOrderByMappingCompliance(boolean enabled) -
enableGeneratorNameScopeCompliance
public void enableGeneratorNameScopeCompliance(boolean enabled) -
enableCollectionInDefaultFetchGroup
public void enableCollectionInDefaultFetchGroup(boolean enabled) -
disableRefreshDetachedEntity
public void disableRefreshDetachedEntity() -
disableJtaTransactionAccess
public void disableJtaTransactionAccess() -
buildOptions
-