version 1.1.2.1, 2001/12/03 00:58:05
|
version 1.2, 2001/12/13 14:54:45
|
|
|
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/WQL/Linkage.h> | #include <Pegasus/WQL/Linkage.h> |
|
#include <Pegasus/WQL/WQLOperand.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
WQLSelectStatement::evaluateWhereClause() method which calls methods of | WQLSelectStatement::evaluateWhereClause() method which calls methods of |
this class to obtain real values for property names used in the where | this class to obtain real values for property names used in the where |
clause. | clause. |
|
|
The methods of this class all have the following form: |
|
|
|
<pre> |
|
virtual Boolean getValue( |
|
const String& propertyName, |
|
T& value, |
|
Boolean& isNull) const = 0; |
|
</pre> |
|
|
|
Where "T" is the data type. True is returned if a property with that |
|
name is actually exists and the value refers to the value of that |
|
property. If the property is null, the the isNull flag is passed. |
|
*/ | */ |
class PEGASUS_WQL_LINKAGE WQLPropertySource | class PEGASUS_WQL_LINKAGE WQLPropertySource |
{ | { |
public: | public: |
| |
virtual Boolean getValue( |
/** Virtual destructor. |
const String& propertyName, |
*/ |
Sint32& value, |
virtual ~WQLPropertySource(); |
Boolean& isNull) const = 0; |
|
|
|
virtual Boolean getValue( |
|
const String& propertyName, |
|
Real64& x, |
|
Boolean& isNull) const = 0; |
|
|
|
virtual Boolean getValue( |
|
const String& propertyName, |
|
Boolean& x, |
|
Boolean& isNull) const = 0; |
|
| |
|
/** Returns the value whose property has the given name. The output |
|
parameter value is populated with the value of that parameter. |
|
Note that only integer, double, and string types are supported |
|
(see the WQLOperand class). The implementer of this method must |
|
perform appropriate conversions to the appropriate type. |
|
|
|
@param propertyName name of property to be gotten. |
|
@param value holds the value of the property upon return. |
|
@return true if such a property was found and false otherwise. |
|
*/ |
virtual Boolean getValue( | virtual Boolean getValue( |
const String& propertyName, | const String& propertyName, |
String& x, |
WQLOperand& value) const = 0; |
Boolean& isNull) const = 0; |
|
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |