Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.tools.model

public Class PropertyChangeEvent<T>

extends Object
implements IPropertyChangeEvent<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent
Imports
org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject

The default implementation of IPropertyChangeEvent where the generics is the type of the old and new values.
Author
Pascal Filion
Since
2.4
Version
2.4

Field Summary

Modifier and TypeField and Description
private T
newValue

The new value of the property that changed.

private T
oldValue

The old value of the property that changed.

private String
propertyName

The name of the property associated with the property change.

private StateObject
source

The source where the modification occurred and that fired the event.

Constructor Summary

AccessConstructor and Description
public
PropertyChangeEvent(StateObject
The source where the modification occurred and that fired the event
source
,
String
The name of the property associated with the property change
propertyName
,
T
The old value of the property that changed
oldValue
,
T
The new value of the property that changed
newValue
)

Creates a new PropertyChangeEvent.

Method Summary

Modifier and TypeMethod and Description
public T
getNewValue()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getNewValue.

Returns the new value of the property that changed.
public T
getOldValue()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getOldValue.

Returns the old value of the property that changed.
public String
public <S extends StateObject> S
getSource()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getSource.

Returns the source where the modification occurred and that fired the event.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

newValueback to summary
private T newValue

The new value of the property that changed.

oldValueback to summary
private T oldValue

The old value of the property that changed.

propertyNameback to summary
private String propertyName

The name of the property associated with the property change.

sourceback to summary
private StateObject source

The source where the modification occurred and that fired the event.

Constructor Detail

PropertyChangeEventback to summary
public PropertyChangeEvent(StateObject source, String propertyName, T oldValue, T newValue)

Creates a new PropertyChangeEvent.

Parameters
source:StateObject

The source where the modification occurred and that fired the event

propertyName:String

The name of the property associated with the property change

oldValue:T

The old value of the property that changed

newValue:T

The new value of the property that changed

Method Detail

getNewValueback to summary
public T getNewValue()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getNewValue.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getNewValue.

Returns the new value of the property that changed.

Returns:T

The property's new value

Annotations
@Override
getOldValueback to summary
public T getOldValue()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getOldValue.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getOldValue.

Returns the old value of the property that changed.

Returns:T

The property's old value

Annotations
@Override
getPropertyNameback to summary
public String getPropertyName()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getPropertyName.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getPropertyName.

Returns the name of the property that changed.

Returns:String

A unique identifier of the property that changed

Annotations
@Override
getSourceback to summary
public <S extends StateObject> S getSource()

Implements org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getSource.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.IPropertyChangeEvent.getSource.

Returns the source where the modification occurred and that fired the event.

Returns:S

The source of the event

Annotations
@Override
@SuppressWarnings:unchecked