public class SessionHandler extends Object implements org.mentacontainer.Factory, org.mentacontainer.Interceptor<org.hibernate.Session>
| Constructor and Description |
|---|
SessionHandler(org.hibernate.SessionFactory sf) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public ConnectionHandler getConnHandler()
public org.hibernate.Session getSession()
public <T> T getInstance()
getInstance in interface org.mentacontainer.Factorypublic void release(org.hibernate.Session session)
public void onCleared(org.hibernate.Session session)
onCleared in interface org.mentacontainer.Interceptor<org.hibernate.Session>public void onCreated(org.hibernate.Session session)
onCreated in interface org.mentacontainer.Interceptor<org.hibernate.Session>Copyright © 2015. All Rights Reserved.