|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HibernateControl
The HibernateControl allows easy session and transaction management
between Beehive Controls and Hibernate.
Use the ManagedTransactions
property on the HibernateControl
and transactions will be managed for you autmatically. The transaction
will start at the first access to the session.
Nested Class Summary | |
---|---|
static interface |
HibernateControl.ManagedTransactions
|
Method Summary | |
---|---|
void |
closeSession()
Close the session for the current Thread. |
net.sf.hibernate.Session |
getSession()
|
net.sf.hibernate.SessionFactory |
getSessionFactory()
Get the Hibernate SessionFactory . |
net.sf.hibernate.Transaction |
getTransaction()
|
Method Detail |
---|
net.sf.hibernate.SessionFactory getSessionFactory()
SessionFactory
.
net.sf.hibernate.Session getSession() throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
net.sf.hibernate.Transaction getTransaction()
null
.void closeSession() throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |