|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.entry.DeltaEntry
public class DeltaEntry
Field Summary | |
---|---|
static int |
COMPARE_ATTRIBUTE_KEY
|
static int |
COMPARE_ATTRIBUTE_NAMES
|
static int |
COMPARE_ATTRIBUTE_VALUES
|
Constructor Summary | |
---|---|
DeltaEntry()
|
Method Summary | |
---|---|
static void |
applyAttributeDelta(Attribute target,
Attribute delta)
This method applies the change operations in delta to the target attribute. |
static void |
applyDelta(Entry target,
Entry delta)
Forwards the call to applyDelta(target, delta, false). |
static void |
applyDelta(Entry target,
Entry delta,
boolean removeUnchanged)
This method applies the delta operations specified in delta to the target entry. |
static Entry |
compareEntries(Entry source,
Entry target,
boolean unchanged,
int level,
java.lang.String key)
This method returns an Entry that contains the delta changes needed to make target equal to source. |
static Entry |
getDeltaEntry(Entry source,
Entry target)
This method is a convenience method that calls compareEntries(source, target, false, COMPARE_ATTRIBUTE_VALUES, null). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COMPARE_ATTRIBUTE_KEY
public static final int COMPARE_ATTRIBUTE_NAMES
public static final int COMPARE_ATTRIBUTE_VALUES
Constructor Detail |
---|
public DeltaEntry()
Method Detail |
---|
public static Entry getDeltaEntry(Entry source, Entry target) throws java.lang.Exception
java.lang.Exception
public static Entry compareEntries(Entry source, Entry target, boolean unchanged, int level, java.lang.String key) throws java.lang.Exception
After comparing two entries at level 3, you can apply the returned delta entry to make target equal to source by calling the applyDelta ( target, delta ) method.
If no changes are detected an empty Entry is returned.
source
- The source entrytarget
- The target entryunchanged
- If true, returned entry contains unmodified attributes and
values as welllevel
- The number of levels to compare: 1 entry (requires key), 2
attribute names, 3 attribute valueskey
- The name of the key attribute. This parameter must be
specified if level == 1.
java.lang.Exception
public static void applyDelta(Entry target, Entry delta) throws java.lang.Exception
java.lang.Exception
public static void applyDelta(Entry target, Entry delta, boolean removeUnchanged) throws java.lang.Exception
Only attributes and values with explicit change operations are processed. Attributes with the ATTRIBUTE_UNCHANGED flag and values with either AV_UNDEFINED or AV_UNCHANGED are not processed.
target
- The entry to which changes are applieddelta
- The entry that contains the changes to applyremoveUnchanged
- If true, the unmodified attributes are removed from the target
entry leaving only modified attributes
java.lang.Exception
public static void applyAttributeDelta(Attribute target, Attribute delta)
target
- The attribute to modifydelta
- The attribute containing value operations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |