public UnmodifiableGraph(Graph base) { super(base) ; bud = new SimpleBulkUpdateHandler(this) ; }
@Override @Deprecated public void add(Graph g, boolean withReifications) { // Now Standard reification is the only mode, just add into the graph. add(g) ; }
@Override @Deprecated public void add( Iterator<Triple> it ) { addIterator( it, true ); }
@Override @Deprecated public void removeAll() { removeAll( graph ); notifyRemoveAll(); }
@Override @Deprecated public void delete( Graph g, boolean withReifications ) { if (g.dependsOn( graph )) delete( triplesOf( g ) ); else deleteIterator( GraphUtil.findAll( g ), false ); manager.notifyDeleteGraph( graph, g ); }
@Override @Deprecated public void delete( Graph g ) { delete( g, false ); }
@Override @Deprecated public void delete( Iterator<Triple> it ) { deleteIterator( it, true ); }
@Override @Deprecated public void remove( Node s, Node p, Node o ) { removeAll( graph, s, p, o ); manager.notifyEvent( graph, GraphEvents.remove( s, p, o ) ); }
@Override @Deprecated public void delete( List<Triple> triples ) { delete( triples, true ); }
/** Answer a BulkUpdateHandler bound to this graph. The default is a SimpleBulkUpdateHandler, which does bulk update by repeated simple (add/delete) updates; the same handler is returned on each call. Subclasses may override if they have specialised implementations. */ public BulkUpdateHandler getBulkUpdateHandler() { if (bulkHandler == null) bulkHandler = new SimpleBulkUpdateHandler( this ); return bulkHandler; }
@Override @Deprecated public void add( List<Triple> triples ) { add( triples, true ); }
public void deleteIterator( Iterator<Triple> it, boolean notify ) { List<Triple> L = IteratorCollection.iteratorToList( it ); delete( L, false ); if (notify) manager.notifyDeleteIterator( graph, L ); }
@Override @Deprecated public void add(Graph g) { addIterator(GraphUtil.findAll(g), false) ; manager.notifyAddGraph(graph, g) ; }
@Deprecated @Override public BulkUpdateHandler getBulkUpdateHandler() { //This turns all operations into calls to add/remove. return new SimpleBulkUpdateHandler(this) ; } }
public void addIterator( Iterator<Triple> it, boolean notify ) { List<Triple> s = IteratorCollection.iteratorToList( it ); add( s, false ); if (notify) manager.notifyAddIterator( graph, s ); }
/** Answer a BulkUpdateHandler bound to this graph. The default is a SimpleBulkUpdateHandler, which does bulk update by repeated simple (add/delete) updates; the same handler is returned on each call. Subclasses may override if they have specialised implementations. @deprecated Bulk update operations are going to be removed. @see GraphUtil for convenience helpers. */ @Override @Deprecated public BulkUpdateHandler getBulkUpdateHandler() { if (bulkHandler == null) bulkHandler = new SimpleBulkUpdateHandler( this ); return bulkHandler; }