|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChangeSummary
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. |
java.util.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. |
java.util.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 |
---|
void beginLogging()
changes
and turns change logging on.
endLogging()
,
isLogging()
void endLogging()
beginLogging()
,
isLogging()
boolean isLogging()
true
) or off (false
).
true
if change logging is on.beginLogging()
,
endLogging()
DataGraph getDataGraph()
data graph
associated with this change log.
DataGraph.getChangeSummary()
java.util.List getChangedDataObjects()
data objects
that have been changed while logging
.
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.
isCreated(DataObject)
,
isDeleted(DataObject)
boolean isCreated(DataObject dataObject)
logging
.
Any object that was added to the data graph
but was not contained
in the data graph when logging began,
will be considered created.
dataObject
- the data object in question.
true
if the specified data object was created.getChangedDataObjects()
boolean isDeleted(DataObject dataObject)
logging
.
Any object that is not contained
by the data graph
will be considered deleted.
dataObject
- the data object in question.
true
if the specified data object was deleted.getChangedDataObjects()
java.util.List getOldValues(DataObject dataObject)
settings
that represent the property values of the given dataObject
at the point when logging began
.
In the case of a deleted
object,
the list will include settings for all the properties.
dataObject
- the object in question.
getChangedDataObjects()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |