Re: Seeting WODisplayGroup Fetch Spec Programatically
Re: Seeting WODisplayGroup Fetch Spec Programatically
- Subject: Re: Seeting WODisplayGroup Fetch Spec Programatically
- From: George Domurot <email@hidden>
- Date: Thu, 29 Jan 2004 11:09:42 -0500
Owen: I'm not sure how you would get a list of available fetch specs
defined within an entity. However, here's the method for retrieving
one:
EOModelGroup.defaultGroup().fetchSpecificationNamed("MyFetchSpec",
"MyEntity").fetchSpecificationWithQualifierBindings(dictionary)
On Jan 26, 2004, at 7:29 PM, Owen McKerrow wrote:
> Hi All,
>
> I want to be able to pass in a name of the fetch spec I want it to
> use (that's defined in the entity, in the model file ) and then
> programatically change the WODisplaygroup so that it use this fetch
> spec.
>
> I would imagine I would use something like this ( thanks WOCode.com) :
>
> EOFetchSpecification spec = new EOFetchSpecification("Job", qual,
> null);
> EODatabaseDataSource ds =
> (EODatabaseDataSource)jobDisplayGroup.dataSource();
> ds.setFetchSpecification(spec);
> jobDisplayGroup.fetch();
>
> But that's a fetch spec made programatically, how do I find out what
> fetch specs are defined in my model for each entity and then how do I
> assign one of these to the display group ?
>
> Thanks
> Owen
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - -
>
> "I like the way this project has somehow, against all common sense,
> got itself made."
> - Peter Jackson, "The Lord of The Rings"
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.