public static class SessionFactoryImpl.StatelessSessionBuilderImpl extends Object implements StatelessSessionBuilder, SessionCreationOptions
Constructor and Description |
---|
StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory) |
public StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory)
public StatelessSession openStatelessSession()
StatelessSessionBuilder
openStatelessSession
in interface StatelessSessionBuilder
public StatelessSessionBuilder connection(Connection connection)
StatelessSessionBuilder
connection
in interface StatelessSessionBuilder
connection
- The connection to use.this
, for method chainingpublic StatelessSessionBuilder tenantIdentifier(String tenantIdentifier)
StatelessSessionBuilder
tenantIdentifier
in interface StatelessSessionBuilder
tenantIdentifier
- The tenant identifier.this
, for method chainingpublic boolean shouldAutoJoinTransactions()
shouldAutoJoinTransactions
in interface SessionCreationOptions
public FlushMode getInitialSessionFlushMode()
getInitialSessionFlushMode
in interface SessionCreationOptions
public boolean shouldAutoClose()
shouldAutoClose
in interface SessionCreationOptions
public boolean shouldAutoClear()
shouldAutoClear
in interface SessionCreationOptions
public Connection getConnection()
getConnection
in interface SessionCreationOptions
public Interceptor getInterceptor()
getInterceptor
in interface SessionCreationOptions
public StatementInspector getStatementInspector()
getStatementInspector
in interface SessionCreationOptions
public PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
getPhysicalConnectionHandlingMode
in interface SessionCreationOptions
public String getTenantIdentifier()
getTenantIdentifier
in interface SessionCreationOptions
public TimeZone getJdbcTimeZone()
getJdbcTimeZone
in interface SessionCreationOptions
public SessionOwner getSessionOwner()
SessionCreationOptions
getSessionOwner
in interface SessionCreationOptions
public ExceptionMapper getExceptionMapper()
getExceptionMapper
in interface SessionCreationOptions
public AfterCompletionAction getAfterCompletionAction()
getAfterCompletionAction
in interface SessionCreationOptions
public ManagedFlushChecker getManagedFlushChecker()
getManagedFlushChecker
in interface SessionCreationOptions
public boolean isQueryParametersValidationEnabled()
isQueryParametersValidationEnabled
in interface SessionCreationOptions
public StatelessSessionBuilder setQueryParameterValidation(boolean enabled)
StatelessSessionBuilder
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
setQueryParameterValidation
in interface StatelessSessionBuilder
enabled
- true
indicates the validation should be performed, false
otherwise
The default value is true
this
, for method chainingCopyright © 2019 JBoss by Red Hat. All rights reserved.