Re: [qi4j-dev] UnitOfWork completion API vs Neo4j tx API

2011-10-11 Thread Rickard Öberg
On 10/12/11 24:12 , Niclas Hedhman wrote: Why doesn't Neo4j handle "the work" in success instead of "finish" ? I don't know really. I will have to ask Johan about that I think. One thing to note is that finish() will only throw an exception if there are system level exceptions (fail to write

Re: [qi4j-dev] UnitOfWork completion API vs Neo4j tx API

2011-10-11 Thread Niclas Hedhman
Why doesn't Neo4j handle "the work" in success instead of "finish" ? On Tue, Oct 11, 2011 at 12:15 PM, Rickard Öberg wrote: > Hi, > > Now that I work for Neo Technology I've started looking more in detail into > the Neo4j API, and found something very interesting with regard to how > transaction

[qi4j-dev] UnitOfWork completion API vs Neo4j tx API

2011-10-10 Thread Rickard Öberg
Hi, Now that I work for Neo Technology I've started looking more in detail into the Neo4j API, and found something very interesting with regard to how transaction completion is handled. The idea is to simplify exception handling. Example code: Transaction tx = ...; try { ... tx.success();