|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
ilog.util.IlEventObject
ilog.cpl.datasource.DataSourceObjectEvent
public class DataSourceObjectEvent
Data source object event. This kind of event occurs on one object from a data source. These events are structure changed or attribute value changed events.
| Nested Class Summary | |
|---|---|
static class |
DataSourceObjectEvent.Type
Event types. |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ilog.util.IlEventObject |
|---|
getType |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Object OLD_VALUE_UNAVAILABLE
| Constructor Detail |
|---|
public DataSourceObjectEvent(IlpDataSource dataSource,
IlpObject object,
Class structuralInterface)
dataSource - Datasource where the object has been modifiedobject - Business object that was modifiedstructuralInterface - Structural interface
public DataSourceObjectEvent(IlpDataSource dataSource,
IlpObject object,
IlpAttribute attribute)
dataSource - Datasource where the event occurredobject - Business object whose attribute value has changedattribute - Business attribute that has changed
public 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 value| Method Detail |
|---|
public IlpObject getObject()
IlpObject that has been modified.
public 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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||