public static class SessionFactoryImpl.StatelessSessionBuilderImpl extends java.lang.Object implements StatelessSessionBuilder
| Constructor and Description |
|---|
StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
StatelessSessionBuilder |
connection(java.sql.Connection connection)
Adds a specific connection to the session options.
|
StatelessSession |
openStatelessSession()
Opens a session with the specified options.
|
StatelessSessionBuilder |
tenantIdentifier(java.lang.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(java.sql.Connection connection)
StatelessSessionBuilderconnection in interface StatelessSessionBuilderconnection - The connection to use.this, for method chainingpublic StatelessSessionBuilder tenantIdentifier(java.lang.String tenantIdentifier)
StatelessSessionBuildertenantIdentifier in interface StatelessSessionBuildertenantIdentifier - The tenant identifier.this, for method chainingCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.