org.neo4j.cypher.javacompat
Class ExecutionEngine
java.lang.Object
org.neo4j.cypher.javacompat.ExecutionEngine
public class ExecutionEngine
- extends Object
To run a Query
, use this class.
Method Summary |
ExecutionResult |
execute(org.neo4j.cypher.commands.Query query)
Executes a Query and returns an iterable that contains the result set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecutionEngine
public ExecutionEngine(GraphDatabaseService database)
- Creates an execution engine around the give graph database
- Parameters:
database
- The database to wrap
execute
public ExecutionResult execute(org.neo4j.cypher.commands.Query query)
throws org.neo4j.cypher.SyntaxException
- Executes a
Query
and returns an iterable that contains the result set
- Parameters:
query
- The query to execute
- Returns:
- A ExecutionResult that contains the result set
- Throws:
org.neo4j.cypher.SyntaxException
- If the Query contains errors,
a SyntaxException exception might be thrown
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.