KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openejb > alt > config > ejb11 > Query


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
4  * Schema.
5  * $Id: Query.java 1104 2004-03-31 00:44:02Z dblevins $
6  */

7
8 package org.openejb.alt.config.ejb11;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import java.io.IOException JavaDoc;
15 import java.io.Reader JavaDoc;
16 import java.io.Serializable JavaDoc;
17 import java.io.Writer JavaDoc;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler JavaDoc;
23
24 /**
25  * Class Query.
26  *
27  * @version $Revision: 1104 $ $Date: 2004-03-30 16:44:02 -0800 (Tue, 30 Mar 2004) $
28  */

29 public class Query implements java.io.Serializable JavaDoc {
30
31
32       //--------------------------/
33
//- Class/Member Variables -/
34
//--------------------------/
35

36     /**
37      * Field _description
38      */

39     private java.lang.String JavaDoc _description;
40
41     /**
42      * Field _queryMethod
43      */

44     private org.openejb.alt.config.ejb11.QueryMethod _queryMethod;
45
46     /**
47      * Field _objectQl
48      */

49     private java.lang.String JavaDoc _objectQl;
50
51
52       //----------------/
53
//- Constructors -/
54
//----------------/
55

56     public Query() {
57         super();
58     } //-- org.openejb.alt.config.ejb11.Query()
59

60
61       //-----------/
62
//- Methods -/
63
//-----------/
64

65     /**
66      * Returns the value of field 'description'.
67      *
68      * @return the value of field 'description'.
69      */

70     public java.lang.String JavaDoc getDescription()
71     {
72         return this._description;
73     } //-- java.lang.String getDescription()
74

75     /**
76      * Returns the value of field 'objectQl'.
77      *
78      * @return the value of field 'objectQl'.
79      */

80     public java.lang.String JavaDoc getObjectQl()
81     {
82         return this._objectQl;
83     } //-- java.lang.String getObjectQl()
84

85     /**
86      * Returns the value of field 'queryMethod'.
87      *
88      * @return the value of field 'queryMethod'.
89      */

90     public org.openejb.alt.config.ejb11.QueryMethod getQueryMethod()
91     {
92         return this._queryMethod;
93     } //-- org.openejb.alt.config.ejb11.QueryMethod getQueryMethod()
94

95     /**
96      * Method isValid
97      */

98     public boolean isValid()
99     {
100         try {
101             validate();
102         }
103         catch (org.exolab.castor.xml.ValidationException vex) {
104             return false;
105         }
106         return true;
107     } //-- boolean isValid()
108

109     /**
110      * Method marshal
111      *
112      * @param out
113      */

114     public void marshal(java.io.Writer JavaDoc out)
115         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
116     {
117         
118         Marshaller.marshal(this, out);
119     } //-- void marshal(java.io.Writer)
120

121     /**
122      * Method marshal
123      *
124      * @param handler
125      */

126     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
127         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
128     {
129         
130         Marshaller.marshal(this, handler);
131     } //-- void marshal(org.xml.sax.ContentHandler)
132

133     /**
134      * Sets the value of field 'description'.
135      *
136      * @param description the value of field 'description'.
137      */

138     public void setDescription(java.lang.String JavaDoc description)
139     {
140         this._description = description;
141     } //-- void setDescription(java.lang.String)
142

143     /**
144      * Sets the value of field 'objectQl'.
145      *
146      * @param objectQl the value of field 'objectQl'.
147      */

148     public void setObjectQl(java.lang.String JavaDoc objectQl)
149     {
150         this._objectQl = objectQl;
151     } //-- void setObjectQl(java.lang.String)
152

153     /**
154      * Sets the value of field 'queryMethod'.
155      *
156      * @param queryMethod the value of field 'queryMethod'.
157      */

158     public void setQueryMethod(org.openejb.alt.config.ejb11.QueryMethod queryMethod)
159     {
160         this._queryMethod = queryMethod;
161     } //-- void setQueryMethod(org.openejb.alt.config.ejb11.QueryMethod)
162

163     /**
164      * Method unmarshal
165      *
166      * @param reader
167      */

168     public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
169         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
170     {
171         return (org.openejb.alt.config.ejb11.Query) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.Query.class, reader);
172     } //-- java.lang.Object unmarshal(java.io.Reader)
173

174     /**
175      * Method validate
176      */

177     public void validate()
178         throws org.exolab.castor.xml.ValidationException
179     {
180         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
181         validator.validate(this);
182     } //-- void validate()
183

184 }
185
Popular Tags