use of org.neo4j.kernel.impl.query.TransactionalContext in project neo4j by neo4j.
the class TransactionImpl method execute.
private Result execute(InternalTransaction transaction, String query, MapValue parameters) throws QueryExecutionException {
checkInTransaction();
TransactionalContext context = contextFactory.newContext(transaction, query, parameters);
try {
availabilityGuard.assertDatabaseAvailable();
return executionEngine.executeQuery(query, parameters, context, false);
} catch (UnavailableException ue) {
throw new org.neo4j.graphdb.TransactionFailureException(ue.getMessage(), ue);
} catch (QueryExecutionKernelException e) {
throw e.asUserException();
}
}
Aggregations