Package com.ibm.ima.plugin
Interface ImaTransactionListener
-
public interface ImaTransactionListenerThe transaction listener defines the callbacks associated with a transaction.
The object implementing this interface is owned by the plug-in.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOPYRIGHT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCommit(ImaTransaction transaction, int rc, String reason)Called when the transaction is committed.voidonCreate(ImaTransaction transaction, int rc, String reason)Called when the transaction is created.voidonRollback(ImaTransaction transaction, int rc, String reason)Called when the transaction is rolled back.
-
-
-
Field Detail
-
COPYRIGHT
static final String COPYRIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
onCreate
void onCreate(ImaTransaction transaction, int rc, String reason)
Called when the transaction is created. The transaction can be used now.- Parameters:
transaction-rc- A return code 0=normalreason- A human readable reason code
-
onCommit
void onCommit(ImaTransaction transaction, int rc, String reason)
Called when the transaction is committed. The transaction can be reused after that.- Parameters:
rc- A return code 0=normalreason- A human readable reason code
-
onRollback
void onRollback(ImaTransaction transaction, int rc, String reason)
Called when the transaction is rolled back. The transaction can be reused after that.- Parameters:
rc- A return code 0=normalreason- A human readable reason code
-
-