version 1.3, 2004/11/29 20:06:57
|
version 1.4, 2004/12/06 16:57:00
|
|
|
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); |
} | } |
} | } |
| |
|
|
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) |
|
|
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 |
{ | { |
|
|
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. |
|
|
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); |
} | } |
} | } |
| |
|
|
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); |
} | } |
} | } |
} | } |
|
|
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); |
} | } |
} | } |
} | } |
|
|
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); |
| |
|
|
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); |
| |
|
|
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++) |