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()
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 chainingCopyright © 2016 JBoss by Red Hat. All rights reserved.