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