@Override public void event(Object dest, Event event) { graph.getEventManager().notifyEvent( graph , GraphEvents.startRead ) ; } } ;
@Override public void event(Object dest, Event event) { graph.getEventManager().notifyEvent( graph , GraphEvents.finishRead ) ; } } ;
/** Remove all the statements from this graph. */ @Override public void clear() { GraphUtil.remove(this, Node.ANY, Node.ANY, Node.ANY) ; getEventManager().notifyEvent(this, GraphEvents.removeAll ) ; }
/** Clear this GraphMem, ie remove all its triples (delegated to the store). */ @Override public void clear() { clearStore(); getEventManager().notifyEvent(this, GraphEvents.removeAll ) ; }
/** Clear this GraphMem, ie remove all its triples (delegated to the store). */ @Override public void clear() { clearStore(); getEventManager().notifyEvent(this, GraphEvents.removeAll ) ; }
@Override public void clear() { base.clear() ; getEventManager().notifyEvent(this, GraphEvents.removeAll ) ; }
@Override public void remove(Node s, Node p, Node o) { base.remove(s,p,o) ; getEventManager().notifyEvent(this, GraphEvents.remove(s, p, o) ) ; }
@Override public Model notifyEvent( Object e ) { getGraph().getEventManager().notifyEvent( getGraph(), e ); return this; } }
@Override public void clear() { dataset.deleteAny(getGraphName(), Node.ANY, Node.ANY, Node.ANY) ; getEventManager().notifyEvent(this, GraphEvents.removeAll) ; }
/** Remove all triples that match by find(s, p, o) */ @Override public void remove( Node s, Node p, Node o ) { GraphUtil.remove(this, s, p, o) ; getEventManager().notifyEvent(this, GraphEvents.remove(s, p, o) ) ; }
@Override public void clear() { // Logically, this is "super.clear()" except the default implementation // is a loop that materializes nodes. We want to call the dataset directly // so that nodes don't get materialized, just deleted from indexes. getDataset().deleteAny(getGraphName(), Node.ANY, Node.ANY, Node.ANY) ; getEventManager().notifyEvent(this, GraphEvents.removeAll) ; }
@Override public void clear() { getRawGraph().clear() ; discardState(); rebind(); getEventManager().notifyEvent( this, GraphEvents.removeAll ); }
@Override public void clear() { getRawGraph().clear() ; discardState(); rebind(); getEventManager().notifyEvent( this, GraphEvents.removeAll ); }
@Override public void remove( Node s, Node p, Node o ) { getRawGraph().remove( s, p, o ); discardState(); rebind(); getEventManager().notifyEvent( this, GraphEvents.remove( s, p, o ) ); }
@Override public void remove( Node s, Node p, Node o ) { getRawGraph().remove( s, p, o ); discardState(); rebind(); getEventManager().notifyEvent( this, GraphEvents.remove( s, p, o ) ); }
/** * Test that sending a general event is reported as an event and the value * is saved. */ @ContractTest public void testGeneralEvent() { gem.register(L); Object value = new int[] {}; gem.notifyEvent(mockGraph, value); L.assertHas(new Object[] { "someEvent", mockGraph, value }); }
public void testGeneralEvent() { Graph g = getAndRegister( L ); Object value = new int[]{}; g.getEventManager().notifyEvent( g, value ); L.assertHas( new Object[] { "someEvent", g, value } ); }
/** * Test that sending a general event is reported as an event and the value * is saved. */ @ContractTest public void testGeneralEvent() { gem.register(L); Object value = new int[] {}; gem.notifyEvent(mockGraph, value); L.assertHas(new Object[] { "someEvent", mockGraph, value }); }
public void testGeneralEvent() { Graph g = getAndRegister( L ); Object value = new int[]{}; g.getEventManager().notifyEvent( g, value ); L.assertHas( new Object[] { "someEvent", g, value } ); }
@Test public void notifyEventTest() { g.getEventManager().notifyEvent(g, "Foo"); Assert.assertTrue("Should recorded delete", listener.isEvent()); listener.reset(); // final RecordingGraphListener listener2 = new // RecordingGraphListener(); // g.getEventManager().register(listener2); sg.getEventManager().notifyEvent(sg, "Foo"); Assert.assertTrue("Should recorded delete", listener.isEvent()); // Assert.assertTrue("Should recorded delete", listener2.isEvent()); listener.reset(); }