version 1.10, 2006/06/19 19:37:28
|
version 1.11, 2007/04/18 20:14:35
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Authors: David Rosckes (rosckes@us.ibm.com) |
|
// Bert Rivero (hurivero@us.ibm.com) |
|
// Chuck Carmack (carmack@us.ibm.com) |
|
// Brian Lucier (lucier@us.ibm.com) |
|
// |
|
// Modified By: Vijay Eli, IBM (vijayeli@in.ibm.com) bug#3590 |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_CQLSimplePredicate_h | #ifndef Pegasus_CQLSimplePredicate_h |
|
|
class CQLFactory; | class CQLFactory; |
class CQLSimplePredicateRep; | class CQLSimplePredicateRep; |
| |
enum ExpressionOpType { LT, GT, EQ, LE, GE, NE, IS_NULL, IS_NOT_NULL, ISA, LIKE, NOOP }; |
enum ExpressionOpType { LT, GT, EQ, LE, GE, NE, IS_NULL, |
|
IS_NOT_NULL, ISA, LIKE, NOOP }; |
| |
| |
/** | /** |
|
|
Example: a IS NULL | Example: a IS NULL |
</PRE> | </PRE> |
*/ | */ |
|
|
class PEGASUS_CQL_LINKAGE CQLSimplePredicate | class PEGASUS_CQL_LINKAGE CQLSimplePredicate |
{ | { |
public: | public: |
|
|
For the evaluate method on each CQLExpression, the CQLExpression is | For the evaluate method on each CQLExpression, the CQLExpression is |
resolved to a CQLValue and the value is then applied to the operator. | resolved to a CQLValue and the value is then applied to the operator. |
| |
The CQLSimplePredicate is simple if it contains only a left-side CQLExpression. |
The CQLSimplePredicate is simple if it contains only a left-side |
A simple CQLSimplePredicate is evaluated by resolving the CQLExpression into |
CQLExpression. |
a CQLValue and then applying the operator. |
A simple CQLSimplePredicate is evaluated by resolving the |
|
CQLExpression into a CQLValue and then applying the operator. |
</PRE> | </PRE> |
| |
@param - CI. Instance to evaluate query against. | @param - CI. Instance to evaluate query against. |
|
|
void setOperation(ExpressionOpType op); | void setOperation(ExpressionOpType op); |
| |
/** | /** |
This method normalizes the CQLChainedIdentifier so that properties that require |
This method normalizes the CQLChainedIdentifier so that properties |
scoping are scoped. |
that require scoping are scoped. |
| |
@param - queryContext. | @param - queryContext. |
@return - None. | @return - None. |
|
|
String toString()const; | String toString()const; |
| |
/** | /** |
Returns true if this CQLSimplePredicate only has a left-side CQLExpression. |
Returns true if this CQLSimplePredicate only has a left-side |
|
CQLExpression. |
| |
@param - None. | @param - None. |
@return - Boolean. | @return - Boolean. |