Top Description Methods
org.hibernate

public Interface StatelessSessionBuilder

Known Direct Implementers
org.hibernate.internal.SessionFactoryImpl.StatelessSessionBuilderImpl
Imports
java.sql.Connection

Allows creation of a new StatelessSession with specific options.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public StatelessSessionBuilder

Returns:

this, for method chaining
connection
(Connection
The connection to use.
connection
)

Adds a specific connection to the session options.

public StatelessSession

Returns:

The session
openStatelessSession
()

Opens a session with the specified options.

public StatelessSessionBuilder

Returns:

this, for method chaining
tenantIdentifier
(String
The tenant identifier.
tenantIdentifier
)

Deprecated for removal. Use tenantIdentifier(Object) instead
Define the tenant identifier to be associated with the opened session.
public StatelessSessionBuilder

Returns:

this, for method chaining
tenantIdentifier
(Object
The tenant identifier.
tenantIdentifier
)

Define the tenant identifier to be associated with the opened session.

Method Detail

connectionback to summary
public StatelessSessionBuilder connection(Connection connection)

Adds a specific connection to the session options.

Parameters
connection:Connection

The connection to use.

Returns:StatelessSessionBuilder

this, for method chaining

openStatelessSessionback to summary
public StatelessSession openStatelessSession()

Opens a session with the specified options.

Returns:StatelessSession

The session

tenantIdentifierback to summary
public StatelessSessionBuilder tenantIdentifier(String tenantIdentifier)

Deprecated

for removal.

Use tenantIdentifier(Object) instead

Define the tenant identifier to be associated with the opened session.

Parameters
tenantIdentifier:String

The tenant identifier.

Returns:StatelessSessionBuilder

this, for method chaining

Annotations
@Deprecated
forRemoval:true
tenantIdentifierback to summary
public StatelessSessionBuilder tenantIdentifier(Object tenantIdentifier)

Define the tenant identifier to be associated with the opened session.

Parameters
tenantIdentifier:Object

The tenant identifier.

Returns:StatelessSessionBuilder

this, for method chaining

Since
6.4