类 SessionFactoryOptionsBuilder
- java.lang.Object
-
- org.hibernate.boot.internal.SessionFactoryOptionsBuilder
-
- 所有已实现的接口:
SessionFactoryOptions
public class SessionFactoryOptionsBuilder extends Object implements SessionFactoryOptions
In-flight state ofSessionFactoryOptionsduringSessionFactoryBuilderprocessing. 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())- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 SessionFactoryOptionsBuilder(StandardServiceRegistry serviceRegistry, BootstrapContext context)
-
方法概要
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.boot.spi.SessionFactoryOptions
isPostInsertIdentifierDelayableEnabled, isStrictJpaQueryLanguageCompliance
-
-
-
-
构造器详细资料
-
SessionFactoryOptionsBuilder
public SessionFactoryOptionsBuilder(StandardServiceRegistry serviceRegistry, BootstrapContext context)
-
-
方法详细资料
-
getUuid
public String getUuid()
从接口复制的说明:SessionFactoryOptionsGet the UUID unique to this SessionFactoryOptions. Will be the same value available asSessionFactoryImplementor.getUuid().- 指定者:
getUuid在接口中SessionFactoryOptions- 返回:
- The UUID for this SessionFactory.
- 另请参阅:
SessionFactoryRegistry.getSessionFactory(java.lang.String),SessionFactoryImplementor.getUuid()
-
getServiceRegistry
public StandardServiceRegistry getServiceRegistry()
从接口复制的说明:SessionFactoryOptionsThe service registry to use in building the factory.- 指定者:
getServiceRegistry在接口中SessionFactoryOptions- 返回:
- The service registry to use.
-
isJpaBootstrap
public boolean isJpaBootstrap()
从接口复制的说明:SessionFactoryOptionsWas building of the SessionFactory initiated through JPA bootstrapping, or through Hibernate's native bootstrapping?- 指定者:
isJpaBootstrap在接口中SessionFactoryOptions- 返回:
trueindicates the SessionFactory was built through JPA bootstrapping;falseindicates it was built through native bootstrapping.
-
isJtaTransactionAccessEnabled
public boolean isJtaTransactionAccessEnabled()
-
isAllowRefreshDetachedEntity
public boolean isAllowRefreshDetachedEntity()
-
isAllowOutOfTransactionUpdateOperations
public boolean isAllowOutOfTransactionUpdateOperations()
-
isReleaseResourcesOnCloseEnabled
public boolean isReleaseResourcesOnCloseEnabled()
-
getBeanManagerReference
public Object getBeanManagerReference()
- 指定者:
getBeanManagerReference在接口中SessionFactoryOptions
-
getValidatorFactoryReference
public Object getValidatorFactoryReference()
-
getSessionFactoryName
public String getSessionFactoryName()
从接口复制的说明:SessionFactoryOptionsThe name to be used for the SessionFactory. This is used both in:- in-VM serialization
- JNDI binding, depending on
SessionFactoryOptions.isSessionFactoryNameAlsoJndiName()
- 指定者:
getSessionFactoryName在接口中SessionFactoryOptions- 返回:
- The SessionFactory name
-
isSessionFactoryNameAlsoJndiName
public boolean isSessionFactoryNameAlsoJndiName()
从接口复制的说明:SessionFactoryOptionsIs theSesssionFactory namealso a JNDI name, indicating we should bind it into JNDI?- 指定者:
isSessionFactoryNameAlsoJndiName在接口中SessionFactoryOptions- 返回:
trueif the SessionFactory name is also a JNDI name;falseotherwise.
-
isFlushBeforeCompletionEnabled
public boolean isFlushBeforeCompletionEnabled()
-
isAutoCloseSessionEnabled
public boolean isAutoCloseSessionEnabled()
-
isStatisticsEnabled
public boolean isStatisticsEnabled()
- 指定者:
isStatisticsEnabled在接口中SessionFactoryOptions
-
getInterceptor
public Interceptor getInterceptor()
从接口复制的说明:SessionFactoryOptionsGet the interceptor to use by default for all sessions opened from this factory.- 指定者:
getInterceptor在接口中SessionFactoryOptions- 返回:
- The interceptor to use factory wide. May be
null
-
getStatelessInterceptorImplementor
public Class<? extends Interceptor> getStatelessInterceptorImplementor()
从接口复制的说明:SessionFactoryOptionsGet the interceptor to use by default for all sessions opened from this factory.- 指定者:
getStatelessInterceptorImplementor在接口中SessionFactoryOptions- 返回:
- The interceptor to use factory wide. May be
null
-
getStatelessInterceptorImplementorSupplier
public Supplier<? extends Interceptor> getStatelessInterceptorImplementorSupplier()
从接口复制的说明:SessionFactoryOptionsGet the interceptor to use by default for all sessions opened from this factory.- 指定者:
getStatelessInterceptorImplementorSupplier在接口中SessionFactoryOptions- 返回:
- The interceptor to use factory wide. May be
null
-
getStatementInspector
public StatementInspector getStatementInspector()
- 指定者:
getStatementInspector在接口中SessionFactoryOptions
-
getSessionFactoryObservers
public SessionFactoryObserver[] getSessionFactoryObservers()
-
getBaselineSessionEventsListenerBuilder
public BaselineSessionEventsListenerBuilder getBaselineSessionEventsListenerBuilder()
-
isIdentifierRollbackEnabled
public boolean isIdentifierRollbackEnabled()
-
getDefaultEntityMode
public EntityMode getDefaultEntityMode()
- 指定者:
getDefaultEntityMode在接口中SessionFactoryOptions
-
getEntityTuplizerFactory
public EntityTuplizerFactory getEntityTuplizerFactory()
-
isCheckNullability
public boolean isCheckNullability()
- 指定者:
isCheckNullability在接口中SessionFactoryOptions
-
isInitializeLazyStateOutsideTransactionsEnabled
public boolean isInitializeLazyStateOutsideTransactionsEnabled()
-
getMultiTableBulkIdStrategy
public MultiTableBulkIdStrategy getMultiTableBulkIdStrategy()
-
getTempTableDdlTransactionHandling
public TempTableDdlTransactionHandling getTempTableDdlTransactionHandling()
-
getBatchFetchStyle
public BatchFetchStyle getBatchFetchStyle()
- 指定者:
getBatchFetchStyle在接口中SessionFactoryOptions
-
isDelayBatchFetchLoaderCreationsEnabled
public boolean isDelayBatchFetchLoaderCreationsEnabled()
-
getDefaultBatchFetchSize
public int getDefaultBatchFetchSize()
-
getMaximumFetchDepth
public Integer getMaximumFetchDepth()
- 指定者:
getMaximumFetchDepth在接口中SessionFactoryOptions
-
getDefaultNullPrecedence
public NullPrecedence getDefaultNullPrecedence()
-
isOrderUpdatesEnabled
public boolean isOrderUpdatesEnabled()
- 指定者:
isOrderUpdatesEnabled在接口中SessionFactoryOptions
-
isOrderInsertsEnabled
public boolean isOrderInsertsEnabled()
- 指定者:
isOrderInsertsEnabled在接口中SessionFactoryOptions
-
getMultiTenancyStrategy
public MultiTenancyStrategy getMultiTenancyStrategy()
- 指定者:
getMultiTenancyStrategy在接口中SessionFactoryOptions
-
getCurrentTenantIdentifierResolver
public CurrentTenantIdentifierResolver getCurrentTenantIdentifierResolver()
-
isJtaTrackByThread
public boolean isJtaTrackByThread()
- 指定者:
isJtaTrackByThread在接口中SessionFactoryOptions
-
getQuerySubstitutions
public Map getQuerySubstitutions()
- 指定者:
getQuerySubstitutions在接口中SessionFactoryOptions
-
isNamedQueryStartupCheckingEnabled
public boolean isNamedQueryStartupCheckingEnabled()
-
isConventionalJavaConstants
public boolean isConventionalJavaConstants()
-
isProcedureParameterNullPassingEnabled
public boolean isProcedureParameterNullPassingEnabled()
-
isCollectionJoinSubqueryRewriteEnabled
public boolean isCollectionJoinSubqueryRewriteEnabled()
-
isSecondLevelCacheEnabled
public boolean isSecondLevelCacheEnabled()
-
isQueryCacheEnabled
public boolean isQueryCacheEnabled()
- 指定者:
isQueryCacheEnabled在接口中SessionFactoryOptions
-
getTimestampsCacheFactory
public TimestampsCacheFactory getTimestampsCacheFactory()
-
getCacheRegionPrefix
public String getCacheRegionPrefix()
- 指定者:
getCacheRegionPrefix在接口中SessionFactoryOptions
-
isMinimalPutsEnabled
public boolean isMinimalPutsEnabled()
- 指定者:
isMinimalPutsEnabled在接口中SessionFactoryOptions
-
isStructuredCacheEntriesEnabled
public boolean isStructuredCacheEntriesEnabled()
-
isDirectReferenceCacheEntriesEnabled
public boolean isDirectReferenceCacheEntriesEnabled()
-
isAutoEvictCollectionCache
public boolean isAutoEvictCollectionCache()
-
getSchemaAutoTooling
public SchemaAutoTooling getSchemaAutoTooling()
- 指定者:
getSchemaAutoTooling在接口中SessionFactoryOptions
-
getJdbcBatchSize
public int getJdbcBatchSize()
- 指定者:
getJdbcBatchSize在接口中SessionFactoryOptions
-
isJdbcBatchVersionedData
public boolean isJdbcBatchVersionedData()
-
isScrollableResultSetsEnabled
public boolean isScrollableResultSetsEnabled()
-
isWrapResultSetsEnabled
public boolean isWrapResultSetsEnabled()
- 指定者:
isWrapResultSetsEnabled在接口中SessionFactoryOptions
-
isGetGeneratedKeysEnabled
public boolean isGetGeneratedKeysEnabled()
-
getJdbcFetchSize
public Integer getJdbcFetchSize()
- 指定者:
getJdbcFetchSize在接口中SessionFactoryOptions
-
getPhysicalConnectionHandlingMode
public PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
-
setCheckNullability
public void setCheckNullability(boolean enabled)
- 指定者:
setCheckNullability在接口中SessionFactoryOptions
-
getConnectionReleaseMode
public ConnectionReleaseMode getConnectionReleaseMode()
-
doesConnectionProviderDisableAutoCommit
public boolean doesConnectionProviderDisableAutoCommit()
-
isCommentsEnabled
public boolean isCommentsEnabled()
- 指定者:
isCommentsEnabled在接口中SessionFactoryOptions
-
getCustomEntityDirtinessStrategy
public CustomEntityDirtinessStrategy getCustomEntityDirtinessStrategy()
-
getEntityNameResolvers
public EntityNameResolver[] getEntityNameResolvers()
- 指定者:
getEntityNameResolvers在接口中SessionFactoryOptions
-
getEntityNotFoundDelegate
public EntityNotFoundDelegate getEntityNotFoundDelegate()
从接口复制的说明:SessionFactoryOptionsGet the delegate for handling entity-not-found exception conditions.- 指定者:
getEntityNotFoundDelegate在接口中SessionFactoryOptions- 返回:
- The specific EntityNotFoundDelegate to use, May be
null
-
getCustomSqlFunctionMap
public Map<String,SQLFunction> getCustomSqlFunctionMap()
- 指定者:
getCustomSqlFunctionMap在接口中SessionFactoryOptions
-
isPreferUserTransaction
public boolean isPreferUserTransaction()
- 指定者:
isPreferUserTransaction在接口中SessionFactoryOptions
-
getJdbcTimeZone
public TimeZone getJdbcTimeZone()
- 指定者:
getJdbcTimeZone在接口中SessionFactoryOptions
-
isQueryParametersValidationEnabled
public boolean isQueryParametersValidationEnabled()
-
getCriteriaLiteralHandlingMode
public LiteralHandlingMode getCriteriaLiteralHandlingMode()
-
getImmutableEntityUpdateQueryHandlingMode
public ImmutableEntityUpdateQueryHandlingMode getImmutableEntityUpdateQueryHandlingMode()
-
jdbcStyleParamsZeroBased
public boolean jdbcStyleParamsZeroBased()
-
isFailOnPaginationOverCollectionFetchEnabled
public boolean isFailOnPaginationOverCollectionFetchEnabled()
-
inClauseParameterPaddingEnabled
public boolean inClauseParameterPaddingEnabled()
-
getJpaCompliance
public JpaCompliance getJpaCompliance()
- 指定者:
getJpaCompliance在接口中SessionFactoryOptions
-
nativeExceptionHandling51Compliance
public boolean nativeExceptionHandling51Compliance()
-
getQueryStatisticsMaxSize
public int getQueryStatisticsMaxSize()
-
areJPACallbacksEnabled
public boolean areJPACallbacksEnabled()
- 指定者:
areJPACallbacksEnabled在接口中SessionFactoryOptions
-
isEnhancementAsProxyEnabled
public boolean isEnhancementAsProxyEnabled()
从接口复制的说明:SessionFactoryOptionsCan bytecode-enhanced entity classes be used as a "proxy"?
-
isOmitJoinOfSuperclassTablesEnabled
public boolean isOmitJoinOfSuperclassTablesEnabled()
-
applyBeanManager
public void applyBeanManager(Object beanManager)
-
applyValidatorFactory
public void applyValidatorFactory(Object validatorFactory)
-
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)
-
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)
-
applyDefaultEntityMode
public void applyDefaultEntityMode(EntityMode entityMode)
-
enableNullabilityChecking
public void enableNullabilityChecking(boolean enabled)
-
allowLazyInitializationOutsideTransaction
public void allowLazyInitializationOutsideTransaction(boolean enabled)
-
applyEntityTuplizerFactory
public void applyEntityTuplizerFactory(EntityTuplizerFactory entityTuplizerFactory)
-
applyEntityTuplizer
public void applyEntityTuplizer(EntityMode entityMode, Class<? extends EntityTuplizer> tuplizerClass)
-
applyMultiTableBulkIdStrategy
public void applyMultiTableBulkIdStrategy(MultiTableBulkIdStrategy strategy)
-
applyTempTableDdlTransactionHandling
public void applyTempTableDdlTransactionHandling(TempTableDdlTransactionHandling handling)
-
applyBatchFetchStyle
public void applyBatchFetchStyle(BatchFetchStyle style)
-
applyDelayedEntityLoaderCreations
public void applyDelayedEntityLoaderCreations(boolean delay)
-
applyDefaultBatchFetchSize
public void applyDefaultBatchFetchSize(int size)
-
applyMaximumFetchDepth
public void applyMaximumFetchDepth(int depth)
-
applyDefaultNullPrecedence
public void applyDefaultNullPrecedence(NullPrecedence nullPrecedence)
-
enableOrderingOfInserts
public void enableOrderingOfInserts(boolean enabled)
-
enableOrderingOfUpdates
public void enableOrderingOfUpdates(boolean enabled)
-
enableDelayedIdentityInserts
public void enableDelayedIdentityInserts(boolean enabled)
-
applyMultiTenancyStrategy
public void applyMultiTenancyStrategy(MultiTenancyStrategy strategy)
-
applyCurrentTenantIdentifierResolver
public void applyCurrentTenantIdentifierResolver(CurrentTenantIdentifierResolver resolver)
-
applyQuerySubstitutions
public void applyQuerySubstitutions(Map substitutions)
-
enableNamedQueryCheckingOnStartup
public void enableNamedQueryCheckingOnStartup(boolean enabled)
-
enableSecondLevelCacheSupport
public void enableSecondLevelCacheSupport(boolean enabled)
-
enableQueryCacheSupport
public void enableQueryCacheSupport(boolean enabled)
-
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)
-
enableResultSetWrappingSupport
public void enableResultSetWrappingSupport(boolean enabled)
-
enableGeneratedKeysSupport
public void enableGeneratedKeysSupport(boolean enabled)
-
applyJdbcFetchSize
public void applyJdbcFetchSize(int size)
-
applyConnectionHandlingMode
public void applyConnectionHandlingMode(PhysicalConnectionHandlingMode mode)
-
applyConnectionReleaseMode
public void applyConnectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
-
applyConnectionProviderDisablesAutoCommit
public void applyConnectionProviderDisablesAutoCommit(boolean providerDisablesAutoCommit)
-
enableCommentsSupport
public void enableCommentsSupport(boolean enabled)
-
applySqlFunction
public void applySqlFunction(String registrationName, SQLFunction sqlFunction)
-
allowOutOfTransactionUpdateOperations
public void allowOutOfTransactionUpdateOperations(boolean allow)
-
enableReleaseResourcesOnClose
public void enableReleaseResourcesOnClose(boolean enable)
-
enableStrictJpaQueryLanguageCompliance
public void enableStrictJpaQueryLanguageCompliance(boolean enabled)
-
enableJpaQueryCompliance
public void enableJpaQueryCompliance(boolean enabled)
-
enableJpaTransactionCompliance
public void enableJpaTransactionCompliance(boolean enabled)
-
enableJpaListCompliance
public void enableJpaListCompliance(boolean enabled)
-
enableJpaClosedCompliance
public void enableJpaClosedCompliance(boolean enabled)
-
enableJpaProxyCompliance
public void enableJpaProxyCompliance(boolean enabled)
-
enableJpaCachingCompliance
public void enableJpaCachingCompliance(boolean enabled)
-
disableRefreshDetachedEntity
public void disableRefreshDetachedEntity()
-
disableJtaTransactionAccess
public void disableJtaTransactionAccess()
-
enableJdbcStyleParamsZeroBased
public void enableJdbcStyleParamsZeroBased()
-
buildOptions
public SessionFactoryOptions buildOptions()
-
-