Re: How to use your own EOFaultHandler subclass?

Jesse Barnum <[email protected]> Fri, 16 May 2003 18:05:41 -0400
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
I have an object, say 'Client', which has a relationship to 'LogEntry', 
and they have a relationship between the primary key in 'Client' and a 
foreign key in 'LogEntry'. However, let's say that I also want to 
restrict the relationship to include an additional qualifier where I 
only want LogEntries that have a 'type' field that contains 'C' (for 
Client), I want to be able to do this:

NSArray logEntriesForClient = theClient.logEntries();

So I'm not ever explicitly doing a fetch for the related items, I'm 
just getting them through a relationship. That's why I originally 
thought that creating my own EOFaultHandler subclass might be the best 
way to accomplish this.

--Jesse Barnum, CEO, 360Works
http://www.360works.com/
Try WooF, the only solution for linking WebObjects and FileMaker!

On Friday, May 16, 2003, at 05:22  PM, Ricardo Strausz wrote:

> It definitly most work, eventhough you are fetching via a 
> relationsship.
> I did not undestand your last statement... how are you fetching?
>
> On jueves, mayo 15, 2003, at 11:17 America/Mexico_City, Jesse Barnum 
> wrote:
>
>> That sounded like exactly what I was looking for - unfortunately 
>> though, it looks like setAuxiliaryQualifier only works when doing a 
>> normal fetch - I don't think that it works for relationships. Also, 
>> this method is private in EORelationship, which is where I really 
>> need to set it - I'm not using an EODataSource for the fetch.
>>
>> --Jesse Barnum, CEO, 360Works
>> http://www.360works.com/
>> Try WooF, the only solution for linking WebObjects and FileMaker!
>>
>>
>> On Friday, May 9, 2003, at 08:05  PM, Ricardo Strausz wrote:
>>
>>> Did you try to use setAuxiliaryQualifier() on the child DS??
>>>
>>> On miércoles, mayo 7, 2003, at 11:38 America/Mexico_City, Jesse 
>>> Barnum wrote:
>>>
>>>> The reason that I wanted to do this is so that I could use add some 
>>>> additional qualifiers 'on the fly' for to-many relationships (for 
>>>> example, restricting a fetched to-many array to only include items 
>>>> that were created after a certain date).
>>>>
>>>> Can't use categories - I'm on WO 5.2.1 (sorry, should have said 
>>>> that in the post).
>>>>
>>>> --Jesse Barnum, CEO, 360Works
>>>> http://www.360works.com/
>>>> Try WooF, the only solution for linking WebObjects and FileMaker!
>>>>
>>>> On Monday, May 5, 2003, at 03:28  PM, Ricardo Strausz wrote:
>>>>
>>>>> two cuestions first:
>>>>> Do you realy need a subclass? this is, are you reimplementing some 
>>>>> methods, or just adding new ones?
>>>>> If the second, it may be better to use a category insteed.
>>>>>
>>>>>
>>>>> On sábado, mayo 3, 2003, at 08:58 America/Mexico_City, Jesse 
>>>>> Barnum wrote:
>>>>>
>>>>>> Is there any way to make EOF use my custom subclass of 
>>>>>> EOFaultHandler for newly created faults?
>>>>>>
>>>>>> --Jesse Barnum, CEO, 360Works
>>>>>> http://www.360works.com/
>>>>>> Try WooF, the only solution for linking WebObjects and FileMaker!
>>>>>>
>>>>>> _______________________________________________
>>>>>> EOF mailing list
>>>>>> [email protected]
>>>>>> http://www.omnigroup.com/mailman/listinfo/eof
>>>>>>
>>>>>
>>>>> Dino
>>>>> http://homepage.mac.com/strausz
>>>>>
>>>>> _______________________________________________
>>>>> EOF mailing list
>>>>> [email protected]
>>>>> http://www.omnigroup.com/mailman/listinfo/eof
>>>>>
>>>>
>>>
>>>
>>
>> _______________________________________________
>> EOF mailing list
>> [email protected]
>> http://www.omnigroup.com/mailman/listinfo/eof
>
> _______________________________________________
> EOF mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/eof
>