#include <OW_WQLSelectStatement.hpp>
Collaboration diagram for OW_NAMESPACE::WQLSelectStatement:
Public Member Functions | |
WQLSelectStatement () | |
~WQLSelectStatement () | |
void | clear () |
Clears all data members of this object. | |
const String & | getClassName () const |
void | setClassName (const String &className) |
Modifier. | |
UInt32 | getSelectPropertyNameCount () const |
Returns the number of property names which were indicated in the selection list. | |
const String & | getSelectPropertyName (UInt32 i) const |
Gets the i-th selected property name in the list. | |
const StringArray & | getSelectPropertyNames () const |
Gets the selected property names in the list. | |
void | appendSelectPropertyName (const String &x) |
Appends a property name to the property name list. | |
UInt32 | getWherePropertyNameCount () const |
Returns the number of unique property names from the where clause. | |
const String & | getWherePropertyName (UInt32 i) const |
Gets the i-th unique property appearing in the where clause. | |
bool | appendWherePropertyName (const String &x) |
Appends a property name to the where property name list. | |
void | appendOperation (WQLOperation x) |
Appends an operation to the operation array. | |
void | appendOperand (const WQLOperand &x) |
Appends an operand to the operation array. | |
bool | hasWhereClause () const |
Returns true if this class has a where clause. | |
bool | evaluateWhereClause (const WQLPropertySource *source) const |
Evalautes the where clause using the symbol table to resolve symbols. | |
void | print (std::ostream &ostr) const |
Prints out the members of this class. | |
String | toString () const |
void | compileWhereClause (const WQLPropertySource *source, WQLCompile &wcl) |
Private Attributes | |
String | _className |
Array< String > | _selectPropertyNames |
Array< String > | _wherePropertyNames |
Array< OperandOrOperation > | _operStack |
Friends | |
class | WQLCompile |
Classes | |
struct | OperandOrOperation |
Definition at line 54 of file OW_WQLSelectStatement.hpp.
|
Definition at line 118 of file OW_WQLSelectStatement.cpp. References _operStack, and OW_NAMESPACE::Array< T >::reserve(). |
|
Definition at line 122 of file OW_WQLSelectStatement.cpp. |
|
|
|
Appends a property name to the property name list. This user should not call this method; it should only be called by the parser. Definition at line 95 of file OW_WQLSelectStatement.hpp. Referenced by OW_NAMESPACE::WQLSelectStatementGen::visit_attr(), OW_NAMESPACE::WQLSelectStatementGen::visit_cExpr_strColId_optIndirection(), OW_NAMESPACE::WQLSelectStatementGen::visit_targetEl_ASTERISK(), and OW_NAMESPACE::WQLSelectStatementGen::visit_targetEl_strRelationName_PERIOD_ASTERISK(). |
|
Appends a property name to the where property name list. This user should not call this method; it should only be called by the parser.
Definition at line 131 of file OW_WQLSelectStatement.cpp. References _wherePropertyNames, i, and OW_NAMESPACE::Array< T >::size(). Referenced by OW_NAMESPACE::WQLSelectStatementGen::visit_attr(), and OW_NAMESPACE::WQLSelectStatementGen::visit_cExpr_strColId_optIndirection(). |
|
Clears all data members of this object.
Definition at line 125 of file OW_WQLSelectStatement.cpp. References _className, _operStack, _selectPropertyNames, OW_NAMESPACE::Array< T >::clear(), and OW_NAMESPACE::String::erase(). Referenced by OW_NAMESPACE::WQLSelectStatementGen::visit_selectStmt(). |
|
Definition at line 353 of file OW_WQLSelectStatement.cpp. References OW_NAMESPACE::WQLCompile::compile(). |
|
|
Definition at line 62 of file OW_WQLSelectStatement.hpp. |
|
Gets the i-th selected property name in the list.
Definition at line 82 of file OW_WQLSelectStatement.hpp. |
|
Returns the number of property names which were indicated in the selection list.
Definition at line 76 of file OW_WQLSelectStatement.hpp. |
|
Gets the selected property names in the list.
Definition at line 88 of file OW_WQLSelectStatement.hpp. |
|
Gets the i-th unique property appearing in the where clause.
Definition at line 107 of file OW_WQLSelectStatement.hpp. |
|
Returns the number of unique property names from the where clause.
Definition at line 101 of file OW_WQLSelectStatement.hpp. |
|
Returns true if this class has a where clause.
Definition at line 133 of file OW_WQLSelectStatement.hpp. Referenced by OW_NAMESPACE::WQLCompile::compile(), and evaluateWhereClause(). |
|
Prints out the members of this class.
Definition at line 293 of file OW_WQLSelectStatement.cpp. References _className, _selectPropertyNames, i, and OW_NAMESPACE::Array< T >::size(). |
|
Modifier. This method should not be called by the user (only by the parser). Definition at line 69 of file OW_WQLSelectStatement.hpp. References className. Referenced by OW_NAMESPACE::WQLSelectStatementGen::visit_relationExpr_strRelationName(). |
|
Definition at line 319 of file OW_WQLSelectStatement.cpp. References _selectPropertyNames, i, and OW_NAMESPACE::Array< T >::size(). |
|
Definition at line 236 of file OW_WQLSelectStatement.hpp. |
|
Definition at line 165 of file OW_WQLSelectStatement.hpp. |
|
Definition at line 235 of file OW_WQLSelectStatement.hpp. Referenced by OW_NAMESPACE::WQLCompile::_buildEvalHeap(), clear(), evaluateWhereClause(), and WQLSelectStatement(). |
|
Definition at line 174 of file OW_WQLSelectStatement.hpp. Referenced by clear(), print(), and toString(). |
|
Definition at line 180 of file OW_WQLSelectStatement.hpp. Referenced by appendWherePropertyName(). |