Uses of Interface
org.hibernate.boot.SessionFactoryBuilder
Packages that use SessionFactoryBuilder
Package
Description
This package contains the interfaces that make up the bootstrap API
for Hibernate.
A range of SPIs allowing integration with—and customization of—the process of building metadata.
-
Uses of SessionFactoryBuilder in org.hibernate.boot
Methods in org.hibernate.boot that return SessionFactoryBuilderModifier and TypeMethodDescriptionSessionFactoryBuilder.addEntityNameResolver
(EntityNameResolver... entityNameResolvers) Specifies one or more entity name resolvers.SessionFactoryBuilder.addSessionFactoryObservers
(SessionFactoryObserver... observers) Specifies one or more observers.SessionFactoryBuilder.allowOutOfTransactionUpdateOperations
(boolean allow) SessionFactoryBuilder.applyAutoClosing
(boolean enabled) Specifies whetherSession
s should be automatically closed at the end of the transaction.SessionFactoryBuilder.applyAutoFlushing
(boolean enabled) Applies whetherSession
s should be automatically flushed at the end of the transaction.SessionFactoryBuilder.applyAutomaticEvictionOfCollectionCaches
(boolean enabled) When using bidirectional many-to-one associations and caching the one-to-many side it is expected that both sides of the association are managed (actually that is true of all bidirectional associations).SessionFactoryBuilder.applyBeanManager
(Object beanManager) Specifies a CDIBeanManager
.SessionFactoryBuilder.applyCacheRegionPrefix
(String prefix) Specify a prefix to prepended to all cache region names.SessionFactoryBuilder.applyCollectionsInDefaultFetchGroup
(boolean enabled) Should collections be included in the default fetch group when bytecode enhancement is used?SessionFactoryBuilder.applyConnectionHandlingMode
(PhysicalConnectionHandlingMode connectionHandlingMode) Specifies the connection handling mode for JDBC connections.SessionFactoryBuilder.applyConnectionProviderDisablesAutoCommit
(boolean providerDisablesAutoCommit) SessionFactoryBuilder.applyCurrentTenantIdentifierResolver
(CurrentTenantIdentifierResolver<?> resolver) Specifies aCurrentTenantIdentifierResolver
that is responsible for resolving the current tenant identifier.SessionFactoryBuilder.applyCustomEntityDirtinessStrategy
(CustomEntityDirtinessStrategy strategy) Specifies aCustomEntityDirtinessStrategy
.SessionFactoryBuilder.applyDefaultBatchFetchSize
(int size) Specifies a default batch fetch size for all entities and collections which do not otherwise specify a batch fetch size.SessionFactoryBuilder.applyDefaultNullPrecedence
(Nulls nullPrecedence) Apply a null precedence,NULLS FIRST
orNULLS LAST
, toorder by
clauses rendered in SQL queries.SessionFactoryBuilder.applyDelayedEntityLoaderCreations
(boolean delay) Should entity loaders be generated immediately? Or should the creation be delayed until first need?SessionFactoryBuilder.applyDirectReferenceCaching
(boolean enabled) Generally, Hibernate will extract the information from an entity and put that extracted information into the second-level cache.SessionFactoryBuilder.applyEntityNotFoundDelegate
(EntityNotFoundDelegate entityNotFoundDelegate) Specifies anEntityNotFoundDelegate
.SessionFactoryBuilder.applyGetGeneratedKeysSupport
(boolean enabled) Should JDBCStatement.getGeneratedKeys()
feature be used for retrieval of *insert-generated* ids?SessionFactoryBuilder.applyIdentifierRollbackSupport
(boolean enabled) Should the generated identifier be "unset" when an entity is deleted?SessionFactoryBuilder.applyInterceptor
(Interceptor interceptor) Specifies anInterceptor
associated with theSessionFactory
, which will be used by all sessions unless an interceptor is explicitly specified usingSessionBuilder.interceptor(org.hibernate.Interceptor)
.SessionFactoryBuilder.applyJdbcBatchingForVersionedEntities
(boolean enabled) This setting controls whether versioned entities will be included in JDBC batching.SessionFactoryBuilder.applyJdbcBatchSize
(int size) Specifies the maximum number of statements to batch together in a JDBC batch for insert, update and delete operations.SessionFactoryBuilder.applyJdbcFetchSize
(int size) Apply a fetch size to the JDBC driver for fetching results.SessionFactoryBuilder.applyJsonFormatMapper
(FormatMapper jsonFormatMapper) Specifies aformat mapper
to use for serialization/deserialization of JSON properties.SessionFactoryBuilder.applyJtaTrackingByThread
(boolean enabled) If using the built-in JTA-basedTransactionCoordinator
orTransactionCoordinatorBuilder
, should it track JTA transactions by thread in an attempt to detect timeouts?SessionFactoryBuilder.applyLazyInitializationOutsideTransaction
(boolean enabled) Should the application be allowed to initialize uninitialized lazy state outside the bounds of a transaction?SessionFactoryBuilder.applyMaximumFetchDepth
(int depth) Apply a limit to the depth Hibernate will use for outer joins.SessionFactoryBuilder.applyMinimalPutsForCaching
(boolean enabled) By default, Hibernate will always just push data into the cache without first checking if that data already exists.SessionFactoryBuilder.applyMultiTenancy
(boolean enabled) Specifies whether multitenancy is enabled via use of aMultiTenantConnectionProvider
.Specifies a name for theSessionFactory
.SessionFactoryBuilder.applyNameAsJndiName
(boolean isJndiName) Specifies that theSessionFactory
should be registered in JNDI, under the name specified usingapplyName(String)
.SessionFactoryBuilder.applyNamedQueryCheckingOnStartup
(boolean enabled) Should named queries be checked on startup?SessionFactoryBuilder.applyNullabilityChecking
(boolean enabled) Should attributes using columns marked as not-null be checked (by Hibernate) for nullness, or should this be left as a job for the database?SessionFactoryBuilder.applyOrderingOfInserts
(boolean enabled) Specify whether ordering of inserts should be enabled.SessionFactoryBuilder.applyOrderingOfUpdates
(boolean enabled) Specify whether ordering of updates should be enabled.SessionFactoryBuilder.applyPreferUserTransactions
(boolean preferUserTransactions) If using the built-in JTA-basedTransactionCoordinator
orTransactionCoordinatorBuilder
, should it prefer to useUserTransaction
in preference toTransaction
?SessionFactoryBuilder.applyQueryCacheLayout
(CacheLayout cacheLayout) Specifies the defaultCacheLayout
to use for query cache entries.SessionFactoryBuilder.applyQueryCacheSupport
(boolean enabled) Should second level query caching support be enabled?SessionFactoryBuilder.applyScrollableResultsSupport
(boolean enabled) Should scrollable results be supported in queries? We ask the JDBC driver whether it supports scrollable result sets as the default for this setting, but some drivers do not accurately report this via DatabaseMetaData.SessionFactoryBuilder.applySecondLevelCacheSupport
(boolean enabled) Should second level caching support be enabled?SessionFactoryBuilder.applySqlComments
(boolean enabled) Should Hibernate apply comments to SQL it generates?SessionFactoryBuilder.applySqlFunction
(String registrationName, SqmFunctionDescriptor functionDescriptor) Register aSQL function
with the underlyingSqmFunctionRegistry
.SessionFactoryBuilder.applyStatelessInterceptor
(Class<? extends Interceptor> statelessInterceptorClass) Specifies an interceptorClass
associated with theSessionFactory
, which is used to instantiate a new interceptor for each session, unless an interceptor is explicitly specified usingSessionBuilder.interceptor(org.hibernate.Interceptor)
.SessionFactoryBuilder.applyStatelessInterceptor
(Supplier<? extends Interceptor> statelessInterceptorSupplier) Specifies an interceptorSupplier
associated with theSessionFactory
, which is used to obtain an interceptor for each session, unless an interceptor is explicitly specified usingSessionBuilder.interceptor(org.hibernate.Interceptor)
.SessionFactoryBuilder.applyStatementInspector
(StatementInspector statementInspector) Specifies aStatementInspector
associated with theSessionFactory
, which will be used by all sessions unless a statement inspector is explicitly specified usingSessionBuilder.statementInspector(org.hibernate.resource.jdbc.spi.StatementInspector)
SessionFactoryBuilder.applyStatisticsSupport
(boolean enabled) Specifies whether statistics gathering is enabled.SessionFactoryBuilder.applyStructuredCacheEntries
(boolean enabled) By default, Hibernate stores data in the cache in its own optimized format.SessionFactoryBuilder.applySubselectFetchEnabled
(boolean enabled) Enable the use of subselect fetching.SessionFactoryBuilder.applyTempTableDdlTransactionHandling
(TempTableDdlTransactionHandling handling) Specifies how temporary tables should be created or dropped with respect to transaction handling.SessionFactoryBuilder.applyTimestampsCacheFactory
(TimestampsCacheFactory factory) Specifies aTimestampsCacheFactory
.SessionFactoryBuilder.applyValidatorFactory
(Object validatorFactory) Specifies a Bean ValidationValidatorFactory
.SessionFactoryBuilder.applyXmlFormatMapper
(FormatMapper xmlFormatMapper) Specifies aformat mapper
to use for serialization/deserialization of XML properties.SessionFactoryBuilder.enableJpaCascadeCompliance
(boolean enabled) Deprecated, for removal: This API element is subject to removal in a future version.No longer has any effect.SessionFactoryBuilder.enableJpaClosedCompliance
(boolean enabled) SessionFactoryBuilder.enableJpaOrderByMappingCompliance
(boolean enabled) SessionFactoryBuilder.enableJpaQueryCompliance
(boolean enabled) SessionFactoryBuilder.enableJpaTransactionCompliance
(boolean enabled) SessionFactoryBuilder.enableReleaseResourcesOnCloseEnabled
(boolean enable) Should resources held by anEntityManager
be released immediately on close?Metadata.getSessionFactoryBuilder()
Get the builder forSessionFactory
instances based on this metamodel. -
Uses of SessionFactoryBuilder in org.hibernate.boot.internal
Classes in org.hibernate.boot.internal that implement SessionFactoryBuilderMethods in org.hibernate.boot.internal that return SessionFactoryBuilderModifier and TypeMethodDescriptionSessionFactoryBuilderImpl.addEntityNameResolver
(EntityNameResolver... entityNameResolvers) SessionFactoryBuilderImpl.addSessionFactoryObservers
(SessionFactoryObserver... observers) SessionFactoryBuilderImpl.allowOutOfTransactionUpdateOperations
(boolean allow) SessionFactoryBuilderImpl.applyAutoClosing
(boolean enabled) SessionFactoryBuilderImpl.applyAutoFlushing
(boolean enabled) SessionFactoryBuilderImpl.applyAutomaticEvictionOfCollectionCaches
(boolean enabled) SessionFactoryBuilderImpl.applyBeanManager
(Object beanManager) SessionFactoryBuilderImpl.applyCacheRegionPrefix
(String prefix) SessionFactoryBuilderImpl.applyCollectionsInDefaultFetchGroup
(boolean enabled) SessionFactoryBuilderImpl.applyConnectionHandlingMode
(PhysicalConnectionHandlingMode connectionHandlingMode) SessionFactoryBuilderImpl.applyConnectionProviderDisablesAutoCommit
(boolean providerDisablesAutoCommit) SessionFactoryBuilderImpl.applyCurrentTenantIdentifierResolver
(CurrentTenantIdentifierResolver<?> resolver) SessionFactoryBuilderImpl.applyCustomEntityDirtinessStrategy
(CustomEntityDirtinessStrategy strategy) SessionFactoryBuilderImpl.applyDefaultBatchFetchSize
(int size) SessionFactoryBuilderImpl.applyDefaultNullPrecedence
(Nulls nullPrecedence) SessionFactoryBuilderImpl.applyDelayedEntityLoaderCreations
(boolean delay) SessionFactoryBuilderImpl.applyDirectReferenceCaching
(boolean enabled) SessionFactoryBuilderImpl.applyEntityNotFoundDelegate
(EntityNotFoundDelegate entityNotFoundDelegate) SessionFactoryBuilderImpl.applyGetGeneratedKeysSupport
(boolean enabled) SessionFactoryBuilderImpl.applyIdentifierRollbackSupport
(boolean enabled) SessionFactoryBuilderImpl.applyInterceptor
(Interceptor interceptor) SessionFactoryBuilderImpl.applyJdbcBatchingForVersionedEntities
(boolean enabled) SessionFactoryBuilderImpl.applyJdbcBatchSize
(int size) SessionFactoryBuilderImpl.applyJdbcFetchSize
(int size) SessionFactoryBuilderImpl.applyJsonFormatMapper
(FormatMapper jsonFormatMapper) SessionFactoryBuilderImpl.applyJtaTrackingByThread
(boolean enabled) SessionFactoryBuilderImpl.applyLazyInitializationOutsideTransaction
(boolean enabled) SessionFactoryBuilderImpl.applyMaximumFetchDepth
(int depth) SessionFactoryBuilderImpl.applyMinimalPutsForCaching
(boolean enabled) SessionFactoryBuilderImpl.applyMultiTenancy
(boolean enabled) SessionFactoryBuilderImpl.applyNameAsJndiName
(boolean isJndiName) SessionFactoryBuilderImpl.applyNamedQueryCheckingOnStartup
(boolean enabled) SessionFactoryBuilderImpl.applyNullabilityChecking
(boolean enabled) SessionFactoryBuilderImpl.applyOrderingOfInserts
(boolean enabled) SessionFactoryBuilderImpl.applyOrderingOfUpdates
(boolean enabled) SessionFactoryBuilderImpl.applyPreferUserTransactions
(boolean preferUserTransactions) SessionFactoryBuilderImpl.applyQueryCacheLayout
(CacheLayout cacheLayout) SessionFactoryBuilderImpl.applyQueryCacheSupport
(boolean enabled) SessionFactoryBuilderImpl.applyScrollableResultsSupport
(boolean enabled) SessionFactoryBuilderImpl.applySecondLevelCacheSupport
(boolean enabled) SessionFactoryBuilderImpl.applySqlComments
(boolean enabled) SessionFactoryBuilderImpl.applySqlFunction
(String registrationName, SqmFunctionDescriptor functionDescriptor) SessionFactoryBuilderImpl.applyStatelessInterceptor
(Class<? extends Interceptor> statelessInterceptorClass) SessionFactoryBuilderImpl.applyStatelessInterceptor
(Supplier<? extends Interceptor> statelessInterceptorSupplier) SessionFactoryBuilderImpl.applyStatementInspector
(StatementInspector statementInspector) SessionFactoryBuilderImpl.applyStatisticsSupport
(boolean enabled) SessionFactoryBuilderImpl.applyStructuredCacheEntries
(boolean enabled) SessionFactoryBuilderImpl.applySubselectFetchEnabled
(boolean enabled) SessionFactoryBuilderImpl.applyTempTableDdlTransactionHandling
(TempTableDdlTransactionHandling handling) SessionFactoryBuilderImpl.applyTimestampsCacheFactory
(TimestampsCacheFactory factory) SessionFactoryBuilderImpl.applyValidatorFactory
(Object validatorFactory) SessionFactoryBuilderImpl.applyXmlFormatMapper
(FormatMapper xmlFormatMapper) SessionFactoryBuilderImpl.enableJpaCascadeCompliance
(boolean enabled) Deprecated.SessionFactoryBuilderImpl.enableJpaClosedCompliance
(boolean enabled) SessionFactoryBuilderImpl.enableJpaOrderByMappingCompliance
(boolean enabled) SessionFactoryBuilderImpl.enableJpaQueryCompliance
(boolean enabled) SessionFactoryBuilderImpl.enableJpaTransactionCompliance
(boolean enabled) SessionFactoryBuilderImpl.enableReleaseResourcesOnCloseEnabled
(boolean enable) InFlightMetadataCollectorImpl.getSessionFactoryBuilder()
MetadataImpl.getSessionFactoryBuilder()
-
Uses of SessionFactoryBuilder in org.hibernate.boot.spi
Classes in org.hibernate.boot.spi with type parameters of type SessionFactoryBuilderModifier and TypeClassDescriptionclass
Convenience base class for custom implementors of SessionFactoryBuilder, using delegationSubinterfaces of SessionFactoryBuilder in org.hibernate.boot.spiModifier and TypeInterfaceDescriptioninterface
Additional SPI contract forSessionFactoryBuilder
, mainly intended for implementors ofSessionFactoryBuilderFactory
.Classes in org.hibernate.boot.spi that implement SessionFactoryBuilderModifier and TypeClassDescriptionclass
Convenience base class for custom implementors of SessionFactoryBuilder, using delegationclass
Convenience base class for custom implementors ofSessionFactoryBuilderImplementor
, using delegationMethods in org.hibernate.boot.spi that return SessionFactoryBuilderModifier and TypeMethodDescriptionprotected SessionFactoryBuilder
AbstractDelegatingSessionFactoryBuilder.delegate()
AbstractDelegatingMetadata.getSessionFactoryBuilder()
SessionFactoryBuilderFactory.getSessionFactoryBuilder
(MetadataImplementor metadata, SessionFactoryBuilderImplementor defaultBuilder) The contract method.Constructors in org.hibernate.boot.spi with parameters of type SessionFactoryBuilderModifierConstructorDescription -
Uses of SessionFactoryBuilder in org.hibernate.jpa.boot.internal
Methods in org.hibernate.jpa.boot.internal that return SessionFactoryBuilderModifier and TypeMethodDescriptionprotected SessionFactoryBuilder
EntityManagerFactoryBuilderImpl.populateSessionFactoryBuilder()
-
Uses of SessionFactoryBuilder in org.hibernate.testing.jdbc
Constructors in org.hibernate.testing.jdbc with parameters of type SessionFactoryBuilderModifierConstructorDescriptionSQLStatementInterceptor
(SessionFactoryBuilder sessionFactoryBuilder) Deprecated. -
Uses of SessionFactoryBuilder in org.hibernate.testing.junit4
Methods in org.hibernate.testing.junit4 with parameters of type SessionFactoryBuilderModifier and TypeMethodDescriptionprotected void
BaseNonConfigCoreFunctionalTestCase.configureSessionFactoryBuilder
(SessionFactoryBuilder sfb) -
Uses of SessionFactoryBuilder in org.hibernate.testing.orm.junit
Methods in org.hibernate.testing.orm.junit that return SessionFactoryBuilderModifier and TypeMethodDescriptionDialectFeatureChecks.FakeMetadataBuildingContext.getSessionFactoryBuilder()
Methods in org.hibernate.testing.orm.junit with parameters of type SessionFactoryBuilderModifier and TypeMethodDescriptionprotected void
BaseSessionFactoryFunctionalTest.configure
(SessionFactoryBuilder builder)