Re: [WO4.5] Problem with a new EOQualifier subclass in Java
Re: [WO4.5] Problem with a new EOQualifier subclass in Java
- Subject: Re: [WO4.5] Problem with a new EOQualifier subclass in Java
- From: Francis Labrie <email@hidden>
- Date: Thu, 13 Mar 2003 06:21:16 -0500
- Organization: Université du QuébecàMontréal
Hi Carl,
Carl Lindberg wrote:
> Overriding that method yourself should work, but maybe there's
> something weird with the bridge going on.
I think so. :(
> You might find it easier to subclass EOKeyValueQualifier instead,
> which implements all the required abstract methods on the ObjC side,
> and just override evaluateWithObject() to thrown an exception (or find
> a soundex implementation for strings and implement it).
I've already tried to subclass EOSQLQualifier, but it still doesn't
work. So I've tried to subclass EOKeyValueQualifier like you suggest.
First, when used it throws an exception:
NSInvalidArgumentException: _BRIDGEUnmappedInitMethodImp: the java class
com/genilog/webobjects/eocontrol/SoundExQualifier does not implement
any constructor that maps to the Objective C method
initWithKey:operatorSelector:value:.
So I've added the initWithKey(String, NSSelector, Object) method, and it
stop complaining. But now it throws another exception:
NSInvalidArgumentException: *** NSStringFromSelector(): 0 selector
I've tried to add a super(key, selector, value) in constructor, but it
still throws this exception. I've very puzzled with Java EOQualifier
subclass development in WebObjects 4.5... :(
> WODisplayGroup might also be using in-memory qualifiers for some
> things -- are you setting the qualifier on the EODatabaseDataSource,
> or on the WODisplayGroup?
I set it in EODatabaseDataSource.
Kind regards,
--
Francis Labrie email@hidden
Montrial, Quibec
Canada
_______________________________________________
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.