Jump to: navigation, search

Difference between revisions of "EclipseLink/UserGuide/SDO/Using EclipseLink SDO (ELUG)"

m (Using XMLHelper)
m (Using XMLHelper)
Line 52: Line 52:
 
You can obtain the default <tt>XMLHelper</tt> from the <tt>INSTANCE</tt> field or from the <tt>getXMLHelper</tt> method of the default <tt>[http://www.eclipse.org/eclipselink/api/1.1/commonj/sdo/helper/HelperContext.html HelperContext]</tt>.
 
You can obtain the default <tt>XMLHelper</tt> from the <tt>INSTANCE</tt> field or from the <tt>getXMLHelper</tt> method of the default <tt>[http://www.eclipse.org/eclipselink/api/1.1/commonj/sdo/helper/HelperContext.html HelperContext]</tt>.
  
Using the EclipseLink <tt>[http://www.eclipse.org/eclipselink/api/1.1/org/eclipse/persistence/sdo/helper/SDOXMLHelper.html SDOXMLHelper]</tt> <tt>initializeDescriptor</tt> method, you can define an [[Introduction_to_XML_Descriptors_%28ELUG%29 | XML descriptor]] for your application.
+
The EclipseLink <tt>[http://www.eclipse.org/eclipselink/api/1.1/org/eclipse/persistence/sdo/helper/SDOXMLHelper.html SDOXMLHelper]</tt> <tt>initializeDescriptor</tt> methd allows you to define an [[Introduction_to_XML_Descriptors_%28ELUG%29 | XML descriptor]] for your application.
  
 
For more information, see the following:
 
For more information, see the following:

Revision as of 11:04, 30 April 2009

This section explains where and how you use EclipseLink SDO to customize your application to meet requirements.


Performing Actions on Data Objects at Run Time

Use the following classes to perform actions on your data objects:


For more information, see EclipseLink SDO examples.


Using HelperContext

SDO defines a HelperContext interface. You use it to access related SDO helper classes that let you perform common operations such as reading and writing XML documents, defining SDO types from XML Schema, and so on.

To obtain a default context, call the HelperProvider getDefaultContext method.

You can create the local context provided by EclipseLink as follows:

HelperContext helperContext = new SDOHelperContext();

For more information, see the following:


What You May Need to Know About Local and Global HelperContext

All the helpers that you can retrieve using accessor methods or instance fields of the global HelperContext have visibility to the global SDO metadata, that is, their scope of execution is global.

The opposite is true for the local HelperContext, such as the SDOHelperContext provided by EclipseLink: you can use it to obtain helpers that have visibility to the local SDO metadata.

Using the EclipseLink SDOHelperContext makeDefaultContext method, you can promote your local context to become the global (default) one.

Using DataFactory

You use the DataFactory to create disconnected instances of a DataObject. That is, the newly created DataObject instances have no set properties and no container.

You can obtain the DataFactory from the HelperContext, and vice versa.

For more information, see the following:


Using XMLHelper

You use the XMLHelper to convert XML documents into data objects, and vice versa.

You can obtain the default XMLHelper from the INSTANCE field or from the getXMLHelper method of the default HelperContext.

The EclipseLink SDOXMLHelper initializeDescriptor methd allows you to define an XML descriptor for your application.

For more information, see the following:

Using DataHelper

Information pending


Using CopyHelper

Information pending


Using EqualityHelper

Information pending

Generating Static SDO Classes at Design Time

Information pending


Performing Integration

Information pending


Integrating SDO with JAXB

Information pending


Integrating SDO with JPA

Information pending


Using SDO as a Web Service Binding Layer

Information pending


How to Use Web Service Attachments

Information pending


Executing XPath with XML

Information pending



Copyright Statement