|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.test.framework.embedded.HibernateSupport
public class HibernateSupport
Nested Class Summary | |
---|---|
static class |
HibernateSupport.Config
|
Field Summary | |
---|---|
protected org.hibernate.cfg.Configuration |
cfg
. |
protected HibernateSupport.Config |
config
. |
protected org.hibernate.SessionFactory |
factory
. |
protected java.lang.String |
jndiName
. |
protected org.apache.log4j.Logger |
log
. |
protected java.util.Collection |
mappings
. |
protected org.hibernate.Session |
session
. |
protected org.hibernate.cfg.Settings |
settings
. |
Constructor Summary | |
---|---|
HibernateSupport()
|
Method Summary | |
---|---|
boolean |
commitTransaction()
Try to commit the transaction and return true if the commit was succesful |
void |
create()
|
protected void |
createConfiguration()
|
protected void |
createSchema()
|
protected void |
createSessionFactory()
|
void |
destroy()
|
protected void |
destroyConfiguration()
|
protected void |
destroySchema()
|
protected void |
destroySessionFactory()
|
static java.util.Map |
fromXML(java.net.URL url)
|
HibernateSupport.Config |
getConfig()
|
static HibernateSupport.Config |
getConfig(java.lang.String name)
|
org.hibernate.Session |
getCurrentSession()
|
java.lang.String |
getJNDIName()
|
java.util.Collection |
getMappings()
|
org.hibernate.SessionFactory |
getSessionFactory()
|
org.hibernate.Session |
openSession()
|
void |
rollbackTransaction()
Rollback the transaction and return true if the rollback was succesful |
void |
setConfig(HibernateSupport.Config config)
|
void |
setJNDIName(java.lang.String jndiName)
|
void |
setMappings(java.util.Collection mappings)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.log4j.Logger log
protected java.lang.String jndiName
protected java.util.Collection mappings
protected HibernateSupport.Config config
protected org.hibernate.SessionFactory factory
protected org.hibernate.Session session
protected org.hibernate.cfg.Configuration cfg
protected org.hibernate.cfg.Settings settings
Constructor Detail |
---|
public HibernateSupport()
Method Detail |
---|
public java.util.Collection getMappings()
public void setMappings(java.util.Collection mappings)
public HibernateSupport.Config getConfig()
public void setConfig(HibernateSupport.Config config)
public org.hibernate.SessionFactory getSessionFactory()
public java.lang.String getJNDIName()
public void setJNDIName(java.lang.String jndiName)
protected void createConfiguration()
protected void createSessionFactory()
protected void createSchema()
protected void destroySchema()
protected void destroySessionFactory()
protected void destroyConfiguration()
public void create() throws java.lang.Exception
java.lang.Exception
public void start() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
public void destroy()
public boolean commitTransaction()
public void rollbackTransaction()
public org.hibernate.Session getCurrentSession()
public org.hibernate.Session openSession()
public static java.util.Map fromXML(java.net.URL url) throws java.lang.Exception
java.lang.Exception
public static HibernateSupport.Config getConfig(java.lang.String name) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |