com.xpn.xwiki.store.hibernate
Class DefaultHibernateSessionFactory

java.lang.Object
  extended by com.xpn.xwiki.store.hibernate.DefaultHibernateSessionFactory
All Implemented Interfaces:
HibernateSessionFactory

@Component
@Singleton
public class DefaultHibernateSessionFactory
extends Object
implements HibernateSessionFactory

Default implementation for HibernateSessionFactory.

Since:
2.0M1
Version:
$Id: 38bdff9d81cec77af1a2ac7e95c4fd22eabab916 $

Constructor Summary
DefaultHibernateSessionFactory()
           
 
Method Summary
 org.hibernate.cfg.Configuration getConfiguration()
           
 org.hibernate.SessionFactory getSessionFactory()
           
 void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHibernateSessionFactory

public DefaultHibernateSessionFactory()
Method Detail

getConfiguration

public org.hibernate.cfg.Configuration getConfiguration()
Specified by:
getConfiguration in interface HibernateSessionFactory
Returns:
Hibernate Configuration object

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()
Specified by:
getSessionFactory in interface HibernateSessionFactory
Returns:
Real Hibernate session factory

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Specified by:
setSessionFactory in interface HibernateSessionFactory


Copyright © 2004-2013 XWiki. All Rights Reserved.