Hi again,
in the documentation of the orion-ejb-jar.xml-Descriptor i found following line, where an array is declared as a finder parameter:
<method-param>int[]</method-param>
But how i can access the single integer fields of this array in the query?
In this way? finder-method query="$field0 = $1[0] AND $field1 = $1[1] ...">
Please help. Otherwise i have to rewrite the sources of my complete application (at least the parts where the cmp-finders are used).
-----Original Message-----
From: Raymond Schulz [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:36 AM
To: Orion-Interest
Subject: Object as a parameter in a CMP-Finder
> Hi,
> is it possible to declare a java-Object as a finder parameter? The container should have access on this object by java-methods.
> For example I would like to do following in orion-ejb-jar.xml:
> ...
> <finder-method query="$1.getName() = $bean-attribute">
> <method>
> <ejb-name>TarifBean</ejb-name>
> <method-name>findByAnbieter</method-name>
> <method-params>
> <method-param>net.interway.project.ValueObject</method-param>
> </method-params>
> </method>
> </finder-method>
> ...
In weblogic e.g. you would define a so called finder-expression:
<finder-query><![CDATA[ (= $0 bean-attribute) ]]></finder-query>
<finder-expression>
<expression-number>0</expression-number>
<expression-text><![CDATA[@0.getName()]]></expression-text>
<expression-type>String</expression-type>
</finder-expression>
Can I do something similar in Orion?
Thanks
Ray Schulz
