Package org.hibernate.boot.spi
Class AbstractDelegatingSessionFactoryOptions
- java.lang.Object
-
- org.hibernate.boot.spi.AbstractDelegatingSessionFactoryOptions
-
- All Implemented Interfaces:
SessionFactoryOptions
public class AbstractDelegatingSessionFactoryOptions extends java.lang.Object implements SessionFactoryOptions
Convenience base class for custom implementors of SessionFactoryOptions, using delegation
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingSessionFactoryOptions(SessionFactoryOptions delegate)
-
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
isPostInsertIdentifierDelayableEnabled, isStrictJpaQueryLanguageCompliance
-
-
-
-
Constructor Detail
-
AbstractDelegatingSessionFactoryOptions
public AbstractDelegatingSessionFactoryOptions(SessionFactoryOptions delegate)
-
-
Method Detail
-
delegate
protected SessionFactoryOptions delegate()
-
getUuid
public java.lang.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
-
getBeanManagerReference
public java.lang.Object getBeanManagerReference()
- Specified by:
getBeanManagerReferencein interfaceSessionFactoryOptions
-
getValidatorFactoryReference
public java.lang.Object getValidatorFactoryReference()
- Specified by:
getValidatorFactoryReferencein interfaceSessionFactoryOptions
-
getSessionFactoryName
public java.lang.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
-
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
-
getDefaultEntityMode
public EntityMode getDefaultEntityMode()
- Specified by:
getDefaultEntityModein interfaceSessionFactoryOptions
-
getEntityTuplizerFactory
public EntityTuplizerFactory getEntityTuplizerFactory()
- Specified by:
getEntityTuplizerFactoryin interfaceSessionFactoryOptions
-
isCheckNullability
public boolean isCheckNullability()
- Specified by:
isCheckNullabilityin interfaceSessionFactoryOptions
-
isInitializeLazyStateOutsideTransactionsEnabled
public boolean isInitializeLazyStateOutsideTransactionsEnabled()
- Specified by:
isInitializeLazyStateOutsideTransactionsEnabledin interfaceSessionFactoryOptions
-
getMultiTableBulkIdStrategy
public MultiTableBulkIdStrategy getMultiTableBulkIdStrategy()
- Specified by:
getMultiTableBulkIdStrategyin 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 java.lang.Integer getMaximumFetchDepth()
- Specified by:
getMaximumFetchDepthin 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
-
getMultiTenancyStrategy
public MultiTenancyStrategy getMultiTenancyStrategy()
- Specified by:
getMultiTenancyStrategyin interfaceSessionFactoryOptions
-
getCurrentTenantIdentifierResolver
public CurrentTenantIdentifierResolver getCurrentTenantIdentifierResolver()
- Specified by:
getCurrentTenantIdentifierResolverin interfaceSessionFactoryOptions
-
isJtaTrackByThread
public boolean isJtaTrackByThread()
- Specified by:
isJtaTrackByThreadin interfaceSessionFactoryOptions
-
getQuerySubstitutions
public java.util.Map getQuerySubstitutions()
- Specified by:
getQuerySubstitutionsin interfaceSessionFactoryOptions
-
isNamedQueryStartupCheckingEnabled
public boolean isNamedQueryStartupCheckingEnabled()
- Specified by:
isNamedQueryStartupCheckingEnabledin interfaceSessionFactoryOptions
-
isConventionalJavaConstants
public boolean isConventionalJavaConstants()
- Specified by:
isConventionalJavaConstantsin interfaceSessionFactoryOptions
-
isProcedureParameterNullPassingEnabled
public boolean isProcedureParameterNullPassingEnabled()
- Specified by:
isProcedureParameterNullPassingEnabledin interfaceSessionFactoryOptions
-
isCollectionJoinSubqueryRewriteEnabled
public boolean isCollectionJoinSubqueryRewriteEnabled()
- Specified by:
isCollectionJoinSubqueryRewriteEnabledin interfaceSessionFactoryOptions
-
isAllowOutOfTransactionUpdateOperations
public boolean isAllowOutOfTransactionUpdateOperations()
- Specified by:
isAllowOutOfTransactionUpdateOperationsin interfaceSessionFactoryOptions
-
isReleaseResourcesOnCloseEnabled
public boolean isReleaseResourcesOnCloseEnabled()
- Specified by:
isReleaseResourcesOnCloseEnabledin interfaceSessionFactoryOptions
-
isSecondLevelCacheEnabled
public boolean isSecondLevelCacheEnabled()
- Specified by:
isSecondLevelCacheEnabledin interfaceSessionFactoryOptions
-
isQueryCacheEnabled
public boolean isQueryCacheEnabled()
- Specified by:
isQueryCacheEnabledin interfaceSessionFactoryOptions
-
getTimestampsCacheFactory
public TimestampsCacheFactory getTimestampsCacheFactory()
- Specified by:
getTimestampsCacheFactoryin interfaceSessionFactoryOptions
-
getCacheRegionPrefix
public java.lang.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
-
isWrapResultSetsEnabled
public boolean isWrapResultSetsEnabled()
- Specified by:
isWrapResultSetsEnabledin interfaceSessionFactoryOptions
-
isGetGeneratedKeysEnabled
public boolean isGetGeneratedKeysEnabled()
- Specified by:
isGetGeneratedKeysEnabledin interfaceSessionFactoryOptions
-
getJdbcFetchSize
public java.lang.Integer getJdbcFetchSize()
- Specified by:
getJdbcFetchSizein interfaceSessionFactoryOptions
-
getPhysicalConnectionHandlingMode
public PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
- Specified by:
getPhysicalConnectionHandlingModein interfaceSessionFactoryOptions
-
doesConnectionProviderDisableAutoCommit
public boolean doesConnectionProviderDisableAutoCommit()
- Specified by:
doesConnectionProviderDisableAutoCommitin interfaceSessionFactoryOptions
-
getConnectionReleaseMode
public ConnectionReleaseMode getConnectionReleaseMode()
- Specified by:
getConnectionReleaseModein 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 java.util.Map<java.lang.String,SQLFunction> getCustomSqlFunctionMap()
- Specified by:
getCustomSqlFunctionMapin interfaceSessionFactoryOptions
-
setCheckNullability
public void setCheckNullability(boolean enabled)
- Specified by:
setCheckNullabilityin interfaceSessionFactoryOptions
-
isPreferUserTransaction
public boolean isPreferUserTransaction()
- Specified by:
isPreferUserTransactionin interfaceSessionFactoryOptions
-
getStatelessInterceptorImplementor
public java.lang.Class<? extends Interceptor> getStatelessInterceptorImplementor()
Description copied from interface:SessionFactoryOptionsGet the interceptor to use by default for all sessions opened from this factory.- Specified by:
getStatelessInterceptorImplementorin interfaceSessionFactoryOptions- Returns:
- The interceptor to use factory wide. May be
null
-
getStatelessInterceptorImplementorSupplier
public java.util.function.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
-
getJdbcTimeZone
public java.util.TimeZone getJdbcTimeZone()
- Specified by:
getJdbcTimeZonein interfaceSessionFactoryOptions
-
isQueryParametersValidationEnabled
public boolean isQueryParametersValidationEnabled()
- Specified by:
isQueryParametersValidationEnabledin interfaceSessionFactoryOptions
-
getCriteriaLiteralHandlingMode
public LiteralHandlingMode getCriteriaLiteralHandlingMode()
- Specified by:
getCriteriaLiteralHandlingModein interfaceSessionFactoryOptions
-
jdbcStyleParamsZeroBased
public boolean jdbcStyleParamsZeroBased()
- Specified by:
jdbcStyleParamsZeroBasedin interfaceSessionFactoryOptions
-
getJpaCompliance
public JpaCompliance getJpaCompliance()
- Specified by:
getJpaCompliancein interfaceSessionFactoryOptions
-
isFailOnPaginationOverCollectionFetchEnabled
public boolean isFailOnPaginationOverCollectionFetchEnabled()
- Specified by:
isFailOnPaginationOverCollectionFetchEnabledin interfaceSessionFactoryOptions
-
getImmutableEntityUpdateQueryHandlingMode
public ImmutableEntityUpdateQueryHandlingMode getImmutableEntityUpdateQueryHandlingMode()
- Specified by:
getImmutableEntityUpdateQueryHandlingModein interfaceSessionFactoryOptions
-
getDefaultCatalog
public java.lang.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 java.lang.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.
-
inClauseParameterPaddingEnabled
public boolean inClauseParameterPaddingEnabled()
- Specified by:
inClauseParameterPaddingEnabledin interfaceSessionFactoryOptions
-
nativeExceptionHandling51Compliance
public boolean nativeExceptionHandling51Compliance()
- Specified by:
nativeExceptionHandling51Compliancein interfaceSessionFactoryOptions
-
getQueryStatisticsMaxSize
public int getQueryStatisticsMaxSize()
- Specified by:
getQueryStatisticsMaxSizein interfaceSessionFactoryOptions
-
areJPACallbacksEnabled
public boolean areJPACallbacksEnabled()
- Specified by:
areJPACallbacksEnabledin interfaceSessionFactoryOptions
-
isEnhancementAsProxyEnabled
public boolean isEnhancementAsProxyEnabled()
Description copied from interface:SessionFactoryOptionsCan bytecode-enhanced entity classes be used as a "proxy"?- Specified by:
isEnhancementAsProxyEnabledin interfaceSessionFactoryOptions
-
isCollectionsInDefaultFetchGroupEnabled
public boolean isCollectionsInDefaultFetchGroupEnabled()
- Specified by:
isCollectionsInDefaultFetchGroupEnabledin interfaceSessionFactoryOptions
-
isOmitJoinOfSuperclassTablesEnabled
public boolean isOmitJoinOfSuperclassTablesEnabled()
- Specified by:
isOmitJoinOfSuperclassTablesEnabledin interfaceSessionFactoryOptions
-
-