public interface JCoServerTIDHandler
TIDHandler
Modifier and Type | Method and Description |
---|---|
boolean |
checkTID(JCoServerContext serverCtx,
String tid)
This function will be invoked when a transactional RFC is being called from a
SAP system.
|
void |
commit(JCoServerContext serverCtx,
String tid)
This function will be called after all RFC functions belonging to a certain transaction
have been successfully completed.
|
void |
confirmTID(JCoServerContext serverCtx,
String tid)
This function will be called after the local transaction has been completed.
|
void |
rollback(JCoServerContext serverCtx,
String tid)
This function will be called if an error has occurred in one of the RFC functions belonging to
a certain transaction.
|
boolean checkTID(JCoServerContext serverCtx, String tid)
true
.
The method has to return false
if the a transaction with this ID has already
been processed successfully (i.e. was committed). It should throw an exception if anything goes wrong.
The transaction processing will be aborted thereafter. In case the transaction with the passed TID
is still in execution, the method should wait internally in order to return an appropriate value.serverCtx
- server context describes the server which gets the calltid
- the transaction IDtrue
if the ID is valid and not in use, false
otherwisevoid confirmTID(JCoServerContext serverCtx, String tid)
serverCtx
- server context describes the server which gets the calltid
- the transaction IDvoid commit(JCoServerContext serverCtx, String tid)
serverCtx
- server context describes the server which gets the calltid
- the transaction IDvoid rollback(JCoServerContext serverCtx, String tid)
serverCtx
- server context describes the server which gets the calltid
- the transaction IDCopyright © 2024 SAP. All rights reserved.