• 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: Best Way To Determine If An EO Has Ever Been Saved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best Way To Determine If An EO Has Ever Been Saved


  • Subject: Re: Best Way To Determine If An EO Has Ever Been Saved
  • From: Hunter Hillegas <email@hidden>
  • Date: Tue, 17 May 2005 10:50:16 -0700

Mike,

This method works great. Thanks again.

Hunter

On May 17, 2005, at 10:31 AM, Mike Schrag wrote:

There is probably a nicer way, but I believe an EO that has never been saved will always have a global id that is instanceof EOTemporaryGlobalID.

On May 17, 2005, at 1:25 PM, Hunter Hillegas wrote:


What is the best way to determine if an EO has ever been saved?

I have a process that creates a new EO and inserts it into an EC.

I would like to be able to tell if the EO has ever been saved/ committed to the DB.

I only need to differentiate between saved/unsaved, not if the EO has later been changed but those changes haven't been saved. EOEditingContext.hasChanges() is too general for me in this case. I only want to know about the initial commit.

Is there an easy way to do that?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com


This email sent to email@hidden





_______________________________________________ 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
References: 
 >Best Way To Determine If An EO Has Ever Been Saved (From: Hunter Hillegas <email@hidden>)
 >Re: Best Way To Determine If An EO Has Ever Been Saved (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Best Way To Determine If An EO Has Ever Been Saved
  • Next by Date: Re: Best Way To Determine If An EO Has Ever Been Saved
  • Previous by thread: Re: Best Way To Determine If An EO Has Ever Been Saved
  • Next by thread: Re: Best Way To Determine If An EO Has Ever Been Saved
  • Index(es):
    • Date
    • Thread