commitOrRollback( true );
}
protected ExecutionResult executeCypherQuery(String query, Map<String, Object> parameters) throws Exception {
SessionFactoryImplementor sessionFactory = (SessionFactoryImplementor) ( (OgmEntityManagerFactory) getFactory() ).getSessionFactory();
Neo4jDatastoreProvider provider = (Neo4jDatastoreProvider) sessionFactory.getServiceRegistry().getService( DatastoreProvider.class );
ExecutionEngine engine = new ExecutionEngine( provider.getDataBase() );
ExecutionResult result = engine.execute( query, parameters );
return result;
}