public class AbstractDelegatingSessionFactoryOptions extends Object implements SessionFactoryOptions
Convenience base class for custom implementors of SessionFactoryOptions, using delegation
Constructor and Description |
---|
AbstractDelegatingSessionFactoryOptions(SessionFactoryOptions delegate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStrictJpaQueryLanguageCompliance
public AbstractDelegatingSessionFactoryOptions(SessionFactoryOptions delegate)
protected SessionFactoryOptions delegate()
public String getUuid()
SessionFactoryOptions
Get the UUID unique to this SessionFactoryOptions. Will be the
same value available as SessionFactoryImplementor.getUuid()
.
getUuid
in interface SessionFactoryOptions
SessionFactoryRegistry.getSessionFactory(java.lang.String)
,
SessionFactoryImplementor.getUuid()
public StandardServiceRegistry getServiceRegistry()
SessionFactoryOptions
The service registry to use in building the factory.
getServiceRegistry
in interface SessionFactoryOptions
public boolean isJpaBootstrap()
SessionFactoryOptions
Was building of the SessionFactory initiated through JPA bootstrapping, or through Hibernate’s native bootstrapping?
isJpaBootstrap
in interface SessionFactoryOptions
true
indicates the SessionFactory was built through JPA
bootstrapping; false
indicates it was built through native bootstrapping.public boolean isJtaTransactionAccessEnabled()
isJtaTransactionAccessEnabled
in interface SessionFactoryOptions
public boolean isAllowRefreshDetachedEntity()
isAllowRefreshDetachedEntity
in interface SessionFactoryOptions
public Object getBeanManagerReference()
getBeanManagerReference
in interface SessionFactoryOptions
public Object getValidatorFactoryReference()
getValidatorFactoryReference
in interface SessionFactoryOptions
public String getSessionFactoryName()
SessionFactoryOptions
The name to be used for the SessionFactory. This is use both in:<ul>
<li>in-VM serialization</li>
<li>JNDI binding, depending on SessionFactoryOptions.isSessionFactoryNameAlsoJndiName()
</li>
</ul>
getSessionFactoryName
in interface SessionFactoryOptions
public boolean isSessionFactoryNameAlsoJndiName()
SessionFactoryOptions
Is the SesssionFactory name
also a JNDI name, indicating we
should bind it into JNDI?
isSessionFactoryNameAlsoJndiName
in interface SessionFactoryOptions
true
if the SessionFactory name is also a JNDI name; false
otherwise.public boolean isFlushBeforeCompletionEnabled()
isFlushBeforeCompletionEnabled
in interface SessionFactoryOptions
public boolean isAutoCloseSessionEnabled()
isAutoCloseSessionEnabled
in interface SessionFactoryOptions
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface SessionFactoryOptions
public Interceptor getInterceptor()
SessionFactoryOptions
Get the interceptor to use by default for all sessions opened from this factory.
getInterceptor
in interface SessionFactoryOptions
null
public StatementInspector getStatementInspector()
getStatementInspector
in interface SessionFactoryOptions
public SessionFactoryObserver[] getSessionFactoryObservers()
getSessionFactoryObservers
in interface SessionFactoryOptions
public BaselineSessionEventsListenerBuilder getBaselineSessionEventsListenerBuilder()
getBaselineSessionEventsListenerBuilder
in interface SessionFactoryOptions
public boolean isIdentifierRollbackEnabled()
isIdentifierRollbackEnabled
in interface SessionFactoryOptions
public EntityMode getDefaultEntityMode()
getDefaultEntityMode
in interface SessionFactoryOptions
public EntityTuplizerFactory getEntityTuplizerFactory()
getEntityTuplizerFactory
in interface SessionFactoryOptions
public boolean isCheckNullability()
isCheckNullability
in interface SessionFactoryOptions
public boolean isInitializeLazyStateOutsideTransactionsEnabled()
isInitializeLazyStateOutsideTransactionsEnabled
in interface SessionFactoryOptions
public MultiTableBulkIdStrategy getMultiTableBulkIdStrategy()
getMultiTableBulkIdStrategy
in interface SessionFactoryOptions
public TempTableDdlTransactionHandling getTempTableDdlTransactionHandling()
getTempTableDdlTransactionHandling
in interface SessionFactoryOptions
public BatchFetchStyle getBatchFetchStyle()
getBatchFetchStyle
in interface SessionFactoryOptions
public boolean isDelayBatchFetchLoaderCreationsEnabled()
isDelayBatchFetchLoaderCreationsEnabled
in interface SessionFactoryOptions
public int getDefaultBatchFetchSize()
getDefaultBatchFetchSize
in interface SessionFactoryOptions
public Integer getMaximumFetchDepth()
getMaximumFetchDepth
in interface SessionFactoryOptions
public NullPrecedence getDefaultNullPrecedence()
getDefaultNullPrecedence
in interface SessionFactoryOptions
public boolean isOrderUpdatesEnabled()
isOrderUpdatesEnabled
in interface SessionFactoryOptions
public boolean isOrderInsertsEnabled()
isOrderInsertsEnabled
in interface SessionFactoryOptions
public MultiTenancyStrategy getMultiTenancyStrategy()
getMultiTenancyStrategy
in interface SessionFactoryOptions
public CurrentTenantIdentifierResolver getCurrentTenantIdentifierResolver()
getCurrentTenantIdentifierResolver
in interface SessionFactoryOptions
public boolean isJtaTrackByThread()
isJtaTrackByThread
in interface SessionFactoryOptions
public Map getQuerySubstitutions()
getQuerySubstitutions
in interface SessionFactoryOptions
public boolean isNamedQueryStartupCheckingEnabled()
isNamedQueryStartupCheckingEnabled
in interface SessionFactoryOptions
public boolean isConventionalJavaConstants()
isConventionalJavaConstants
in interface SessionFactoryOptions
public boolean isProcedureParameterNullPassingEnabled()
isProcedureParameterNullPassingEnabled
in interface SessionFactoryOptions
public boolean isCollectionJoinSubqueryRewriteEnabled()
isCollectionJoinSubqueryRewriteEnabled
in interface SessionFactoryOptions
public boolean isAllowOutOfTransactionUpdateOperations()
isAllowOutOfTransactionUpdateOperations
in interface SessionFactoryOptions
public boolean isReleaseResourcesOnCloseEnabled()
isReleaseResourcesOnCloseEnabled
in interface SessionFactoryOptions
public boolean isSecondLevelCacheEnabled()
isSecondLevelCacheEnabled
in interface SessionFactoryOptions
public boolean isQueryCacheEnabled()
isQueryCacheEnabled
in interface SessionFactoryOptions
public TimestampsCacheFactory getTimestampsCacheFactory()
getTimestampsCacheFactory
in interface SessionFactoryOptions
public String getCacheRegionPrefix()
getCacheRegionPrefix
in interface SessionFactoryOptions
public boolean isMinimalPutsEnabled()
isMinimalPutsEnabled
in interface SessionFactoryOptions
public boolean isStructuredCacheEntriesEnabled()
isStructuredCacheEntriesEnabled
in interface SessionFactoryOptions
public boolean isDirectReferenceCacheEntriesEnabled()
isDirectReferenceCacheEntriesEnabled
in interface SessionFactoryOptions
public boolean isAutoEvictCollectionCache()
isAutoEvictCollectionCache
in interface SessionFactoryOptions
public SchemaAutoTooling getSchemaAutoTooling()
getSchemaAutoTooling
in interface SessionFactoryOptions
public int getJdbcBatchSize()
getJdbcBatchSize
in interface SessionFactoryOptions
public boolean isJdbcBatchVersionedData()
isJdbcBatchVersionedData
in interface SessionFactoryOptions
public boolean isScrollableResultSetsEnabled()
isScrollableResultSetsEnabled
in interface SessionFactoryOptions
public boolean isWrapResultSetsEnabled()
isWrapResultSetsEnabled
in interface SessionFactoryOptions
public boolean isGetGeneratedKeysEnabled()
isGetGeneratedKeysEnabled
in interface SessionFactoryOptions
public Integer getJdbcFetchSize()
getJdbcFetchSize
in interface SessionFactoryOptions
public PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
getPhysicalConnectionHandlingMode
in interface SessionFactoryOptions
public boolean doesConnectionProviderDisableAutoCommit()
doesConnectionProviderDisableAutoCommit
in interface SessionFactoryOptions
public ConnectionReleaseMode getConnectionReleaseMode()
getConnectionReleaseMode
in interface SessionFactoryOptions
public boolean isCommentsEnabled()
isCommentsEnabled
in interface SessionFactoryOptions
public CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
getCustomEntityDirtinessStrategy
in interface SessionFactoryOptions
public EntityNameResolver[] getEntityNameResolvers()
getEntityNameResolvers
in interface SessionFactoryOptions
public EntityNotFoundDelegate getEntityNotFoundDelegate()
SessionFactoryOptions
Get the delegate for handling entity-not-found exception conditions.
getEntityNotFoundDelegate
in interface SessionFactoryOptions
null
public Map<String,SQLFunction> getCustomSqlFunctionMap()
getCustomSqlFunctionMap
in interface SessionFactoryOptions
public void setCheckNullability(boolean enabled)
setCheckNullability
in interface SessionFactoryOptions
public boolean isPreferUserTransaction()
isPreferUserTransaction
in interface SessionFactoryOptions
public Class<? extends Interceptor> getStatelessInterceptorImplementor()
SessionFactoryOptions
Get the interceptor to use by default for all sessions opened from this factory.
getStatelessInterceptorImplementor
in interface SessionFactoryOptions
null
public Supplier<? extends Interceptor> getStatelessInterceptorImplementorSupplier()
SessionFactoryOptions
Get the interceptor to use by default for all sessions opened from this factory.
getStatelessInterceptorImplementorSupplier
in interface SessionFactoryOptions
null
public TimeZone getJdbcTimeZone()
getJdbcTimeZone
in interface SessionFactoryOptions
public boolean isQueryParametersValidationEnabled()
isQueryParametersValidationEnabled
in interface SessionFactoryOptions
public LiteralHandlingMode getCriteriaLiteralHandlingMode()
getCriteriaLiteralHandlingMode
in interface SessionFactoryOptions
public boolean jdbcStyleParamsZeroBased()
jdbcStyleParamsZeroBased
in interface SessionFactoryOptions
public JpaCompliance getJpaCompliance()
getJpaCompliance
in interface SessionFactoryOptions
public boolean isFailOnPaginationOverCollectionFetchEnabled()
isFailOnPaginationOverCollectionFetchEnabled
in interface SessionFactoryOptions
public ImmutableEntityUpdateQueryHandlingMode getImmutableEntityUpdateQueryHandlingMode()
getImmutableEntityUpdateQueryHandlingMode
in interface SessionFactoryOptions
public boolean inClauseParameterPaddingEnabled()
inClauseParameterPaddingEnabled
in interface SessionFactoryOptions
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.