SDO Samples
The samples provided in the Tuscany SDO distribution cover many areas of
the SDO API. Here we provide two indexes into the samples. The first lists
each sample in sequence and details the central theme(s) of the sample.
It also mentions if the sample significantly demonstrates other areas in passing.
The second index lists all the themes that are covered by these samples, and
indicates which of the samples has that subject area as a central theme or as
demonstrates the subject area significant as an incidental part of the sample.
Index by Sample Program Name
Sample Program CreateCompany
Core function:
Set Properties of DataObject by name
Sample Program ReadPurchaseOrder
Core function:
Loading data from XML
Saving data to XML
Also demonstrates:
Get Properties of DataObject by name
Sample Program CreatePurchaseOrder
Core function:
Loading data from XML
Saving data to XML
Sample Program AccessDataObjectPropertiesByName
Core function:
Get Properties of DataObject by name
Sample Program AccessingTheContentsOfASequence
Core function:
Accessing values in a Sequence
Sample Program AccessDataObjectUsingValidXPath
Core function:
Get/Set Properties of DataObject by Xpath
Sample Program DynamicCustomerTypeSample
Core function:
Create Types using the SDO API
Also demonstrates:
Set Properties of DataObject by name
Using Built-in Types
Saving data to XML
Sample Program CreateCompanyTuscanyAPI
Core function:
Set Properties of DataObject by name
Sample Program CreateDataObjectFromXmlString
Core function:
Using Built-in Types
Loading data from XML
Sample Program SerializingDeserializingADataObject
Core function:
Java Serialization of data graph
Also demonstrates:
Testing for Graph Equality
Sample Program AccessingDataObjectsViaPropertyIndex
Core function:
Get/Set Properties of DataObject by index
Sample Program ObtainingDataGraphFromXml
Core function:
Wrapping data graph in a DataGraph instance
Also demonstrates:
Using Built-in Types
Sample Program PrintDataGraph
Core function:
Generic data graph traversal
Also demonstrates:
Get/Set Properties by Instance Properties
isMany Properties
Create Types using the SDO API
Accessing values in a Sequence
Non-Containment
Sample Program MedicalScenario
Core function:
Containment
Create Types using the SDO API
Create Types using XML Schema
Open Content
Non-Containment
Also demonstrates:
Create DataObjects by name
isMany Properties
Generic data graph traversal
Saving data to XML
Sample Program MedicalScenarioWithChangeMonitoring
Core function:
Containment
Create Types using the SDO API
Create Types using XML Schema
Open Content
Non-Containment
Change Monitoring using a ChangeSummary Property on a DataObject
Also demonstrates:
Create DataObjects by name
isMany Properties
Generic data graph traversal
Saving data to XML
Index by function
Get Properties of DataObject by name
Samples which demonstrate this as their core function
AccessDataObjectPropertiesByName
Samples which demonstrate this in addition to their core function
ReadPurchaseOrder
Set Properties of DataObject by name
Samples which demonstrate this as their core function
CreateCompany
CreateCompanyTuscanyAPI
Samples which demonstrate this in addition to their core function
DynamicCustomerTypeSample
Create DataObjects by name
Samples which demonstrate this in addition to their core function
MedicalScenario
MedicalScenarioWithChangeMonitoring
Get/Set Properties of DataObject by index
Samples which demonstrate this as their core function
AccessingDataObjectsViaPropertyIndex
Get/Set Properties by Instance Properties
Samples which demonstrate this in addition to their core function
PrintDataGraph
Get/Set Properties of DataObject by Xpath
Samples which demonstrate this as their core function
AccessDataObjectUsingValidXPath
isMany Properties
Samples which demonstrate this in addition to their core function
MedicalScenario
PrintDataGraph
MedicalScenarioWithChangeMonitoring
Containment
Samples which demonstrate this as their core function
MedicalScenario
MedicalScenarioWithChangeMonitoring
Create Types using the SDO API
Samples which demonstrate this as their core function
MedicalScenario
DynamicCustomerTypeSample
MedicalScenarioWithChangeMonitoring
Samples which demonstrate this in addition to their core function
PrintDataGraph
Create Types using XML Schema
Samples which demonstrate this as their core function
MedicalScenario
MedicalScenarioWithChangeMonitoring
Create Types using the Tuscany API
Using Built-in Types
Samples which demonstrate this as their core function
CreateDataObjectFromXmlString
Samples which demonstrate this in addition to their core function
DynamicCustomerTypeSample
ObtainingDataGraphFromXml
Accessing values in a Sequence
Samples which demonstrate this as their core function
AccessingTheContentsOfASequence
Samples which demonstrate this in addition to their core function
PrintDataGraph
Generic data graph traversal
Samples which demonstrate this as their core function
PrintDataGraph
Samples which demonstrate this in addition to their core function
MedicalScenario
MedicalScenarioWithChangeMonitoring
Loading data from XML
Samples which demonstrate this as their core function
CreateDataObjectFromXmlString
ReadPurchaseOrder
CreatePurchaseOrder
Saving data to XML
Samples which demonstrate this as their core function
ReadPurchaseOrder
CreatePurchaseOrder
Samples which demonstrate this in addition to their core function
MedicalScenario
DynamicCustomerTypeSample
MedicalScenarioWithChangeMonitoring
Change Monitoring using a DataGraph
Change Monitoring using a ChangeSummary Property on a DataObject
Samples which demonstrate this as their core function
MedicalScenarioWithChangeMonitoring
Wrapping data graph in a DataGraph instance
Samples which demonstrate this as their core function
ObtainingDataGraphFromXml
Open Content
Samples which demonstrate this as their core function
MedicalScenario
MedicalScenarioWithChangeMonitoring
Non-Containment
Samples which demonstrate this as their core function
MedicalScenario
MedicalScenarioWithChangeMonitoring
Samples which demonstrate this in addition to their core function
PrintDataGraph
Create XML Schema from Types
Java Serialization of data graph
Samples which demonstrate this as their core function
SerializingDeserializingADataObject
Testing for Graph Equality
Samples which demonstrate this in addition to their core function
SerializingDeserializingADataObject