de.fhg.fokus.hss.db.hibernate.HibernateUtil Class Reference

List of all members.

Detailed Description

This class does not only take care of the SessionFactory with its static initializer, but also has a ThreadLocal variable which holds the Session for the current thread.

Make sure you understand the Java concept of a thread-local variable before you try to use this helper.

Author:
Andre Charton (dev -at- open-ims dot org)


Static Private Attributes

static final Logger LOGGER = Logger.getLogger(HibernateUtil.class)
 the logger
static final SessionFactory sessionFactory
 the session factory
static final ThreadLocal threadSession = new ThreadLocal()
 thread local variable
static final ThreadLocal threadTransaction = new ThreadLocal()


Member Data Documentation

final Logger de.fhg.fokus.hss.db.hibernate.HibernateUtil.LOGGER = Logger.getLogger(HibernateUtil.class) [static, private]

the logger

final SessionFactory de.fhg.fokus.hss.db.hibernate.HibernateUtil.sessionFactory [static, private]

the session factory

final ThreadLocal de.fhg.fokus.hss.db.hibernate.HibernateUtil.threadSession = new ThreadLocal() [static, private]

thread local variable

final ThreadLocal de.fhg.fokus.hss.db.hibernate.HibernateUtil.threadTransaction = new ThreadLocal() [static, private]


The documentation for this class was generated from the following file:
Generated on Tue Oct 7 04:05:15 2008 for Open IMS Core - FHoSS by  doxygen 1.5.2