• 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: accessing the primarykey???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing the primarykey???


  • Subject: Re: accessing the primarykey???
  • From: Lachlan Deck <email@hidden>
  • Date: Wed, 14 Jul 2010 12:30:26 +1000

If you need to append to that qualifier (e.g., isDeleted=false) you can also do:

EOEntity eoEntity = EOUtilities.entityNamed(ec, Foo.ENTITY_NAME);
String pkName = eoEntity.primaryKeyAttributeNames().objectAtIndex(0);
NSDictionary<String, Object> pk = new NSDictionary<String, Object>(Long.valueOf(pkString), pkName);
EOQualifier pkQualifier = eoEntity.qualifierForPrimaryKey(pk);
...

with regards,
--

Lachlan Deck


 _______________________________________________
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: accessing the primarykey???
      • From: Chuck Hill <email@hidden>
References: 
 >Re: accessing the primarykey??? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: [MEETING] WO-NoVA meeting THIS THURSDAY 7/15/2010 in Herndon, VA
  • Next by Date: Re: detect local IPs
  • Previous by thread: Re: accessing the primarykey???
  • Next by thread: Re: accessing the primarykey???
  • Index(es):
    • Date
    • Thread