public interface SessionFactory
Session
instance, and to close a session.| Modifier and Type | Method and Description |
|---|---|
Session |
cloneSession(Session session)
Get a copy of the given session.
The session is not shared within the thread. |
void |
closeSession(Session session)
Close the given session.
|
Session |
getSession(String contextName,
String mappingName)
Get a session instance.
The session is shared within the thread. |
Session |
getStatelessSession(String contextName,
String mappingName)
Get a stateless session instance.
The session is not shared within the thread. |
Session getSession(String contextName, String mappingName)
contextName - the database context.mappingName - the database mapping.Session getStatelessSession(String contextName, String mappingName)
contextName - the database context.mappingName - the database mapping.Session cloneSession(Session session)
session - the session to clone.void closeSession(Session session)
session - (missing javadoc)Copyright © 2006–2018 Esito AS. All rights reserved.