Patches item #529093, was opened at 2002-03-12 20:08
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402706&aid=529093&group_id=31602

Category: vendor
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matt (mpetteys)
Assigned to: Nobody/Anonymous (nobody)
Summary: Adding dynamic-ql tag

Initial Comment:

JBOSS has added a custom finder method that allows you
to specify a dynamic ejb finder SQL at runtime. 
Attached is a patch to create the required entry in the
jbosscmp-jdbc_xml.j file to support this functionality.
     This patch could probably be included by only
defining the custom finder information in the jboss
subtask configuration and having that subtask populate
the ejb:finder information so only one tag needs to be
defined but that type functionality is beyond me.

Here are the class tags for the CMP entity bean to make
this patch work.  The jboss:dynamic-sql refers to the
ejb:finder tag that is a dynamic finder.

 *  @ejb:finder unchecked="true"
transaction-type="NotSupported"
 *          signature="Collection
findByCriteria(java.lang.String jbossQL,
java.lang.Object[] args)" 
 *          result-type-mapping="Remote"
 *          query=""
 *  @jboss:dynamic-sql name="findByCriteria"


Index: jbosscmp-jdbc_xml.j
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/resources/xdoclet/ejb/vendor/jbosscmp-jdbc_xml.j,v
retrieving revision 1.13
diff -r1.13 jbosscmp-jdbc_xml.j
110a111,127
> 
>       <XDtClass:forAllClassTags
tagName="jboss:dynamic-sql">
>       <XDtClass:ifHasClassTag
tagName="jboss:dynamic-sql" paramName="name">
>               <query>
>               <description>Dynamic Sql Finder</description>
>               <query-method>
>               <method-name><XDtClass:classTagValue tagName
="jboss:dynamic-sql" paramName="name" /></method-name>
>               <method-params>
>               <method-param>java.lang.String</method-param>
>               <method-param>java.lang.Object[]</method-param>
>               </method-params>
>               </query-method>
>               <dynamic-ql />
>               </query>
>       </XDtClass:ifHasClassTag>
>       </XDtClass:forAllClassTags>
> 

*****CVS exited normally with code 1*****


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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=402706&aid=529093&group_id=31602

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to