|
||||||||||
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 |
materialize(Node persistentNode,
GraphSession.Node<NodePayload,PropertyPayload> node)
Update 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)
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 nullvoid postUpdateLocation(GraphSession.Node<NodePayload,PropertyPayload> node, Location oldLocation)
location
has been changed
node
- the node with the new locationoldLocation
- the old location of the nodevoid 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 abortedvoid 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 abortedvoid 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 movedvoid 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 nullvoid 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 validvoid 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 nullvoid 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 nodevoid 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 nullvoid preSave(GraphSession.Node<NodePayload,PropertyPayload> node) throws ValidationException
node
- the node to be validated
ValidationException
- if there is a problem during validation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |