Re: Invalidate vs Refresh vs Refault

2006-12-11 Thread Chuck Hill
On Dec 11, 2006, at 6:52 AM, Kieran Kelleher wrote: Freshen the current editing context is easy ... editingContext.setFetchTimestamp( new java.util.Date().getTime() ); Now any EO's that you touch will be refreshed if their fetch timestamp is older than the time at which you executed the

Re: Invalidate vs Refresh vs Refault

2006-12-11 Thread Kieran Kelleher
Freshen the current editing context is easy ... editingContext.setFetchTimestamp( new java.util.Date().getTime() ); Now any EO's that you touch will be refreshed if their fetch timestamp is older than the time at which you executed the above statement. On Dec 9, 2006, at 9:48 AM, Dov R

Re: Invalidate vs Refresh vs Refault

2006-12-09 Thread Chuck Hill
On Dec 9, 2006, at 6:48 AM, Dov Rosenberg wrote: The main reason for my question centers around the fact that in some places of our app we needed to use JDBC directly for performance reasons (mainly the bulk operations). Of course when that happens the object graph can get out of sync wit

Re: Invalidate vs Refresh vs Refault

2006-12-09 Thread Dov Rosenberg
The main reason for my question centers around the fact that in some places of our app we needed to use JDBC directly for performance reasons (mainly the bulk operations). Of course when that happens the object graph can get out of sync with reality. All editingcontexts (including the shared editi

Re: Invalidate vs Refresh vs Refault

2006-12-09 Thread Guido Neitzer
On 09.12.2006, at 05:26, Chuck Hill wrote: invalidate: tosses the snapshot, affects all editing contexts. Forces the data to be refetched from the database. You can invalidateObjectsWithGlobalIds. Then you have more control over what is invalidated. We use this for a patched implementation

Re: Invalidate vs Refresh vs Refault

2006-12-08 Thread Chuck Hill
This always makes my head hurt, but I will take a stab at it. invalidate: tosses the snapshot, affects all editing contexts. Forces the data to be refetched from the database. refault: changes the eo back into a fault in the EC. Depending on the EC's fetch timestamp and the snapshot's age

Invalidate vs Refresh vs Refault

2006-12-08 Thread Dov Rosenberg
What is the difference between Invalidating an object versus refreshing versus refaulting? It seems that some of the methods call the others. Any commentary on which should be used and when would be appreciated. Thanks in advance -- Dov Rosenberg Conviveon/Inquira Knowledge Management Experts h