com.liferay.portal.spring.hibernate
Class HibernateUtil
java.lang.Object
com.liferay.portal.spring.hibernate.HibernateUtil
public class HibernateUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COUNT_COLUMN_NAME
public static final java.lang.String COUNT_COLUMN_NAME
- See Also:
- Constant Field Values
SPRING_HIBERNATE_DATA_SOURCE
public static final java.lang.String SPRING_HIBERNATE_DATA_SOURCE
SPRING_HIBERNATE_SESSION_FACTORY
public static final java.lang.String SPRING_HIBERNATE_SESSION_FACTORY
HibernateUtil
public HibernateUtil()
closeSession
public static void closeSession(org.hibernate.Session session)
getConnection
public static java.sql.Connection getConnection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCountColumnName
public static java.lang.String getCountColumnName()
getDataSource
public static javax.sql.DataSource getDataSource()
getDialect
public static org.hibernate.dialect.Dialect getDialect()
getDialect
public static org.hibernate.dialect.Dialect getDialect(java.lang.String sessionFactoryName)
getSessionFactory
public static org.hibernate.engine.SessionFactoryImplementor getSessionFactory()
getSessionFactory
public static org.hibernate.engine.SessionFactoryImplementor getSessionFactory(java.lang.String sessionFactoryName)
getWrappedDialect
public static org.hibernate.dialect.Dialect getWrappedDialect()
getWrappedDialect
public static org.hibernate.dialect.Dialect getWrappedDialect(java.lang.String sessionFactoryName)
openSession
public static org.hibernate.Session openSession()
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
openSession
public static org.hibernate.Session openSession(java.lang.String sessionFactoryName)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
openSession
public static org.hibernate.Session openSession(org.hibernate.SessionFactory sessionFactory)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
processException
public static com.liferay.portal.SystemException processException(java.lang.Exception e)