Top Description Methods
org.hibernate

public Interface StatelessSessionBuilder<T extends org.hibernate.StatelessSessionBuilder>

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

Represents a consolidation of all stateless session creation options into a builder style delegate.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public T

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 default T

Returns:

this, for method chaining
setQueryParameterValidation
(boolean
true indicates the validation should be performed, false otherwise

The default value is true

enabled
)

Should org.hibernate.query.Query#setParameter perform parameter validation when the Session is bootstrapped via JPA javax.persistence.EntityManagerFactory

public T

Returns:

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

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

Method Detail

connectionback to summary
public T connection(Connection connection)

Adds a specific connection to the session options.

Parameters
connection:Connection

The connection to use.

Returns:T

this, for method chaining

openStatelessSessionback to summary
public StatelessSession openStatelessSession()

Opens a session with the specified options.

Returns:StatelessSession

The session

setQueryParameterValidationback to summary
public default T setQueryParameterValidation(boolean enabled)

Should org.hibernate.query.Query#setParameter perform parameter validation when the Session is bootstrapped via JPA javax.persistence.EntityManagerFactory

Parameters
enabled:boolean

true indicates the validation should be performed, false otherwise

The default value is true

Returns:T

this, for method chaining

tenantIdentifierback to summary
public T tenantIdentifier(String tenantIdentifier)

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

Parameters
tenantIdentifier:String

The tenant identifier.

Returns:T

this, for method chaining