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>
|
144 mike 1.1.2.1
145 /** Prints out the members of this class.
146 */
147 void print() const;
148
149 private:
150
151 //
152 // The name of the target class. For example:
153 //
154 // SELECT *
155 // FROM TargetClass
156 // WHERE ...
157 //
158
159 String _className;
160
161 //
162 // The list of property names being selected. For example, see "firstName",
163 // and "lastName" below.
164 //
165 mike 1.1.2.1 // SELECT firstName, lastName
166 // FROM TargetClass
167 // WHERE ...
168 //
169
170 Array<String> _propertyNames;
171
172 //
173 // The list of operations encountered while parsing the WHERE clause.
174 // Consider this query:
175 //
176 // SELECT *
177 // FROM TargetClass
178 // WHERE count > 10 OR peak < 20 AND state = "OKAY"
179 //
180 // This would generate the following stream of WQLOperations:
181 //
182 // WQL_GT
183 // WQL_LT
184 // WQL_EQ
185 // WQL_AND
186 mike 1.1.2.1 // WQL_OR
187 //
188
189 Array<WQLOperation> _operations;
190
191 //
192 // The list of operands encountered while parsing the WHERE clause. They
193 // query just above would generate the following stream of operands:
194 //
195 // count, 10, peak, 20, state, "OKAY"
196 //
197
198 Array<WQLOperand> _operands;
199 };
200
201 PEGASUS_NAMESPACE_END
202
203 #endif /* Pegasus_WQLSelectStatement_h */
|