org.apache.openejb.jee
Class QueryMethod

java.lang.Object
  extended by org.apache.openejb.jee.QueryMethod

public class QueryMethod
extends Object

The query-method specifies the method 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.

Each method-param must be defined for a query-method using the method-params element.

It is used by the query-method element.

Example:

Method finds large orders findLargeOrders SELECT OBJECT(o) FROM Order o WHERE o.amount > 1000


Field Summary
protected  String id
           
protected  String methodName
           
protected  MethodParams methodParams
           
 
Constructor Summary
QueryMethod()
           
 
Method Summary
 String getId()
           
 String getMethodName()
           
 MethodParams getMethodParams()
           
 void setId(String value)
           
 void setMethodName(String value)
          contains a name of an enterprise bean method or the asterisk (*) character.
 void setMethodParams(MethodParams value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodName

protected String methodName

methodParams

protected MethodParams methodParams

id

protected String id
Constructor Detail

QueryMethod

public QueryMethod()
Method Detail

getMethodName

public String getMethodName()

setMethodName

public void setMethodName(String value)
contains a name of an enterprise bean method or the asterisk (*) character. The asterisk is used when the element denotes all the methods of an enterprise bean's client view interfaces.


getMethodParams

public MethodParams getMethodParams()

setMethodParams

public void setMethodParams(MethodParams value)

getId

public String getId()

setId

public void setId(String value)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.