Package org.apache.cayenne.map.event
Class AttributeEvent
java.lang.Object
java.util.EventObject
org.apache.cayenne.event.CayenneEvent
org.apache.cayenne.map.event.MapEvent
org.apache.cayenne.map.event.EntityEvent
org.apache.cayenne.map.event.AttributeEvent
- All Implemented Interfaces:
- Serializable
Represents events resulted from Attribute changes 
 in CayenneModeler. This event is used for both ObjAttributes
 and DbAttributes.
- See Also:
- 
Field SummaryFieldsFields inherited from class org.apache.cayenne.map.event.EntityEvententityFields inherited from class org.apache.cayenne.map.event.MapEventADD, CHANGE, domain, id, oldName, oldNameSet, REMOVEFields inherited from class org.apache.cayenne.event.CayenneEventinfo, postedBy, subjectFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionAttributeEvent(Object src, Attribute<?, ?, ?> attr, Entity<?, ?, ?> entity) Creates a Attribute change event.AttributeEvent(Object src, Attribute<?, ?, ?> attr, Entity<?, ?, ?> entity, int id) Creates a Attribute event of a specified type.AttributeEvent(Object src, Attribute<?, ?, ?> attr, Entity<?, ?, ?> entity, String oldName) Creates a Attribute name change event.
- 
Method SummaryModifier and TypeMethodDescriptionAttribute<?,?, ?> Get attribute (obj or db).Returns the newName of the object that caused this event.voidsetAttribute(Attribute<?, ?, ?> attribute) Sets the attribute.Methods inherited from class org.apache.cayenne.map.event.EntityEventgetEntity, setEntityMethods inherited from class org.apache.cayenne.map.event.MapEventgetDomain, getId, getOldName, isNameChange, setDomain, setId, setOldNameMethods inherited from class org.apache.cayenne.event.CayenneEventgetInfo, getPostedBy, getSubject, setPostedBy, setSubjectMethods inherited from class java.util.EventObjectgetSource, toString
- 
Field Details- 
attribute
 
- 
- 
Constructor Details- 
AttributeEventCreates a Attribute change event.
- 
AttributeEventCreates a Attribute event of a specified type.
- 
AttributeEventCreates a Attribute name change event.
 
- 
- 
Method Details- 
getAttributeGet attribute (obj or db).
- 
setAttributeSets the attribute.- Parameters:
- attribute- The attribute to set
 
- 
getNewNameDescription copied from class:MapEventReturns the newName of the object that caused this event.- Overrides:
- getNewNamein class- EntityEvent
 
 
-