org.hibernate.internal
Class SessionFactoryImpl.StatelessSessionBuilderImpl
java.lang.Object
org.hibernate.internal.SessionFactoryImpl.StatelessSessionBuilderImpl
- All Implemented Interfaces:
- StatelessSessionBuilder
- Enclosing class:
- SessionFactoryImpl
public static class SessionFactoryImpl.StatelessSessionBuilderImpl
- extends Object
- implements StatelessSessionBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionFactoryImpl.StatelessSessionBuilderImpl
public SessionFactoryImpl.StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory)
openStatelessSession
public StatelessSession openStatelessSession()
- Description copied from interface:
StatelessSessionBuilder
- Opens a session with the specified options.
- Specified by:
openStatelessSession
in interface StatelessSessionBuilder
- Returns:
- The session
connection
public StatelessSessionBuilder connection(Connection connection)
- Description copied from interface:
StatelessSessionBuilder
- Adds a specific connection to the session options
- Specified by:
connection
in interface StatelessSessionBuilder
- Parameters:
connection
- The connection to use.
- Returns:
this
, for method chaining
tenantIdentifier
public StatelessSessionBuilder tenantIdentifier(String tenantIdentifier)
- Description copied from interface:
StatelessSessionBuilder
- Define the tenant identifier to be associated with the opened session.
- Specified by:
tenantIdentifier
in interface StatelessSessionBuilder
- Parameters:
tenantIdentifier
- The tenant identifier.
- Returns:
this
, for method chaining
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.