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 TypeInterfaceDescriptioninterfaceSpecializedSessionBuilderwith 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.connectionHandling(ConnectionAcquisitionMode acquisitionMode, ConnectionReleaseMode releaseMode) Specifies the connection handling modes for the session.SessionBuilder.connectionHandlingMode(PhysicalConnectionHandlingMode mode) Deprecated.SessionBuilder.eventListeners(SessionEventListener... listeners) Add one or moreSessionEventListenerinstances to the list of listeners for the new session to be built.Specify the initialFlushModeto use for the opened SessionSessionBuilder.identifierRollback(boolean identifierRollback) Enable identifier rollback after entity removal for the session.SessionBuilder.interceptor(Interceptor interceptor) Adds a specific interceptor to the session options.SessionBuilder.jdbcTimeZone(TimeZone timeZone) Specify the JDBC time zone for the session.SessionBuilder.noInterceptor()Signifies that noInterceptorshould be used.SessionBuilder.statementInspector(UnaryOperator<String> operator) Applies the given statement inspection function to the session.SessionBuilder.statementInspector(StatementInspector statementInspector) Deprecated.This operation exposes the SPI typeStatementInspectorand is therefore a layer-breaker.SharedSessionBuilder.statementInspector(UnaryOperator<String> operator) 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 ofSessionwith certain customized options. -
Uses of SessionBuilder in org.hibernate.context.spi
Methods in org.hibernate.context.spi that return SessionBuilderModifier and TypeMethodDescriptionprotected SessionBuilderAbstractCurrentSessionContext.baseSessionBuilder() -
Uses of SessionBuilder in org.hibernate.engine.spi
Subinterfaces of SessionBuilder in org.hibernate.engine.spiModifier and TypeInterfaceDescriptioninterfaceDefines the internal contract between theSessionBuilderand other parts of Hibernate.Classes in org.hibernate.engine.spi that implement SessionBuilderModifier and TypeClassDescriptionclassBase class forSessionBuilderimplementations that wish to implement only parts of that contract themselves while forwarding other method invocations to a delegate instance.classBase class forSessionBuilderImplementorimplementations that wish to implement only parts of that contract themselves while forwarding other method invocations to a delegate instance.classBase class forSharedSessionBuilderimplementations 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.connectionHandling(ConnectionAcquisitionMode acquisitionMode, ConnectionReleaseMode releaseMode) AbstractDelegatingSessionBuilder.connectionHandlingMode(PhysicalConnectionHandlingMode mode) Deprecated.protected SessionBuilderAbstractDelegatingSessionBuilder.delegate()AbstractDelegatingSessionBuilder.eventListeners(SessionEventListener... listeners) protected SessionBuilderAbstractDelegatingSessionBuilder.getThis()AbstractDelegatingSessionBuilder.identifierRollback(boolean identifierRollback) AbstractDelegatingSessionBuilder.interceptor(Interceptor interceptor) AbstractDelegatingSessionBuilder.jdbcTimeZone(TimeZone timeZone) AbstractDelegatingSessionBuilder.noInterceptor()AbstractDelegatingSessionBuilder.statementInspector(UnaryOperator<String> operator) AbstractDelegatingSessionBuilder.statementInspector(StatementInspector statementInspector) Deprecated.AbstractDelegatingSharedSessionBuilder.statementInspector(UnaryOperator<String> operator) 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 SessionBuilderMethods in org.hibernate.internal that return SessionBuilderModifier and TypeMethodDescriptionSessionFactoryImpl.SessionBuilderImpl.connectionHandling(ConnectionAcquisitionMode acquisitionMode, ConnectionReleaseMode releaseMode) SessionFactoryImpl.SessionBuilderImpl.identifierRollback(boolean identifierRollback) SessionFactoryImpl.SessionBuilderImpl.statementInspector(UnaryOperator<String> operator)
PhysicalConnectionHandlingModeand is therefore a layer-breaker.