|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.test.framework.embedded.HibernateSupport
Field Summary | |
protected org.hibernate.cfg.Configuration |
cfg
. |
static java.lang.String |
DS_JNDI_NAME
|
protected org.hibernate.SessionFactory |
factory
. |
protected java.lang.String |
jndiName
. |
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()
|
org.hibernate.cfg.Configuration |
getConfig()
|
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 |
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 |
public static final java.lang.String DS_JNDI_NAME
protected java.lang.String jndiName
protected java.util.Collection mappings
protected org.hibernate.cfg.Configuration cfg
protected org.hibernate.SessionFactory factory
protected org.hibernate.cfg.Settings settings
protected org.hibernate.Session session
Constructor Detail |
public HibernateSupport()
Method Detail |
public java.util.Collection getMappings()
public void setMappings(java.util.Collection mappings)
public org.hibernate.cfg.Configuration getConfig()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |