|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionalResource
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 |
---|
void commit() throws XAException
XAException
- when anything goes wrong the error must be described in XA
notationint prepare() throws XAException
XAResource.prepare(Xid)
.
XAException
- when anything goes wrong the error must be described in XA
notationvoid rollback() throws XAException
XAException
- when anything goes wrong the error must be described in XA
notationvoid begin() throws XAException
XAException
void suspend() throws XAException
XAException
void resume() throws XAException
XAException
int getStatus()
Status
.void setStatus(int status)
getStatus()
afterwards.
status
- the status to be setXid getXid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |