Re: accessing the primarykey???
Re: accessing the primarykey???
- Subject: Re: accessing the primarykey???
- From: Chuck Hill <email@hidden>
- Date: Tue, 13 Jul 2010 20:05:56 -0700
On Jul 13, 2010, at 7:30 PM, Lachlan Deck wrote:
> 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);
> ...
EOQualifier pkQualifier = EOUtilities. qualifierForEnterpriseObject(eo.editingContext(), eo);
--
Chuck Hill Senior Consultant / VP Development
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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