ir.thinkinsql
Interface UpdateListener


public interface UpdateListener

Specifies the behavior of objects that receive notification of update activity performed through a Database. Use Database.setUpdateListener() to register.


Method Summary
 void afterCommand(Database db, java.lang.String sql, java.lang.Object[] parms)
          Notification received after an sql update, insert, delete or call is run via Database.execute.
 void afterDelete(Database db, IRecord rec)
          Notification received after an IRecord object is deleted.
 void afterInsert(Database db, IRecord rec)
          Notification received after an IRecord object is inserted.
 void afterUpdate(Database db, IRecord rec)
          Notification received after an IRecord object is updated.
 

Method Detail

afterCommand

void afterCommand(Database db,
                  java.lang.String sql,
                  java.lang.Object[] parms)
                  throws java.lang.Exception
Notification received after an sql update, insert, delete or call is run via Database.execute.

Throws:
java.lang.Exception

afterDelete

void afterDelete(Database db,
                 IRecord rec)
                 throws java.lang.Exception
Notification received after an IRecord object is deleted.

Throws:
java.lang.Exception

afterInsert

void afterInsert(Database db,
                 IRecord rec)
                 throws java.lang.Exception
Notification received after an IRecord object is inserted. Use IRecord.getChanges to examine column values.

Throws:
java.lang.Exception

afterUpdate

void afterUpdate(Database db,
                 IRecord rec)
                 throws java.lang.Exception
Notification received after an IRecord object is updated. Use IRecord.getChanges to examine column values.

Throws:
java.lang.Exception