org.apache.cayenne.map.event

## Interface DbEntityListener

- All Superinterfaces:
    EventListener
  All Known Implementing Classes:
    DataMap, DbEntity, DetectedDbEntity

      public interface DbEntityListener
      extends EventListener

  Defines a listener for DbEntity modification events.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `dbEntityAdded(EntityEvent e)` New entity has been created/added.
    `void` | `dbEntityChanged(EntityEvent e)` Entity property changed.
    `void` | `dbEntityRemoved(EntityEvent e)` Entity has been removed.

- - ### Method Detail

    - #### dbEntityChanged

          void dbEntityChanged(EntityEvent e)

      Entity property changed. May be name, attribute or relationship added or removed, etc. Attribute and relationship property changes are handled in respective listeners.

    - #### dbEntityAdded

          void dbEntityAdded(EntityEvent e)

      New entity has been created/added.

    - #### dbEntityRemoved

          void dbEntityRemoved(EntityEvent e)

      Entity has been removed.

Copyright © 2001–2014 Apache Cayenne. All rights reserved.