Uses of Interface
org.hibernate.SessionBuilder
-
Packages that use SessionBuilder Package Description org.hibernate This package defines the central Hibernate APIs, beginning withSessionFactory
, which represents an instance of Hibernate at runtime and is the source of new instances ofSession
andStatelessSession
, the most important APIs exposing persistence-related operations for entities.org.hibernate.context.spi SPI-level contracts around "current session" and "current tenant" support.org.hibernate.engine.spi This package defines some central internal SPI abstractions used throughout the implementation of Hibernate.org.hibernate.internal An internal package containing implementations of central Hibernate APIs, mostly defined inorg.hibernate
.org.hibernate.testing.orm.junit org.hibernate.testing.transaction -
-
Uses of SessionBuilder in org.hibernate
Subinterfaces of SessionBuilder in org.hibernate Modifier and Type Interface Description interface
SharedSessionBuilder
SpecializedSessionBuilder
with access to stuff from another session.Methods in org.hibernate that return SessionBuilder Modifier and Type Method Description SessionBuilder
SessionBuilder. autoClear(boolean autoClear)
Should the session be automatically cleared on a failed transaction?SessionBuilder
SessionBuilder. autoClose(boolean autoClose)
Should the session be automatically closed after transaction completion?SessionBuilder
SessionBuilder. autoJoinTransactions(boolean autoJoinTransactions)
Should the session built automatically join in any ongoing JTA transactions.SessionBuilder
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
SessionBuilder. connection(Connection connection)
Adds a specific connection to the session options.SessionBuilder
SessionBuilder. connectionHandlingMode(PhysicalConnectionHandlingMode mode)
Signifies that the connection release mode from the original session should be used to create the new session.SessionBuilder
SessionBuilder. eventListeners(SessionEventListener... listeners)
Add one or moreSessionEventListener
instances to the list of listeners for the new session to be built.SessionBuilder
SessionBuilder. flushMode(FlushMode flushMode)
Specify the initial FlushMode to use for the opened SessionSessionBuilder
SessionBuilder. interceptor(Interceptor interceptor)
Adds a specific interceptor to the session options.SessionBuilder
SessionBuilder. jdbcTimeZone(TimeZone timeZone)
SessionBuilder
SessionBuilder. noInterceptor()
Signifies that noInterceptor
should be used.SessionBuilder
SessionBuilder. statementInspector(StatementInspector statementInspector)
Applies the givenStatementInspector
to the session.SessionBuilder
SessionBuilder. tenantIdentifier(Object tenantIdentifier)
Define the tenant identifier to be associated with the opened session.SessionBuilder
SessionBuilder. tenantIdentifier(String tenantIdentifier)
Deprecated, for removal: This API element is subject to removal in a future version.UsetenantIdentifier(Object)
insteadSessionBuilder
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 SessionBuilder Modifier and Type Method Description protected SessionBuilder
AbstractCurrentSessionContext. baseSessionBuilder()
-
Uses of SessionBuilder in org.hibernate.engine.spi
Subinterfaces of SessionBuilder in org.hibernate.engine.spi Modifier and Type Interface Description interface
SessionBuilderImplementor
Defines the internal contract between theSessionBuilder
and other parts of Hibernate.Classes in org.hibernate.engine.spi that implement SessionBuilder Modifier and Type Class Description class
AbstractDelegatingSessionBuilder
Base class forSessionBuilder
implementations that wish to implement only parts of that contract themselves while forwarding other method invocations to a delegate instance.class
AbstractDelegatingSessionBuilderImplementor
Base class forSessionBuilderImplementor
implementations that wish to implement only parts of that contract themselves while forwarding other method invocations to a delegate instance.class
AbstractDelegatingSharedSessionBuilder
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 SessionBuilder Modifier and Type Method Description SessionBuilder
AbstractDelegatingSessionBuilder. autoClear(boolean autoClear)
SessionBuilder
AbstractDelegatingSessionBuilder. autoClose(boolean autoClose)
SessionBuilder
AbstractDelegatingSessionBuilder. autoJoinTransactions(boolean autoJoinTransactions)
SessionBuilder
AbstractDelegatingSessionBuilder. clearEventListeners()
SessionBuilder
AbstractDelegatingSessionBuilder. connection(Connection connection)
SessionBuilder
AbstractDelegatingSessionBuilder. connectionHandlingMode(PhysicalConnectionHandlingMode mode)
protected SessionBuilder
AbstractDelegatingSessionBuilder. delegate()
SessionBuilder
AbstractDelegatingSessionBuilder. eventListeners(SessionEventListener... listeners)
SessionBuilder
AbstractDelegatingSessionBuilder. flushMode(FlushMode flushMode)
protected SessionBuilder
AbstractDelegatingSessionBuilder. getThis()
SessionBuilder
AbstractDelegatingSessionBuilder. interceptor(Interceptor interceptor)
SessionBuilder
AbstractDelegatingSessionBuilder. jdbcTimeZone(TimeZone timeZone)
SessionBuilder
AbstractDelegatingSessionBuilder. noInterceptor()
SessionBuilder
AbstractDelegatingSessionBuilder. statementInspector(StatementInspector statementInspector)
SessionBuilder
AbstractDelegatingSessionBuilder. tenantIdentifier(Object tenantIdentifier)
SessionBuilder
AbstractDelegatingSessionBuilder. tenantIdentifier(String tenantIdentifier)
Constructors in org.hibernate.engine.spi with parameters of type SessionBuilder Constructor Description AbstractDelegatingSessionBuilder(SessionBuilder delegate)
-
Uses of SessionBuilder in org.hibernate.internal
Classes in org.hibernate.internal that implement SessionBuilder Modifier and Type Class Description static class
SessionFactoryImpl.SessionBuilderImpl
-
Uses of SessionBuilder in org.hibernate.testing.orm.junit
Method parameters in org.hibernate.testing.orm.junit with type arguments of type SessionBuilder Modifier and Type Method Description static 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 SessionBuilder Modifier and Type Method Description static 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
-