Package org.eclipse.persistence.sdo
Class SDODataGraph
- java.lang.Object
-
- org.eclipse.persistence.sdo.SDODataGraph
-
- All Implemented Interfaces:
DataGraph
,Serializable
public class SDODataGraph extends Object implements 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 achange summary
which is used to record changes made to the objects in the graph.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SDODataGraph(HelperContext helperContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SDODataObject
createRootObject(Type type)
Creates a new root data object of the specified type.SDODataObject
createRootObject(String namespaceURI, String typeName)
Creates a new root data object of thespecified type
.SDOChangeSummary
getChangeSummary()
Returns thechange summary
associated with this data graph.SDODataObject
getRootObject()
Returns the rootdata object
of this data graph.SDOType
getType(String uri, String typeName)
-
-
-
Constructor Detail
-
SDODataGraph
public SDODataGraph(HelperContext helperContext)
-
-
Method Detail
-
getRootObject
public SDODataObject getRootObject()
Returns the rootdata object
of this data graph.- Specified by:
getRootObject
in interfaceDataGraph
- Returns:
- the root data object.
- See Also:
DataObject.getDataGraph()
-
getChangeSummary
public SDOChangeSummary getChangeSummary()
Returns thechange summary
associated with this data graph.- Specified by:
getChangeSummary
in interfaceDataGraph
- Returns:
- the change summary.
- See Also:
ChangeSummary.getDataGraph()
-
createRootObject
public SDODataObject createRootObject(String namespaceURI, String typeName)
Creates a new root data object of thespecified type
. An exception is thrown if a root object exists.- Specified by:
createRootObject
in interfaceDataGraph
- Parameters:
namespaceURI
- namespace of the type.typeName
- name of the type.- Returns:
- the new root.
- Throws:
IllegalStateException
- if the root object already exists.- See Also:
createRootObject(Type)
,getType(String, String)
-
createRootObject
public SDODataObject createRootObject(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 interfaceDataGraph
- Parameters:
type
- the type of the new root.- Returns:
- the new root.
- Throws:
IllegalStateException
- if the root object already exists.- See Also:
createRootObject(String, String)
-
-