use of org.openkilda.persistence.orientdb.OrientDbContextExtension in project open-kilda by telstra.
the class GraphSupplier method get.
@Override
public OrientGraph get() {
PersistenceContext context = PersistenceContextManager.INSTANCE.getContextCreateIfMissing();
OrientDbContextExtension contextExtension = implementation.getContextExtension(context);
DelegatingFramedGraph<OrientGraph> wrapper = contextExtension.getGraphCreateIfMissing();
if (wrapper == null) {
throw new PersistenceException("Failed to obtain a framed graph");
}
return wrapper.getBaseGraph();
}
use of org.openkilda.persistence.orientdb.OrientDbContextExtension in project open-kilda by telstra.
the class DatabaseSupportImpl method getGraph.
private FramedGraph getGraph() {
PersistenceContext context = PersistenceContextManager.INSTANCE.getContextCreateIfMissing();
OrientDbContextExtension contextExtension = orientPersistenceImplementation.getContextExtension(context);
return contextExtension.getGraphCreateIfMissing();
}
Aggregations