| <html lang=en> |
| <head> |
| <meta name="Generated by Rational Rose model" content="D:\work\WTP\org.eclipse.jst.j2ee.core\rose\j2ee.mdl"> |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <meta name="Description" content="The query-method element is used to specify the method (DB/SR/CM- on the home ) for a finder or select query. The method-name element specifies the name of a finder or select method in the entity bean's implementation class or a select method in the dependent object class. Each method-param must be defined for a query-method using the method-params element. Used in: query Example: Example: query description Method finds large orders /description query-method method-name findLargeOrders /method-name method-params /method-params /query-method ejb-ql SELECT ENTITY(o) FROM Order o WHERE o.amount > 1000 /ejb-ql /query "> |
| <meta name="KeyWords" content="queryMethod,Role queryMethod,j2ee,model j2ee,"> |
| <a href="../root.html" target=_top><IMG SRC="../webviewer/home.gif"BORDER=0></a> |
| </head> |
| <body bgcolor = "#FFFFFF"> |
| <p><font FACE="Arial, Geneva" SIZE=3><b><IMG SRC="../webviewer/pub.gif"BORDER=0>queryMethod, role for Element <a href="../cat39ee0e7f014d/cat3780e272032d/class399acd9c02df.htm" target="contents_frame">QueryMethod</a></b></font></p> |
| <font FACE="Arial, Geneva" SIZE=2><b>Documentation</b></font><BR><font FACE="Arial, Geneva" SIZE=2>The query-method element is used to specify the method (DB/SR/CM-"on the home") for a finder or |
| <BR>select query. |
| <BR> |
| <BR>The method-name element specifies the name of a finder or select |
| <BR>method in the entity bean's implementation class or a select method in |
| <BR>the dependent object class. |
| <BR> |
| <BR>Each method-param must be defined for a query-method using the |
| <BR>method-params element. |
| <BR> |
| <BR>Used in: query |
| <BR> |
| <BR>Example: |
| <BR> |
| <BR>Example: |
| <BR><query> |
| <BR> <description>Method finds large orders</description> |
| <BR> <query-method> |
| <BR> <method-name>findLargeOrders</method-name> |
| <BR> <method-params></method-params> |
| <BR> </query-method> |
| <BR> <ejb-ql>SELECT ENTITY(o) FROM Order o WHERE o.amount &gt; 1000</ejb-ql> |
| <BR></query></font><BR><BR> |
| </body> |
| </html> |