KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
10  * Represents an query element of the ejb-jar.xml deployment descriptor for the
11  * 1.4 schema
12  *
13  * @version <tt>$Revision: 1.3.2.1 $</tt>
14  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
15  */

16 public class Query
17 {
18
19    private String JavaDoc ejbQl;
20
21    private QueryMethod queryMethod;
22
23    public String JavaDoc getEjbQl()
24    {
25       return ejbQl;
26    }
27
28    public void setEjbQl(String JavaDoc ejbQl)
29    {
30       this.ejbQl = ejbQl;
31    }
32
33    public QueryMethod getQueryMethod()
34    {
35       return queryMethod;
36    }
37
38    public void setQueryMethod(QueryMethod queryMethod)
39    {
40       this.queryMethod = queryMethod;
41    }
42
43    public String JavaDoc toString()
44    {
45       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
46       sb.append("[");
47       sb.append("ejbQl=").append(ejbQl);
48       sb.append("]");
49       return sb.toString();
50    }
51 }
52
Popular Tags