-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Getting a delta for the current transaction.
PostPosted: Thu Jan 27, 2005 12:16 am 
Newbie

Joined: Wed Sep 29, 2004 1:17 am
Posts: 6
Location: Auckland, New Zealand
Hi All,

I posted a topic a few weeks ago about getting a list of items from the level 1 cache (see http://forum.hibernate.org/viewtopic.php?t=937687).

Emmanuel suggested that an Interceptor might help. I managed to get this working to a degree, however I'm not entirely happy with the solution. It looks like a fair amount of overhead, and some of the logic is pretty tricky, and probably wouldn't work in a distributed environment.

I get the feeling that there must be an easier way to do this.

What I'm after is a list types and IDs of all objects that would be changed (including inserts and deletes) as a result of a transaction.commit() - actually I'm more interested in what work is lost as the result of a transaction.rollback, but this an identical set.

Any insights or suggestions? Is this information readily available within the SessionImpl or the transaction manager?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.