use of org.neo4j.ogm.drivers.bolt.transaction.BoltTransaction in project neo4j-ogm by neo4j.
the class BoltRequest method executeRequest.
private Result executeRequest(Statement request) {
try {
Map<String, Object> parameterMap = this.parameterConversion.convertParameters(request.getParameters());
String cypher = cypherModification.apply(request.getStatement());
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Request: {} with params {}", cypher, parameterMap);
}
BoltTransaction tx = (BoltTransaction) transaction;
return tx.nativeBoltTransaction().run(cypher, parameterMap);
} catch (ClientException | DatabaseException | TransientException ce) {
throw new CypherException(ce.code(), ce.getMessage(), ce);
}
}
Aggregations