(file) Return to CQLSelectStatement.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / CQL

Diff for /pegasus/src/Pegasus/CQL/CQLSelectStatement.cpp between version 1.1 and 1.1.2.5

version 1.1, 2004/08/20 18:22:36 version 1.1.2.5, 2004/09/20 21:03:03
Line 0 
Line 1 
   #include "CQLSelectStatement.h"
   #include "CQLSelectStatementRep.h"
   
   PEGASUS_NAMESPACE_BEGIN
   
   CQLSelectStatement::CQLSelectStatement():SelectStatement(){
   //      printf("CQLSelectStatement()\n");
           _rep = new CQLSelectStatementRep();
   }
   
   CQLSelectStatement::CQLSelectStatement(String inQlang, String inQuery, QueryContext& inCtx)
   {
           _rep = new CQLSelectStatementRep(inQlang,inQuery,inCtx);
   }
   
   CQLSelectStatement::CQLSelectStatement(const CQLSelectStatement& statement):SelectStatement(statement){
           _rep = new CQLSelectStatementRep(statement._rep);
   }
   
   CQLSelectStatement::~CQLSelectStatement(){
           if(_rep)
                   delete _rep;
   }
   
   Boolean CQLSelectStatement::evaluate(CIMInstance const inCI)
   {
      return _rep->evaluate(inCI);
   }
   
   Array<CIMInstance> CQLSelectStatement::executeQuery(Array<CIMInstance> inCIMInstanceArray) throw(Exception)
   {
      return _rep->executeQuery(inCIMInstanceArray);
   }
   
   CIMInstance CQLSelectStatement::applyProjection(CIMInstance inCI) throw(Exception)
   {
      return _rep->applyProjection(inCI);
   }
   
   void CQLSelectStatement::validateClass(const CIMObjectPath& inClassName) throw(Exception)
   {
           _rep->validateClass(inClassName);
   }
   
   void CQLSelectStatement::validateProperties() throw(Exception)
   {
           _rep->validateProperties();
   }
   
   Array<CIMObjectPath> const CQLSelectStatement::getClassPathList()
   {
           return _rep->getClassPathList();
   }
   
   CIMPropertyList CQLSelectStatement::getPropertyList(const CIMObjectPath& inClassName)
   {
      return _rep->getPropertyList(inClassName);
   }
   
   void CQLSelectStatement::appendClassPath(const CQLIdentifier& inIdentifier)
   {
           _rep->appendClassPath(inIdentifier);
   }
   
   void CQLSelectStatement::setPredicate(CQLPredicate inPredicate)
   {
           _rep->setPredicate(inPredicate);
   }
   
   void CQLSelectStatement::insertClassPathAlias(const CQLIdentifier& inIdentifier, String inAlias)
   {
           _rep->insertClassPathAlias(inIdentifier,inAlias);
   }
   
   void CQLSelectStatement::appendSelectIdentifier(const CQLChainedIdentifier& x)
   {
           printf("CQLSelectStatement::appendSelectIdentifier\n");
           _rep->appendSelectIdentifier(x);
   }
   
   Boolean CQLSelectStatement::appendWhereIdentifier(const CQLChainedIdentifier& x)
   {
      return _rep->appendWhereIdentifier(x);
   }
   
   CQLSelectStatement& CQLSelectStatement::operator=(const CQLSelectStatement& rhs){
           if(&rhs != this){
                   if(_rep) delete _rep;
                   _rep = new CQLSelectStatementRep(rhs._rep);
           }
           return *this;
   }
   
   PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2