|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sdo.SDODataGraph
public class SDODataGraph
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 Summary | |
---|---|
SDODataGraph(HelperContext helperContext)
|
Method Summary | |
---|---|
SDODataObject |
createRootObject(java.lang.String namespaceURI,
java.lang.String typeName)
Creates a new root data object of the specified type . |
SDODataObject |
createRootObject(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(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 |
---|
public SDODataGraph(HelperContext helperContext)
Method Detail |
---|
public SDODataObject getRootObject()
data object
of this data graph.
getRootObject
in interface DataGraph
DataObject.getDataGraph()
public SDOChangeSummary getChangeSummary()
change summary
associated with this data graph.
getChangeSummary
in interface DataGraph
ChangeSummary.getDataGraph()
public SDOType getType(java.lang.String uri, java.lang.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 DataGraph
uri
- the namespace URI of a type or the location URI of a resource containing a type.typeName
- name of a type.
public SDODataObject createRootObject(java.lang.String namespaceURI, java.lang.String typeName)
specified type
.
An exception is thrown if a root object exists.
createRootObject
in interface DataGraph
namespaceURI
- namespace of the type.typeName
- name of the type.
java.lang.IllegalStateException
- if the root object already exists.createRootObject(Type)
,
getType(String, String)
public SDODataObject createRootObject(Type type)
createRootObject
in interface DataGraph
type
- the type of the new root.
java.lang.IllegalStateException
- if the root object already exists.createRootObject(String, String)
|
EclipseLink 2.3.2, build 'v20111125-r10461' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |