public class RestNode extends RestEntity implements org.neo4j.graphdb.Node
propertyData, restApi
Constructor and Description |
---|
RestNode(long id,
Collection<String> labels,
Map<String,Object> restData,
RestAPI facade) |
RestNode(Map<?,?> data,
RestAPI restApi) |
RestNode(RestNode node,
RestAPI facade) |
RestNode(String uri,
RestAPI restApi) |
RestNode(URI uri,
RestAPI restApi) |
Modifier and Type | Method and Description |
---|---|
void |
addAllLabelsBatch(Collection<String> labels) |
void |
addLabel(org.neo4j.graphdb.Label label) |
org.neo4j.graphdb.Relationship |
createRelationshipTo(org.neo4j.graphdb.Node toNode,
org.neo4j.graphdb.RelationshipType type) |
protected void |
doUpdate() |
static RestNode |
fromCypher(long id,
Collection<String> labels,
Map<String,Object> props,
RestAPI facade) |
int |
getDegree() |
int |
getDegree(org.neo4j.graphdb.Direction direction) |
int |
getDegree(org.neo4j.graphdb.RelationshipType type) |
int |
getDegree(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction) |
org.neo4j.graphdb.ResourceIterable<org.neo4j.graphdb.Label> |
getLabels() |
Iterable<org.neo4j.graphdb.Relationship> |
getRelationships() |
Iterable<org.neo4j.graphdb.Relationship> |
getRelationships(org.neo4j.graphdb.Direction direction) |
Iterable<org.neo4j.graphdb.Relationship> |
getRelationships(org.neo4j.graphdb.Direction direction,
org.neo4j.graphdb.RelationshipType... types) |
Iterable<org.neo4j.graphdb.Relationship> |
getRelationships(org.neo4j.graphdb.RelationshipType... types) |
Iterable<org.neo4j.graphdb.Relationship> |
getRelationships(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction) |
Iterable<org.neo4j.graphdb.RelationshipType> |
getRelationshipTypes() |
org.neo4j.graphdb.Relationship |
getSingleRelationship(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction) |
boolean |
hasLabel(org.neo4j.graphdb.Label label) |
boolean |
hasRelationship() |
boolean |
hasRelationship(org.neo4j.graphdb.Direction direction) |
boolean |
hasRelationship(org.neo4j.graphdb.Direction direction,
org.neo4j.graphdb.RelationshipType... types) |
boolean |
hasRelationship(org.neo4j.graphdb.RelationshipType... types) |
boolean |
hasRelationship(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction) |
void |
removeLabel(org.neo4j.graphdb.Label label) |
void |
setLabels(Collection<String> labels) |
org.neo4j.graphdb.Traverser |
traverse(org.neo4j.graphdb.Traverser.Order order,
org.neo4j.graphdb.StopEvaluator stopEvaluator,
org.neo4j.graphdb.ReturnableEvaluator returnableEvaluator,
Object... rels) |
org.neo4j.graphdb.Traverser |
traverse(org.neo4j.graphdb.Traverser.Order order,
org.neo4j.graphdb.StopEvaluator stopEvaluator,
org.neo4j.graphdb.ReturnableEvaluator returnableEvaluator,
org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction) |
org.neo4j.graphdb.Traverser |
traverse(org.neo4j.graphdb.Traverser.Order order,
org.neo4j.graphdb.StopEvaluator stopEvaluator,
org.neo4j.graphdb.ReturnableEvaluator returnableEvaluator,
org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
org.neo4j.graphdb.RelationshipType secondType,
org.neo4j.graphdb.Direction secondDirection) |
void |
updateFrom(RestEntity entity,
RestAPI restApi) |
addPropertiesBatch, delete, equals, flush, getEntityId, getGraphDatabase, getId, getProperty, getProperty, getPropertyKeys, getPropertyValues, getRestApi, getUri, hashCode, hasProperty, hasToUpdateProperties, nodeUri, refresh, removeProperty, setLastTimeFetchedPropertyData, setProperties, setProperty, toString, track
public RestNode(long id, Collection<String> labels, Map<String,Object> restData, RestAPI facade)
public static RestNode fromCypher(long id, Collection<String> labels, Map<String,Object> props, RestAPI facade)
protected void doUpdate()
doUpdate
in class RestEntity
public void updateFrom(RestEntity entity, RestAPI restApi)
updateFrom
in interface UpdatableRestResult<RestEntity>
updateFrom
in class RestEntity
public org.neo4j.graphdb.Relationship createRelationshipTo(org.neo4j.graphdb.Node toNode, org.neo4j.graphdb.RelationshipType type)
createRelationshipTo
in interface org.neo4j.graphdb.Node
public Iterable<org.neo4j.graphdb.RelationshipType> getRelationshipTypes()
getRelationshipTypes
in interface org.neo4j.graphdb.Node
public int getDegree()
getDegree
in interface org.neo4j.graphdb.Node
public int getDegree(org.neo4j.graphdb.RelationshipType type)
getDegree
in interface org.neo4j.graphdb.Node
public int getDegree(org.neo4j.graphdb.Direction direction)
getDegree
in interface org.neo4j.graphdb.Node
public int getDegree(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction)
getDegree
in interface org.neo4j.graphdb.Node
public Iterable<org.neo4j.graphdb.Relationship> getRelationships()
getRelationships
in interface org.neo4j.graphdb.Node
public Iterable<org.neo4j.graphdb.Relationship> getRelationships(org.neo4j.graphdb.RelationshipType... types)
getRelationships
in interface org.neo4j.graphdb.Node
public Iterable<org.neo4j.graphdb.Relationship> getRelationships(org.neo4j.graphdb.Direction direction)
getRelationships
in interface org.neo4j.graphdb.Node
public Iterable<org.neo4j.graphdb.Relationship> getRelationships(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction)
getRelationships
in interface org.neo4j.graphdb.Node
public org.neo4j.graphdb.Relationship getSingleRelationship(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction)
getSingleRelationship
in interface org.neo4j.graphdb.Node
public boolean hasRelationship()
hasRelationship
in interface org.neo4j.graphdb.Node
public boolean hasRelationship(org.neo4j.graphdb.RelationshipType... types)
hasRelationship
in interface org.neo4j.graphdb.Node
public boolean hasRelationship(org.neo4j.graphdb.Direction direction)
hasRelationship
in interface org.neo4j.graphdb.Node
public boolean hasRelationship(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction)
hasRelationship
in interface org.neo4j.graphdb.Node
public org.neo4j.graphdb.Traverser traverse(org.neo4j.graphdb.Traverser.Order order, org.neo4j.graphdb.StopEvaluator stopEvaluator, org.neo4j.graphdb.ReturnableEvaluator returnableEvaluator, Object... rels)
traverse
in interface org.neo4j.graphdb.Node
public org.neo4j.graphdb.Traverser traverse(org.neo4j.graphdb.Traverser.Order order, org.neo4j.graphdb.StopEvaluator stopEvaluator, org.neo4j.graphdb.ReturnableEvaluator returnableEvaluator, org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction)
traverse
in interface org.neo4j.graphdb.Node
public org.neo4j.graphdb.Traverser traverse(org.neo4j.graphdb.Traverser.Order order, org.neo4j.graphdb.StopEvaluator stopEvaluator, org.neo4j.graphdb.ReturnableEvaluator returnableEvaluator, org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType secondType, org.neo4j.graphdb.Direction secondDirection)
traverse
in interface org.neo4j.graphdb.Node
public Iterable<org.neo4j.graphdb.Relationship> getRelationships(org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType... types)
getRelationships
in interface org.neo4j.graphdb.Node
public boolean hasRelationship(org.neo4j.graphdb.Direction direction, org.neo4j.graphdb.RelationshipType... types)
hasRelationship
in interface org.neo4j.graphdb.Node
public void addLabel(org.neo4j.graphdb.Label label)
addLabel
in interface org.neo4j.graphdb.Node
public void removeLabel(org.neo4j.graphdb.Label label)
removeLabel
in interface org.neo4j.graphdb.Node
public boolean hasLabel(org.neo4j.graphdb.Label label)
hasLabel
in interface org.neo4j.graphdb.Node
public void setLabels(Collection<String> labels)
public org.neo4j.graphdb.ResourceIterable<org.neo4j.graphdb.Label> getLabels()
getLabels
in interface org.neo4j.graphdb.Node
public void addAllLabelsBatch(Collection<String> labels)
addAllLabelsBatch
in interface UpdateableState
addAllLabelsBatch
in class RestEntity
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.