EclipseLink1.0 - 20080707 API Reference

org.eclipse.persistence.sdo
Class SDODataGraph

java.lang.Object
  extended by org.eclipse.persistence.sdo.SDODataGraph
All Implemented Interfaces:
commonj.sdo.DataGraph, java.io.Serializable

public class SDODataGraph
extends java.lang.Object
implements commonj.sdo.DataGraph

Purpose:A data graph is used to package a graph of data objects along with their metadata, that is, data describing the data. A data graph also contains a change summary which is used to record changes made to the objects in the graph.

See Also:
Serialized Form

Constructor Summary
SDODataGraph(commonj.sdo.helper.HelperContext helperContext)
           
 
Method Summary
 commonj.sdo.DataObject createRootObject(java.lang.String namespaceURI, java.lang.String typeName)
          Creates a new root data object of the specified type.
 commonj.sdo.DataObject createRootObject(commonj.sdo.Type type)
          Creates a new root data object of the specified type.
 commonj.sdo.ChangeSummary getChangeSummary()
          Returns the change summary associated with this data graph.
 commonj.sdo.DataObject getRootObject()
          Returns the root data object of this data graph.
 commonj.sdo.Type getType(java.lang.String uri, java.lang.String typeName)
          Returns the type with the given the URI, or contained by the resource at the given URI, and with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDODataGraph

public SDODataGraph(commonj.sdo.helper.HelperContext helperContext)
Method Detail

getRootObject

public commonj.sdo.DataObject getRootObject()
Returns the root data object of this data graph.

Specified by:
getRootObject in interface commonj.sdo.DataGraph
Returns:
the root data object.
See Also:
DataObject.getDataGraph()

getChangeSummary

public commonj.sdo.ChangeSummary getChangeSummary()
Returns the change summary associated with this data graph.

Specified by:
getChangeSummary in interface commonj.sdo.DataGraph
Returns:
the change summary.
See Also:
ChangeSummary.getDataGraph()

getType

public commonj.sdo.Type getType(java.lang.String uri,
                                java.lang.String typeName)
Returns the type with the given the URI, or contained by the resource at the given URI, and with the given name.

Specified by:
getType in interface commonj.sdo.DataGraph
Parameters:
uri - the namespace URI of a type or the location URI of a resource containing a type.
typeName - name of a type.
Returns:
the type with the corresponding namespace and name.

createRootObject

public commonj.sdo.DataObject createRootObject(java.lang.String namespaceURI,
                                               java.lang.String typeName)
Creates a new root data object of the specified type. An exception is thrown if a root object exists.

Specified by:
createRootObject in interface commonj.sdo.DataGraph
Parameters:
namespaceURI - namespace of the type.
typeName - name of the type.
Returns:
the new root.
Throws:
java.lang.IllegalStateException - if the root object already exists.
See Also:
createRootObject(Type), getType(String, String)

createRootObject

public commonj.sdo.DataObject createRootObject(commonj.sdo.Type type)
Creates a new root data object of the specified type. An exception is thrown if a root object exists.

Specified by:
createRootObject in interface commonj.sdo.DataGraph
Parameters:
type - the type of the new root.
Returns:
the new root.
Throws:
java.lang.IllegalStateException - if the root object already exists.
See Also:
createRootObject(String, String)

EclipseLink1.0 - 20080707 API Reference