/** Remove a triple from the triple store. The default implementation throws a DeleteDeniedException; subclasses must override if they want to be able to remove triples. */ public void performDelete( Triple t ) { throw new DeleteDeniedException( "GraphBase::delete" ); }
/** Remove a triple from the triple store. The default implementation throws a DeleteDeniedException; subclasses must override if they want to be able to remove triples. */ @Override public void performDelete( Triple t ) { throw new DeleteDeniedException( "GraphBase::delete" ); }
@Override public void delete(Triple t) throws DeleteDeniedException { throw new DeleteDeniedException("read-only graph") ; }
@Override public void performDelete(Triple t) throws DeleteDeniedException { throw new DeleteDeniedException("read-only graph") ; }
@Override public void performDelete(final Triple triple) { try { cloud.deleteByQuery(deleteQuery(triple)); } catch (final Exception exception) { LOGGER.error(MessageCatalog._00113_NWS_FAILURE, exception); throw new DeleteDeniedException(exception.getMessage(), triple); } }
@Override public void clear() { try { cloud.deleteByQuery(fq(Field.C, graphNodeStringified)); } catch (final Exception exception) { LOGGER.error(MessageCatalog._00113_NWS_FAILURE, exception); throw new DeleteDeniedException(exception.getMessage()); } }
@Override public void performDelete(final Triple triple) { final DeleteUpdateCommand deleteCommand = new DeleteUpdateCommand(request); deleteCommand.query = deleteQuery(triple); try { updateProcessor.processDelete(deleteCommand); } catch (final Exception exception) { LOGGER.error(MessageCatalog._00113_NWS_FAILURE, exception); throw new DeleteDeniedException(exception.getMessage(), triple); } }
@Override public void clear() { try { updateProcessor.processDelete(clearCommand()); getEventManager().notifyEvent(this, GraphEvents.removeAll); } catch (final Exception exception) { LOGGER.error(MessageCatalog._00113_NWS_FAILURE, exception); throw new DeleteDeniedException("Unable to clean this graph " + this); } }