|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ThreadSafe public static interface GraphSession.Operations<NodePayload,PropertyPayload>

| Method Summary | |
|---|---|
void |
compute(Graph.Batch batch,
GraphSession.Node<NodePayload,PropertyPayload> node)
Update any computed fields based on the given node |
void |
materialize(Node persistentNode,
GraphSession.Node<NodePayload,PropertyPayload> node)
Update the children and properties for the node with the information from the persistent store. |
void |
materializeProperties(Node persistentNode,
GraphSession.Node<NodePayload,PropertyPayload> node)
Update the properties ONLY for the node with the information from the persistent store. |
void |
postCopy(GraphSession.Node<NodePayload,PropertyPayload> original,
GraphSession.Node<NodePayload,PropertyPayload> copy)
Notify that an existing child will be copied with the new copy being placed under the supplied parent. |
void |
postCreateChild(GraphSession.Node<NodePayload,PropertyPayload> parentNode,
GraphSession.Node<NodePayload,PropertyPayload> newChild,
Map<Name,GraphSession.PropertyInfo<PropertyPayload>> properties)
Notify that a new child has been added to the supplied parent node. |
void |
postMove(GraphSession.Node<NodePayload,PropertyPayload> movedNode,
GraphSession.Node<NodePayload,PropertyPayload> oldParentNode)
Notify that an existing child has been moved from the supplied previous parent into its new location. |
void |
postRemoveChild(GraphSession.Node<NodePayload,PropertyPayload> parentNode,
GraphSession.Node<NodePayload,PropertyPayload> removedChild)
Notify that an existing child has been removed from the supplied parent. |
void |
postRemoveProperty(GraphSession.Node<NodePayload,PropertyPayload> node,
Name propertyName,
GraphSession.PropertyInfo<PropertyPayload> oldProperty)
|
void |
postSetProperty(GraphSession.Node<NodePayload,PropertyPayload> node,
Name propertyName,
GraphSession.PropertyInfo<PropertyPayload> oldProperty)
|
void |
postUpdateLocation(GraphSession.Node<NodePayload,PropertyPayload> node,
Location oldLocation)
Signal that the node's location has been changed |
void |
preCopy(GraphSession.Node<NodePayload,PropertyPayload> original,
GraphSession.Node<NodePayload,PropertyPayload> newParentNode)
Notify that an existing child will be copied with the new copy being placed under the supplied parent. |
void |
preCreateChild(GraphSession.Node<NodePayload,PropertyPayload> parentNode,
Path.Segment newChild,
Map<Name,GraphSession.PropertyInfo<PropertyPayload>> properties)
Notify that a new child with the supplied path segment is about to be created. |
void |
preMove(GraphSession.Node<NodePayload,PropertyPayload> nodeToBeMoved,
GraphSession.Node<NodePayload,PropertyPayload> newParentNode)
Notify that an existing child will be moved from its current parent and placed under the supplied parent. |
void |
preRemoveChild(GraphSession.Node<NodePayload,PropertyPayload> parentNode,
GraphSession.Node<NodePayload,PropertyPayload> child)
Notify that an existing child will be removed from the supplied parent. |
void |
preRemoveProperty(GraphSession.Node<NodePayload,PropertyPayload> node,
Name propertyName)
|
void |
preSave(GraphSession.Node<NodePayload,PropertyPayload> node,
DateTime saveTime)
Validate a node for consistency and well-formedness. |
void |
preSetProperty(GraphSession.Node<NodePayload,PropertyPayload> node,
Name propertyName,
GraphSession.PropertyInfo<PropertyPayload> newProperty)
|
| Method Detail |
|---|
void materialize(Node persistentNode,
GraphSession.Node<NodePayload,PropertyPayload> node)
persistentNode - the persistent node that should be converted into a node info; never nullnode - the session's node representation that is to be updated; never null
void materializeProperties(Node persistentNode,
GraphSession.Node<NodePayload,PropertyPayload> node)
persistentNode - the persistent node that should be converted into a node info; never nullnode - the session's node representation that is to be updated; never null
void postUpdateLocation(GraphSession.Node<NodePayload,PropertyPayload> node,
Location oldLocation)
location has been changed
node - the node with the new locationoldLocation - the old location of the node
void preSetProperty(GraphSession.Node<NodePayload,PropertyPayload> node,
Name propertyName,
GraphSession.PropertyInfo<PropertyPayload> newProperty)
throws ValidationException
ValidationException
void postSetProperty(GraphSession.Node<NodePayload,PropertyPayload> node,
Name propertyName,
GraphSession.PropertyInfo<PropertyPayload> oldProperty)
void preRemoveProperty(GraphSession.Node<NodePayload,PropertyPayload> node,
Name propertyName)
throws ValidationException
ValidationException
void postRemoveProperty(GraphSession.Node<NodePayload,PropertyPayload> node,
Name propertyName,
GraphSession.PropertyInfo<PropertyPayload> oldProperty)
void preCreateChild(GraphSession.Node<NodePayload,PropertyPayload> parentNode,
Path.Segment newChild,
Map<Name,GraphSession.PropertyInfo<PropertyPayload>> properties)
throws ValidationException
parentNode - the parent node; never nullnewChild - the path segment for the new child; never nullproperties - the initial properties for the new child, which can be manipulated directly; never null
ValidationException - if the parent may not have a child with the supplied name and the creation of the new node
should be aborted
void postCreateChild(GraphSession.Node<NodePayload,PropertyPayload> parentNode,
GraphSession.Node<NodePayload,PropertyPayload> newChild,
Map<Name,GraphSession.PropertyInfo<PropertyPayload>> properties)
throws ValidationException
payload.
parentNode - the parent node; never nullnewChild - the child that was just added to the parent node; never nullproperties - the properties of the child, which can be manipulated directly; never null
ValidationException - if the parent and child are not valid and the creation of the new node should be aborted
void preMove(GraphSession.Node<NodePayload,PropertyPayload> nodeToBeMoved,
GraphSession.Node<NodePayload,PropertyPayload> newParentNode)
throws ValidationException
nodeToBeMoved - the existing node that is to be moved from its current parent to the supplied parent; never nullnewParentNode - the new parent node; never null
ValidationException - if the child should not be moved
void postMove(GraphSession.Node<NodePayload,PropertyPayload> movedNode,
GraphSession.Node<NodePayload,PropertyPayload> oldParentNode)
movedNode - the existing node that is was moved; never nulloldParentNode - the old parent node; never null
void preCopy(GraphSession.Node<NodePayload,PropertyPayload> original,
GraphSession.Node<NodePayload,PropertyPayload> newParentNode)
throws ValidationException
original - the existing node that is to be copied; never nullnewParentNode - the parent node where the copy is to be placed; never null
ValidationException - if the copy is not valid
void postCopy(GraphSession.Node<NodePayload,PropertyPayload> original,
GraphSession.Node<NodePayload,PropertyPayload> copy)
original - the original node that was copied; never nullcopy - the new copy that was made; never null
void preRemoveChild(GraphSession.Node<NodePayload,PropertyPayload> parentNode,
GraphSession.Node<NodePayload,PropertyPayload> child)
throws ValidationException
parentNode - the parent node; never nullchild - the child that is to be removed from the parent node; never null
ValidationException - if the child should not be removed from the parent node
void postRemoveChild(GraphSession.Node<NodePayload,PropertyPayload> parentNode,
GraphSession.Node<NodePayload,PropertyPayload> removedChild)
stale.
parentNode - the parent node; never nullremovedChild - the child that is to be removed from the parent node; never null
void preSave(GraphSession.Node<NodePayload,PropertyPayload> node,
DateTime saveTime)
throws ValidationException
node - the node to be validatedsaveTime - the time at which the save operation is occurring; never null
ValidationException - if there is a problem during validation
void compute(Graph.Batch batch,
GraphSession.Node<NodePayload,PropertyPayload> node)
batch - the workspace graph batch in which computed fields should be creatednode - the node form which computed fields will be derived
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||