Liferay 6.1.2-ce-ga3

com.liferay.portal.dao.orm.hibernate
Class SessionFactoryImpl

java.lang.Object
  extended by com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl
All Implemented Interfaces:
SessionFactory
Direct Known Subclasses:
PortletSessionFactoryImpl

public class SessionFactoryImpl
extends Object
implements SessionFactory


Field Summary
protected static List<PortletSessionFactoryImpl> portletSessionFactories
           
 
Constructor Summary
SessionFactoryImpl()
           
 
Method Summary
 void closeSession(Session session)
           
 void destroy()
           
 Dialect getDialect()
           
static List<PortletSessionFactoryImpl> getPortletSessionFactories()
           
 ClassLoader getSessionFactoryClassLoader()
           
 org.hibernate.engine.SessionFactoryImplementor getSessionFactoryImplementor()
           
 Session openNewSession(Connection connection)
           
 Session openSession()
           
 void setSessionFactoryClassLoader(ClassLoader sessionFactoryClassLoader)
           
 void setSessionFactoryImplementor(org.hibernate.engine.SessionFactoryImplementor sessionFactoryImplementor)
           
protected  Session wrapSession(org.hibernate.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portletSessionFactories

protected static final List<PortletSessionFactoryImpl> portletSessionFactories
Constructor Detail

SessionFactoryImpl

public SessionFactoryImpl()
Method Detail

getPortletSessionFactories

public static List<PortletSessionFactoryImpl> getPortletSessionFactories()

closeSession

public void closeSession(Session session)
                  throws ORMException
Specified by:
closeSession in interface SessionFactory
Throws:
ORMException

destroy

public void destroy()

getDialect

public Dialect getDialect()
                   throws ORMException
Specified by:
getDialect in interface SessionFactory
Throws:
ORMException

getSessionFactoryClassLoader

public ClassLoader getSessionFactoryClassLoader()

getSessionFactoryImplementor

public org.hibernate.engine.SessionFactoryImplementor getSessionFactoryImplementor()

openNewSession

public Session openNewSession(Connection connection)
                       throws ORMException
Specified by:
openNewSession in interface SessionFactory
Throws:
ORMException

openSession

public Session openSession()
                    throws ORMException
Specified by:
openSession in interface SessionFactory
Throws:
ORMException

setSessionFactoryClassLoader

public void setSessionFactoryClassLoader(ClassLoader sessionFactoryClassLoader)

setSessionFactoryImplementor

public void setSessionFactoryImplementor(org.hibernate.engine.SessionFactoryImplementor sessionFactoryImplementor)

wrapSession

protected Session wrapSession(org.hibernate.Session session)

Liferay 6.1.2-ce-ga3