public class CypherContext extends Object
| Constructor and Description |
|---|
CypherContext() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deregisterIncomingRelationships(Long tgt,
String relationshipType,
Class endNodeType,
boolean relationshipEntity)
Invoked when the mapper wishes to mark a set of incoming relationships to a specific type like (a)<-[:T]-(*) as deleted, prior
to possibly re-establishing them individually as it traverses the entity graph.
|
boolean |
deregisterOutgoingRelationships(Long src,
String relationshipType,
Class endNodeType)
Invoked when the mapper wishes to mark a set of outgoing relationships to a specific type like (a)-[:T]->(*) as deleted, prior
to possibly re-establishing them individually as it traverses the entity graph.
|
Object |
getNewObject(String cypherName) |
List<ParameterisedStatement> |
getStatements() |
boolean |
isRegisteredRelationship(MappedRelationship mappedRelationship) |
Collection<Object> |
log() |
void |
log(Object object) |
NodeBuilder |
nodeBuilder(Object obj) |
Collection<MappedRelationship> |
registeredRelationships() |
void |
registerNewObject(String cypherName,
Object toPersist) |
void |
registerRelationship(MappedRelationship mappedRelationship) |
boolean |
removeRegisteredRelationship(MappedRelationship mappedRelationship) |
void |
setStatements(List<ParameterisedStatement> statements) |
void |
visit(Object toPersist,
NodeBuilder nodeBuilder) |
boolean |
visited(Object obj) |
boolean |
visitedRelationshipEntity(Object relationshipEntity) |
void |
visitRelationshipEntity(Object relationshipEntity) |
public boolean visited(Object obj)
public void visit(Object toPersist, NodeBuilder nodeBuilder)
public void registerRelationship(MappedRelationship mappedRelationship)
public boolean removeRegisteredRelationship(MappedRelationship mappedRelationship)
public NodeBuilder nodeBuilder(Object obj)
public boolean isRegisteredRelationship(MappedRelationship mappedRelationship)
public void setStatements(List<ParameterisedStatement> statements)
public List<ParameterisedStatement> getStatements()
public Collection<MappedRelationship> registeredRelationships()
public void log(Object object)
public Collection<Object> log()
public boolean deregisterOutgoingRelationships(Long src, String relationshipType, Class endNodeType)
src - the identity of the node at the start of the relationshiprelationshipType - the type of the relationshipendNodeType - the class type of the entity at the end of the relationshippublic boolean deregisterIncomingRelationships(Long tgt, String relationshipType, Class endNodeType, boolean relationshipEntity)
tgt - the identity of the node at the pointy end of the relationshiprelationshipType - the type of the relationshipendNodeType - the class type of the entity at the other end of the relationshippublic void visitRelationshipEntity(Object relationshipEntity)
public boolean visitedRelationshipEntity(Object relationshipEntity)
Copyright © 2015 Neo Technology, Inc.. All rights reserved.