Package org.hibernate
Interface StatelessSessionBuilder<T extends StatelessSessionBuilder>
-
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 Tconnection(Connection connection)Adds a specific connection to the session options.StatelessSessionopenStatelessSession()Opens a session with the specified options.TtenantIdentifier(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
-
-