|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.aspects.hibernate.HibernateHelper
This class acts as a gateway between the AC HibernateAC and the Hibernate 2.0 framework. This class manages a singleton instance of itself.
Constructor Summary | |
HibernateHelper()
|
Method Summary | |
void |
addClass(Class cl)
Add a class to the Hibernate configuration. |
static HibernateHelper |
get()
|
net.sf.hibernate.Session |
getSession()
|
net.sf.hibernate.Transaction |
getTx()
|
void |
openSessionAndBeginTx()
Open an Hibernate session, and start a transaction. |
void |
schemaExport()
Export to the database the table schema for persistent classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HibernateHelper()
Method Detail |
public static HibernateHelper get()
public void addClass(Class cl) throws net.sf.hibernate.MappingException
net.sf.hibernate.MappingException
public void schemaExport() throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public void openSessionAndBeginTx() throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
public net.sf.hibernate.Session getSession()
public net.sf.hibernate.Transaction getTx() 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 |