it.unibas.esempihibernate.util
Class PersistenceManager

java.lang.Object
  extended by it.unibas.esempihibernate.util.PersistenceManager

public class PersistenceManager
extends java.lang.Object


Constructor Summary
PersistenceManager()
           
 
Method Summary
static void beginTransaction()
           
static void closeSession()
           
static void commitTransaction()
           
static org.hibernate.Session getSession()
           
static org.hibernate.SessionFactory getSessionFactory()
           
static void rollbackTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceManager

public PersistenceManager()
Method Detail

getSessionFactory

public static org.hibernate.SessionFactory getSessionFactory()

getSession

public static org.hibernate.Session getSession()

closeSession

public static void closeSession()

beginTransaction

public static void beginTransaction()
                             throws DAOException
Throws:
DAOException

commitTransaction

public static void commitTransaction()
                              throws DAOException
Throws:
DAOException

rollbackTransaction

public static void rollbackTransaction()
                                throws DAOException
Throws:
DAOException