|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Holds the session created or existing session and a flag indicating whether it was existing (so we know whether to close it or not).
Field Summary | |
---|---|
boolean |
_existingSession
|
Session |
_session
|
Constructor Summary | |
SessionContainer(Session session, boolean existingSession)
|
Method Summary | |
---|---|
Session |
getSession()
Get the session. |
SessionFactory |
getSessionFactory()
|
void |
releaseSession(SessionContainer session)
Release Session. |
SessionContainer |
setUpSession()
Set up hibernate session. |
Constructor Detail |
---|
SessionContainer(Session session, boolean existingSession)
Method Detail |
---|
public Session getSession()
SessionFactory getSessionFactory()
void releaseSession(SessionContainer session)
SessionContainer setUpSession()