[WO45] Problem with a new EOQualifier subclass in Java
Francis Labrie <[email protected]> Mon, 10 Mar 2003 16:05:39 -0500
| Newsgroups | gmane.comp.web.webobjects.eof |
|---|---|
| Organization | Université du Québec à Montréal |
| Message-ID | <[email protected]> |
Hi, I've developed a new EOQualifier subclass in Java called SoundExQualifier that permits SoundEx comparison on a DBMS that support it like Microsoft SQL Server (i.e. "DIFFERENCE(keyPath, value) >= similariryLevel"). When I use this qualifier with a simple EOFetchSpecification, it works like a charm. But I can't use it with a WODisplayGroup. When the WODisplayGroup method qualifyDataSource() is called, an exception is thrown: NSInvalidArgumentException: *** -qualifierMigratedFromEntity:relationshipPath: cannot be sent to an abstract object of class com/genilog/webobjects/eocontrol/SoundExQualifier: Create a concrete instance! Why do I get a such exception? I don't implements EOQualifierEvaluation because I don't want to support in memory fetch, so there is no evaluateWithObject(Object) method. I've tried to define a qualifierMigratedFromEntity(EOEntity, String) method too that returns a SoundExQualifier clone, but it doesn't work. Can anyone help me? Kind regards, -- Francis Labrie [email protected] Montréal, Québec Canada