Neo4j Enterprise

org.neo4j.cypher.internal.spi.gdsimpl
Class RepeatableReadQueryContext

java.lang.Object
  extended by org.neo4j.cypher.internal.spi.gdsimpl.RepeatableReadQueryContext
All Implemented Interfaces:
QueryContext

public class RepeatableReadQueryContext
extends Object
implements QueryContext

This QueryContext is responsible for taking read locks for all operations that read from the database.

The close() method will then release all locks.


Nested Class Summary
static interface RepeatableReadQueryContext.Locker
           
 
Nested classes/interfaces inherited from interface org.neo4j.cypher.internal.spi.QueryContext
QueryContext.Operations<T extends PropertyContainer>
 
Constructor Summary
RepeatableReadQueryContext(QueryContext inner, RepeatableReadQueryContext.Locker locker)
           
 
Method Summary
 void close()
          Release all resources held by this context.
 Node createNode()
           
 Relationship createRelationship(Node start, Node end, String relType)
           
 Iterable<Relationship> getRelationshipsFor(Node node, Direction dir, String... types)
           
 QueryContext.Operations<Node> nodeOps()
           
 QueryContext.Operations<Relationship> relationshipOps()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepeatableReadQueryContext

public RepeatableReadQueryContext(QueryContext inner,
                                  RepeatableReadQueryContext.Locker locker)
Method Detail

nodeOps

public QueryContext.Operations<Node> nodeOps()
Specified by:
nodeOps in interface QueryContext

relationshipOps

public QueryContext.Operations<Relationship> relationshipOps()
Specified by:
relationshipOps in interface QueryContext

createNode

public Node createNode()
Specified by:
createNode in interface QueryContext

createRelationship

public Relationship createRelationship(Node start,
                                       Node end,
                                       String relType)
Specified by:
createRelationship in interface QueryContext

getRelationshipsFor

public Iterable<Relationship> getRelationshipsFor(Node node,
                                                  Direction dir,
                                                  String... types)
Specified by:
getRelationshipsFor in interface QueryContext

close

public void close()
Description copied from interface: QueryContext
Release all resources held by this context.

Specified by:
close in interface QueryContext

Neo4j Enterprise

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.