public interface TransactionalResource
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
commit()
Commits the changes done inside this transaction reasource.
|
int |
getStatus()
Returns the current status of this transaction resource.
|
javax.transaction.xa.Xid |
getXid()
Returns the Xid this transctional resource is associated with.
|
int |
prepare()
Prepares the changes done inside this transaction reasource.
|
void |
resume() |
void |
rollback()
Rolls back the changes done inside this transaction reasource.
|
void |
setStatus(int status)
Sets the status of this transctional resource.
|
void |
suspend() |
void commit() throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
- when anything goes wrong the error must be described in XA
notationint prepare() throws javax.transaction.xa.XAException
XAResource.prepare(Xid)
.javax.transaction.xa.XAException
- when anything goes wrong the error must be described in XA
notationvoid rollback() throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
- when anything goes wrong the error must be described in XA
notationvoid begin() throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
void suspend() throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
void resume() throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
int getStatus()
Status
.void setStatus(int status)
getStatus()
afterwards.status
- the status to be setjavax.transaction.xa.Xid getXid()
Copyright ? 2004 The Apache Software Foundation. All Rights Reserved.