当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
Tools - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.cms.hibernate.state
Class Tools
java.lang.Object
org.jboss.portal.cms.hibernate.state.Tools
- public class Tools
- extends java.lang.Object
Field Summary |
private static boolean |
autoClose
|
private static org.hibernate.cfg.Configuration |
cfg
|
private static org.apache.log4j.Logger |
log
|
private static org.hibernate.SessionFactory |
sessionFactory
|
Constructor Summary |
Tools()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.apache.log4j.Logger log
sessionFactory
private static org.hibernate.SessionFactory sessionFactory
cfg
private static org.hibernate.cfg.Configuration cfg
autoClose
private static boolean autoClose
Tools
public Tools()
init
public static void init(java.lang.String jndiName)
getSessionFactory
public static org.hibernate.SessionFactory getSessionFactory()
getCurrentSession
public static org.hibernate.Session getCurrentSession()
- Returns:
getOpenSession
public static org.hibernate.Session getOpenSession()
- Returns:
closeSession
public static void closeSession(org.hibernate.Session session)
- Parameters:
session
-
generateSiteSchema
private static void generateSiteSchema(org.hibernate.cfg.Configuration cfg)
- Parameters:
cfg
-
doesSiteSchemaExist
private static boolean doesSiteSchemaExist()
- Returns: