|
|||||||||
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. |
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()
|
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |