455456457458459460461462463464465466
})); } @Override public Edge getEdge(final Object id) { final OrientBaseGraph g = acquire(); try { return g.getEdge(id); } finally { g.shutdown(); } }
470471472473474475476477478479480481482483484
beginAsynchOperation(); Orient.instance().getWorkers().submit(new Callable<Object>() { @Override public Object call() throws Exception { final OrientBaseGraph g = acquire(); try { g.removeEdge(edge); } finally { g.shutdown(); endAsynchOperation(); } return null; } });
484485486487488489490491492493494495
}); } @Override public Iterable<Edge> getEdges() { final OrientBaseGraph g = acquire(); try { return g.getEdges(); } finally { g.shutdown(); } }
495496497498499500501502503504505506
} @Override public Iterable<Edge> getEdges(final String key, final Object value) { final OrientBaseGraph g = acquire(); try { return g.getEdges(key, value); } finally { g.shutdown(); } }
505506507508509510511512513514515516
} } @Override public void drop() { final OrientBaseGraph g = acquire(); try { g.drop(); } finally { g.shutdown(); } }
515516517518519520521522523524525526
} } @Override public OrientVertex addTemporaryVertex(final String iClassName, final Object... prop) { final OrientBaseGraph g = acquire(); try { return g.addTemporaryVertex(iClassName, prop); } finally { g.shutdown(); } }
525526527528529530531532533534535536
} } @Override public OrientVertexType getVertexBaseType() { final OrientBaseGraph g = acquire(); try { return g.getVertexBaseType(); } finally { g.shutdown(); } }
535536537538539540541542543544545546
} } @Override public OrientVertexType getVertexType(final String iClassName) { final OrientBaseGraph g = acquire(); try { return g.getVertexType(iClassName); } finally { g.shutdown(); } }
545546547548549550551552553554555556
} } @Override public OrientVertexType createVertexType(final String iClassName) { final OrientBaseGraph g = acquire(); try { return g.createVertexType(iClassName); } finally { g.shutdown(); } }
555556557558559560561562563564565566
} } @Override public OrientVertexType createVertexType(final String iClassName, final String iSuperClassName) { final OrientBaseGraph g = acquire(); try { return g.createVertexType(iClassName, iSuperClassName); } finally { g.shutdown(); } }