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

Hibernate (JBoss Seam API Documentation) - JBoss Seam 1.0.0 API 英文版文档


org.jboss.seam.core
Class Hibernate

java.lang.Object
  extended by org.jboss.seam.core.Hibernate

@Scope(value=APPLICATION)
@Intercept(value=NEVER)
@Startup(depends="org.jboss.seam.core.microcontainer")
@Name(value="org.jboss.seam.core.hibernate")
public class Hibernate
extends Object

A seam component that boostraps a Hiberate SessionFactory

Author:
Gavin King

Constructor Summary
Hibernate()
           
 
Method Summary
 String getCfgResourceName()
           
 org.hibernate.SessionFactory getSessionFactory()
           
 void setCfgResourceName(String cfgFileName)
           
 void shutdown()
           
 void startup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hibernate

public Hibernate()
Method Detail

getSessionFactory

@Unwrap
public org.hibernate.SessionFactory getSessionFactory()

startup

@Create
public void startup()
             throws Exception
Throws:
Exception

shutdown

@Destroy
public void shutdown()

getCfgResourceName

public String getCfgResourceName()

setCfgResourceName

public void setCfgResourceName(String cfgFileName)