com.friendshipsystems.fsshresourcemanager
Class FHibernateUtil

java.lang.Object
  extended by com.friendshipsystems.fsshresourcemanager.FHibernateUtil

public class FHibernateUtil
extends java.lang.Object

The FHibernateUtil encapsulates the database access provided by Hibernate. It allows thread safe access to Hibernate functionality.

Author:
bergmanna

Constructor Summary
FHibernateUtil()
           
 
Method Summary
static void cleanupThreadLocal()
           
 java.lang.Boolean commit()
           
 org.hibernate.Session getSession()
           
 org.hibernate.SessionFactory getSessionFactory()
           
static FHibernateUtil instance()
           
 java.lang.Boolean rollBack()
           
 java.lang.Boolean startTransaction()
           
static void tearDown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FHibernateUtil

public FHibernateUtil()
Method Detail

instance

public static FHibernateUtil instance()

cleanupThreadLocal

public static void cleanupThreadLocal()

tearDown

public static void tearDown()

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()

getSession

public org.hibernate.Session getSession()

startTransaction

public java.lang.Boolean startTransaction()

commit

public java.lang.Boolean commit()

rollBack

public java.lang.Boolean rollBack()