org.mentawai.db
Class SessionHandler

java.lang.Object
  extended by org.mentawai.db.SessionHandler
All Implemented Interfaces:
org.mentacontainer.Factory, org.mentacontainer.Interceptor<org.hibernate.Session>

public class SessionHandler
extends Object
implements org.mentacontainer.Factory, org.mentacontainer.Interceptor<org.hibernate.Session>


Constructor Summary
SessionHandler(org.hibernate.SessionFactory sf)
           
 
Method Summary
 ConnectionHandler getConnHandler()
           
<T> T
getInstance()
           
 org.hibernate.Session getSession()
           
 Class<? extends Object> getType()
           
 void onCleared(org.hibernate.Session session)
           
 void onCreated(org.hibernate.Session session)
           
 void release(org.hibernate.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionHandler

public SessionHandler(org.hibernate.SessionFactory sf)
Method Detail

getConnHandler

public ConnectionHandler getConnHandler()

getSession

public org.hibernate.Session getSession()

getInstance

public <T> T getInstance()
Specified by:
getInstance in interface org.mentacontainer.Factory

release

public void release(org.hibernate.Session session)

onCleared

public void onCleared(org.hibernate.Session session)
Specified by:
onCleared in interface org.mentacontainer.Interceptor<org.hibernate.Session>

onCreated

public void onCreated(org.hibernate.Session session)
Specified by:
onCreated in interface org.mentacontainer.Interceptor<org.hibernate.Session>

getType

public Class<? extends Object> getType()
Specified by:
getType in interface org.mentacontainer.Factory


Copyright © 2013. All Rights Reserved.