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

Diff for /pegasus/src/Pegasus/CQL/CQLSelectStatementRep.cpp between version 1.3 and 1.4

version 1.3, 2004/11/29 20:06:57 version 1.4, 2004/12/06 16:57:00
Line 702 
Line 702 
       MessageLoaderParms parms("CQL.CQLSelectStatementRep.PROJ_MISSING_PROP",       MessageLoaderParms parms("CQL.CQLSelectStatementRep.PROJ_MISSING_PROP",
                                "The property $0 is missing on the instance of class $1.",                                "The property $0 is missing on the instance of class $1.",
                                requiredProps[i].getString(), inst.getClassName().getString());                                requiredProps[i].getString(), inst.getClassName().getString());
       throw CQLRuntimeException(parms);        throw QueryRuntimePropertyException(parms);
     }     }
   }   }
  
Line 738 
Line 738 
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     MessageLoaderParms parms("CQL.CQLSelectStatementRep.QUERY_CONTEXT_IS_NULL",     MessageLoaderParms parms("CQL.CQLSelectStatementRep.QUERY_CONTEXT_IS_NULL",
                              "Trying to process a query with a NULL Query Context.");                              "Trying to process a query with a NULL Query Context.");
     throw CQLValidationException(parms);      throw QueryValidationException(parms);
   }   }
  
   if (!_contextApplied)   if (!_contextApplied)
Line 818 
Line 818 
         MessageLoaderParms parms("CQL.CQLSelectStatementRep.VAL_CLASS_NOT_EXIST",         MessageLoaderParms parms("CQL.CQLSelectStatementRep.VAL_CLASS_NOT_EXIST",
                                "The class $0 does not exist.",                                "The class $0 does not exist.",
                                 curContext.getString());                                 curContext.getString());
         throw CQLValidationException(parms);          throw QueryValidationException(parms);
       }       }
       else       else
       {       {
Line 849 
Line 849 
         MessageLoaderParms parms("CQL.CQLSelectStatementRep.VAL_PROP_NOT_ON_CLASS",         MessageLoaderParms parms("CQL.CQLSelectStatementRep.VAL_PROP_NOT_ON_CLASS",
                                "The property $0 does not exist on class $1.",                                "The property $0 does not exist on class $1.",
                                 ids[pos].getName().getString(), classDef.getClassName().getString());                                 ids[pos].getName().getString(), classDef.getClassName().getString());
         throw CQLValidationException(parms);          throw QueryMissingPropertyException(parms);
       }       }
  
       // Checking class relationship rules in section 5.4.1.       // Checking class relationship rules in section 5.4.1.
Line 869 
Line 869 
           MessageLoaderParms parms("CQL.CQLSelectStatementRep.VAL_SCOPE_VIOLATION",           MessageLoaderParms parms("CQL.CQLSelectStatementRep.VAL_SCOPE_VIOLATION",
                                "The class $0 is not a superclass, subclass, or the same class as $1.",                                "The class $0 is not a superclass, subclass, or the same class as $1.",
                                 curContext.getString(), ids[0].getName().getString());                                 curContext.getString(), ids[0].getName().getString());
           throw CQLValidationException(parms);            throw QueryValidationException(parms);
         }         }
       }       }
  
Line 887 
Line 887 
           MessageLoaderParms parms("CQL.CQLSelectStatementRep.PROP_NOT_EMB",           MessageLoaderParms parms("CQL.CQLSelectStatementRep.PROP_NOT_EMB",
                              "The property $0 must be an embedded object.",                              "The property $0 must be an embedded object.",
                              embObj.getName().getString());                              embObj.getName().getString());
           throw CQLValidationException(parms);            throw QueryValidationException(parms);
         }         }
       }       }
     }     }
Line 994 
Line 994 
         MessageLoaderParms parms("CQL.CQLSelectStatementRep.CLASS_NOT_FROM_LIST_CLASS",         MessageLoaderParms parms("CQL.CQLSelectStatementRep.CLASS_NOT_FROM_LIST_CLASS",
                     "Class $0 does not match the FROM class or any of its subclasses.",                     "Class $0 does not match the FROM class or any of its subclasses.",
                     className.getString());                     className.getString());
         throw QueryException(parms);          throw CQLRuntimeException(parms);
       }       }
     }     }
   }   }
Line 1310 
Line 1310 
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     MessageLoaderParms parms("CQL.CQLSelectStatementRep.QUERY_CONTEXT_IS_NULL",     MessageLoaderParms parms("CQL.CQLSelectStatementRep.QUERY_CONTEXT_IS_NULL",
                              "Trying to process a query with a NULL Query Context.");                              "Trying to process a query with a NULL Query Context.");
     throw CQLValidationException(parms);      throw QueryValidationException(parms);
   }   }
   _ctx->insertClassPath(inIdentifier);   _ctx->insertClassPath(inIdentifier);
  
Line 1341 
Line 1341 
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     MessageLoaderParms parms("CQL.CQLSelectStatementRep.QUERY_CONTEXT_IS_NULL",     MessageLoaderParms parms("CQL.CQLSelectStatementRep.QUERY_CONTEXT_IS_NULL",
                              "Trying to process a query with a NULL Query Context.");                              "Trying to process a query with a NULL Query Context.");
     throw CQLValidationException(parms);      throw QueryValidationException(parms);
   }   }
   _ctx->insertClassPath(inIdentifier,inAlias);   _ctx->insertClassPath(inIdentifier,inAlias);
  
Line 1365 
Line 1365 
     PEG_METHOD_EXIT();     PEG_METHOD_EXIT();
     MessageLoaderParms parms("CQL.CQLSelectStatementRep.QUERY_CONTEXT_IS_NULL",     MessageLoaderParms parms("CQL.CQLSelectStatementRep.QUERY_CONTEXT_IS_NULL",
                              "Trying to process a query with a NULL Query Context.");                              "Trying to process a query with a NULL Query Context.");
     throw CQLRuntimeException(parms);      // throw syntax error to be consistent
       throw CQLSyntaxErrorException(parms);
   }   }
  
   for (Uint32 i = 0; i < _selectIdentifiers.size(); i++)   for (Uint32 i = 0; i < _selectIdentifiers.size(); i++)


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2