Package db

# Interface DBListener

All Known Implementing Classes:
  `AddressRangeMapDB`

public interface DBListener
Database Listener.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `dbClosed(DBHandle dbh)`
  Database has been closed
  `void`
  `dbRestored(DBHandle dbh)`
  Provides notification that an undo or redo was performed.
  `void`
  `tableAdded(DBHandle dbh, Table table)`
  Provides notification that a table was added.
  `void`
  `tableDeleted(DBHandle dbh, Table table)`
  Provides notification that a table was deleted.

- ## Method Details

  - ### dbRestored

    void dbRestored(DBHandle dbh)
    Provides notification that an undo or redo was performed. During the restore process `tableAdded(DBHandle, Table)` and `tableDeleted(DBHandle, Table)` notifications will be supressed. Any listener concerned with tables added or removed should reacquire their table(s).
    Parameters:
      `dbh` - associated database handle

  - ### dbClosed

    void dbClosed(DBHandle dbh)
    Database has been closed
    Parameters:
      `dbh` - associated database handle

  - ### tableDeleted

    void tableDeleted(DBHandle dbh, Table table)
    Provides notification that a table was deleted. The state of the database may still be in transition and should not be accessed by this callback method.
    Parameters:
      `dbh` - associated database handle
      `table` -

  - ### tableAdded

    void tableAdded(DBHandle dbh, Table table)
    Provides notification that a table was added. The state of the database may still be in transition and should not be accessed by this callback method.
    Parameters:
      `dbh` - associated database handle
      `table` -