org.ow2.orchestra.pvm.internal.tx
Class HibernateSessionResource
java.lang.Object
org.ow2.orchestra.pvm.internal.tx.HibernateSessionResource
- All Implemented Interfaces:
- StandardResource
public class HibernateSessionResource
- extends Object
- implements StandardResource
- Author:
- Tom Baeyens
|
Field Summary |
protected org.hibernate.Session |
session
|
protected org.hibernate.Transaction |
transaction
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
session
protected org.hibernate.Session session
transaction
protected org.hibernate.Transaction transaction
HibernateSessionResource
public HibernateSessionResource(org.hibernate.Session session)
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 © 2011 OW2 Consortium. All Rights Reserved.