Savepoint

Franck Routier <[email protected]> Sun, 02 Aug 2009 18:23:50 +0200
Newsgroups gmane.comp.java.orm.simpleorm
Organization Axège Sarl
Message-ID <1249230230.5674.8.camel@franck-laptop>
Hi Anthony,

I couldn't help but commit a new feature whose intent is to allow to
recover a dataset after a rollback, without the cost of the clone()
solution.

If not used, the feature has no impact on the way simpleorm works, so I
thought it was quite harmful...

I called it savepoint, and the usage is:

ses.begin(ds.savepoint());

then, if 'ds.hasSavepoint()', you can:

ses.rollbackAndDetachDataset();

The tradeoff is that ds.savepoint() is quite costly, especially for big
dataSets... (but should be less costly than clone()).

Of course, comments are welcome !

Franck





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SimpleORM/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/SimpleORM/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/