|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.controlhaus.hibernate.HibernateControlImpl
public class HibernateControlImpl
Hibernate service.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.controlhaus.hibernate.HibernateControl |
---|
HibernateControl.HibernateInstance |
Field Summary | |
---|---|
(package private) org.apache.beehive.controls.api.context.ControlBeanContext |
context
|
(package private) org.apache.beehive.controls.api.context.ResourceContext |
resourceContext
|
Constructor Summary | |
---|---|
HibernateControlImpl()
|
Method Summary | |
---|---|
void |
closeSession()
Close the session for the current Thread. |
net.sf.hibernate.cfg.Configuration |
getConfiguration()
|
java.lang.String |
getConfigurationLocation()
Override this method to provide logic on how to get the Hibernate configuration file. |
java.lang.String |
getHibernateInstance()
The instance of hibernate that you want this control to use. |
net.sf.hibernate.Session |
getSession()
Return the session that is currently associated with this Thread. |
net.sf.hibernate.SessionFactory |
getSessionFactory()
Get the Hibernate SessionFactory . |
void |
onAcquire()
|
void |
onRelease()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.apache.beehive.controls.api.context.ControlBeanContext context
org.apache.beehive.controls.api.context.ResourceContext resourceContext
Constructor Detail |
---|
public HibernateControlImpl()
Method Detail |
---|
public net.sf.hibernate.SessionFactory getSessionFactory()
HibernateControl
SessionFactory
.
getSessionFactory
in interface HibernateControl
org.codehaus.plexus.hibernate.HibernateService#getSessionFactory()
public net.sf.hibernate.cfg.Configuration getConfiguration()
public java.lang.String getConfigurationLocation()
HibernateControl
getConfigurationLocation
in interface HibernateControl
public java.lang.String getHibernateInstance()
HibernateControl
getHibernateInstance
in interface HibernateControl
public void onAcquire()
public void onRelease()
public net.sf.hibernate.Session getSession() throws net.sf.hibernate.HibernateException
HibernateControl
getSession
in interface HibernateControl
net.sf.hibernate.HibernateException
public void closeSession() throws net.sf.hibernate.HibernateException
HibernateControl
closeSession
in interface HibernateControl
net.sf.hibernate.HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |