On 17 Jul 2007, at 14:37, Filipchik Alexander wrote:
Hello to all.

I found, that CoreSession contains some methods that look like for transactions support (cancel(), save()).

cancel() and save() have semantics inherited from the JCR. Basically, all actions you do on the documents are transient until you do a save (). Only when you save() are changes taken into account in the global transaction. If you cancel(), transient changes are forgotten. Please see the JCR spec (JSR-170) for more details.

Note that in Nuxeo EP Core, a number of APIs do an implicit save() before doing their work.
And I have several questions:

What will I get if I will do next – open session, create document, save, update document, cancel, close.

The second update should be cancelled and not made persistent.

Is there a simple way to integrate it into the Spring (like Hibernate templates)?

We haven't worked on Spring integration.

Florent

--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87



_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to