public class SessionFactoryOptionsBuilder extends Object implements SessionFactoryOptions
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 (SessionFactoryBuilder.build()
)Constructor and Description |
---|
SessionFactoryOptionsBuilder(StandardServiceRegistry serviceRegistry,
BootstrapContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStrictJpaQueryLanguageCompliance
public SessionFactoryOptionsBuilder(StandardServiceRegistry serviceRegistry, BootstrapContext context)
public String getUuid()
SessionFactoryOptions
SessionFactoryImplementor.getUuid()
.getUuid
in interface SessionFactoryOptions
SessionFactoryRegistry.getSessionFactory(java.lang.String)
,
SessionFactoryImplementor.getUuid()
public StandardServiceRegistry getServiceRegistry()
SessionFactoryOptions
getServiceRegistry
in interface SessionFactoryOptions
public boolean isJpaBootstrap()
SessionFactoryOptions
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 boolean isAllowOutOfTransactionUpdateOperations()
isAllowOutOfTransactionUpdateOperations
in interface SessionFactoryOptions
public boolean isReleaseResourcesOnCloseEnabled()
isReleaseResourcesOnCloseEnabled
in interface SessionFactoryOptions
public Object getBeanManagerReference()
getBeanManagerReference
in interface SessionFactoryOptions
public Object getValidatorFactoryReference()
getValidatorFactoryReference
in interface SessionFactoryOptions
public String getSessionFactoryName()
SessionFactoryOptions
SessionFactoryOptions.isSessionFactoryNameAlsoJndiName()
getSessionFactoryName
in interface SessionFactoryOptions
public boolean isSessionFactoryNameAlsoJndiName()
SessionFactoryOptions
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
getInterceptor
in interface SessionFactoryOptions
null
public Class<? extends Interceptor> getStatelessInterceptorImplementor()
SessionFactoryOptions
getStatelessInterceptorImplementor
in interface SessionFactoryOptions
null
public Supplier<? extends Interceptor> getStatelessInterceptorImplementorSupplier()
SessionFactoryOptions
getStatelessInterceptorImplementorSupplier
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 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 void setCheckNullability(boolean enabled)
setCheckNullability
in interface SessionFactoryOptions
public ConnectionReleaseMode getConnectionReleaseMode()
getConnectionReleaseMode
in interface SessionFactoryOptions
public boolean doesConnectionProviderDisableAutoCommit()
doesConnectionProviderDisableAutoCommit
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
getEntityNotFoundDelegate
in interface SessionFactoryOptions
null
public Map<String,SQLFunction> getCustomSqlFunctionMap()
getCustomSqlFunctionMap
in interface SessionFactoryOptions
public boolean isPreferUserTransaction()
isPreferUserTransaction
in interface SessionFactoryOptions
public TimeZone getJdbcTimeZone()
getJdbcTimeZone
in interface SessionFactoryOptions
public boolean isQueryParametersValidationEnabled()
isQueryParametersValidationEnabled
in interface SessionFactoryOptions
public LiteralHandlingMode getCriteriaLiteralHandlingMode()
getCriteriaLiteralHandlingMode
in interface SessionFactoryOptions
public ImmutableEntityUpdateQueryHandlingMode getImmutableEntityUpdateQueryHandlingMode()
getImmutableEntityUpdateQueryHandlingMode
in interface SessionFactoryOptions
public boolean jdbcStyleParamsZeroBased()
jdbcStyleParamsZeroBased
in interface SessionFactoryOptions
public boolean isFailOnPaginationOverCollectionFetchEnabled()
isFailOnPaginationOverCollectionFetchEnabled
in interface SessionFactoryOptions
public boolean inClauseParameterPaddingEnabled()
inClauseParameterPaddingEnabled
in interface SessionFactoryOptions
public JpaCompliance getJpaCompliance()
getJpaCompliance
in interface SessionFactoryOptions
public boolean nativeExceptionHandling51Compliance()
nativeExceptionHandling51Compliance
in interface SessionFactoryOptions
public void applyBeanManager(Object beanManager)
public void applyValidatorFactory(Object validatorFactory)
public void applySessionFactoryName(String sessionFactoryName)
public void enableSessionFactoryNameAsJndiName(boolean isJndiName)
public void enableSessionAutoClosing(boolean autoClosingEnabled)
public void enableSessionAutoFlushing(boolean flushBeforeCompletionEnabled)
public void enableJtaTrackingByThread(boolean enabled)
public void enablePreferUserTransaction(boolean preferUserTransaction)
public void enableStatisticsSupport(boolean enabled)
public void addSessionFactoryObservers(SessionFactoryObserver... observers)
public void applyInterceptor(Interceptor interceptor)
public void applyStatelessInterceptor(Class<? extends Interceptor> statelessInterceptorClass)
public void applyStatelessInterceptorSupplier(Supplier<? extends Interceptor> statelessInterceptorSupplier)
public void applyStatementInspector(StatementInspector statementInspector)
public void applyCustomEntityDirtinessStrategy(CustomEntityDirtinessStrategy strategy)
public void addEntityNameResolvers(EntityNameResolver... entityNameResolvers)
public void applyEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate)
public void enableIdentifierRollbackSupport(boolean enabled)
public void applyDefaultEntityMode(EntityMode entityMode)
public void enableNullabilityChecking(boolean enabled)
public void allowLazyInitializationOutsideTransaction(boolean enabled)
public void applyEntityTuplizerFactory(EntityTuplizerFactory entityTuplizerFactory)
public void applyEntityTuplizer(EntityMode entityMode, Class<? extends EntityTuplizer> tuplizerClass)
public void applyMultiTableBulkIdStrategy(MultiTableBulkIdStrategy strategy)
public void applyTempTableDdlTransactionHandling(TempTableDdlTransactionHandling handling)
public void applyBatchFetchStyle(BatchFetchStyle style)
public void applyDelayedEntityLoaderCreations(boolean delay)
public void applyDefaultBatchFetchSize(int size)
public void applyMaximumFetchDepth(int depth)
public void applyDefaultNullPrecedence(NullPrecedence nullPrecedence)
public void enableOrderingOfInserts(boolean enabled)
public void enableOrderingOfUpdates(boolean enabled)
public void applyMultiTenancyStrategy(MultiTenancyStrategy strategy)
public void applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver resolver)
public void applyQuerySubstitutions(Map substitutions)
public void enableNamedQueryCheckingOnStartup(boolean enabled)
public void enableSecondLevelCacheSupport(boolean enabled)
public void enableQueryCacheSupport(boolean enabled)
public void applyTimestampsCacheFactory(TimestampsCacheFactory factory)
public void applyCacheRegionPrefix(String prefix)
public void enableMinimalPuts(boolean enabled)
public void enabledStructuredCacheEntries(boolean enabled)
public void allowDirectReferenceCacheEntries(boolean enabled)
public void enableAutoEvictCollectionCaches(boolean enabled)
public void applyJdbcBatchSize(int size)
public void enableJdbcBatchingForVersionedEntities(boolean enabled)
public void enableScrollableResultSupport(boolean enabled)
public void enableResultSetWrappingSupport(boolean enabled)
public void enableGeneratedKeysSupport(boolean enabled)
public void applyJdbcFetchSize(int size)
public void applyConnectionHandlingMode(PhysicalConnectionHandlingMode mode)
public void applyConnectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
public void applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit)
public void enableCommentsSupport(boolean enabled)
public void applySqlFunction(String registrationName, SQLFunction sqlFunction)
public void allowOutOfTransactionUpdateOperations(boolean allow)
public void enableReleaseResourcesOnClose(boolean enable)
public void enableStrictJpaQueryLanguageCompliance(boolean enabled)
public void enableJpaQueryCompliance(boolean enabled)
public void enableJpaTransactionCompliance(boolean enabled)
public void enableJpaListCompliance(boolean enabled)
public void enableJpaClosedCompliance(boolean enabled)
public void enableJpaProxyCompliance(boolean enabled)
public void enableJpaCachingCompliance(boolean enabled)
public void disableRefreshDetachedEntity()
public void disableJtaTransactionAccess()
public void enableJdbcStyleParamsZeroBased()
public SessionFactoryOptions buildOptions()
Copyright © 2019 JBoss by Red Hat. All rights reserved.