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
ConstructorsConstructorDescriptionPropertyChangeEvent(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:IPropertyChangeEventReturns the new value of the property that changed.- Specified by:
getNewValuein interfaceIPropertyChangeEvent<T>- Returns:
- The property's new value
-
getOldValue
Description copied from interface:IPropertyChangeEventReturns the old value of the property that changed.- Specified by:
getOldValuein interfaceIPropertyChangeEvent<T>- Returns:
- The property's old value
-
getPropertyName
Description copied from interface:IPropertyChangeEventReturns the name of the property that changed.- Specified by:
getPropertyNamein interfaceIPropertyChangeEvent<T>- Returns:
- A unique identifier of the property that changed
-
getSource
Description copied from interface:IPropertyChangeEventReturns the source where the modification occurred and that fired the event.- Specified by:
getSourcein interfaceIPropertyChangeEvent<T>- Returns:
- The source of the event
-