On Thursday, April 03, 2014 09:51:31 AM Rob Hall wrote:
> In order to provide some basic MVCC & transaction functionality for
> in-memory models, I'm writing an extension
> to com.hp.hpl.jena.graph.impl.GraphBase.
> 
> The core functionality is complete, and right now I am writing a means by
> which to defer listener updates until a commit (so that updates reflect the
> actual changes to the underlying graph).
> 
> This requires overriding GraphBase#add(Triple) and GraphBase#delete(Triple)
> rather than only GraphBase#performAdd(Triple) or
> GraphBase#performDelete(Triple), yet GraphBase#delete(Triple) has been
> declared final.

Yes, deliberately. Just override performDelete and notifyDelete. delete is
final so you can't forget to call checkOpen and notifyDelete.

Chris

-- 
"It is seldom good news."      ~Crystal Ball~, /The Tough Guide to Fantasyland/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)

Reply via email to