version 1.1.2.1, 2001/12/03 00:58:05
|
version 1.1.2.2, 2001/12/03 02:23:25
|
|
|
#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( |
// |
const String& propertyName, |
// Returns the value of the property with the given name: |
Sint32& value, |
// |
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; |
|
| |
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 |