public class DatabaseActions extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DatabaseActions.Provider |
static class |
DatabaseActions.RelationshipDirection |
| Modifier and Type | Field and Description |
|---|---|
static String |
INDEX_ORDER |
static String |
RELEVANCE_ORDER |
static String |
SCORE_ORDER |
| Constructor and Description |
|---|
DatabaseActions(LeaseManager leaseManager,
boolean enableScriptSandboxing,
org.neo4j.kernel.internal.GraphDatabaseAPI graphDatabaseAPI) |
DatabaseActions(LeaseManager leaseManager,
org.neo4j.kernel.internal.GraphDatabaseAPI graphDatabaseAPI) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabelToNode(long nodeId,
Collection<String> labelNames) |
IndexedEntityRepresentation |
addToNodeIndex(String indexName,
String key,
String value,
long nodeId) |
IndexedEntityRepresentation |
addToRelationshipIndex(String indexName,
String key,
String value,
long relationshipId) |
NodeRepresentation |
createNode(Map<String,Object> properties,
org.neo4j.graphdb.Label... labels) |
IndexRepresentation |
createNodeIndex(Map<String,Object> indexSpecification) |
String |
createPagedTraverser(long nodeId,
Map<String,Object> description,
int pageSize,
int leaseTime) |
ConstraintDefinitionRepresentation |
createPropertyUniquenessConstraint(String labelName,
Iterable<String> propertyKeys) |
RelationshipRepresentation |
createRelationship(long startNodeId,
long endNodeId,
String type,
Map<String,Object> properties) |
IndexRepresentation |
createRelationshipIndex(Map<String,Object> indexSpecification) |
IndexDefinitionRepresentation |
createSchemaIndex(String labelName,
Iterable<String> propertyKey) |
void |
deleteNode(long nodeId) |
void |
deleteRelationship(long relationshipId) |
boolean |
dropNodePropertyExistenceConstraint(String labelName,
Iterable<String> propertyKeys) |
boolean |
dropPropertyUniquenessConstraint(String labelName,
Iterable<String> propertyKeys) |
boolean |
dropRelationshipPropertyExistenceConstraint(String typeName,
Iterable<String> propertyKeys) |
boolean |
dropSchemaIndex(String labelName,
String propertyKey) |
org.neo4j.server.rest.repr.ListRepresentation |
findPaths(long startId,
long endId,
Map<String,Object> map) |
PathRepresentation |
findSinglePath(long startId,
long endId,
Map<String,Object> map) |
org.neo4j.server.rest.repr.ListRepresentation |
getAllLabels(boolean inUse) |
PropertiesRepresentation |
getAllNodeProperties(long nodeId) |
org.neo4j.server.rest.repr.Representation |
getAllPropertyKeys() |
PropertiesRepresentation |
getAllRelationshipProperties(long relationshipId) |
org.neo4j.server.rest.repr.Representation |
getAutoIndexedNodes(String key,
String value) |
org.neo4j.server.rest.repr.ListRepresentation |
getAutoIndexedNodesByQuery(String query) |
org.neo4j.server.rest.repr.Representation |
getAutoIndexedProperties(String type) |
org.neo4j.server.rest.repr.Representation |
getAutoIndexedRelationships(String key,
String value) |
org.neo4j.server.rest.repr.ListRepresentation |
getAutoIndexedRelationshipsByQuery(String query) |
org.neo4j.server.rest.repr.ListRepresentation |
getConstraints() |
IndexedEntityRepresentation |
getIndexedNode(String indexName,
String key,
String value,
long id) |
org.neo4j.server.rest.repr.ListRepresentation |
getIndexedNodes(String indexName,
String key,
String value) |
org.neo4j.server.rest.repr.ListRepresentation |
getIndexedNodesByQuery(String indexName,
String query,
String sort) |
org.neo4j.server.rest.repr.ListRepresentation |
getIndexedNodesByQuery(String indexName,
String key,
String query,
String sort) |
IndexedEntityRepresentation |
getIndexedRelationship(String indexName,
String key,
String value,
long id) |
org.neo4j.server.rest.repr.ListRepresentation |
getIndexedRelationships(String indexName,
String key,
String value) |
org.neo4j.server.rest.repr.ListRepresentation |
getIndexedRelationshipsByQuery(String indexName,
String query,
String sort) |
org.neo4j.server.rest.repr.ListRepresentation |
getIndexedRelationshipsByQuery(String indexName,
String key,
String query,
String sort) |
org.neo4j.server.rest.repr.ListRepresentation |
getLabelConstraints(String labelName) |
org.neo4j.server.rest.repr.Representation |
getLabelExistenceConstraints(String labelName) |
org.neo4j.server.rest.repr.Representation |
getLabelUniquenessConstraints(String labelName) |
NodeRepresentation |
getNode(long nodeId) |
org.neo4j.server.rest.repr.Representation |
getNodeDegree(long nodeId,
DatabaseActions.RelationshipDirection direction,
Collection<String> types) |
String[] |
getNodeIndexNames() |
org.neo4j.server.rest.repr.ListRepresentation |
getNodeLabels(long nodeId) |
org.neo4j.server.rest.repr.Representation |
getNodeProperty(long nodeId,
String key) |
org.neo4j.server.rest.repr.ListRepresentation |
getNodePropertyExistenceConstraint(String labelName,
Iterable<String> propertyKeys) |
org.neo4j.server.rest.repr.ListRepresentation |
getNodeRelationships(long nodeId,
DatabaseActions.RelationshipDirection direction,
Collection<String> types) |
org.neo4j.server.rest.repr.ListRepresentation |
getNodesWithLabel(String labelName,
Map<String,Object> properties) |
org.neo4j.helpers.collection.Pair<IndexedEntityRepresentation,Boolean> |
getOrCreateIndexedNode(String indexName,
String key,
String value,
Long nodeOrNull,
Map<String,Object> properties) |
org.neo4j.helpers.collection.Pair<IndexedEntityRepresentation,Boolean> |
getOrCreateIndexedRelationship(String indexName,
String key,
String value,
Long relationshipOrNull,
Long startNode,
String type,
Long endNode,
Map<String,Object> properties) |
org.neo4j.server.rest.repr.ListRepresentation |
getPropertyUniquenessConstraint(String labelName,
Iterable<String> propertyKeys) |
RelationshipRepresentation |
getRelationship(long relationshipId) |
String[] |
getRelationshipIndexNames() |
org.neo4j.server.rest.repr.Representation |
getRelationshipProperty(long relationshipId,
String key) |
org.neo4j.server.rest.repr.ListRepresentation |
getRelationshipPropertyExistenceConstraint(String typeName,
Iterable<String> propertyKeys) |
org.neo4j.server.rest.repr.Representation |
getRelationshipTypeExistenceConstraints(String typeName) |
org.neo4j.server.rest.repr.ListRepresentation |
getSchemaIndexes() |
org.neo4j.server.rest.repr.ListRepresentation |
getSchemaIndexes(String labelName) |
org.neo4j.server.rest.repr.Representation |
isAutoIndexerEnabled(String type) |
org.neo4j.server.rest.repr.Representation |
nodeIndexRoot() |
boolean |
nodeIsIndexed(String indexName,
String key,
Object value,
long nodeId) |
org.neo4j.server.rest.repr.ListRepresentation |
pagedTraverse(String traverserId,
TraverserReturnType returnType) |
org.neo4j.server.rest.repr.Representation |
relationshipIndexRoot() |
boolean |
relationshipIsIndexed(String indexName,
String key,
Object value,
long relationshipId) |
void |
removeAllNodeProperties(long nodeId) |
void |
removeAllRelationshipProperties(long relationshipId) |
void |
removeFromNodeIndex(String indexName,
String key,
String value,
long id) |
void |
removeFromNodeIndexNoKeyValue(String indexName,
long id) |
void |
removeFromNodeIndexNoValue(String indexName,
String key,
long id) |
void |
removeFromRelationshipIndex(String indexName,
String key,
String value,
long id) |
void |
removeFromRelationshipIndexNoKeyValue(String indexName,
long id) |
void |
removeFromRelationshipIndexNoValue(String indexName,
String key,
long id) |
void |
removeLabelFromNode(long nodeId,
String labelName) |
void |
removeNodeIndex(String indexName) |
void |
removeNodeProperty(long nodeId,
String key) |
boolean |
removePagedTraverse(String traverserId) |
void |
removeRelationshipIndex(String indexName) |
void |
removeRelationshipProperty(long relationshipId,
String key) |
DatabaseRepresentation |
root() |
void |
setAllNodeProperties(long nodeId,
Map<String,Object> properties) |
void |
setAllRelationshipProperties(long relationshipId,
Map<String,Object> properties) |
void |
setAutoIndexerEnabled(String type,
boolean enable) |
void |
setLabelsOnNode(long nodeId,
Collection<String> labels) |
void |
setNodeProperty(long nodeId,
String key,
Object value) |
void |
setRelationshipProperty(long relationshipId,
String key,
Object value) |
void |
startAutoIndexingProperty(String type,
String property) |
void |
stopAutoIndexingProperty(String type,
String property) |
org.neo4j.server.rest.repr.ListRepresentation |
traverse(long startNode,
Map<String,Object> description,
TraverserReturnType returnType) |
public static final String SCORE_ORDER
public static final String RELEVANCE_ORDER
public static final String INDEX_ORDER
public DatabaseActions(LeaseManager leaseManager, boolean enableScriptSandboxing, org.neo4j.kernel.internal.GraphDatabaseAPI graphDatabaseAPI)
public DatabaseActions(LeaseManager leaseManager, org.neo4j.kernel.internal.GraphDatabaseAPI graphDatabaseAPI)
public DatabaseRepresentation root()
public NodeRepresentation createNode(Map<String,Object> properties, org.neo4j.graphdb.Label... labels) throws PropertyValueException
PropertyValueExceptionpublic NodeRepresentation getNode(long nodeId) throws org.neo4j.server.rest.web.NodeNotFoundException
org.neo4j.server.rest.web.NodeNotFoundExceptionpublic void deleteNode(long nodeId)
throws org.neo4j.server.rest.web.NodeNotFoundException,
org.neo4j.graphdb.ConstraintViolationException
org.neo4j.server.rest.web.NodeNotFoundExceptionorg.neo4j.graphdb.ConstraintViolationExceptionpublic org.neo4j.server.rest.repr.Representation getAllPropertyKeys()
public org.neo4j.server.rest.repr.Representation getNodeProperty(long nodeId,
String key)
throws org.neo4j.server.rest.web.NodeNotFoundException,
NoSuchPropertyException
org.neo4j.server.rest.web.NodeNotFoundExceptionNoSuchPropertyExceptionpublic void setNodeProperty(long nodeId,
String key,
Object value)
throws PropertyValueException,
org.neo4j.server.rest.web.NodeNotFoundException
PropertyValueExceptionorg.neo4j.server.rest.web.NodeNotFoundExceptionpublic void removeNodeProperty(long nodeId,
String key)
throws org.neo4j.server.rest.web.NodeNotFoundException,
NoSuchPropertyException
org.neo4j.server.rest.web.NodeNotFoundExceptionNoSuchPropertyExceptionpublic PropertiesRepresentation getAllNodeProperties(long nodeId) throws org.neo4j.server.rest.web.NodeNotFoundException
org.neo4j.server.rest.web.NodeNotFoundExceptionpublic void setAllNodeProperties(long nodeId,
Map<String,Object> properties)
throws PropertyValueException,
org.neo4j.server.rest.web.NodeNotFoundException
PropertyValueExceptionorg.neo4j.server.rest.web.NodeNotFoundExceptionpublic void removeAllNodeProperties(long nodeId)
throws org.neo4j.server.rest.web.NodeNotFoundException,
PropertyValueException
org.neo4j.server.rest.web.NodeNotFoundExceptionPropertyValueExceptionpublic void addLabelToNode(long nodeId,
Collection<String> labelNames)
throws org.neo4j.server.rest.web.NodeNotFoundException,
org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.web.NodeNotFoundExceptionorg.neo4j.server.rest.repr.BadInputExceptionpublic void setLabelsOnNode(long nodeId,
Collection<String> labels)
throws org.neo4j.server.rest.web.NodeNotFoundException,
org.neo4j.server.rest.repr.BadInputException
org.neo4j.server.rest.web.NodeNotFoundExceptionorg.neo4j.server.rest.repr.BadInputExceptionpublic void removeLabelFromNode(long nodeId,
String labelName)
throws org.neo4j.server.rest.web.NodeNotFoundException
org.neo4j.server.rest.web.NodeNotFoundExceptionpublic org.neo4j.server.rest.repr.ListRepresentation getNodeLabels(long nodeId)
throws org.neo4j.server.rest.web.NodeNotFoundException
org.neo4j.server.rest.web.NodeNotFoundExceptionpublic String[] getNodeIndexNames()
public String[] getRelationshipIndexNames()
public IndexRepresentation createNodeIndex(Map<String,Object> indexSpecification)
public IndexRepresentation createRelationshipIndex(Map<String,Object> indexSpecification)
public void removeNodeIndex(String indexName)
public void removeRelationshipIndex(String indexName)
public boolean relationshipIsIndexed(String indexName, String key, Object value, long relationshipId)
public org.neo4j.server.rest.repr.Representation isAutoIndexerEnabled(String type)
public void setAutoIndexerEnabled(String type, boolean enable)
public org.neo4j.server.rest.repr.Representation getAutoIndexedProperties(String type)
public RelationshipRepresentation createRelationship(long startNodeId, long endNodeId, String type, Map<String,Object> properties) throws StartNodeNotFoundException, EndNodeNotFoundException, PropertyValueException
public RelationshipRepresentation getRelationship(long relationshipId) throws org.neo4j.server.rest.web.RelationshipNotFoundException
org.neo4j.server.rest.web.RelationshipNotFoundExceptionpublic void deleteRelationship(long relationshipId)
throws org.neo4j.server.rest.web.RelationshipNotFoundException
org.neo4j.server.rest.web.RelationshipNotFoundExceptionpublic org.neo4j.server.rest.repr.ListRepresentation getNodeRelationships(long nodeId,
DatabaseActions.RelationshipDirection direction,
Collection<String> types)
throws org.neo4j.server.rest.web.NodeNotFoundException
org.neo4j.server.rest.web.NodeNotFoundExceptionpublic org.neo4j.server.rest.repr.Representation getNodeDegree(long nodeId,
DatabaseActions.RelationshipDirection direction,
Collection<String> types)
throws org.neo4j.server.rest.web.NodeNotFoundException
org.neo4j.server.rest.web.NodeNotFoundExceptionpublic PropertiesRepresentation getAllRelationshipProperties(long relationshipId) throws org.neo4j.server.rest.web.RelationshipNotFoundException
org.neo4j.server.rest.web.RelationshipNotFoundExceptionpublic org.neo4j.server.rest.repr.Representation getRelationshipProperty(long relationshipId,
String key)
throws NoSuchPropertyException,
org.neo4j.server.rest.web.RelationshipNotFoundException
NoSuchPropertyExceptionorg.neo4j.server.rest.web.RelationshipNotFoundExceptionpublic void setAllRelationshipProperties(long relationshipId,
Map<String,Object> properties)
throws PropertyValueException,
org.neo4j.server.rest.web.RelationshipNotFoundException
PropertyValueExceptionorg.neo4j.server.rest.web.RelationshipNotFoundExceptionpublic void setRelationshipProperty(long relationshipId,
String key,
Object value)
throws PropertyValueException,
org.neo4j.server.rest.web.RelationshipNotFoundException
PropertyValueExceptionorg.neo4j.server.rest.web.RelationshipNotFoundExceptionpublic void removeAllRelationshipProperties(long relationshipId)
throws org.neo4j.server.rest.web.RelationshipNotFoundException,
PropertyValueException
org.neo4j.server.rest.web.RelationshipNotFoundExceptionPropertyValueExceptionpublic void removeRelationshipProperty(long relationshipId,
String key)
throws org.neo4j.server.rest.web.RelationshipNotFoundException,
NoSuchPropertyException
org.neo4j.server.rest.web.RelationshipNotFoundExceptionNoSuchPropertyExceptionpublic org.neo4j.server.rest.repr.Representation nodeIndexRoot()
public org.neo4j.server.rest.repr.Representation relationshipIndexRoot()
public IndexedEntityRepresentation addToRelationshipIndex(String indexName, String key, String value, long relationshipId)
public IndexedEntityRepresentation addToNodeIndex(String indexName, String key, String value, long nodeId)
public void removeFromNodeIndex(String indexName, String key, String value, long id)
public void removeFromNodeIndexNoValue(String indexName, String key, long id)
public void removeFromNodeIndexNoKeyValue(String indexName, long id)
public void removeFromRelationshipIndex(String indexName, String key, String value, long id)
public void removeFromRelationshipIndexNoValue(String indexName, String key, long id)
public void removeFromRelationshipIndexNoKeyValue(String indexName, long id)
public IndexedEntityRepresentation getIndexedNode(String indexName, String key, String value, long id)
public IndexedEntityRepresentation getIndexedRelationship(String indexName, String key, String value, long id)
public org.neo4j.server.rest.repr.ListRepresentation getIndexedNodes(String indexName, String key, String value)
public org.neo4j.server.rest.repr.ListRepresentation getIndexedNodesByQuery(String indexName, String query, String sort)
public org.neo4j.server.rest.repr.ListRepresentation getIndexedNodesByQuery(String indexName, String key, String query, String sort)
public org.neo4j.helpers.collection.Pair<IndexedEntityRepresentation,Boolean> getOrCreateIndexedNode(String indexName, String key, String value, Long nodeOrNull, Map<String,Object> properties) throws org.neo4j.server.rest.repr.BadInputException, org.neo4j.server.rest.web.NodeNotFoundException
org.neo4j.server.rest.repr.BadInputExceptionorg.neo4j.server.rest.web.NodeNotFoundExceptionpublic org.neo4j.helpers.collection.Pair<IndexedEntityRepresentation,Boolean> getOrCreateIndexedRelationship(String indexName, String key, String value, Long relationshipOrNull, Long startNode, String type, Long endNode, Map<String,Object> properties) throws org.neo4j.server.rest.repr.BadInputException, org.neo4j.server.rest.web.RelationshipNotFoundException, org.neo4j.server.rest.web.NodeNotFoundException
org.neo4j.server.rest.repr.BadInputExceptionorg.neo4j.server.rest.web.RelationshipNotFoundExceptionorg.neo4j.server.rest.web.NodeNotFoundExceptionpublic org.neo4j.server.rest.repr.Representation getAutoIndexedNodes(String key, String value)
public org.neo4j.server.rest.repr.ListRepresentation getAutoIndexedNodesByQuery(String query)
public org.neo4j.server.rest.repr.ListRepresentation getIndexedRelationships(String indexName, String key, String value)
public org.neo4j.server.rest.repr.ListRepresentation getIndexedRelationshipsByQuery(String indexName, String query, String sort)
public org.neo4j.server.rest.repr.ListRepresentation getIndexedRelationshipsByQuery(String indexName, String key, String query, String sort)
public org.neo4j.server.rest.repr.Representation getAutoIndexedRelationships(String key, String value)
public org.neo4j.server.rest.repr.ListRepresentation getAutoIndexedRelationshipsByQuery(String query)
public org.neo4j.server.rest.repr.ListRepresentation traverse(long startNode,
Map<String,Object> description,
TraverserReturnType returnType)
public org.neo4j.server.rest.repr.ListRepresentation pagedTraverse(String traverserId, TraverserReturnType returnType)
public String createPagedTraverser(long nodeId, Map<String,Object> description, int pageSize, int leaseTime)
public boolean removePagedTraverse(String traverserId)
public PathRepresentation findSinglePath(long startId, long endId, Map<String,Object> map)
public org.neo4j.server.rest.repr.ListRepresentation findPaths(long startId,
long endId,
Map<String,Object> map)
public org.neo4j.server.rest.repr.ListRepresentation getNodesWithLabel(String labelName, Map<String,Object> properties)
public org.neo4j.server.rest.repr.ListRepresentation getAllLabels(boolean inUse)
public IndexDefinitionRepresentation createSchemaIndex(String labelName, Iterable<String> propertyKey)
public org.neo4j.server.rest.repr.ListRepresentation getSchemaIndexes()
public org.neo4j.server.rest.repr.ListRepresentation getSchemaIndexes(String labelName)
public ConstraintDefinitionRepresentation createPropertyUniquenessConstraint(String labelName, Iterable<String> propertyKeys)
public boolean dropPropertyUniquenessConstraint(String labelName, Iterable<String> propertyKeys)
public boolean dropNodePropertyExistenceConstraint(String labelName, Iterable<String> propertyKeys)
public boolean dropRelationshipPropertyExistenceConstraint(String typeName, Iterable<String> propertyKeys)
public org.neo4j.server.rest.repr.ListRepresentation getNodePropertyExistenceConstraint(String labelName, Iterable<String> propertyKeys)
public org.neo4j.server.rest.repr.ListRepresentation getRelationshipPropertyExistenceConstraint(String typeName, Iterable<String> propertyKeys)
public org.neo4j.server.rest.repr.ListRepresentation getPropertyUniquenessConstraint(String labelName, Iterable<String> propertyKeys)
public org.neo4j.server.rest.repr.ListRepresentation getConstraints()
public org.neo4j.server.rest.repr.ListRepresentation getLabelConstraints(String labelName)
public org.neo4j.server.rest.repr.Representation getLabelUniquenessConstraints(String labelName)
public org.neo4j.server.rest.repr.Representation getLabelExistenceConstraints(String labelName)
public org.neo4j.server.rest.repr.Representation getRelationshipTypeExistenceConstraints(String typeName)
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.