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

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

public class DynamicCustomerTypeSample
extends java.lang.Object

Demonstrates creating and using Types dynamically. 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. Specifically, this sample is based upon the section titled "Defining SDO Types Dynamically"

* 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:


Field Summary
static java.lang.String CUSTOMER_MODEL
          XSD file used to define the model and Types for Customer Dataobject
static java.lang.String CUSTOMER_MODEL_GENERATED
          Default file name to use when generated customer XSD files.
static java.lang.String CUSTOMER_NAMESPACE
          Fake namespace used for Customer
static java.lang.String CUSTOMER_XML
          XML file used to populate Customer DataObjects
static java.lang.String CUSTOMER_XML_GENERATED
          Default file name to use when generated customer XML files.
 
Constructor Summary
DynamicCustomerTypeSample()
           
 
Method Summary
static void defineCustomerTypes()
          Method dynamically defines customer types
static void main(java.lang.String[] args)
          Drives sample methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CUSTOMER_MODEL

public static final java.lang.String CUSTOMER_MODEL
XSD file used to define the model and Types for Customer Dataobject

See Also:
Constant Field Values

CUSTOMER_MODEL_GENERATED

public static final java.lang.String CUSTOMER_MODEL_GENERATED
Default file name to use when generated customer XSD files.

See Also:
org.apache.tuscany.samples.sdo.specCodeSnippets.CreateXmlAndXsdFromDataObject, Constant Field Values

CUSTOMER_NAMESPACE

public static final java.lang.String CUSTOMER_NAMESPACE
Fake namespace used for Customer

See Also:
Constant Field Values

CUSTOMER_XML

public static final java.lang.String CUSTOMER_XML
XML file used to populate Customer DataObjects

See Also:
Constant Field Values

CUSTOMER_XML_GENERATED

public static final java.lang.String CUSTOMER_XML_GENERATED
Default file name to use when generated customer XML files.

See Also:
org.apache.tuscany.samples.sdo.specCodeSnippets.CreateXmlAndXsdFromDataObject, Constant Field Values
Constructor Detail

DynamicCustomerTypeSample

public DynamicCustomerTypeSample()
Method Detail

defineCustomerTypes

public static void defineCustomerTypes()
Method dynamically defines customer types


main

public static void main(java.lang.String[] args)
Drives sample methods

Parameters:
args - no arguments required


Copyright © 2007 Apache Software Foundation. All Rights Reserved.