|
IBM WebSphere® DataPower® XC10 Appliance Release 2.0 Client API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface TransactionCallback.BeforeCommit
The BeforeCommit optional mix-in interface for the TransactionCallback plug-in interface allows plug-ins to be
notified at the beginning of a Session.commit()
. Implementations can use the beforeCommit()
method to validate changed data in the transaction and modify the data.
Nested Class Summary | |
---|---|
static interface |
TransactionCallback.BeforeCommit.TransactionContext
The TransactionContext identifies various information that's available to the beforeCommit() method. |
Nested classes/interfaces inherited from interface com.ibm.websphere.objectgrid.plugins.TransactionCallback |
---|
TransactionCallback.BeforeCommit |
Method Summary | |
---|---|
void |
beforeCommit(TransactionCallback.BeforeCommit.TransactionContext ctx)
Invoked at the beginning of a Session.commit() . |
Methods inherited from interface com.ibm.websphere.objectgrid.plugins.TransactionCallback |
---|
begin, commit, initialize, isExternalTransactionActive, rollback |
Method Detail |
---|
void beforeCommit(TransactionCallback.BeforeCommit.TransactionContext ctx) throws TransactionCallbackException
Session.commit()
.
Use the TransactionContext.getLogSequences()
method to retrieve the changes made by this
transaction.
Use the TransactionContext.getTxId().getSession()
methods to access the Session. The Session can
be used to access ObjectMaps and modify data in the current transaction.
ctx
- the context of the transaction.
TransactionCallbackException
- if an error occurs during processing. Any exception will roll back the transaction and will be
included in the TransactionException thrown to the caller.Session.commit()
,
TxID
|
IBM WebSphere® DataPower® XC10 Appliance Release 2.0 Client API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |