org.ow2.bonita.pvm.internal.tx
Class HibernateSessionResource

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.tx.HibernateSessionResource
All Implemented Interfaces:
StandardResource

public class HibernateSessionResource
extends java.lang.Object
implements StandardResource

Author:
Tom Baeyens

Field Summary
protected  org.hibernate.Session session
           
protected  org.hibernate.Transaction transaction
           
 
Constructor Summary
HibernateSessionResource(org.hibernate.Session session)
           
 
Method Summary
 void commit()
           
 void prepare()
           
 void rollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected org.hibernate.Session session

transaction

protected org.hibernate.Transaction transaction
Constructor Detail

HibernateSessionResource

public HibernateSessionResource(org.hibernate.Session session)
Method Detail

prepare

public void prepare()
Specified by:
prepare in interface StandardResource

commit

public void commit()
Specified by:
commit in interface StandardResource

rollback

public void rollback()
Specified by:
rollback in interface StandardResource


Copyright © 2009 OW2 Consortium. All Rights Reserved.