Class PropertyChangeEvent<T>
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.model.PropertyChangeEvent<T>
- All Implemented Interfaces:
IPropertyChangeEvent<T>
The default implementation of
IPropertyChangeEvent
where the generics is the type of the
old and new values.- Since:
- 2.4
- Version:
- 2.4
-
Constructor Summary
ConstructorDescriptionPropertyChangeEvent
(StateObject source, String propertyName, T oldValue, T newValue) Creates a newPropertyChangeEvent
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the new value of the property that changed.Returns the old value of the property that changed.Returns the name of the property that changed.<S extends StateObject>
SReturns the source where the modification occurred and that fired the event.
-
Constructor Details
-
PropertyChangeEvent
Creates a newPropertyChangeEvent
.- Parameters:
source
- The source where the modification occurred and that fired the eventpropertyName
- The name of the property associated with the property changeoldValue
- The old value of the property that changednewValue
- The new value of the property that changed
-
-
Method Details
-
getNewValue
Description copied from interface:IPropertyChangeEvent
Returns the new value of the property that changed.- Specified by:
getNewValue
in interfaceIPropertyChangeEvent<T>
- Returns:
- The property's new value
-
getOldValue
Description copied from interface:IPropertyChangeEvent
Returns the old value of the property that changed.- Specified by:
getOldValue
in interfaceIPropertyChangeEvent<T>
- Returns:
- The property's old value
-
getPropertyName
Description copied from interface:IPropertyChangeEvent
Returns the name of the property that changed.- Specified by:
getPropertyName
in interfaceIPropertyChangeEvent<T>
- Returns:
- A unique identifier of the property that changed
-
getSource
Description copied from interface:IPropertyChangeEvent
Returns the source where the modification occurred and that fired the event.- Specified by:
getSource
in interfaceIPropertyChangeEvent<T>
- Returns:
- The source of the event
-