public interface StatelessSessionBuilder<T extends StatelessSessionBuilder>
Modifier and Type | Method and Description |
---|---|
T |
connection(java.sql.Connection connection)
Adds a specific connection to the session options.
|
StatelessSession |
openStatelessSession()
Opens a session with the specified options.
|
default T |
setQueryParameterValidation(boolean enabled)
Should
Query.setParameter(javax.persistence.Parameter<java.time.Instant>, java.time.Instant, javax.persistence.TemporalType) perform parameter validation
when the Session is bootstrapped via JPA EntityManagerFactory |
T |
tenantIdentifier(java.lang.String tenantIdentifier)
Define the tenant identifier to be associated with the opened session.
|
StatelessSession openStatelessSession()
T connection(java.sql.Connection connection)
connection
- The connection to use.this
, for method chainingT tenantIdentifier(java.lang.String tenantIdentifier)
tenantIdentifier
- The tenant identifier.this
, for method chainingdefault T setQueryParameterValidation(boolean enabled)
Query.setParameter(javax.persistence.Parameter<java.time.Instant>, java.time.Instant, javax.persistence.TemporalType)
perform parameter validation
when the Session is bootstrapped via JPA EntityManagerFactory
enabled
- true
indicates the validation should be performed, false
otherwise
The default value is true
this
, for method chainingCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.