Tuscany SDO C++ includes some simple technology samples that demonstrate some of the basic sceanrios for C++ SDO. This page describes the samples and what is needed to install and run them.
The ObjectCreation sample demonstrates building the metadata programmatically, followed by use of the metadata to instantiate objects in a graph.
The XSDLoading sample shows how to load metadata from an XSD, and how to check for errors during parsing. The parser gathers all non-fatal errors into one list, so all errors can be checked at one time after parsing. Elements which contained errors will have been omitted from the resulting metadata.
The ChangeSummarySave sample modifies a data graph of employees, and saves the modified graph with its change summary. The output in ChangeSummarySave-output.xml shows the summary and its relationship by references to the data graph.
The Substitutes sample shows how to use substitites in XSD to achieve a property which will accept a range of types.
The Query sample shows how to use XPath to navigate within a graph to the required element. Note that exceptions such as "path not found" may well be thrown if the XPath specified does not lead to a real object in the graph.
The SDO samples are built together into a single executable called sdo_misc.exe on Windows and sdo_misc on Linux
If using the binary distribution the samples are built and installed in <tuscany_sdo_install_dir>/samples - go directly to Running the samples on Linux.
If using the binary distribution the samples are built and installed in <tuscany_sdo_install_dir>/samples - go directly to Running the samples on Windows.
First place to look is at the Tuscany FAQ at http://incubator.apache.org/tuscany/faq.html
Any problem with this release can be reported to the Tuscany mailing lists or create a JIRA issue at http://issues.apache.org/jira/browse/Tuscany.
Thank you for your interest in Tuscany. -The Tuscany Development Team |