站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

Tools - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.cms.hibernate.state
Class Tools

java.lang.Object
  extended byorg.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()
           
 
Method Summary
static void closeSession(org.hibernate.Session session)
           
private static boolean doesSiteSchemaExist()
           
private static void generateSiteSchema(org.hibernate.cfg.Configuration cfg)
           
static org.hibernate.Session getCurrentSession()
           
static org.hibernate.Session getOpenSession()
           
static org.hibernate.SessionFactory getSessionFactory()
           
static void init(java.lang.String jndiName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Tools

public Tools()
Method Detail

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: