• 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: retrieving PK immediately after saveChanges() ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: retrieving PK immediately after saveChanges() ...


  • Subject: Re: retrieving PK immediately after saveChanges() ...
  • From: Gavin Eadie <email@hidden>
  • Date: Tue, 10 Jun 2008 19:54:44 -0400

... newRecord.primaryKey() ?

... newRecord.primaryKeyInTransaction()

Calling this method will return the primary key of the given enterprise object or if one has not been assigned to it yet, then it will have the adaptor channel generate one for it, cache it and then use that primary key when it is saved to the database.

I've spent a week laboring under some nasty (human) virus, so my brain is slow. Only seconds after bopping the send button, I found the 'raw' variations of the above which don't return Strings (unless the key IS a String) ... Gav
_______________________________________________
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: 
 >retrieving PK immediately after saveChanges() ... (From: Gavin Eadie <email@hidden>)

  • Prev by Date: Re: retrieving PK immediately after saveChanges() ...
  • Next by Date: Re: Bringing back the dev tools
  • Previous by thread: Re: retrieving PK immediately after saveChanges() ...
  • Next by thread: Re: Bringing back the dev tools
  • Index(es):
    • Date
    • Thread