ilog.ds
Interface IlGraphDataSourceEditor

All Superinterfaces:
IlDataSourceEditor
All Known Implementing Classes:
IlsGraphDataSource

public interface IlGraphDataSourceEditor
extends IlDataSourceEditor

Graph data source Note that the dereferencing is missing.


Method Summary
abstract  java.lang.Object dsAddLink(java.lang.Object fromNode, java.lang.Object toNode, java.util.Map properties)
          Creates a new link in the graph .
abstract  java.lang.Object dsAddNode(java.util.Map properties)
          Creates a new node in the graph.
abstract  void dsRemoveLink(java.lang.Object link)
          Removes a link from the graph.
abstract  void dsRemoveNode(java.lang.Object node)
          Removes a node from the graph.
abstract  void dsUpdateLink(java.lang.Object link, java.lang.String propertyName, java.lang.Object propertyValue)
          Updates a property of a link
abstract  void dsUpdateNode(java.lang.Object node, java.lang.String propertyName, java.lang.Object propertyValue)
          Updates a property of a node.
abstract  boolean isLinkEditable(java.lang.Object obj)
          Returns false if the link is read-only.
abstract  boolean isNodeEditable(java.lang.Object obj)
          Returns false if the node is read-only.
 
Methods inherited from interface ilog.ds.IlDataSourceEditor
dsEndBatch, dsStartBatch, dsUpdateProperty, getDSBatchLevel, isEditable
 

Method Detail

isNodeEditable

public boolean isNodeEditable(java.lang.Object obj)
Returns false if the node is read-only.
Parameters:
obj - The object to test.

dsAddNode

public java.lang.Object dsAddNode(java.util.Map properties)
Creates a new node in the graph.
Parameters:
properties - The properties of the node to create
Returns:
the created node (to be used only as a key). Note that this method may return null if the node takes a long time to be created.

dsRemoveNode

public void dsRemoveNode(java.lang.Object node)
Removes a node from the graph.
Parameters:
node - The node to be removed

dsUpdateNode

public void dsUpdateNode(java.lang.Object node,
                         java.lang.String propertyName,
                         java.lang.Object propertyValue)
Updates a property of a node.
Parameters:
node - The node to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property

isLinkEditable

public boolean isLinkEditable(java.lang.Object obj)
Returns false if the link is read-only.
Parameters:
obj - The object to test.

dsAddLink

public java.lang.Object dsAddLink(java.lang.Object fromNode,
                                  java.lang.Object toNode,
                                  java.util.Map properties)
Creates a new link in the graph .
Parameters:
fromNode - The origin node of the link
toNode - The destination node of the link
properties - The properties of the link to create
Returns:
the created link (to be used only as a key). Note that this method may return null if the link takes a long time to be created.

dsRemoveLink

public void dsRemoveLink(java.lang.Object link)
Removes a link from the graph.
Parameters:
link - The link to be removed

dsUpdateLink

public void dsUpdateLink(java.lang.Object link,
                         java.lang.String propertyName,
                         java.lang.Object propertyValue)
Updates a property of a link
Parameters:
link - The link to update
propertyName - The name of the property to be updated
propertyValue - The new value of the property