version 1.7, 2006/01/30 16:16:39
|
version 1.8, 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: David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#include "CQLSelectStatement.h" | #include "CQLSelectStatement.h" |
|
|
SelectStatement::_rep = _rep; | SelectStatement::_rep = _rep; |
} | } |
| |
CQLSelectStatement::CQLSelectStatement(String& inQlang, String& inQuery, QueryContext& inCtx) |
CQLSelectStatement::CQLSelectStatement(String& inQlang, String& inQuery, |
|
QueryContext& inCtx) |
:SelectStatement() | :SelectStatement() |
{ | { |
_rep = new CQLSelectStatementRep(inQlang,inQuery,inCtx); | _rep = new CQLSelectStatementRep(inQlang,inQuery,inCtx); |
|
|
{ | { |
if(&rhs != this) | if(&rhs != this) |
{ | { |
if(_rep) delete _rep; |
if(_rep) |
|
delete _rep; |
_rep = new CQLSelectStatementRep(*rhs._rep); | _rep = new CQLSelectStatementRep(*rhs._rep); |
| |
// Set the _rep into the base class also | // Set the _rep into the base class also |
SelectStatement::_rep = _rep; | SelectStatement::_rep = _rep; |
} | } |
|
|
return *this; | return *this; |
} | } |
| |
|
|
return _rep->getClassPathList(); | return _rep->getClassPathList(); |
} | } |
| |
CIMPropertyList CQLSelectStatement::getPropertyList(const CIMObjectPath& inClassName) |
CIMPropertyList CQLSelectStatement::getPropertyList( |
|
const CIMObjectPath& inClassName) |
{ | { |
// Should be set by the concrete sub-classes | // Should be set by the concrete sub-classes |
PEGASUS_ASSERT(_rep != NULL); | PEGASUS_ASSERT(_rep != NULL); |
|
|
return _rep->getPropertyList(inClassName); | return _rep->getPropertyList(inClassName); |
} | } |
| |
CIMPropertyList CQLSelectStatement::getSelectPropertyList(const CIMObjectPath& inClassName) |
CIMPropertyList CQLSelectStatement::getSelectPropertyList( |
|
const CIMObjectPath& inClassName) |
{ | { |
// Should be set by the concrete sub-classes | // Should be set by the concrete sub-classes |
PEGASUS_ASSERT(_rep != NULL); | PEGASUS_ASSERT(_rep != NULL); |
|
|
return _rep->getSelectPropertyList(inClassName); | return _rep->getSelectPropertyList(inClassName); |
} | } |
| |
CIMPropertyList CQLSelectStatement::getWherePropertyList(const CIMObjectPath& inClassName) |
CIMPropertyList CQLSelectStatement::getWherePropertyList( |
|
const CIMObjectPath& inClassName) |
{ | { |
// Should be set by the concrete sub-classes | // Should be set by the concrete sub-classes |
PEGASUS_ASSERT(_rep != NULL); | PEGASUS_ASSERT(_rep != NULL); |
|
|
return _rep->getPredicate(); | return _rep->getPredicate(); |
} | } |
| |
void CQLSelectStatement::insertClassPathAlias(const CQLIdentifier& inIdentifier, String inAlias) |
void CQLSelectStatement::insertClassPathAlias( |
|
const CQLIdentifier& inIdentifier, String inAlias) |
{ | { |
PEGASUS_ASSERT(_rep != NULL); | PEGASUS_ASSERT(_rep != NULL); |
| |