• 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: EOFetchSpecification "usesDistinct"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOFetchSpecification "usesDistinct"


  • Subject: Re: EOFetchSpecification "usesDistinct"
  • From: WebObjects <email@hidden>
  • Date: Mon, 20 Feb 2006 18:12:30 -0800
  • Thread-topic: EOFetchSpecification "usesDistinct"

You're right - it was a matter of the wrong # of args being passed to the
constructor.   Thanks for the simple answer :)

//works
EOFetchSpecification spec = new EOFetchSpecification("SyncShared",
qualifier, myOrderings, uniqueBool, isDeapBool, null);


on 2/20/06 16:50, wojingo at email@hidden wrote:

> WebObjects wrote:
>> Dear list,
>>
>> I am trying to return a distinct list of objects via the
>> EOFetchSpecification.  I¹ve always had good luck with the simple
>> ³EOFetchSpecification spec = new EOFetchSpecification("myentity", qualifier,
>> null);² statement.  But when I try adding a boolean to the ŒusesDistinct¹
>> parameter of the constructor I get an error.  ie. neither of these work:
>>
>> EOFetchSpecification spec = new EOFetchSpecification("SyncShared",
>> qualifier, myOrderings, boolTrue);
>> -or-
>> EOFetchSpecification spec = new EOFetchSpecification("SyncShared",
>> qualifier, null, boolTrue);
>>
>> The API does list this forth parameter as a boolean (true means distinct,
>> false otherwise).
>>
>> public EOFetchSpecification(String entityName,
>>                             EOQualifier qualifier,
>>                             NSArray sortOrderings,
>>                             boolean usesDistinct,
>>                             boolean isDeep,
>>                             NSDictionary hints)
>>
>> Here is the error I get when I try to build:
>>
>> syncaccountcreate.java:42: cannot resolve symbol
>> symbol  : constructor EOFetchSpecification
>> (java.lang.String,com.webobjects.eocontrol.EOQualifier,com.webobjects.founda
>> tion.NSArray,boolean)
>>
>> Thanks for any guidance, and for pointing out what my be painfully simple.
>> :)
>>
>> -Bill
>>
>
> Your trying to call a method that does not exist. The error above is
> telling you that you have the wrong arguments in your method call. Your
> method call arguments are:
>
> String,
> EOQualifier,
> NSArray,
> boolean
>
> But the signature you have listed from the api has five arguments.
>
> String,
> EOQualifier,
> NSArray,
> boolean,
> NSDictionary
>
> regards,
> - shaun
>


 _______________________________________________
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: 
 >Re: EOFetchSpecification "usesDistinct" (From: wojingo <email@hidden>)

  • Prev by Date: Re: EOFetchSpecification "usesDistinct"
  • Next by Date: Number
  • Previous by thread: Re: EOFetchSpecification "usesDistinct"
  • Next by thread: Number
  • Index(es):
    • Date
    • Thread