Class SessionFactoryOptionsBuilder
- java.lang.Object
-
- org.hibernate.boot.internal.SessionFactoryOptionsBuilder
-
- All Implemented Interfaces:
SessionFactoryOptions,QueryEngineOptions
public class SessionFactoryOptionsBuilder extends Object implements SessionFactoryOptions
In-flight state ofSessionFactoryOptionsduringSessionFactoryBuilderprocessing.The intention is that
SessionFactoryBuilderinternally creates and populates this builder, which is then used to construct theSessionFactoryOptionsas part of building theSessionFactoryfromSessionFactoryBuilder.build().
-
-
Constructor Summary
Constructors Constructor Description SessionFactoryOptionsBuilder(StandardServiceRegistry serviceRegistry, BootstrapContext context)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.spi.SessionFactoryOptions
getDefaultTenantIdentifierJavaType
-
-
-
-
Constructor Detail
-
SessionFactoryOptionsBuilder
public SessionFactoryOptionsBuilder(StandardServiceRegistry serviceRegistry, BootstrapContext context)
-
-
Method Detail
-
getUuid
public String 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:
SessionFactoryRegistry.getSessionFactory(java.lang.String),SessionFactoryImplementor.getUuid()
-
getServiceRegistry
public StandardServiceRegistry 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
public Object getBeanManagerReference()
- Specified by:
getBeanManagerReferencein interfaceSessionFactoryOptions
-
getValidatorFactoryReference
public Object getValidatorFactoryReference()
- Specified by:
getValidatorFactoryReferencein interfaceSessionFactoryOptions
-
getSessionFactoryName
public String 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
public Interceptor 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
public Supplier<? extends Interceptor> 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
public HqlTranslator getCustomHqlTranslator()
Description copied from interface:QueryEngineOptionsTranslator for transforming HQL (as an Antlr parse tree) into an SQM tree.- Specified by:
getCustomHqlTranslatorin interfaceQueryEngineOptions- See Also:
org.hibernate.query.hql
-
getCustomSqmTranslatorFactory
public SqmTranslatorFactory 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:
org.hibernate.sql.ast.tree
-
getCustomSqmMultiTableMutationStrategy
public SqmMultiTableMutationStrategy 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
public SqmMultiTableInsertStrategy 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:
QuerySettings.CALLABLE_NAMED_PARAMS_ENABLED
-
getCustomSqmFunctionRegistry
public SqmFunctionRegistry 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
public StatementInspector getStatementInspector()
- Specified by:
getStatementInspectorin interfaceSessionFactoryOptions
-
getSessionFactoryObservers
public SessionFactoryObserver[] getSessionFactoryObservers()
- Specified by:
getSessionFactoryObserversin interfaceSessionFactoryOptions
-
getBaselineSessionEventsListenerBuilder
public BaselineSessionEventsListenerBuilder 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
public TempTableDdlTransactionHandling getTempTableDdlTransactionHandling()
- Specified by:
getTempTableDdlTransactionHandlingin interfaceSessionFactoryOptions
-
getBatchFetchStyle
public BatchFetchStyle getBatchFetchStyle()
- Specified by:
getBatchFetchStylein interfaceSessionFactoryOptions
-
isDelayBatchFetchLoaderCreationsEnabled
public boolean isDelayBatchFetchLoaderCreationsEnabled()
- Specified by:
isDelayBatchFetchLoaderCreationsEnabledin interfaceSessionFactoryOptions
-
getDefaultBatchFetchSize
public int getDefaultBatchFetchSize()
- Specified by:
getDefaultBatchFetchSizein interfaceSessionFactoryOptions
-
getMaximumFetchDepth
public Integer getMaximumFetchDepth()
- Specified by:
getMaximumFetchDepthin interfaceSessionFactoryOptions
-
isSubselectFetchEnabled
public boolean isSubselectFetchEnabled()
- Specified by:
isSubselectFetchEnabledin interfaceSessionFactoryOptions
-
getDefaultNullPrecedence
public NullPrecedence 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
public CurrentTenantIdentifierResolver<Object> 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
public CacheLayout getQueryCacheLayout()
- Specified by:
getQueryCacheLayoutin interfaceSessionFactoryOptions
-
getTimestampsCacheFactory
public TimestampsCacheFactory getTimestampsCacheFactory()
- Specified by:
getTimestampsCacheFactoryin interfaceSessionFactoryOptions
-
getCacheRegionPrefix
public String 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
public SchemaAutoTooling 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
public Integer getJdbcFetchSize()
- Specified by:
getJdbcFetchSizein interfaceSessionFactoryOptions
-
getPhysicalConnectionHandlingMode
public PhysicalConnectionHandlingMode 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
public CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
- Specified by:
getCustomEntityDirtinessStrategyin interfaceSessionFactoryOptions
-
getEntityNameResolvers
public EntityNameResolver[] getEntityNameResolvers()
- Specified by:
getEntityNameResolversin interfaceSessionFactoryOptions
-
getEntityNotFoundDelegate
public EntityNotFoundDelegate 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
public Map<String,SqmFunctionDescriptor> 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
public TimeZone getJdbcTimeZone()
- Specified by:
getJdbcTimeZonein interfaceSessionFactoryOptions
-
getCriteriaValueHandlingMode
public ValueHandlingMode getCriteriaValueHandlingMode()
- Specified by:
getCriteriaValueHandlingModein interfaceQueryEngineOptions- Specified by:
getCriteriaValueHandlingModein interfaceSessionFactoryOptions- See Also:
QuerySettings.CRITERIA_VALUE_HANDLING_MODE
-
isCriteriaCopyTreeEnabled
public boolean isCriteriaCopyTreeEnabled()
- Specified by:
isCriteriaCopyTreeEnabledin interfaceSessionFactoryOptions- See Also:
QuerySettings.CRITERIA_COPY_TREE
-
getNativeJdbcParametersIgnored
public boolean getNativeJdbcParametersIgnored()
- Specified by:
getNativeJdbcParametersIgnoredin interfaceSessionFactoryOptions- See Also:
QuerySettings.NATIVE_IGNORE_JDBC_PARAMETERS
-
getImmutableEntityUpdateQueryHandlingMode
public ImmutableEntityUpdateQueryHandlingMode getImmutableEntityUpdateQueryHandlingMode()
- Specified by:
getImmutableEntityUpdateQueryHandlingModein interfaceSessionFactoryOptions
-
getDefaultCatalog
public String 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
public String 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:
QuerySettings.IN_CLAUSE_PARAMETER_PADDING
-
isPortableIntegerDivisionEnabled
public boolean isPortableIntegerDivisionEnabled()
- Specified by:
isPortableIntegerDivisionEnabledin interfaceQueryEngineOptions- Specified by:
isPortableIntegerDivisionEnabledin interfaceSessionFactoryOptions- See Also:
QuerySettings.PORTABLE_INTEGER_DIVISION
-
getJpaCompliance
public JpaCompliance 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
public TimeZoneStorageStrategy getDefaultTimeZoneStorageStrategy()
- Specified by:
getDefaultTimeZoneStorageStrategyin interfaceSessionFactoryOptions
-
isPreferJavaTimeJdbcTypesEnabled
public boolean isPreferJavaTimeJdbcTypesEnabled()
- Specified by:
isPreferJavaTimeJdbcTypesEnabledin interfaceSessionFactoryOptions
-
isPreferNativeEnumTypesEnabled
public boolean isPreferNativeEnumTypesEnabled()
- Specified by:
isPreferNativeEnumTypesEnabledin interfaceSessionFactoryOptions
-
getJsonFormatMapper
public FormatMapper getJsonFormatMapper()
Description copied from interface:SessionFactoryOptionsThe format mapper to use for serializing/deserializing JSON data.- Specified by:
getJsonFormatMapperin interfaceSessionFactoryOptions
-
getXmlFormatMapper
public FormatMapper 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
public void applyBeanManager(Object beanManager)
-
applyValidatorFactory
public void applyValidatorFactory(Object validatorFactory)
-
applyJsonFormatMapper
public void applyJsonFormatMapper(FormatMapper jsonFormatMapper)
-
applyXmlFormatMapper
public void applyXmlFormatMapper(FormatMapper xmlFormatMapper)
-
applySessionFactoryName
public void applySessionFactoryName(String sessionFactoryName)
-
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
public void addSessionFactoryObservers(SessionFactoryObserver... observers)
-
applyInterceptor
public void applyInterceptor(Interceptor interceptor)
-
applyStatelessInterceptor
public void applyStatelessInterceptor(Class<? extends Interceptor> statelessInterceptorClass)
-
applyStatelessInterceptorSupplier
public void applyStatelessInterceptorSupplier(Supplier<? extends Interceptor> statelessInterceptorSupplier)
-
applySqmFunctionRegistry
public void applySqmFunctionRegistry(SqmFunctionRegistry sqmFunctionRegistry)
-
applyStatementInspector
public void applyStatementInspector(StatementInspector statementInspector)
-
applyCustomEntityDirtinessStrategy
public void applyCustomEntityDirtinessStrategy(CustomEntityDirtinessStrategy strategy)
-
addEntityNameResolvers
public void addEntityNameResolvers(EntityNameResolver... entityNameResolvers)
-
applyEntityNotFoundDelegate
public void applyEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate)
-
enableIdentifierRollbackSupport
public void enableIdentifierRollbackSupport(boolean enabled)
-
enableNullabilityChecking
public void enableNullabilityChecking(boolean enabled)
-
allowLazyInitializationOutsideTransaction
public void allowLazyInitializationOutsideTransaction(boolean enabled)
-
applyTempTableDdlTransactionHandling
public void applyTempTableDdlTransactionHandling(TempTableDdlTransactionHandling handling)
-
applyBatchFetchStyle
@Deprecated(since="6.0") public void applyBatchFetchStyle(BatchFetchStyle style)
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
public void applyDefaultNullPrecedence(NullPrecedence nullPrecedence)
-
enableOrderingOfInserts
public void enableOrderingOfInserts(boolean enabled)
-
enableOrderingOfUpdates
public void enableOrderingOfUpdates(boolean enabled)
-
applyMultiTenancy
public void applyMultiTenancy(boolean enabled)
-
applyCurrentTenantIdentifierResolver
public void applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver<?> resolver)
-
enableNamedQueryCheckingOnStartup
public void enableNamedQueryCheckingOnStartup(boolean enabled)
-
enableSecondLevelCacheSupport
public void enableSecondLevelCacheSupport(boolean enabled)
-
enableQueryCacheSupport
public void enableQueryCacheSupport(boolean enabled)
-
applyQueryCacheLayout
public void applyQueryCacheLayout(CacheLayout queryCacheLayout)
-
applyTimestampsCacheFactory
public void applyTimestampsCacheFactory(TimestampsCacheFactory factory)
-
applyCacheRegionPrefix
public void applyCacheRegionPrefix(String prefix)
-
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
public void applyConnectionHandlingMode(PhysicalConnectionHandlingMode mode)
-
applyConnectionProviderDisablesAutoCommit
public void applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit)
-
enableCommentsSupport
public void enableCommentsSupport(boolean enabled)
-
applySqlFunction
public void applySqlFunction(String registrationName, SqmFunctionDescriptor sqlFunction)
-
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
public SessionFactoryOptions buildOptions()
-
-