version 1.4, 2004/12/06 16:57:00
|
version 1.5, 2004/12/10 17:07:27
|
|
|
CIMPropertyList CQLSelectStatementRep::getPropertyList(const CIMObjectPath& inClassName) | CIMPropertyList CQLSelectStatementRep::getPropertyList(const CIMObjectPath& inClassName) |
{ | { |
PEG_METHOD_ENTER (TRC_CQL, "CQLSelectStatementRep::getPropertyList"); | PEG_METHOD_ENTER (TRC_CQL, "CQLSelectStatementRep::getPropertyList"); |
|
try |
|
{ |
return getPropertyListInternal(inClassName, true, true); | return getPropertyListInternal(inClassName, true, true); |
} | } |
|
catch (CIMException& ce) |
|
{ |
|
PEG_TRACE_STRING (TRC_CQL, Tracer::LEVEL4,"cim exception"); |
|
PEG_METHOD_EXIT(); |
|
if (ce.getCode() == CIM_ERR_NOT_FOUND || |
|
ce.getCode() == CIM_ERR_INVALID_CLASS) |
|
{ |
|
MessageLoaderParms parms("CQL.CQLSelectStatementRep.GPL_CLASS_NOT_EXIST", |
|
"A class required to determine the property list was not found."); |
|
throw CQLRuntimeException(parms); |
|
} |
|
else |
|
{ |
|
throw ce; |
|
} |
|
} |
|
} |
| |
CIMPropertyList CQLSelectStatementRep::getSelectPropertyList(const CIMObjectPath& inClassName) | CIMPropertyList CQLSelectStatementRep::getSelectPropertyList(const CIMObjectPath& inClassName) |
{ | { |
PEG_METHOD_ENTER (TRC_CQL, "CQLSelectStatementRep::getSelectPropertyList"); | PEG_METHOD_ENTER (TRC_CQL, "CQLSelectStatementRep::getSelectPropertyList"); |
|
try |
|
{ |
return getPropertyListInternal(inClassName, true, false); | return getPropertyListInternal(inClassName, true, false); |
} | } |
|
catch (CIMException& ce) |
|
{ |
|
PEG_TRACE_STRING (TRC_CQL, Tracer::LEVEL4,"cim exception"); |
|
PEG_METHOD_EXIT(); |
|
if (ce.getCode() == CIM_ERR_NOT_FOUND || |
|
ce.getCode() == CIM_ERR_INVALID_CLASS) |
|
{ |
|
MessageLoaderParms parms("CQL.CQLSelectStatementRep.GPL_CLASS_NOT_EXIST", |
|
"A class required to determine the property list was not found."); |
|
throw CQLRuntimeException(parms); |
|
} |
|
else |
|
{ |
|
throw ce; |
|
} |
|
} |
|
} |
| |
CIMPropertyList CQLSelectStatementRep::getWherePropertyList(const CIMObjectPath& inClassName) | CIMPropertyList CQLSelectStatementRep::getWherePropertyList(const CIMObjectPath& inClassName) |
{ | { |
PEG_METHOD_ENTER (TRC_CQL, "CQLSelectStatementRep::getWherePropertyList"); | PEG_METHOD_ENTER (TRC_CQL, "CQLSelectStatementRep::getWherePropertyList"); |
|
try |
|
{ |
return getPropertyListInternal(inClassName, false, true); | return getPropertyListInternal(inClassName, false, true); |
} | } |
|
catch (CIMException& ce) |
|
{ |
|
PEG_TRACE_STRING (TRC_CQL, Tracer::LEVEL4,"cim exception"); |
|
PEG_METHOD_EXIT(); |
|
if (ce.getCode() == CIM_ERR_NOT_FOUND || |
|
ce.getCode() == CIM_ERR_INVALID_CLASS) |
|
{ |
|
MessageLoaderParms parms("CQL.CQLSelectStatementRep.GPL_CLASS_NOT_EXIST", |
|
"A class required to determine the property list was not found."); |
|
throw CQLRuntimeException(parms); |
|
} |
|
else |
|
{ |
|
throw ce; |
|
} |
|
} |
|
} |
| |
CIMPropertyList CQLSelectStatementRep::getPropertyListInternal(const CIMObjectPath& inClassName, | CIMPropertyList CQLSelectStatementRep::getPropertyListInternal(const CIMObjectPath& inClassName, |
Boolean includeSelect, | Boolean includeSelect, |
|
|
| |
if (isWildcard) | if (isWildcard) |
{ | { |
// If any wildcard is found then all properties are required. |
// This indicates that a wildcard was found, |
|
// and the class passed in was the FROM class. |
// Return null property list to indicate all properties required. | // Return null property list to indicate all properties required. |
return CIMPropertyList(); | return CIMPropertyList(); |
} | } |