Package com.ibm.ima.plugin
Interface ImaTransactionListener
public interface ImaTransactionListener
The transaction listener defines the callbacks associated with a transaction.
The object implementing this interface is owned by the plug-in.
The object implementing this interface is owned by the plug-in.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidonCommit(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 Details
-
COPYRIGHT
- See Also:
-
-
Method Details
-
onCreate
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
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
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
-