AdventNet Web NMS 4 API Specification

com.adventnet.management.transaction
Interface TransactionHandler

All Known Implementing Classes:
DBHashtable, DBVector, Notifier

public interface TransactionHandler

This is the interface that needs to be implemented for getting notifications after a transaction is completed. (either committed or rolledback).Once the transaction is actually committed or rolled back to the database if the user has to do some manipulations, then this interface has to be implemented to get the notification.


Method Summary
 void notifyCommit(java.lang.Thread currentThread)
          This method is invoked once the transaction is committed to the database.
 void notifyRollback(java.lang.Thread currentThread)
          This method is invoked once the transaction is rolled back to the database.
 

Method Detail

notifyCommit

public void notifyCommit(java.lang.Thread currentThread)
This method is invoked once the transaction is committed to the database.
Parameters:
currentThread - - Thread instance that began the transaction.

notifyRollback

public void notifyRollback(java.lang.Thread currentThread)
This method is invoked once the transaction is rolled back to the database.
Parameters:
currentThread - - Thread instance that began the transaction.

AdventNet Web NMS 4 API Specification