public class DataSourceObjectEvent extends IlEventObject
Modifier and Type | Class and Description |
---|---|
static class |
DataSourceObjectEvent.Type
Event types.
|
Modifier and Type | Field and Description |
---|---|
static Object |
OLD_VALUE_UNAVAILABLE
This value should be used as attribute value when it is not
possible to compute or retrieve the old value of an attribute
during an attribute value change event.
|
source
Constructor and Description |
---|
DataSourceObjectEvent(IlpDataSource dataSource,
IlpObject object,
Class<?> structuralInterface)
Constructor for structure changed events.
|
DataSourceObjectEvent(IlpDataSource dataSource,
IlpObject object,
IlpAttribute attribute)
Constructor for attribute changed events.
|
DataSourceObjectEvent(IlpDataSource dataSource,
IlpObject object,
IlpAttribute attribute,
Object newv,
Object oldv)
Constructor for attribute changed events.
|
Modifier and Type | Method and Description |
---|---|
IlpAttribute |
getAttribute()
Returns the attribute.
|
Object |
getNewValue()
Returns the value of the attribute after the modification signaled by
this event.
|
IlpObject |
getObject()
Returns the
IlpObject that has been modified. |
Object |
getOldValue()
Returns the value of the attribute before the modification signaled by
this event.
|
Class<?> |
getStructuralInterface()
Returns the structural interface.
|
boolean |
hasOldValue()
Checks that the old value of the attribute is available.
|
getType
getSource, toString
public static final Object OLD_VALUE_UNAVAILABLE
public DataSourceObjectEvent(IlpDataSource dataSource, IlpObject object, Class<?> structuralInterface)
dataSource
- Datasource where the object has been modifiedobject
- Business object that was modifiedstructuralInterface
- Structural interfacepublic DataSourceObjectEvent(IlpDataSource dataSource, IlpObject object, IlpAttribute attribute)
dataSource
- Datasource where the event occurredobject
- Business object whose attribute value has changedattribute
- Business attribute that has changedpublic DataSourceObjectEvent(IlpDataSource dataSource, IlpObject object, IlpAttribute attribute, Object newv, Object oldv)
dataSource
- Datasource where the event occurredobject
- Business objectattribute
- Business attribute that has changednewv
- New attribute valueoldv
- Old attribute valuepublic Class<?> getStructuralInterface()
public IlpAttribute getAttribute()
public Object getNewValue()
public Object getOldValue()
In some cases the old value can be unavailable. Use hasOldValue()
to
check the availability of the old value.
public boolean hasOldValue()
getOldValue()
.true
when the old value of the attribute is available.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.