Package commonj.sdo
Interface DataGraph
-
- All Superinterfaces:
java.io.Serializable
public interface DataGraph extends java.io.Serializable
A data graph is used to package a graph ofdata 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataObject
createRootObject(Type type)
Creates a new root data object of the specified type.DataObject
createRootObject(java.lang.String namespaceURI, java.lang.String typeName)
Creates a new root data object of thespecified type
.ChangeSummary
getChangeSummary()
Returns thechange summary
associated with this data graph.DataObject
getRootObject()
Returns the rootdata object
of this data graph.Type
getType(java.lang.String uri, java.lang.String typeName)
-
-
-
Method Detail
-
getRootObject
DataObject getRootObject()
Returns the rootdata object
of this data graph.- Returns:
- the root data object.
- See Also:
DataObject.getDataGraph()
-
getChangeSummary
ChangeSummary getChangeSummary()
Returns thechange summary
associated with this data graph.- Returns:
- the change summary.
- See Also:
ChangeSummary.getDataGraph()
-
getType
Type getType(java.lang.String uri, java.lang.String typeName)
Returns thetype
with the given theURI
, or contained by the resource at the given URI, and with the givenname
.- 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
DataObject 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.- 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
DataObject createRootObject(Type type)
Creates a new root data object of the specified type. An exception is thrown if a root object exists.- 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)
-
-