org.apache.commons.transaction.util.xa
Class AbstractTransactionalResource
java.lang.Object
org.apache.commons.transaction.util.xa.AbstractTransactionalResource
- All Implemented Interfaces:
- Status, TransactionalResource
- Direct Known Subclasses:
- MapXAResource.MapTransactionalResource
public abstract class AbstractTransactionalResource
- extends Object
- implements TransactionalResource, Status
Rudimentary abstract implementation of TransactionalResource
for specific implementations to base upon.
Method Summary |
int |
getStatus()
Returns the current status of this transaction resource. |
Xid |
getXid()
Returns the Xid this transctional resource is associated with. |
void |
setStatus(int status)
Sets the status of this transctional resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xid
protected Xid xid
status
protected int status
AbstractTransactionalResource
public AbstractTransactionalResource(Xid xid)
getStatus
public int getStatus()
- Description copied from interface:
TransactionalResource
- Returns the current status of this transaction resource.
- Specified by:
getStatus
in interface TransactionalResource
- Returns:
- the current status of this resource as defined by
Status
.
setStatus
public void setStatus(int status)
- Description copied from interface:
TransactionalResource
- Sets the status of this transctional resource. The status set by this method
must be available over
TransactionalResource.getStatus()
afterwards.
- Specified by:
setStatus
in interface TransactionalResource
- Parameters:
status
- the status to be set
getXid
public Xid getXid()
- Description copied from interface:
TransactionalResource
- Returns the Xid this transctional resource is associated with. This might have been set in
the constructor of implementing classes.
- Specified by:
getXid
in interface TransactionalResource
- Returns:
- the xid this transctional resource is associated with
Copyright ? 2004 The Apache Software Foundation. All Rights Reserved.