From 275cb85d39ce2f2abd1433f8d2d057019197fc34 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Tue, 26 Jun 2012 07:08:17 +0000 Subject: [PATCH] Methods removed from ReadGraph interface, also removed those org.simantics.interop.mapping implementations. * public void forEachDirectObject(final Resource subject, final Resource relation, final AsyncMultiProcedure procedure) * public void forEachDirectObject(final Resource subject, final Resource relation, final MultiProcedure procedure) * public void forEachDirectObject(final Resource subject, final Resource relation, final SyncMultiProcedure procedure) refs #3526 git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@25233 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../interop/mapping/SplittingWriteGraph.java | 94 +++++++++---------- .../interop/mapping/WriteGraphProxy.java | 34 +++---- 2 files changed, 64 insertions(+), 64 deletions(-) diff --git a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java index fb73ebd..f8e5fae 100644 --- a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java +++ b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/SplittingWriteGraph.java @@ -1572,53 +1572,53 @@ public class SplittingWriteGraph implements WriteGraph { } } - @Override - public void forEachDirectObject(final Resource subject, final Resource relation, - final AsyncMultiProcedure procedure) { - try { - session.syncRequest(new ReadRequest() { - - @Override - public void run(ReadGraph graph) throws DatabaseException { - graph.forEachDirectObject(subject, relation, procedure); - } - }); - } catch (DatabaseException e) { - - } - } - - @Override - public void forEachDirectObject(final Resource subject, final Resource relation, - final MultiProcedure procedure) { - try { - session.syncRequest(new ReadRequest() { - - @Override - public void run(ReadGraph graph) throws DatabaseException { - graph.forEachDirectObject(subject, relation, procedure); - } - }); - } catch (DatabaseException e) { - - } - } - - @Override - public void forEachDirectObject(final Resource subject, final Resource relation, - final SyncMultiProcedure procedure) { - try { - session.syncRequest(new ReadRequest() { - - @Override - public void run(ReadGraph graph) throws DatabaseException { - graph.forEachDirectObject(subject, relation, procedure); - } - }); - } catch (DatabaseException e) { - - } - } +// @Override +// public void forEachDirectObject(final Resource subject, final Resource relation, +// final AsyncMultiProcedure procedure) { +// try { +// session.syncRequest(new ReadRequest() { +// +// @Override +// public void run(ReadGraph graph) throws DatabaseException { +// graph.forEachDirectObject(subject, relation, procedure); +// } +// }); +// } catch (DatabaseException e) { +// +// } +// } +// +// @Override +// public void forEachDirectObject(final Resource subject, final Resource relation, +// final MultiProcedure procedure) { +// try { +// session.syncRequest(new ReadRequest() { +// +// @Override +// public void run(ReadGraph graph) throws DatabaseException { +// graph.forEachDirectObject(subject, relation, procedure); +// } +// }); +// } catch (DatabaseException e) { +// +// } +// } +// +// @Override +// public void forEachDirectObject(final Resource subject, final Resource relation, +// final SyncMultiProcedure procedure) { +// try { +// session.syncRequest(new ReadRequest() { +// +// @Override +// public void run(ReadGraph graph) throws DatabaseException { +// graph.forEachDirectObject(subject, relation, procedure); +// } +// }); +// } catch (DatabaseException e) { +// +// } +// } @Override public void forEachDirectPredicate(final Resource subject, diff --git a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java index 96ee011..f51407f 100644 --- a/org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java +++ b/org.simantics.interop.mapping/src/org/simantics/interop/mapping/WriteGraphProxy.java @@ -850,23 +850,23 @@ public class WriteGraphProxy implements WriteGraph { graph.forEachAssertedStatement(subject, relation, procedure); } - @Override - public void forEachDirectObject(Resource subject, Resource relation, - AsyncMultiProcedure procedure) { - graph.forEachDirectObject(subject, relation, procedure); - } - - @Override - public void forEachDirectObject(Resource subject, Resource relation, - MultiProcedure procedure) { - graph.forEachDirectObject(subject, relation, procedure); - } - - @Override - public void forEachDirectObject(Resource subject, Resource relation, - SyncMultiProcedure procedure) { - graph.forEachDirectObject(subject, relation, procedure); - } +// @Override +// public void forEachDirectObject(Resource subject, Resource relation, +// AsyncMultiProcedure procedure) { +// graph.forEachDirectObject(subject, relation, procedure); +// } +// +// @Override +// public void forEachDirectObject(Resource subject, Resource relation, +// MultiProcedure procedure) { +// graph.forEachDirectObject(subject, relation, procedure); +// } +// +// @Override +// public void forEachDirectObject(Resource subject, Resource relation, +// SyncMultiProcedure procedure) { +// graph.forEachDirectObject(subject, relation, procedure); +// } @Override public void forEachDirectPredicate(Resource subject, -- 2.47.1