Patches item #529093, was opened at 2002-03-12 21: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: Works For Me
Priority: 5
Submitted By: Matt (mpetteys)
>Assigned to: Vincent Harcq (vharcq)
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*****
----------------------------------------------------------------------
>Comment By: Vincent Harcq (vharcq)
Date: 2002-06-12 23:06
Message:
Logged In: YES
user_id=125677
The current template have this:
<XDtClass:ifClassTagValueEquals
tagName="jboss:query" paramName="dynamic" value="true">
<dynamic-ql/>
</XDtClass:ifClassTagValueEquals>
under a <XDtClass:forAllClassTags tagName="jboss:query">
that defines <query> element.
I think this enough to do what you want no ?
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402706&aid=529093&group_id=31602
_______________________________________________________________
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel