public static class SessionFactoryImpl.StatelessSessionBuilderImpl extends Object implements StatelessSessionBuilder, SessionCreationOptions
| Constructor and Description |
|---|
StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory) |
public StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory)
public StatelessSession openStatelessSession()
StatelessSessionBuilderopenStatelessSession in interface StatelessSessionBuilderpublic StatelessSessionBuilder connection(Connection connection)
StatelessSessionBuilderconnection in interface StatelessSessionBuilderconnection - The connection to use.this, for method chainingpublic StatelessSessionBuilder tenantIdentifier(String tenantIdentifier)
StatelessSessionBuildertenantIdentifier in interface StatelessSessionBuildertenantIdentifier - The tenant identifier.this, for method chainingpublic boolean shouldAutoJoinTransactions()
shouldAutoJoinTransactions in interface SessionCreationOptionspublic FlushMode getInitialSessionFlushMode()
getInitialSessionFlushMode in interface SessionCreationOptionspublic boolean shouldAutoClose()
shouldAutoClose in interface SessionCreationOptionspublic boolean shouldAutoClear()
shouldAutoClear in interface SessionCreationOptionspublic Connection getConnection()
getConnection in interface SessionCreationOptionspublic Interceptor getInterceptor()
getInterceptor in interface SessionCreationOptionspublic StatementInspector getStatementInspector()
getStatementInspector in interface SessionCreationOptionspublic PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
getPhysicalConnectionHandlingMode in interface SessionCreationOptionspublic String getTenantIdentifier()
getTenantIdentifier in interface SessionCreationOptionspublic TimeZone getJdbcTimeZone()
getJdbcTimeZone in interface SessionCreationOptionspublic SessionOwner getSessionOwner()
SessionCreationOptionsgetSessionOwner in interface SessionCreationOptionspublic ExceptionMapper getExceptionMapper()
getExceptionMapper in interface SessionCreationOptionspublic AfterCompletionAction getAfterCompletionAction()
getAfterCompletionAction in interface SessionCreationOptionspublic ManagedFlushChecker getManagedFlushChecker()
getManagedFlushChecker in interface SessionCreationOptionspublic boolean isQueryParametersValidationEnabled()
isQueryParametersValidationEnabled in interface SessionCreationOptionspublic StatelessSessionBuilder setQueryParameterValidation(boolean enabled)
StatelessSessionBuilderQuery.setParameter(javax.persistence.Parameter<java.time.Instant>, java.time.Instant, javax.persistence.TemporalType) perform parameter validation
when the Session is bootstrapped via JPA EntityManagerFactorysetQueryParameterValidation in interface StatelessSessionBuilderenabled - 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.