asit.common
Class HibernateUtil

java.lang.Object
  extended byasit.common.HibernateUtil

public class HibernateUtil
extends Object


Field Summary
static ThreadLocal session
           
 
Constructor Summary
HibernateUtil()
           
 
Method Summary
static void closeSession()
           
static net.sf.hibernate.Session currentSession()
           
static void delete(Object object)
           
static void hsqlCleanup(net.sf.hibernate.Session s)
           
static void saveOrUpdate(Object object)
           
static Object saveOrUpdateCopy(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

public static final ThreadLocal session
Constructor Detail

HibernateUtil

public HibernateUtil()
Method Detail

hsqlCleanup

public static void hsqlCleanup(net.sf.hibernate.Session s)

currentSession

public static net.sf.hibernate.Session currentSession()
                                               throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

closeSession

public static void closeSession()
                         throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

saveOrUpdate

public static void saveOrUpdate(Object object)
                         throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

saveOrUpdateCopy

public static Object saveOrUpdateCopy(Object object)
                               throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

delete

public static void delete(Object object)
                   throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException


Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.