use of org.openkilda.persistence.ferma.FermaContextExtension in project open-kilda by telstra.
the class FermaGenericRepository method framedGraph.
protected FramedGraph framedGraph() {
PersistenceContext context = PersistenceContextManager.INSTANCE.getContextCreateIfMissing();
FermaContextExtension contextExtension = implementation.getContextExtension(context);
DelegatingFramedGraph<?> graph = contextExtension.getGraphCreateIfMissing();
if (graph == null) {
throw new PersistenceException("Failed to obtain a framed graph");
}
return graph;
}
Aggregations