• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Invalidate vs Refresh vs Refault
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalidate vs Refresh vs Refault


  • Subject: Re: Invalidate vs Refresh vs Refault
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 8 Dec 2006 20:26:45 -0800

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, it _may_ go back to the database for fresh data when the fault is fired. I think this discards any uncommited changes.

refresh: pretty much the same as refault, but merges uncommitted changes back into eo.

I have found problems with refault() and refresh() and created my own versions that you can find in EOObject in our GVCEOFExtensions framework. Sorry, but I don't recall the details right now.

Chuck


On Dec 8, 2006, at 2:10 PM, Dov Rosenberg wrote:

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 http://www.conviveon.com http://www.inquira.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Invalidate vs Refresh vs Refault
      • From: Dov Rosenberg <email@hidden>
    • Re: Invalidate vs Refresh vs Refault
      • From: Guido Neitzer <email@hidden>
References: 
 >Invalidate vs Refresh vs Refault (From: Dov Rosenberg <email@hidden>)

  • Prev by Date: Invalidate vs Refresh vs Refault
  • Next by Date: Re: Invalidate vs Refresh vs Refault
  • Previous by thread: Invalidate vs Refresh vs Refault
  • Next by thread: Re: Invalidate vs Refresh vs Refault
  • Index(es):
    • Date
    • Thread