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.
An internal package containing implementations of central Hibernate APIs,
mostly defined in
org.hibernate
.-
Uses of SessionBuilder in org.hibernate
Subinterfaces of SessionBuilder in org.hibernateModifier and TypeInterfaceDescriptioninterface
SpecializedSessionBuilder
with access to stuff from another 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.connectionHandlingMode
(PhysicalConnectionHandlingMode mode) Signifies that the connection release mode from the original session should be used to create the new session.SessionBuilder.eventListeners
(SessionEventListener... listeners) Add one or moreSessionEventListener
instances to the list of listeners for the new session to be built.Specify the initial FlushMode to use for the opened SessionSessionBuilder.interceptor
(Interceptor interceptor) Adds a specific interceptor to the session options.SessionBuilder.jdbcTimeZone
(TimeZone timeZone) SessionBuilder.noInterceptor()
Signifies that noInterceptor
should be used.SessionBuilder.statementInspector
(StatementInspector statementInspector) Applies the givenStatementInspector
to 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.SessionFactory.withOptions()
Obtain a session builder for creating newSession
s 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.spi
Subinterfaces of SessionBuilder in org.hibernate.engine.spiModifier and TypeInterfaceDescriptioninterface
Defines the internal contract between theSessionBuilder
and other parts of Hibernate.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 TypeMethodDescriptionAbstractDelegatingSessionBuilder.autoClear
(boolean autoClear) AbstractDelegatingSessionBuilder.autoClose
(boolean autoClose) AbstractDelegatingSessionBuilder.autoJoinTransactions
(boolean autoJoinTransactions) AbstractDelegatingSessionBuilder.clearEventListeners()
AbstractDelegatingSessionBuilder.connection
(Connection connection) AbstractDelegatingSessionBuilder.connectionHandlingMode
(PhysicalConnectionHandlingMode mode) protected SessionBuilder
AbstractDelegatingSessionBuilder.delegate()
AbstractDelegatingSessionBuilder.eventListeners
(SessionEventListener... listeners) protected SessionBuilder
AbstractDelegatingSessionBuilder.getThis()
AbstractDelegatingSessionBuilder.interceptor
(Interceptor interceptor) AbstractDelegatingSessionBuilder.jdbcTimeZone
(TimeZone timeZone) AbstractDelegatingSessionBuilder.noInterceptor()
AbstractDelegatingSessionBuilder.statementInspector
(StatementInspector statementInspector) AbstractDelegatingSessionBuilder.tenantIdentifier
(Object tenantIdentifier) AbstractDelegatingSessionBuilder.tenantIdentifier
(String tenantIdentifier) Deprecated, for removal: This API element is subject to removal in a future version.Constructors in org.hibernate.engine.spi with parameters of type SessionBuilder -
Uses of SessionBuilder in org.hibernate.internal
Classes in org.hibernate.internal that implement SessionBuilder -
Uses of SessionBuilder in org.hibernate.testing.orm.junit
Method parameters in org.hibernate.testing.orm.junit with type arguments of type SessionBuilderModifier and TypeMethodDescriptionstatic void
BaseSessionFactoryFunctionalTest.doInHibernateSessionBuilder
(Supplier<SessionBuilder> sessionBuilderSupplier, TransactionUtil.HibernateTransactionConsumer function) Execute function in a Hibernate transaction without return value -
Uses of SessionBuilder in org.hibernate.testing.transaction
Method parameters in org.hibernate.testing.transaction with type arguments of type SessionBuilderModifier and TypeMethodDescriptionstatic void
TransactionUtil.doInHibernateSessionBuilder
(Supplier<SessionBuilder> sessionBuilderSupplier, TransactionUtil.HibernateTransactionConsumer function) Execute function in a Hibernate transaction without return valuestatic <T> T
TransactionUtil.doInHibernateSessionBuilder
(Supplier<SessionBuilder> sessionBuilderSupplier, TransactionUtil.HibernateTransactionFunction<T> function) Execute function in a Hibernate transaction
tenantIdentifier(Object)
instead