KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > dd > QueryMethod


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.ejb3.dd;
8
9 import java.util.List JavaDoc;
10
11 /**
12  * Represents an query-method element of the ejb-jar.xml deployment descriptor
13  * for the 1.4 schema
14  *
15  * @version <tt>$Revision: 1.3.2.1 $</tt>
16  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
17  */

18 public class QueryMethod
19 {
20
21    private String JavaDoc methodName;
22
23    private List JavaDoc methodParams;
24
25    public String JavaDoc getMethodName()
26    {
27       return methodName;
28    }
29
30    public void setMethodName(String JavaDoc methodName)
31    {
32       this.methodName = methodName;
33    }
34
35    public List JavaDoc getMethodParams()
36    {
37       return methodParams;
38    }
39
40    public void setMethodParams(List JavaDoc methodParams)
41    {
42       this.methodParams = methodParams;
43    }
44
45    public void addMethodParam(String JavaDoc methodParam)
46    {
47       methodParams.add(methodParam);
48    }
49
50    public String JavaDoc toString()
51    {
52       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
53       sb.append("[");
54       sb.append("methodName=").append(methodName);
55       sb.append("]");
56       return sb.toString();
57    }
58 }
59
Popular Tags