java.lang.Object
org.eclipse.persistence.sdo.SDODataGraph
- All Implemented Interfaces:
DataGraph,Serializable
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRootObject(Type type) Creates a new root data object of the specified type.createRootObject(String namespaceURI, String typeName) Creates a new root data object of thespecified type.Returns thechange summaryassociated with this data graph.Returns the rootdata objectof this data graph.
-
Constructor Details
-
SDODataGraph
-
-
Method Details
-
getRootObject
Returns the rootdata objectof this data graph.- Specified by:
getRootObjectin interfaceDataGraph- Returns:
- the root data object.
- See Also:
-
getChangeSummary
Returns thechange summaryassociated with this data graph.- Specified by:
getChangeSummaryin interfaceDataGraph- Returns:
- the change summary.
- See Also:
-
getType
-
createRootObject
Creates a new root data object of thespecified type. An exception is thrown if a root object exists.- Specified by:
createRootObjectin 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
Creates a new root data object of the specified type. An exception is thrown if a root object exists.- Specified by:
createRootObjectin interfaceDataGraph- Parameters:
type- the type of the new root.- Returns:
- the new root.
- Throws:
IllegalStateException- if the root object already exists.- See Also:
-