Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

DASImpl* das = (DASImpl*) DASImpl::getFactory().createDAS(getConnection());
CommandPtr readCustomers = das->createCommand("select * from CUSTOMER");
DataObjectPtr root = readCustomers->executeQuery();

 delete das;

Another piece of convention followed by the RDB DAS has to do with database table keys. When asked to "apply changes", the RDB DAS scans the SDO ChangeSummery and generates the set of INSERT/UPDATE and DELETE statements needed to flush the graph changes to the database. To generate the correct statements the RDB DAS needs to know how a DataObject's properties map to a database table key. In typical Object/Relational mappings frameworks, this information is provided in a config file with something like this:

...