version 1.1.2.10, 2004/10/11 16:31:02
|
version 1.1.2.11, 2004/10/14 19:25:18
|
|
|
} | } |
break; | break; |
default: | default: |
throw(1); |
throw(Exception(String(""))); |
break; | break; |
} | } |
_isResolved = true; | _isResolved = true; |
|
|
| |
if(classList.size() != 1) | if(classList.size() != 1) |
{ | { |
throw(1); |
throw(Exception(String(""))); |
} | } |
| |
className = classList[0].getName().getString(); | className = classList[0].getName().getString(); |
|
|
| |
if(propertyIndex == PEG_NOT_FOUND) | if(propertyIndex == PEG_NOT_FOUND) |
{ | { |
throw(1); |
throw(Exception(String(""))); |
} | } |
| |
// We will check the property type to determine what processing | // We will check the property type to determine what processing |
|
|
{ | { |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String(""))); |
} | } |
| |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
_valueType == Null_type) | _valueType == Null_type) |
{ | { |
throw(1); |
throw(Exception(String(""))); |
} | } |
| |
switch(_valueType) | switch(_valueType) |
|
|
} | } |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String(""))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String(""))); |
break; | break; |
} | } |
return false; | return false; |
|
|
{ | { |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String(""))); |
} | } |
| |
return !(this->operator==(x)); | return !(this->operator==(x)); |
|
|
{ | { |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String(""))); |
} | } |
| |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
_valueType == Null_type) | _valueType == Null_type) |
{ | { |
throw(1); |
throw(Exception(String(""))); |
} | } |
| |
switch(_valueType) | switch(_valueType) |
|
|
} | } |
break; | break; |
case CIMDateTime_type: | case CIMDateTime_type: |
throw(1); |
throw(Exception(String(""))); |
break; | break; |
case CIMReference_type: | case CIMReference_type: |
throw(1); |
throw(Exception(String(""))); |
break; | break; |
case CIMInstance_type: | case CIMInstance_type: |
throw(1); |
throw(Exception(String(""))); |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String(""))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String(""))); |
break; | break; |
} | } |
return false; | return false; |
|
|
{ | { |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String(""))); |
} | } |
| |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
_valueType == Null_type) | _valueType == Null_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
switch(_valueType) | switch(_valueType) |
|
|
} | } |
break; | break; |
case CIMDateTime_type: | case CIMDateTime_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMReference_type: | case CIMReference_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMInstance_type: | case CIMInstance_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
} | } |
return false; | return false; |
|
|
{ | { |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
_valueType == Null_type) | _valueType == Null_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
switch(_valueType) | switch(_valueType) |
|
|
} | } |
break; | break; |
case CIMDateTime_type: | case CIMDateTime_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMReference_type: | case CIMReference_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMInstance_type: | case CIMInstance_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
} | } |
return false; | return false; |
|
|
{ | { |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
_valueType == Null_type) | _valueType == Null_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
switch(_valueType) | switch(_valueType) |
|
|
} | } |
break; | break; |
case CIMDateTime_type: | case CIMDateTime_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMReference_type: | case CIMReference_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMInstance_type: | case CIMInstance_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
} | } |
return false; | return false; |
|
|
| |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
|
|
switch(_valueType) | switch(_valueType) |
{ | { |
case Boolean_type: | case Boolean_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case Sint64_type: | case Sint64_type: |
if(x._valueType == Sint64_type) | if(x._valueType == Sint64_type) |
|
|
return CQLValueRep(*_theValue._S + *x._theValue._S); | return CQLValueRep(*_theValue._S + *x._theValue._S); |
break; | break; |
case CIMDateTime_type: | case CIMDateTime_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMReference_type: | case CIMReference_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMInstance_type: | case CIMInstance_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
} | } |
| |
|
|
{ | { |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
_valueType == Null_type) | _valueType == Null_type) |
|
|
switch(_valueType) | switch(_valueType) |
{ | { |
case Boolean_type: | case Boolean_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case Sint64_type: | case Sint64_type: |
if(x._valueType == Sint64_type) | if(x._valueType == Sint64_type) |
|
|
} | } |
break; | break; |
case String_type: | case String_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMDateTime_type: | case CIMDateTime_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMReference_type: | case CIMReference_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMInstance_type: | case CIMInstance_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
} | } |
// control should never reach here | // control should never reach here |
|
|
| |
if(!_validate(x)) | if(!_validate(x)) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
|
|
switch(_valueType) | switch(_valueType) |
{ | { |
case Boolean_type: | case Boolean_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case Sint64_type: | case Sint64_type: |
if(x._valueType == Sint64_type) | if(x._valueType == Sint64_type) |
|
|
} | } |
break; | break; |
case String_type: | case String_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMDateTime_type: | case CIMDateTime_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMReference_type: | case CIMReference_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMInstance_type: | case CIMInstance_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
} | } |
// control should never reach here | // control should never reach here |
|
|
if(!_validate(x) || | if(!_validate(x) || |
x._theValue._U64 == 0) | x._theValue._U64 == 0) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
if(x._valueType == Null_type || | if(x._valueType == Null_type || |
|
|
switch(_valueType) | switch(_valueType) |
{ | { |
case Boolean_type: | case Boolean_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case Sint64_type: | case Sint64_type: |
if(x._valueType == Sint64_type) | if(x._valueType == Sint64_type) |
|
|
} | } |
break; | break; |
case String_type: | case String_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMDateTime_type: | case CIMDateTime_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMReference_type: | case CIMReference_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CIMInstance_type: | case CIMInstance_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
case CQLIdentifier_type: | case CQLIdentifier_type: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
} | } |
// control should never reach here | // control should never reach here |
|
|
_valueType != CIMInstance_type || | _valueType != CIMInstance_type || |
inVal._valueType != String_type) | inVal._valueType != String_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
CIMName className; | CIMName className; |
|
|
if( _valueType != String_type || | if( _valueType != String_type || |
inVal._valueType != String_type) | inVal._valueType != String_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
// Poughkepsie is doing this, Dan Gorey. | // Poughkepsie is doing this, Dan Gorey. |
|
|
{ | { |
if(_valueType != Uint64_type) | if(_valueType != Uint64_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
return _theValue._U64; | return _theValue._U64; |
} | } |
|
|
{ | { |
if(_valueType != Boolean_type) | if(_valueType != Boolean_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
return _theValue._B; | return _theValue._B; |
} | } |
|
|
{ | { |
if(_valueType != Sint64_type) | if(_valueType != Sint64_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
return _theValue._S64; | return _theValue._S64; |
} | } |
|
|
{ | { |
if(_valueType != Real_type) | if(_valueType != Real_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
return _theValue._R64; | return _theValue._R64; |
} | } |
|
|
{ | { |
if(_valueType != String_type) | if(_valueType != String_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
return *_theValue._S; | return *_theValue._S; |
} | } |
|
|
{ | { |
if(_valueType != CIMDateTime_type) | if(_valueType != CIMDateTime_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
return *_theValue._DT; | return *_theValue._DT; |
|
|
{ | { |
if(_valueType != CIMReference_type) | if(_valueType != CIMReference_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
return *_theValue._OP; | return *_theValue._OP; |
} | } |
|
|
{ | { |
if(_valueType != CIMInstance_type) | if(_valueType != CIMInstance_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
return *_theValue._IN; | return *_theValue._IN; |
} | } |
|
|
{ | { |
if(_valueType != CIMClass_type) | if(_valueType != CIMClass_type) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
return *_theValue._CL; | return *_theValue._CL; |
|
|
break; | break; |
| |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
break; | break; |
} | } |
return true; | return true; |
|
|
break; | break; |
} | } |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} // switch statement | } // switch statement |
| |
} | } |
|
|
break; | break; |
} | } |
default: | default: |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} // switch statement | } // switch statement |
} | } |
_isResolved = true; | _isResolved = true; |
|
|
| |
if(propertyIndex == PEG_NOT_FOUND) | if(propertyIndex == PEG_NOT_FOUND) |
{ | { |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
CIMProperty queryPropObj = QueryClass.getProperty(propertyIndex); | CIMProperty queryPropObj = QueryClass.getProperty(propertyIndex); |
|
|
if(qualIndex == PEG_NOT_FOUND) | if(qualIndex == PEG_NOT_FOUND) |
{ | { |
// This property can not be processed with a symbolic constant. | // This property can not be processed with a symbolic constant. |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
valueMap = queryPropObj.getQualifier(qualIndex).getValue(); | valueMap = queryPropObj.getQualifier(qualIndex).getValue(); |
|
|
{ | { |
// The symbolic constant provided is not valid | // The symbolic constant provided is not valid |
// for this property. | // for this property. |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
// The symbolic constant defined in the CQLIdentifier is | // The symbolic constant defined in the CQLIdentifier is |
|
|
{ | { |
// The symbolic constant provided is not valid | // The symbolic constant provided is not valid |
// for this property. | // for this property. |
throw(1); |
throw(Exception(String("CQLValueRep::"))); |
} | } |
| |
CString cStr = valueMapArray[matchIndex].getCString(); | CString cStr = valueMapArray[matchIndex].getCString(); |