org.ow2.petals.registry.core.repository.hibernate
Class HibernateHelper

java.lang.Object
  extended by org.ow2.petals.registry.core.repository.hibernate.HibernateHelper

public final class HibernateHelper
extends java.lang.Object

Author:
Christophe HAMERLING - eBM WebSourcing

Constructor Summary
HibernateHelper()
           
 
Method Summary
 void configureSession(org.ow2.petals.registry.api.config.DBConfiguration dbConfiguration)
           
 org.hibernate.Session getSession()
           
 org.hibernate.SessionFactory getSessionFactory()
           
 org.hibernate.stat.Statistics getSessionStatistics()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateHelper

public HibernateHelper()
Method Detail

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()
Returns:
the sessionFactory

getSession

public org.hibernate.Session getSession()
                                 throws org.ow2.petals.registry.api.exception.RegistryException
Returns:
Throws:
org.hibernate.HibernateException
DataCollectorConfigException
org.ow2.petals.registry.api.exception.RegistryException

getSessionStatistics

public org.hibernate.stat.Statistics getSessionStatistics()

configureSession

public void configureSession(org.ow2.petals.registry.api.config.DBConfiguration dbConfiguration)


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.