|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.diff.DifferenceApplier
public class DifferenceApplier
Class that can apply the Difference of two objects recursively. The class assumes that "generic diffing" has happened. As with all the property support, the types of property supported are:
GenericBeanDiffer
Constructor Summary | |
---|---|
DifferenceApplier(DBObjectProvider pro)
Creates a DifferenceApplier that will apply differences in a ResultSet from b() to a(). |
|
DifferenceApplier(DBObjectProvider pro,
boolean applyToB)
Creates a DifferenceApplier specfiying which way to apply differences. |
Method Summary | |
---|---|
void |
apply(Difference rs)
Applys changes in the "a" object to the "b" object in the result set. |
DBObjectChange[] |
fireEvents()
|
static DBObjectChange |
fireLazyChangeEvent(SystemObject obj,
SystemObject copyOfOriginal,
DBObjectProvider pro)
Creates and fires a DBObjectChange event for the given object. |
SystemObject |
getCopyOfOrigWithDiffApplied(Difference rs)
Gets a new temporary copy of the original object in the given difference and applys all the changes in the difference to that object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DifferenceApplier(DBObjectProvider pro)
public DifferenceApplier(DBObjectProvider pro, boolean applyToB)
applyToB
- if true, differences in a() will be applied to b(),
otherwise b() is considered to hold the updates which will be applied to
a().Method Detail |
---|
public final void apply(Difference rs)
public SystemObject getCopyOfOrigWithDiffApplied(Difference rs)
public DBObjectChange[] fireEvents()
public static DBObjectChange fireLazyChangeEvent(SystemObject obj, SystemObject copyOfOriginal, DBObjectProvider pro)
obj
- the object to fire the event onupdateCopy
- a copy of the last know state of the object.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |