Package org.hibernate
Interface StatelessSessionBuilder<T extends StatelessSessionBuilder>
-
- All Known Implementing Classes:
SessionFactoryImpl.StatelessSessionBuilderImpl
public interface StatelessSessionBuilder<T extends StatelessSessionBuilder>
Represents a consolidation of all stateless session creation options into a builder style delegate.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
connection(Connection connection)
Adds a specific connection to the session options.StatelessSession
openStatelessSession()
Opens a session with the specified options.T
tenantIdentifier(String tenantIdentifier)
Define the tenant identifier to be associated with the opened session.
-
-
-
Method Detail
-
openStatelessSession
StatelessSession openStatelessSession()
Opens a session with the specified options.- Returns:
- The session
-
connection
T connection(Connection connection)
Adds a specific connection to the session options.- Parameters:
connection
- The connection to use.- Returns:
this
, for method chaining
-
-