Class AbstractDelegatingSessionFactoryOptions
- All Implemented Interfaces:
SessionFactoryOptions
,QueryEngineOptions
SessionFactoryOptions
using delegation.- Implementation Note:
- Declared non-abstract to ensure that all
SessionFactoryOptions
methods have at least a default implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Should JPA entity lifecycle callbacks be processed by theEventEngine
andCallbackRegistry
?protected SessionFactoryOptions
delegate()
boolean
Do newly-obtained JDBC connections come with autocommit already disabled?A factory-specific prefix to be applied to all cache region names.getCacheRetrieveMode
(Map<String, Object> properties) Determine the defaultCacheRetrieveMode
, given the current session properties.getCacheStoreMode
(Map<String, Object> properties) Determine the defaultCacheStoreMode
, given the current session properties.Obtain a reference to the current tenant identifier resolver, if any, or returnnull
is there is no resolver configured.A custom strategy for determining if an entity instance is dirty.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.int
The default batch size for batch fetching in new sessions.The 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 lock scope and lock timeout.The default precedence of null values in sorted query results.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).Default properties for brand-new sessions.The default tenant identifier java type to use, in case no explicit tenant identifier property is defined.An array of custom entity name resolvers.Get the delegate for handling entity-not-found exception conditions.The default initialCacheMode
for new sessions.The default initialFlushMode
for new sessions.An interceptor instance shared between all sessions created by this factory.int
The default JDBC statement batch size for new sessions.The timezone to use when interacting with JDBC.The format mapper to use for serializing/deserializing JSON data.boolean
int
int
int
int
int
The layout of entries in the query cache.int
The number ofQueryStatistics
entries that should be stored byStatistics
.Deprecated.The service registry to use in building the factory.The name to be used for theSessionFactory
.Observers for events raised by the factory.Supplier<? extends Interceptor>
A statelessSupplier
for interceptor instances which are not shared between sessions created by this factory.The defaultStatementInspector
for this factory.Deprecated.A factory for theTimestampsCache
used to track invalidation of cached query result sets.getUuid()
Get the UUID unique to this SessionFactoryOptions.The format mapper to use for serializing/deserializing XML data.boolean
boolean
boolean
Deprecated, for removal: This API element is subject to removal in a future version.with no replacement.boolean
boolean
boolean
Should Hibernate validate that non-optional attributes have non-null values?boolean
boolean
Should explanatory comment text be added to the generated SQL?boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Should generated identifiers be reset after entity removal?boolean
Are detached proxies and collections fetched in a temporary persistence context?boolean
Was building of theSessionFactory
initiated through JPA bootstrapping, or through Hibernate-native bootstrapping?boolean
boolean
boolean
boolean
Should we avoid overwriting cache entries with identical entries?boolean
Is there a multi-tenant connection provider configured?boolean
Are named queries validated when the factory is created?boolean
boolean
boolean
boolean
Should HQL integer division HQL should produce an integer on Oracle, MySQL, and MariaDB, where the/
operator produces a non-integer.boolean
boolean
Should native queries return JDBC datetime types instead of usingjava.time
types.boolean
boolean
boolean
Is the query cache enabled?boolean
Deprecated.boolean
boolean
Is the second-level cache enabled?Is the session factory name also a JNDI name, indicating we should bind it into JNDI?boolean
Is collection of statistics enabled by default for this factory?boolean
Are second-level cache entries stored in a human-readable format.boolean
Is subselect fetching enabled by default in new sessions?boolean
boolean
Controls whether Hibernate should try to map named parameter names specified in aProcedureCall
orStoredProcedureQuery
to named parameters in the JDBCCallableStatement
.boolean
Whether to use the legacy format for serializing/deserializing XML data.boolean
void
setCheckNullability
(boolean enabled) Allows Bean Validation to disable null checking.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
buildSessionEventListeners
-
Constructor Details
-
AbstractDelegatingSessionFactoryOptions
-
-
Method Details
-
delegate
-
getUuid
Description copied from interface:SessionFactoryOptions
Get the UUID unique to this SessionFactoryOptions. Will be the same value available asSessionFactoryImplementor.getUuid()
.- Specified by:
getUuid
in interfaceQueryEngineOptions
- Specified by:
getUuid
in interfaceSessionFactoryOptions
- Returns:
- The UUID for this SessionFactory.
- See Also:
-
getServiceRegistry
Description copied from interface:SessionFactoryOptions
The service registry to use in building the factory.- Specified by:
getServiceRegistry
in interfaceSessionFactoryOptions
- Returns:
- The service registry to use.
-
isJpaBootstrap
public boolean isJpaBootstrap()Description copied from interface:SessionFactoryOptions
Was building of theSessionFactory
initiated through JPA bootstrapping, or through Hibernate-native bootstrapping?- Specified by:
isJpaBootstrap
in interfaceSessionFactoryOptions
- Returns:
true
indicates the SessionFactory was built through JPA bootstrapping;false
indicates it was built through native bootstrapping.
-
isJtaTransactionAccessEnabled
public boolean isJtaTransactionAccessEnabled()- Specified by:
isJtaTransactionAccessEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isAllowRefreshDetachedEntity
Deprecated, for removal: This API element is subject to removal in a future version.with no replacement.- Specified by:
isAllowRefreshDetachedEntity
in interfaceSessionFactoryOptions
-
getBeanManagerReference
- Specified by:
getBeanManagerReference
in interfaceSessionFactoryOptions
- See Also:
-
getValidatorFactoryReference
- Specified by:
getValidatorFactoryReference
in interfaceSessionFactoryOptions
- See Also:
-
getSessionFactoryName
Description copied from interface:SessionFactoryOptions
The name to be used for theSessionFactory
. This is used during in-VM serialization; seeSessionFactoryRegistry
. May also be used as a JNDI name, depending on "hibernate.session_factory_jndi_name" and "hibernate.session_factory_name_is_jndi".- Specified by:
getSessionFactoryName
in interfaceQueryEngineOptions
- Specified by:
getSessionFactoryName
in interfaceSessionFactoryOptions
- Returns:
- The session factory name
- See Also:
-
isSessionFactoryNameAlsoJndiName
Description copied from interface:SessionFactoryOptions
Is the session factory name also a JNDI name, indicating we should bind it into JNDI?- Specified by:
isSessionFactoryNameAlsoJndiName
in interfaceSessionFactoryOptions
- Returns:
true
if the SessionFactory name is also a JNDI name;false
otherwise.- See Also:
-
isFlushBeforeCompletionEnabled
public boolean isFlushBeforeCompletionEnabled()- Specified by:
isFlushBeforeCompletionEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isAutoCloseSessionEnabled
public boolean isAutoCloseSessionEnabled()- Specified by:
isAutoCloseSessionEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isStatisticsEnabled
public boolean isStatisticsEnabled()Description copied from interface:SessionFactoryOptions
Is collection of statistics enabled by default for this factory?- Specified by:
isStatisticsEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getInterceptor
Description copied from interface:SessionFactoryOptions
An interceptor instance shared between all sessions created by this factory. Such an interceptor must be thread-safe and may not hold state associated with any given session.- Specified by:
getInterceptor
in interfaceSessionFactoryOptions
- Returns:
- The interceptor instance to use factory-wide by default. May be
null
. - See Also:
-
getCustomSqmMultiTableMutationStrategy
Description copied from interface:QueryEngineOptions
Contract for handling SQM trees representing mutation (UPDATE or DELETE) queries where the target of the mutation is a multi-table entity.- Specified by:
getCustomSqmMultiTableMutationStrategy
in interfaceQueryEngineOptions
- See Also:
-
getCustomSqmMultiTableInsertStrategy
Description copied from interface:QueryEngineOptions
Contract for handling SQM trees representing insertion (INSERT) queries where the target of the mutation is a multi-table entity.- Specified by:
getCustomSqmMultiTableInsertStrategy
in interfaceQueryEngineOptions
- See Also:
-
getStatementInspector
Description copied from interface:SessionFactoryOptions
The defaultStatementInspector
for this factory.- Specified by:
getStatementInspector
in interfaceSessionFactoryOptions
- See Also:
-
getSessionFactoryObservers
Description copied from interface:SessionFactoryOptions
Observers for events raised by the factory.- Specified by:
getSessionFactoryObservers
in interfaceSessionFactoryOptions
- See Also:
-
getBaselineSessionEventsListenerBuilder
- Specified by:
getBaselineSessionEventsListenerBuilder
in interfaceSessionFactoryOptions
-
isIdentifierRollbackEnabled
public boolean isIdentifierRollbackEnabled()Description copied from interface:SessionFactoryOptions
Should generated identifiers be reset after entity removal?- Specified by:
isIdentifierRollbackEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isCheckNullability
public boolean isCheckNullability()Description copied from interface:SessionFactoryOptions
Should Hibernate validate that non-optional attributes have non-null values?- Specified by:
isCheckNullability
in interfaceSessionFactoryOptions
- See Also:
-
isInitializeLazyStateOutsideTransactionsEnabled
public boolean isInitializeLazyStateOutsideTransactionsEnabled()Description copied from interface:SessionFactoryOptions
Are detached proxies and collections fetched in a temporary persistence context?- Specified by:
isInitializeLazyStateOutsideTransactionsEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getTempTableDdlTransactionHandling
Deprecated.Description copied from interface:SessionFactoryOptions
This is unused and will be removed.- Specified by:
getTempTableDdlTransactionHandling
in interfaceSessionFactoryOptions
-
isDelayBatchFetchLoaderCreationsEnabled
public boolean isDelayBatchFetchLoaderCreationsEnabled()- Specified by:
isDelayBatchFetchLoaderCreationsEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getDefaultBatchFetchSize
public int getDefaultBatchFetchSize()Description copied from interface:SessionFactoryOptions
The default batch size for batch fetching in new sessions.- Specified by:
getDefaultBatchFetchSize
in interfaceSessionFactoryOptions
- See Also:
-
getMaximumFetchDepth
- Specified by:
getMaximumFetchDepth
in interfaceSessionFactoryOptions
- See Also:
-
isSubselectFetchEnabled
public boolean isSubselectFetchEnabled()Description copied from interface:SessionFactoryOptions
Is subselect fetching enabled by default in new sessions?- Specified by:
isSubselectFetchEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getDefaultNullPrecedence
Description copied from interface:SessionFactoryOptions
The default precedence of null values in sorted query results.- Specified by:
getDefaultNullPrecedence
in interfaceSessionFactoryOptions
- See Also:
-
isOrderUpdatesEnabled
public boolean isOrderUpdatesEnabled()- Specified by:
isOrderUpdatesEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isOrderInsertsEnabled
public boolean isOrderInsertsEnabled()- Specified by:
isOrderInsertsEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isMultiTenancyEnabled
public boolean isMultiTenancyEnabled()Description copied from interface:SessionFactoryOptions
Is there a multi-tenant connection provider configured?- Specified by:
isMultiTenancyEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getCurrentTenantIdentifierResolver
Description copied from interface:SessionFactoryOptions
Obtain a reference to the current tenant identifier resolver, if any, or returnnull
is there is no resolver configured.- Specified by:
getCurrentTenantIdentifierResolver
in interfaceSessionFactoryOptions
- See Also:
-
getDefaultTenantIdentifierJavaType
Description copied from interface:SessionFactoryOptions
The default tenant identifier java type to use, in case no explicit tenant identifier property is defined.- Specified by:
getDefaultTenantIdentifierJavaType
in interfaceSessionFactoryOptions
-
isJtaTrackByThread
public boolean isJtaTrackByThread()- Specified by:
isJtaTrackByThread
in interfaceSessionFactoryOptions
- See Also:
-
isNamedQueryStartupCheckingEnabled
public boolean isNamedQueryStartupCheckingEnabled()Description copied from interface:SessionFactoryOptions
Are named queries validated when the factory is created?- Specified by:
isNamedQueryStartupCheckingEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isAllowOutOfTransactionUpdateOperations
public boolean isAllowOutOfTransactionUpdateOperations()- Specified by:
isAllowOutOfTransactionUpdateOperations
in interfaceSessionFactoryOptions
- See Also:
-
isReleaseResourcesOnCloseEnabled
Deprecated.- Specified by:
isReleaseResourcesOnCloseEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isSecondLevelCacheEnabled
public boolean isSecondLevelCacheEnabled()Description copied from interface:SessionFactoryOptions
Is the second-level cache enabled?- Specified by:
isSecondLevelCacheEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isQueryCacheEnabled
public boolean isQueryCacheEnabled()Description copied from interface:SessionFactoryOptions
Is the query cache enabled?- Specified by:
isQueryCacheEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getQueryCacheLayout
Description copied from interface:SessionFactoryOptions
The layout of entries in the query cache.- Specified by:
getQueryCacheLayout
in interfaceSessionFactoryOptions
- See Also:
-
getTimestampsCacheFactory
Description copied from interface:SessionFactoryOptions
A factory for theTimestampsCache
used to track invalidation of cached query result sets.- Specified by:
getTimestampsCacheFactory
in interfaceSessionFactoryOptions
- See Also:
-
getCacheRegionPrefix
Description copied from interface:SessionFactoryOptions
A factory-specific prefix to be applied to all cache region names.- Specified by:
getCacheRegionPrefix
in interfaceSessionFactoryOptions
- See Also:
-
isMinimalPutsEnabled
public boolean isMinimalPutsEnabled()Description copied from interface:SessionFactoryOptions
Should we avoid overwriting cache entries with identical entries?This is useful if cache writes are much more expensive than cache reads.
- Specified by:
isMinimalPutsEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isStructuredCacheEntriesEnabled
public boolean isStructuredCacheEntriesEnabled()Description copied from interface:SessionFactoryOptions
Are second-level cache entries stored in a human-readable format.- Specified by:
isStructuredCacheEntriesEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isDirectReferenceCacheEntriesEnabled
public boolean isDirectReferenceCacheEntriesEnabled()- Specified by:
isDirectReferenceCacheEntriesEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isAutoEvictCollectionCache
public boolean isAutoEvictCollectionCache()- Specified by:
isAutoEvictCollectionCache
in interfaceSessionFactoryOptions
- See Also:
-
getSchemaAutoTooling
Deprecated.- Specified by:
getSchemaAutoTooling
in interfaceSessionFactoryOptions
- See Also:
-
getJdbcBatchSize
public int getJdbcBatchSize()Description copied from interface:SessionFactoryOptions
The default JDBC statement batch size for new sessions.- Specified by:
getJdbcBatchSize
in interfaceSessionFactoryOptions
- See Also:
-
isScrollableResultSetsEnabled
public boolean isScrollableResultSetsEnabled()- Specified by:
isScrollableResultSetsEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isGetGeneratedKeysEnabled
public boolean isGetGeneratedKeysEnabled()- Specified by:
isGetGeneratedKeysEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getJdbcFetchSize
- Specified by:
getJdbcFetchSize
in interfaceSessionFactoryOptions
- See Also:
-
getPhysicalConnectionHandlingMode
- Specified by:
getPhysicalConnectionHandlingMode
in interfaceSessionFactoryOptions
- See Also:
-
doesConnectionProviderDisableAutoCommit
public boolean doesConnectionProviderDisableAutoCommit()Description copied from interface:SessionFactoryOptions
Do newly-obtained JDBC connections come with autocommit already disabled?- Specified by:
doesConnectionProviderDisableAutoCommit
in interfaceSessionFactoryOptions
- See Also:
-
isCommentsEnabled
public boolean isCommentsEnabled()Description copied from interface:SessionFactoryOptions
Should explanatory comment text be added to the generated SQL?- Specified by:
isCommentsEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getCustomEntityDirtinessStrategy
Description copied from interface:SessionFactoryOptions
A custom strategy for determining if an entity instance is dirty.- Specified by:
getCustomEntityDirtinessStrategy
in interfaceSessionFactoryOptions
- See Also:
-
getEntityNameResolvers
Description copied from interface:SessionFactoryOptions
An array of custom entity name resolvers.- Specified by:
getEntityNameResolvers
in interfaceSessionFactoryOptions
- See Also:
-
getEntityNotFoundDelegate
Description copied from interface:SessionFactoryOptions
Get the delegate for handling entity-not-found exception conditions.Returns
StandardEntityNotFoundDelegate
by default.- Specified by:
getEntityNotFoundDelegate
in interfaceSessionFactoryOptions
- Returns:
- The specific
EntityNotFoundDelegate
to use, may benull
- See Also:
-
getCustomSqlFunctionMap
Description copied from interface:QueryEngineOptions
User defined SQM functions available for use in HQL and Criteria.Ultimately made available to the
SqmTranslatorFactory
for 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:
getCustomSqlFunctionMap
in interfaceQueryEngineOptions
-
setCheckNullability
public void setCheckNullability(boolean enabled) Description copied from interface:SessionFactoryOptions
Allows Bean Validation to disable null checking.- Specified by:
setCheckNullability
in interfaceSessionFactoryOptions
-
isPreferUserTransaction
public boolean isPreferUserTransaction()- Specified by:
isPreferUserTransaction
in interfaceSessionFactoryOptions
- See Also:
-
getStatelessInterceptorImplementorSupplier
Description copied from interface:SessionFactoryOptions
A statelessSupplier
for interceptor instances which are not shared between sessions created by this factory. This allows eachInterceptor
instances itself to hold state associated with its session.- Specified by:
getStatelessInterceptorImplementorSupplier
in interfaceSessionFactoryOptions
- Returns:
- The interceptor supplier to use by default. May be
null
. - See Also:
-
getCustomHqlTranslator
Description copied from interface:QueryEngineOptions
Translator for transforming HQL (as an Antlr parse tree) into an SQM tree.- Specified by:
getCustomHqlTranslator
in interfaceQueryEngineOptions
- See Also:
-
getCustomSqmTranslatorFactory
Description copied from interface:QueryEngineOptions
Factory 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:
getCustomSqmTranslatorFactory
in interfaceQueryEngineOptions
- See Also:
-
getJdbcTimeZone
Description copied from interface:SessionFactoryOptions
The timezone to use when interacting with JDBC.- Specified by:
getJdbcTimeZone
in interfaceSessionFactoryOptions
- See Also:
-
getCriteriaValueHandlingMode
- Specified by:
getCriteriaValueHandlingMode
in interfaceQueryEngineOptions
- See Also:
-
isCriteriaCopyTreeEnabled
public boolean isCriteriaCopyTreeEnabled()- Specified by:
isCriteriaCopyTreeEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isCriteriaPlanCacheEnabled
public boolean isCriteriaPlanCacheEnabled()- Specified by:
isCriteriaPlanCacheEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getNativeJdbcParametersIgnored
public boolean getNativeJdbcParametersIgnored()- Specified by:
getNativeJdbcParametersIgnored
in interfaceSessionFactoryOptions
- See Also:
-
getJpaCompliance
- Specified by:
getJpaCompliance
in interfaceQueryEngineOptions
- Specified by:
getJpaCompliance
in interfaceSessionFactoryOptions
- See Also:
-
isFailOnPaginationOverCollectionFetchEnabled
public boolean isFailOnPaginationOverCollectionFetchEnabled()- Specified by:
isFailOnPaginationOverCollectionFetchEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getImmutableEntityUpdateQueryHandlingMode
- Specified by:
getImmutableEntityUpdateQueryHandlingMode
in interfaceQueryEngineOptions
- See Also:
-
allowImmutableEntityUpdate
public boolean allowImmutableEntityUpdate()- Specified by:
allowImmutableEntityUpdate
in interfaceQueryEngineOptions
- See Also:
-
getDefaultCatalog
Description copied from interface:SessionFactoryOptions
The 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:
getDefaultCatalog
in interfaceSessionFactoryOptions
- Returns:
- The default catalog to use.
- See Also:
-
getDefaultSchema
Description copied from interface:SessionFactoryOptions
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).- Specified by:
getDefaultSchema
in interfaceSessionFactoryOptions
- Returns:
- The default schema to use.
- See Also:
-
inClauseParameterPaddingEnabled
public boolean inClauseParameterPaddingEnabled()- Specified by:
inClauseParameterPaddingEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isJsonFunctionsEnabled
public boolean isJsonFunctionsEnabled()- Specified by:
isJsonFunctionsEnabled
in interfaceQueryEngineOptions
- See Also:
-
isXmlFunctionsEnabled
public boolean isXmlFunctionsEnabled()- Specified by:
isXmlFunctionsEnabled
in interfaceQueryEngineOptions
- See Also:
-
isPortableIntegerDivisionEnabled
public boolean isPortableIntegerDivisionEnabled()Description copied from interface:QueryEngineOptions
Should HQL integer division HQL should produce an integer on Oracle, MySQL, and MariaDB, where the/
operator produces a non-integer.- Specified by:
isPortableIntegerDivisionEnabled
in interfaceQueryEngineOptions
- See Also:
-
getQueryStatisticsMaxSize
public int getQueryStatisticsMaxSize()Description copied from interface:SessionFactoryOptions
The number ofQueryStatistics
entries that should be stored byStatistics
.- Specified by:
getQueryStatisticsMaxSize
in interfaceSessionFactoryOptions
- See Also:
-
areJPACallbacksEnabled
public boolean areJPACallbacksEnabled()Description copied from interface:SessionFactoryOptions
Should JPA entity lifecycle callbacks be processed by theEventEngine
andCallbackRegistry
?- Specified by:
areJPACallbacksEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isCollectionsInDefaultFetchGroupEnabled
public boolean isCollectionsInDefaultFetchGroupEnabled()- Specified by:
isCollectionsInDefaultFetchGroupEnabled
in interfaceSessionFactoryOptions
-
isUnownedAssociationTransientCheck
public boolean isUnownedAssociationTransientCheck()- Specified by:
isUnownedAssociationTransientCheck
in interfaceSessionFactoryOptions
- See Also:
-
isUseOfJdbcNamedParametersEnabled
public boolean isUseOfJdbcNamedParametersEnabled()Description copied from interface:SessionFactoryOptions
Controls whether Hibernate should try to map named parameter names specified in aProcedureCall
orStoredProcedureQuery
to 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 tofalse
simply circumvents that check and always performs positional binding.- Specified by:
isUseOfJdbcNamedParametersEnabled
in interfaceSessionFactoryOptions
- Returns:
true
indicates we should try to useCallableStatement
named parameters, if the Dialect says it is supported;false
indicates that we should never try to useCallableStatement
named parameters, regardless of what the Dialect says.- See Also:
-
getCustomSqmFunctionRegistry
Description copied from interface:QueryEngineOptions
User 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:
getCustomSqmFunctionRegistry
in interfaceQueryEngineOptions
-
getPreferredSqlTypeCodeForBoolean
public int getPreferredSqlTypeCodeForBoolean()- Specified by:
getPreferredSqlTypeCodeForBoolean
in interfaceSessionFactoryOptions
- See Also:
-
getPreferredSqlTypeCodeForDuration
public int getPreferredSqlTypeCodeForDuration()- Specified by:
getPreferredSqlTypeCodeForDuration
in interfaceSessionFactoryOptions
- See Also:
-
getPreferredSqlTypeCodeForUuid
public int getPreferredSqlTypeCodeForUuid()- Specified by:
getPreferredSqlTypeCodeForUuid
in interfaceSessionFactoryOptions
- See Also:
-
getPreferredSqlTypeCodeForInstant
public int getPreferredSqlTypeCodeForInstant()- Specified by:
getPreferredSqlTypeCodeForInstant
in interfaceSessionFactoryOptions
- See Also:
-
getPreferredSqlTypeCodeForArray
public int getPreferredSqlTypeCodeForArray()- Specified by:
getPreferredSqlTypeCodeForArray
in interfaceSessionFactoryOptions
- See Also:
-
getDefaultTimeZoneStorageStrategy
- Specified by:
getDefaultTimeZoneStorageStrategy
in interfaceSessionFactoryOptions
- See Also:
-
isPreferJavaTimeJdbcTypesEnabled
public boolean isPreferJavaTimeJdbcTypesEnabled()- Specified by:
isPreferJavaTimeJdbcTypesEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isPreferNativeEnumTypesEnabled
public boolean isPreferNativeEnumTypesEnabled()- Specified by:
isPreferNativeEnumTypesEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getJsonFormatMapper
Description copied from interface:SessionFactoryOptions
The format mapper to use for serializing/deserializing JSON data.- Specified by:
getJsonFormatMapper
in interfaceSessionFactoryOptions
- See Also:
-
getXmlFormatMapper
Description copied from interface:SessionFactoryOptions
The format mapper to use for serializing/deserializing XML data.- Specified by:
getXmlFormatMapper
in interfaceSessionFactoryOptions
- See Also:
-
isXmlFormatMapperLegacyFormatEnabled
public boolean isXmlFormatMapperLegacyFormatEnabled()Description copied from interface:SessionFactoryOptions
Whether to use the legacy format for serializing/deserializing XML data.- Specified by:
isXmlFormatMapperLegacyFormatEnabled
in interfaceSessionFactoryOptions
- See Also:
-
isPassProcedureParameterNames
public boolean isPassProcedureParameterNames()- Specified by:
isPassProcedureParameterNames
in interfaceSessionFactoryOptions
- See Also:
-
isPreferJdbcDatetimeTypesInNativeQueriesEnabled
public boolean isPreferJdbcDatetimeTypesInNativeQueriesEnabled()Description copied from interface:SessionFactoryOptions
Should native queries return JDBC datetime types instead of usingjava.time
types.- Specified by:
isPreferJdbcDatetimeTypesInNativeQueriesEnabled
in interfaceSessionFactoryOptions
- See Also:
-
getCacheStoreMode
Description copied from interface:SessionFactoryOptions
Determine the defaultCacheStoreMode
, given the current session properties.- Specified by:
getCacheStoreMode
in interfaceSessionFactoryOptions
- Parameters:
properties
- the Session properties- Returns:
- either the
CacheStoreMode
as defined in the session-specific properties, or as defined in the properties shared across all sessions (the defaults).
-
getCacheRetrieveMode
Description copied from interface:SessionFactoryOptions
Determine the defaultCacheRetrieveMode
, given the current session properties.- Specified by:
getCacheRetrieveMode
in interfaceSessionFactoryOptions
- Parameters:
properties
- the Session properties- Returns:
- either the
CacheRetrieveMode
as defined in the session-specific properties, or as defined in the properties shared across all sessions (the defaults).
-
getDefaultSessionProperties
Description copied from interface:SessionFactoryOptions
Default properties for brand-new sessions.- Specified by:
getDefaultSessionProperties
in interfaceSessionFactoryOptions
- See Also:
-
getInitialSessionCacheMode
Description copied from interface:SessionFactoryOptions
The default initialCacheMode
for new sessions. -
getInitialSessionFlushMode
Description copied from interface:SessionFactoryOptions
The default initialFlushMode
for new sessions.- Specified by:
getInitialSessionFlushMode
in interfaceSessionFactoryOptions
- See Also:
-
getDefaultLockOptions
Description copied from interface:SessionFactoryOptions
The default lock scope and lock timeout.- Specified by:
getDefaultLockOptions
in interfaceSessionFactoryOptions
- See Also:
-