1 mike 1.1.2.1 //%/////////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM,
4 // The Open Group, Tivoli Systems
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
7 // of this software and associated documentation files (the "Software"), to
8 // deal in the Software without restriction, including without limitation the
9 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 // sell copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
13 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
14 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 //
22 mike 1.1.2.1 //==============================================================================
23 //
24 // Author: Mike Brasher (mbrasher@bmc.com)
25 //
26 // Modified By:
27 //
28 //%/////////////////////////////////////////////////////////////////////////////
29
30 #ifndef Pegasus_WQLSelectStatement_h
31 #define Pegasus_WQLSelectStatement_h
32
33 #include <Pegasus/Common/Config.h>
34 #include <Pegasus/Common/Array.h>
35 #include <Pegasus/Common/String.h>
36 #include <Pegasus/WQL/WQLOperation.h>
37 #include <Pegasus/WQL/WQLOperand.h>
|
145 mike 1.1.2.1
146 /** Prints out the members of this class.
147 */
148 void print() const;
149
150 private:
151
152 //
153 // The name of the target class. For example:
154 //
155 // SELECT *
156 // FROM TargetClass
157 // WHERE ...
158 //
159
160 String _className;
161
162 //
163 // The list of property names being selected. For example, see "firstName",
164 // and "lastName" below.
165 //
166 mike 1.1.2.1 // SELECT firstName, lastName
167 // FROM TargetClass
168 // WHERE ...
169 //
170
171 Array<String> _propertyNames;
172
173 //
174 // The list of operations encountered while parsing the WHERE clause.
175 // Consider this query:
176 //
177 // SELECT *
178 // FROM TargetClass
179 // WHERE count > 10 OR peak < 20 AND state = "OKAY"
180 //
181 // This would generate the following stream of WQLOperations:
182 //
183 // WQL_GT
184 // WQL_LT
185 // WQL_EQ
186 // WQL_AND
187 mike 1.1.2.1 // WQL_OR
188 //
189
190 Array<WQLOperation> _operations;
191
192 //
193 // The list of operands encountered while parsing the WHERE clause. They
194 // query just above would generate the following stream of operands:
195 //
196 // count, 10, peak, 20, state, "OKAY"
197 //
198
199 Array<WQLOperand> _operands;
200 };
201
202 PEGASUS_NAMESPACE_END
203
204 #endif /* Pegasus_WQLSelectStatement_h */
|