| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A change summary is used to record changes to the objects in a data graph, allowing applications to efficiently and incrementally update back-end storage when required.
Nested Class Summary | |
static interface | ChangeSummary.Setting
A setting encapsulates a property and a corresponding single value of the property's type. |
Method Summary | |
void | beginLogging()
Clears the list of changes and turns change logging on. |
void | endLogging()
Turns change logging off. |
List | getChangedDataObjects()
Returns a list consisting of all the data objects that have been changed while logging. |
DataGraph | getDataGraph()
Returns the data graph associated with this change log. |
List | getOldValues(DataObject dataObject)
Returns a list of settings that represent the property values of the given dataObject at the point when logging began. |
boolean | isCreated(DataObject dataObject)
Returns whether or not the specified data object was created while logging. |
boolean | isDeleted(DataObject dataObject)
Returns whether or not the specified data object was deleted while logging. |
boolean | isLogging()
Indicates whether change logging is on (true) or off (false). |
Method Detail |
public void beginLogging()
public void endLogging()
public boolean isLogging()
public DataGraph getDataGraph()
public List getChangedDataObjects()
The new and modified objects in the list are references to objects that are contained in the data graph associated with this log. The deleted objects in the list are references to copies of the objects as they appeared at the time that event logging was first enabled; if the deleted objects have references to other objects, the references will also refer to copies of the target objects.
public boolean isCreated(DataObject dataObject)
public boolean isDeleted(DataObject dataObject)
public List getOldValues(DataObject dataObject)
In the case of a deleted object, the list will include settings for all the properties.
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |