|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.samples.sdo.specCodeSnippets.DynamicCustomerTypeSample
public class DynamicCustomerTypeSample
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 |
---|
public static final java.lang.String CUSTOMER_MODEL
public static final java.lang.String CUSTOMER_MODEL_GENERATED
org.apache.tuscany.samples.sdo.specCodeSnippets.CreateXmlAndXsdFromDataObject
,
Constant Field Valuespublic static final java.lang.String CUSTOMER_NAMESPACE
public static final java.lang.String CUSTOMER_XML
public static final java.lang.String CUSTOMER_XML_GENERATED
org.apache.tuscany.samples.sdo.specCodeSnippets.CreateXmlAndXsdFromDataObject
,
Constant Field ValuesConstructor Detail |
---|
public DynamicCustomerTypeSample()
Method Detail |
---|
public static void defineCustomerTypes()
public static void main(java.lang.String[] args)
args
- no arguments required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |