public class CypherContext extends Object implements org.neo4j.ogm.compiler.CompileContext
| Constructor and Description |
|---|
CypherContext(org.neo4j.ogm.compiler.Compiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
deregister(org.neo4j.ogm.compiler.NodeBuilder nodeBuilder) |
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.
|
org.neo4j.ogm.compiler.Compiler |
getCompiler() |
Object |
getNewObject(Long id) |
Long |
newNodeId(Long reference) |
void |
register(Object object) |
void |
registerNewNodeId(Long reference,
Long id) |
void |
registerNewObject(Long reference,
Object relationshipEntity) |
void |
registerRelationship(org.neo4j.ogm.context.Mappable mappedRelationship) |
Collection<Object> |
registry() |
boolean |
removeRegisteredRelationship(org.neo4j.ogm.context.Mappable mappedRelationship) |
void |
visit(Long identity,
org.neo4j.ogm.compiler.NodeBuilder nodeBuilder) |
boolean |
visited(Long obj) |
org.neo4j.ogm.compiler.NodeBuilder |
visitedNode(Long identity) |
boolean |
visitedRelationshipEntity(Long relationshipEntity) |
void |
visitRelationshipEntity(Long relationshipEntity) |
public boolean visited(Long obj)
visited in interface org.neo4j.ogm.compiler.CompileContextpublic void visit(Long identity, org.neo4j.ogm.compiler.NodeBuilder nodeBuilder)
visit in interface org.neo4j.ogm.compiler.CompileContextpublic void registerRelationship(org.neo4j.ogm.context.Mappable mappedRelationship)
registerRelationship in interface org.neo4j.ogm.compiler.CompileContextpublic boolean removeRegisteredRelationship(org.neo4j.ogm.context.Mappable mappedRelationship)
removeRegisteredRelationship in interface org.neo4j.ogm.compiler.CompileContextpublic org.neo4j.ogm.compiler.NodeBuilder visitedNode(Long identity)
visitedNode in interface org.neo4j.ogm.compiler.CompileContextpublic void registerNewObject(Long reference, Object relationshipEntity)
registerNewObject in interface org.neo4j.ogm.compiler.CompileContextpublic Object getNewObject(Long id)
getNewObject in interface org.neo4j.ogm.compiler.CompileContextpublic void register(Object object)
register in interface org.neo4j.ogm.compiler.CompileContextpublic Collection<Object> registry()
registry in interface org.neo4j.ogm.compiler.CompileContextpublic boolean deregisterOutgoingRelationships(Long src, String relationshipType, Class endNodeType)
deregisterOutgoingRelationships in interface org.neo4j.ogm.compiler.CompileContextsrc - 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)
deregisterIncomingRelationships in interface org.neo4j.ogm.compiler.CompileContexttgt - 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(Long relationshipEntity)
visitRelationshipEntity in interface org.neo4j.ogm.compiler.CompileContextpublic boolean visitedRelationshipEntity(Long relationshipEntity)
visitedRelationshipEntity in interface org.neo4j.ogm.compiler.CompileContextpublic org.neo4j.ogm.compiler.Compiler getCompiler()
getCompiler in interface org.neo4j.ogm.compiler.CompileContextpublic Long newNodeId(Long reference)
newNodeId in interface org.neo4j.ogm.compiler.CompileContextpublic void registerNewNodeId(Long reference, Long id)
registerNewNodeId in interface org.neo4j.ogm.compiler.CompileContextpublic void deregister(org.neo4j.ogm.compiler.NodeBuilder nodeBuilder)
deregister in interface org.neo4j.ogm.compiler.CompileContextCopyright © 2016 Neo Technology, Inc.. All rights reserved.