• 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: Using UNION in EOFetchSpecification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using UNION in EOFetchSpecification


  • Subject: Re: Using UNION in EOFetchSpecification
  • From: Raymond NANEON <email@hidden>
  • Date: Mon, 07 Oct 2013 06:38:55 +0000 (GMT)

Hi Stravos,

Thanks for your help. I try it quickly.

Ray
Envoyé depuis iCloud

Le 07 oct. 2013 à 05:59, Stavros Panidis <email@hidden> a écrit :

Hi Raymond,

yes, this is what I mean.

set1 = new set for fs1
set2 = new set for fs2

set1 = set1.setbyunioning(set2)

Stavros


On 6 Οκτ 2013, at 6:27 μ.μ., Raymond NANEON <email@hidden> wrote:

Hi Stravos,

Thanks for example but where "currentResultsSet" come from? from your 1st eofetchspec?
example : 
EOFetchSpecification fs1 = new EOFetchSpecification("ENTITY1", specQualifier1,null);
EOFetchSpecification fs2 = new EOFetchSpecification("ENTITY1", specQualifier2,null);

specQualifier1 join with another entity.

specQualifier2 is a simple qualifier.

I want fs1 union fs2.

Thanks

Le 6 oct. 2013 à 16:58, Stavros Panidis <email@hidden> a écrit :

Hi Raymond,

like below…

EOFetchSpecification fsSpecial = new EOFetchSpecification("Designs", specialQualifier, null);
tempArray = ecQuery.objectsWithFetchSpecification(fsSpecial);
NSSet specialSet = new NSSet(tempArray);
if (intersection) resultsSet = currentResultsSet.setByIntersectingSet(specialSet);
else if(subtraction) resultsSet = currentResultsSet.setBySubtractingSet(specialSet);
else if(union) resultsSet = currentResultsSet.setByUnioningSet(specialSet);

I hope it is what you are asking for.

Stavros


On 6 Οκτ 2013, at 1:43 π.μ., Raymond NANEON <email@hidden> wrote:

Hi Stravos,

You use NSSet? What syntax do you use in the eofetchspecification?

Thanks

Envoyé de mon iPad

Le 5 oct. 2013 à 16:22, Stavros Panidis <email@hidden> a écrit :


On 4 Οκτ 2013, at 5:58 μ.μ., Raymond NANEON <email@hidden> wrote:



Hi List,

I want to use UNION in two EOFetch but I don't know how to do it.

Thanks for your help.

Envoyé depuis iCloud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.apple.com/archives/webobjects-dev/attachments/20131004/15b6b9ff/attachment.html>

------------------------------

Message: 2
Date: Fri, 04 Oct 2013 12:02:11 +0000 (GMT)
From: Raymond NANEON <email@hidden>
To: Raymond NANEON <email@hidden>
Cc: "email@hidden WebObjects"
<email@hidden>
Subject: Re: Using UNION in EOFetchSpecification
Message-ID: <163144e1-email@hidden>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

The UNION is on the same EOEntity.

Thanks

Envoyé depuis iCloud



I use NSSet.

(If I understood your question!)

Stavros Panidis




 _______________________________________________
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: Using UNION in EOFetchSpecification [RESOLVED]
      • From: Raymond NANEON <email@hidden>
References: 
 >Re: Using UNION in EOFetchSpecification (From: Stavros Panidis <email@hidden>)

  • Prev by Date: Re: Using UNION in EOFetchSpecification
  • Next by Date: Re: Using UNION in EOFetchSpecification [RESOLVED]
  • Previous by thread: Re: Using UNION in EOFetchSpecification
  • Next by thread: Re: Using UNION in EOFetchSpecification [RESOLVED]
  • Index(es):
    • Date
    • Thread