Re: Fetch Specifications defined in the .eomodel
Re: Fetch Specifications defined in the .eomodel
- Subject: Re: Fetch Specifications defined in the .eomodel
- From: Florijan Stamenkovic <email@hidden>
- Date: Fri, 15 Feb 2008 11:18:59 -0400
Ah, sorry Dave, just saw that I copied the same method twice... :)
Here's the server side:
public EOFetchSpecification clientSideRequestGetFetchSpecification
(String spec, String entity){
try{
return EOFetchSpecification.fetchSpecificationNamed(spec, entity);
}catch(Exception ex){
return null;
}
}
On Feb 15, 2008, at 07:44, David Avendasora wrote:
Hi Flor,
What does the clientSideRequestGetFetchSpecification method that
goes along with this in the Session class look like?
Thanks,
Dave
On Jan 14, 2008, at 3:04 PM, Florijan Stamenkovic wrote:
Server code, in the Session class:
/**
* Loads and returns an <tt>EOFetchSpecification</tt> objects for
the given
* specification and entity name.
*
@param spec Name of the specification
@param entity Name of the entitiy
@return A fetch specification, or <tt>null</tt> if it is not
found, or an
error occurs
*/
public EOFetchSpecification getFetchSpecification(String spec,
String entity){
try{
return EOFetchSpecification.fetchSpecificationNamed(spec, entity);
}catch(Exception ex){
return null;
}
}
_______________________________________________
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