Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.javatools.db.diff
Class ResultSetApplier

java.lang.Object
  extended by oracle.javatools.db.diff.ResultSetApplier

public class ResultSetApplier
extends java.lang.Object

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:

See Also:
GenericBeanDiffer

Constructor Summary
ResultSetApplier()
          Creates a ResultSetApplier that will apply differences in a ResultSet from b() to a().
ResultSetApplier(boolean applyToB)
          Creates a ResultSetApplier 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)
          Creates and fires a DBObjectChange event for the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetApplier

public ResultSetApplier()
Creates a ResultSetApplier that will apply differences in a ResultSet from b() to a().


ResultSetApplier

public ResultSetApplier(boolean applyToB)
Creates a ResultSetApplier specfiying which way to apply differences.

Parameters:
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

apply

public final void apply(Difference rs)
Applys changes in the "a" object to the "b" object in the result set. i.e. "b" is the master object, "a" contains changes.


fireEvents

public DBObjectChange[] fireEvents()

fireLazyChangeEvent

public static DBObjectChange fireLazyChangeEvent(SystemObject obj,
                                                 SystemObject copyOfOriginal)
Creates and fires a DBObjectChange event for the given object. A copy of its original state is given, on the understanding that the object itself is currently in an unbuilt state (having been "reset" as the result of an update or timestamp change). The event will lazily load the object if a diff is required.

Parameters:
obj - the object to fire the event on
updateCopy - a copy of the last know state of the object.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.