src.java.org.codehaus.groovy.grails.plugins.springsecurity
Class SessionContainer

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

SessionContainer(Session session, boolean existingSession)


Method Detail

getSession

public Session getSession()
Get the session.
return:
the session


getSessionFactory

SessionFactory getSessionFactory()


releaseSession

void releaseSession(SessionContainer session)
Release Session.


setUpSession

SessionContainer setUpSession()
Set up hibernate session.
return:
the session container, which holds the session and a boolean indicating if the session was pre-existing