public class ConstraintEnforcingEntityWriteOperations extends Object implements EntityWriteOperations
| Constructor and Description |
|---|
ConstraintEnforcingEntityWriteOperations(EntityWriteOperations entityWriteOperations,
EntityReadOperations entityReadOperations,
SchemaReadOperations schemaReadOperations) |
| Modifier and Type | Method and Description |
|---|---|
Property |
graphRemoveProperty(Statement state,
long propertyKeyId) |
Property |
graphSetProperty(Statement state,
SafeProperty property) |
boolean |
nodeAddLabel(Statement state,
long nodeId,
long labelId)
Labels a node with the label corresponding to the given label id.
|
void |
nodeDelete(Statement state,
long nodeId) |
boolean |
nodeRemoveLabel(Statement state,
long nodeId,
long labelId)
Removes a label with the corresponding id from a node.
|
Property |
nodeRemoveProperty(Statement state,
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
|
Property |
nodeSetProperty(Statement state,
long nodeId,
SafeProperty property) |
void |
relationshipDelete(Statement state,
long relationshipId) |
Property |
relationshipRemoveProperty(Statement state,
long relationshipId,
long propertyKeyId) |
Property |
relationshipSetProperty(Statement state,
long relationshipId,
SafeProperty property) |
public ConstraintEnforcingEntityWriteOperations(EntityWriteOperations entityWriteOperations, EntityReadOperations entityReadOperations, SchemaReadOperations schemaReadOperations)
public boolean nodeAddLabel(Statement state, long nodeId, long labelId) throws EntityNotFoundException, org.neo4j.kernel.impl.api.constraints.ConstraintValidationKernelException
EntityWriteOperationsKeyWriteOperations.labelGetOrCreateForName(org.neo4j.kernel.api.Statement, String) or KeyReadOperations.labelGetForName(org.neo4j.kernel.api.Statement, String).nodeAddLabel in interface EntityWriteOperationsEntityNotFoundExceptionorg.neo4j.kernel.impl.api.constraints.ConstraintValidationKernelExceptionpublic Property nodeSetProperty(Statement state, long nodeId, SafeProperty property) throws EntityNotFoundException, org.neo4j.kernel.impl.api.constraints.ConstraintValidationKernelException
nodeSetProperty in interface EntityWriteOperationsEntityNotFoundExceptionorg.neo4j.kernel.impl.api.constraints.ConstraintValidationKernelExceptionpublic void nodeDelete(Statement state, long nodeId)
nodeDelete in interface EntityWriteOperationspublic void relationshipDelete(Statement state, long relationshipId)
relationshipDelete in interface EntityWriteOperationspublic boolean nodeRemoveLabel(Statement state, long nodeId, long labelId) throws EntityNotFoundException
EntityWriteOperationsKeyWriteOperations.labelGetOrCreateForName(org.neo4j.kernel.api.Statement, String) or KeyReadOperations.labelGetForName(org.neo4j.kernel.api.Statement, String).nodeRemoveLabel in interface EntityWriteOperationsEntityNotFoundExceptionpublic Property relationshipSetProperty(Statement state, long relationshipId, SafeProperty property) throws EntityNotFoundException
relationshipSetProperty in interface EntityWriteOperationsEntityNotFoundExceptionpublic Property graphSetProperty(Statement state, SafeProperty property)
graphSetProperty in interface EntityWriteOperationspublic Property nodeRemoveProperty(Statement state, long nodeId, long propertyKeyId) throws EntityNotFoundException
EntityWriteOperationsnodeRemoveProperty in interface EntityWriteOperationsEntityNotFoundExceptionpublic Property relationshipRemoveProperty(Statement state, long relationshipId, long propertyKeyId) throws EntityNotFoundException
relationshipRemoveProperty in interface EntityWriteOperationsEntityNotFoundExceptionpublic Property graphRemoveProperty(Statement state, long propertyKeyId)
graphRemoveProperty in interface EntityWriteOperationsCopyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.