Uses of Interface
org.hibernate.SessionBuilder
Packages that use SessionBuilder
Package
Description
This package defines the central Hibernate APIs, beginning with
SessionFactory
, which represents an instance of
Hibernate at runtime and is the source of new instances of
Session
and StatelessSession
,
the most important APIs exposing persistence-related operations for
entities.SPI-level contracts around "current session" and "current tenant" support.
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
-
Uses of SessionBuilder in org.hibernate
Subinterfaces of SessionBuilder in org.hibernateModifier and TypeInterfaceDescriptioninterface
Allows creation of a childSession
which shares some options with another pre-existing parent session.Methods in org.hibernate that return SessionBuilderModifier and TypeMethodDescriptionSessionBuilder.autoClear
(boolean autoClear) Should the session be automatically cleared on a failed transaction?SessionBuilder.autoClose
(boolean autoClose) Should the session be automatically closed after transaction completion?SessionBuilder.autoJoinTransactions
(boolean autoJoinTransactions) Should the session built automatically join in any ongoing JTA transactions.SessionBuilder.clearEventListeners()
Remove all listeners intended for the built session currently held here, including any auto-apply ones; in other words, start with a clean slate.SessionBuilder.connection
(Connection connection) Adds a specific connection to the session options.SessionBuilder.connectionHandling
(ConnectionAcquisitionMode acquisitionMode, ConnectionReleaseMode releaseMode) Specifies the connection handling modes for the session.SessionBuilder.connectionHandlingMode
(PhysicalConnectionHandlingMode mode) Deprecated.SessionBuilder.defaultBatchFetchSize
(int defaultBatchFetchSize) Specify the default batch fetch size for the session.SessionBuilder.eventListeners
(SessionEventListener... listeners) Add one or moreSessionEventListener
instances to the list of listeners for the new session to be built.Specify the initialFlushMode
to use for the opened SessionSessionBuilder.identifierRollback
(boolean identifierRollback) Enable identifier rollback after entity removal for the session.SessionBuilder.initialCacheMode
(CacheMode cacheMode) SessionBuilder.interceptor
(Interceptor interceptor) SessionBuilder.jdbcTimeZone
(TimeZone timeZone) Specify the JDBC time zone for the session.SessionBuilder.noInterceptor()
SessionBuilder.noSessionInterceptorCreation()
SessionBuilder.noStatementInspector()
SessionBuilder.readOnly
(boolean readOnly) SessionBuilder.statementInspector
(UnaryOperator<String> operator) SessionBuilder.statementInspector
(StatementInspector statementInspector) Deprecated.This operation exposes the SPI typeStatementInspector
and is therefore a layer-breaker.SessionBuilder.subselectFetchEnabled
(boolean subselectFetchEnabled) Specify whether subselect fetching is enabled for the session.SessionBuilder.tenantIdentifier
(Object tenantIdentifier) Define the tenant identifier to be associated with the opened session.SessionBuilder.tenantIdentifier
(String tenantIdentifier) Deprecated, for removal: This API element is subject to removal in a future version.UsetenantIdentifier(Object)
insteadSessionFactory.withOptions()
Obtain a session builder for creating new instances ofSession
with certain customized options. -
Uses of SessionBuilder in org.hibernate.context.spi
Methods in org.hibernate.context.spi that return SessionBuilderModifier and TypeMethodDescriptionprotected SessionBuilder
AbstractCurrentSessionContext.baseSessionBuilder()
-
Uses of SessionBuilder in org.hibernate.engine.creation.spi
Subinterfaces of SessionBuilder in org.hibernate.engine.creation.spiModifier and TypeInterfaceDescriptioninterface
Defines the internal contract between theSessionBuilder
and other parts of Hibernate.interface
-
Uses of SessionBuilder in org.hibernate.engine.spi
Classes in org.hibernate.engine.spi that implement SessionBuilderModifier and TypeClassDescriptionclass
Base class forSessionBuilder
implementations that wish to implement only parts of that contract themselves while forwarding other method invocations to a delegate instance.class
Base class forSessionBuilderImplementor
implementations that wish to implement only parts of that contract themselves while forwarding other method invocations to a delegate instance.class
Base class forSharedSessionBuilder
implementations that wish to implement only parts of that contract themselves while forwarding other method invocations to a delegate instance.Methods in org.hibernate.engine.spi that return SessionBuilderModifier and TypeMethodDescriptionprotected SessionBuilder
AbstractDelegatingSessionBuilder.getThis()
Constructors in org.hibernate.engine.spi with parameters of type SessionBuilder
PhysicalConnectionHandlingMode
and is therefore a layer-breaker.