public class SDODataGraph extends 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.
| Constructor and Description |
|---|
SDODataGraph(commonj.sdo.helper.HelperContext helperContext) |
| Modifier and Type | Method and Description |
|---|---|
SDODataObject |
createRootObject(String namespaceURI,
String typeName)
Creates a new root data object of the
specified type. |
SDODataObject |
createRootObject(commonj.sdo.Type type)
Creates a new root data object of the specified type.
|
SDOChangeSummary |
getChangeSummary()
Returns the
change summary associated with this data graph. |
SDODataObject |
getRootObject()
Returns the root
data object of this data graph. |
SDOType |
getType(String uri,
String typeName)
Returns the
type with the given the URI,
or contained by the resource at the given URI,
and with the given name. |
public SDODataObject getRootObject()
data object of this data graph.getRootObject in interface commonj.sdo.DataGraphDataObject.getDataGraph()public SDOChangeSummary getChangeSummary()
change summary associated with this data graph.getChangeSummary in interface commonj.sdo.DataGraphChangeSummary.getDataGraph()public SDOType getType(String uri, String typeName)
type with the given the URI,
or contained by the resource at the given URI,
and with the given name.getType in interface commonj.sdo.DataGraphuri - the namespace URI of a type or the location URI of a resource containing a type.typeName - name of a type.public SDODataObject createRootObject(String namespaceURI, String typeName)
specified type.
An exception is thrown if a root object exists.createRootObject in interface commonj.sdo.DataGraphnamespaceURI - namespace of the type.typeName - name of the type.IllegalStateException - if the root object already exists.createRootObject(Type),
getType(String, String)public SDODataObject createRootObject(commonj.sdo.Type type)
createRootObject in interface commonj.sdo.DataGraphtype - the type of the new root.IllegalStateException - if the root object already exists.createRootObject(String, String)Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.