Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: moved from http://wiki.apache.org/ws/ChangeSummaryProcessing

...

The RDB DAS leverages the SDO ChangeSummary to drive graph chages to a database. Here is a simple example:

Code Blockpanel

DAS

das

=

DAS.FACTORY.createDAS(getConnection());


Command

select

=

das.createCommand("Select

*

from

CUSTOMER

where

ID

=

1");


DataObject

root

=

select.executeQuery();

Wiki Markup
 DataObject customer = (DataObject) root.get("CUSTOMER\[1\]");
 

customer.set("LASTNAME", "Pavick");
 

das.applyChanges(root);

The first half of this example creates a new read command and executes it. The result is a graph of DataObjects (in this case just one) represented by the containing "root".

...