Class AttributeEvent

All Implemented Interfaces:
Serializable

public class AttributeEvent
extends EntityEvent
Represents events resulted from Attribute changes in CayenneModeler. This event is used for both ObjAttributes and DbAttributes.
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • AttributeEvent

      public AttributeEvent​(Object src, Attribute attr, Entity entity)
      Creates a Attribute change event.
    • AttributeEvent

      public AttributeEvent​(Object src, Attribute attr, Entity entity, int id)
      Creates a Attribute event of a specified type.
    • AttributeEvent

      public AttributeEvent​(Object src, Attribute attr, Entity entity, String oldName)
      Creates a Attribute name change event.
  • Method Details

    • getAttribute

      public Attribute getAttribute()
      Get attribute (obj or db).
    • setAttribute

      public void setAttribute​(Attribute attribute)
      Sets the attribute.
      Parameters:
      attribute - The attribute to set
    • getNewName

      public String getNewName()
      Description copied from class: MapEvent
      Returns the newName of the object that caused this event.
      Overrides:
      getNewName in class EntityEvent