public interface NodeDao
MutableNode
.Modifier and Type | Method and Description |
---|---|
void |
delete(Node node)
Delete existing
MutableNode . |
Node |
findNodeByCode(String code)
Find node by
MutableNode.getCode() . |
Node |
findNodeById(Long nodeId)
Finds node by identifier.
|
List<Node> |
getAllNodes()
Get all
MutableNode s. |
Node |
getNodeById(Long nodeId)
Gets node by identifier.
|
Node |
insert(Node node)
Insert new
MutableNode . |
Node |
update(Node node,
ChangeNodeCallback changeNodeCallback)
Update existing
MutableNode . |
Node insert(Node node)
MutableNode
.node
- nodeNode update(Node node, ChangeNodeCallback changeNodeCallback)
MutableNode
.node
- nodechangeNodeCallback
- callback function in which can be changed all node attributesvoid delete(Node node)
MutableNode
.node
- nodeList<Node> getAllNodes()
MutableNode
s.Node getNodeById(Long nodeId)
nodeId
- node identifier@Nullable Node findNodeById(Long nodeId)
nodeId
- node identifierNULL
- node not found by identifier@Nullable Node findNodeByCode(String code)
MutableNode.getCode()
.code
- codeNULL
- no node found by codeCopyright © 2018 Pivotal Software, Inc.. All rights reserved.