Package org.eclipse.persistence.sdo
Class SDODataGraph
- java.lang.Object
-
- org.eclipse.persistence.sdo.SDODataGraph
-
- All Implemented Interfaces:
commonj.sdo.DataGraph,java.io.Serializable
public class SDODataGraph extends java.lang.Object implements commonj.sdo.DataGraphPurpose:A data graph is used to package a graph of
data objectsalong with their metadata, that is, data describing the data. A data graph also contains achange summarywhich is used to record changes made to the objects in the graph.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SDODataGraph(commonj.sdo.helper.HelperContext helperContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SDODataObjectcreateRootObject(commonj.sdo.Type type)Creates a new root data object of the specified type.SDODataObjectcreateRootObject(java.lang.String namespaceURI, java.lang.String typeName)Creates a new root data object of thespecified type.SDOChangeSummarygetChangeSummary()Returns thechange summaryassociated with this data graph.SDODataObjectgetRootObject()Returns the rootdata objectof this data graph.SDOTypegetType(java.lang.String uri, java.lang.String typeName)Returns thetypewith the given theURI, or contained by the resource at the given URI, and with the givenname.
-
-
-
Method Detail
-
getRootObject
public SDODataObject getRootObject()
Returns the rootdata objectof this data graph.- Specified by:
getRootObjectin interfacecommonj.sdo.DataGraph- Returns:
- the root data object.
- See Also:
DataObject.getDataGraph()
-
getChangeSummary
public SDOChangeSummary getChangeSummary()
Returns thechange summaryassociated with this data graph.- Specified by:
getChangeSummaryin interfacecommonj.sdo.DataGraph- Returns:
- the change summary.
- See Also:
ChangeSummary.getDataGraph()
-
getType
public SDOType getType(java.lang.String uri, java.lang.String typeName)
Returns thetypewith the given theURI, or contained by the resource at the given URI, and with the givenname.- Specified by:
getTypein interfacecommonj.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 SDODataObject createRootObject(java.lang.String namespaceURI, java.lang.String typeName)
Creates a new root data object of thespecified type. An exception is thrown if a root object exists.- Specified by:
createRootObjectin interfacecommonj.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 SDODataObject 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:
createRootObjectin interfacecommonj.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)
-
-