org.mentawai.db
Class SessionHandler
java.lang.Object
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>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionHandler
public SessionHandler(org.hibernate.SessionFactory sf)
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 © 2011. All Rights Reserved.