|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.qos.logback.audit.persistent.Persistor
public class Persistor
Base functionality "class" for all Persistor classes - this class only bundles static functions, has no members nor methods. Persistor includes functions to create or retrieve a Hibernate SessionFactory, and functions to open, close or rollback sessions.
| Constructor Summary | |
|---|---|
Persistor()
|
|
| Method Summary | |
|---|---|
protected static void |
close(org.hibernate.Session theHibernateSession)
Close a Hibernate Session. |
protected static void |
close(org.hibernate.Session theHibernateSession,
org.hibernate.Transaction tx)
Rollback a Hibernate transaction and close the session. |
static org.hibernate.cfg.Configuration |
createConfiguration()
|
static void |
delete(Object o)
|
protected static org.hibernate.Session |
openSession()
Open an Hibernate Session. |
static void |
resetConfiguration(Object lock)
|
static void |
save(Object o)
|
static void |
setConfiguration(org.hibernate.cfg.Configuration cfg,
Object lock)
|
protected static void |
update(Object o)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Persistor()
| Method Detail |
|---|
public static org.hibernate.cfg.Configuration createConfiguration()
public static void setConfiguration(org.hibernate.cfg.Configuration cfg,
Object lock)
public static void resetConfiguration(Object lock)
protected static org.hibernate.Session openSession()
throws org.hibernate.HibernateException
org.hibernate.HibernateException - In case the session could not be created.
protected static void update(Object o)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static void save(Object o)
throws org.hibernate.HibernateException
org.hibernate.HibernateException
public static void delete(Object o)
throws org.hibernate.HibernateException
org.hibernate.HibernateExceptionprotected static void close(org.hibernate.Session theHibernateSession)
theHibernateSession - The open session to close.
In case of a problem, this method will log an error but won't propagate any
exception - therefore it may be used safely in a finally{} block.
protected static void close(org.hibernate.Session theHibernateSession,
org.hibernate.Transaction tx)
theHibernateSession - The open session to rollback and close.tx -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||