public static class SessionFactoryImpl.StatelessSessionBuilderImpl extends Object implements StatelessSessionBuilder
| Constructor and Description | 
|---|
| StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory) | 
| Modifier and Type | Method and Description | 
|---|---|
| StatelessSessionBuilder | connection(Connection connection)Adds a specific connection to the session options. | 
| StatelessSession | openStatelessSession()Opens a session with the specified options. | 
| StatelessSessionBuilder | tenantIdentifier(String tenantIdentifier)Define the tenant identifier to be associated with the opened session. | 
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 chainingCopyright © 2017 JBoss by Red Hat. All rights reserved.