|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for something that makes up a transactional resource.
Method Summary | |
void |
begin()
|
void |
commit()
Commits the changes done inside this transaction reasource. |
int |
getStatus()
Returns the current status of this transaction resource. |
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()
|
Method Detail |
public void commit() throws XAException
XAException
- when anything goes wrong the error must be described in XA
notationpublic int prepare() throws XAException
XAResource.prepare(Xid)
.
XAException
- when anything goes wrong the error must be described in XA
notationpublic void rollback() throws XAException
XAException
- when anything goes wrong the error must be described in XA
notationpublic void begin() throws XAException
XAException
public void suspend() throws XAException
XAException
public void resume() throws XAException
XAException
public int getStatus()
Status
.public void setStatus(int status)
getStatus()
afterwards.
status
- the status to be setpublic Xid getXid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |