|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionProvider
implementors provide session session management.
| Method Summary | |
|---|---|
void |
close()
normal session close. |
void |
commit()
commit transaction currently underway, and start new one ( as side effect hibernate session will be flushed ) |
net.sf.hibernate.Session |
getSession()
provide hibernate session out of factory create new one if necessary, |
void |
reset()
reset and clean up everything. |
void |
rollback()
rollback active transaction if any was started. |
| Method Detail |
|---|
net.sf.hibernate.Session getSession()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException - Description of Exception
void commit()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException
void rollback()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException - if transaction can not be rolled back
void close()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateExceptionvoid reset()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||