org.apache.tuscany.samples.sdo.specCodeSnippets
Class AccessDataObjectPropertiesByName

java.lang.Object
  extended by org.apache.tuscany.samples.sdo.specCodeSnippets.AccessDataObjectPropertiesByName

public class AccessDataObjectPropertiesByName
extends java.lang.Object

Demonstrates accessing a created DataObject's properties by name. This sample is from the Apache Tuscany project. It was written to help users understand and experiment with SDO. It is based upon code snippets contained within, and is meant for use with, and reference to the SDO Specification.

Usage:
This sample can easily be run from within Eclipse as a Java Application if tuscany or the sample-sdo project is imported into Eclipse as an existing project.

If executing as a standalone application please do the following:


Constructor Summary
AccessDataObjectPropertiesByName()
           
 
Method Summary
static void main(java.lang.String[] args)
          Prints properties of a purchase order DataObject( properties are defined in the xsd SdoSampleConstants.PO_XSD_RESOURCE and populated by xml SdoSampleConstants.PO_XML_RESOURCE )
static void printPurchaseOrderSummary(commonj.sdo.DataObject purchaseOrder)
          Prints a subset of PurchaseOrder properties to System.out
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessDataObjectPropertiesByName

public AccessDataObjectPropertiesByName()
Method Detail

printPurchaseOrderSummary

public static void printPurchaseOrderSummary(commonj.sdo.DataObject purchaseOrder)
Prints a subset of PurchaseOrder properties to System.out

Parameters:
purchaseOrder. - DataObject defined by Types in SdoSampleConstants.PO_XSD_RESOURCE

main

public static void main(java.lang.String[] args)
Prints properties of a purchase order DataObject( properties are defined in the xsd SdoSampleConstants.PO_XSD_RESOURCE and populated by xml SdoSampleConstants.PO_XML_RESOURCE )

Parameters:
args. - No parameters required.


Copyright © 2007 Apache Software Foundation. All Rights Reserved.