public interface EntityWriteOperations
Modifier and Type | Method and Description |
---|---|
boolean |
nodeAddLabel(long nodeId,
long labelId)
Labels a node with the label corresponding to the given label id.
|
void |
nodeDelete(long nodeId) |
boolean |
nodeRemoveLabel(long nodeId,
long labelId)
Removes a label with the corresponding id from a node.
|
Property |
nodeRemoveProperty(long nodeId,
long propertyKeyId)
Remove a node's property given the node's id and the property key id and return the value to which
it was set or null if it was not set on the node
|
void |
nodeSetProperty(long nodeId,
Property property) |
Property |
relationshipRemoveProperty(long relationshipId,
long propertyKeyId) |
void |
relationshipSetProperty(long relationshipId,
Property property) |
void nodeDelete(long nodeId)
boolean nodeAddLabel(long nodeId, long labelId) throws EntityNotFoundException
KeyWriteOperations.labelGetOrCreateForName(String)
or KeyReadOperations.labelGetForName(String)
.EntityNotFoundException
boolean nodeRemoveLabel(long nodeId, long labelId) throws EntityNotFoundException
KeyWriteOperations.labelGetOrCreateForName(String)
or KeyReadOperations.labelGetForName(String)
.EntityNotFoundException
void nodeSetProperty(long nodeId, Property property) throws PropertyKeyIdNotFoundException, EntityNotFoundException
void relationshipSetProperty(long relationshipId, Property property) throws PropertyKeyIdNotFoundException, EntityNotFoundException
Property nodeRemoveProperty(long nodeId, long propertyKeyId) throws PropertyKeyIdNotFoundException, EntityNotFoundException
Property relationshipRemoveProperty(long relationshipId, long propertyKeyId) throws PropertyKeyIdNotFoundException, EntityNotFoundException
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.