Module wmiutils :: Class WmiQueryBuilder
[hide private]

Class WmiQueryBuilder

source code

BaseWmiQueryBuilder --+
                      |
                     WmiQueryBuilder

This class represents QueryBuilder for WMI protocol.

Instance Methods [hide private]
 
__init__(self, objectName) source code
 
buildQuery(self)
This method builds WMI query using the following template: SELECT property [, property ...] FROM objectName [WHERE whereClause]
source code
 
parseResults(self, resultSet)
resultSet -> list(ResultItem) This method forms the result of WMI query.
source code

Inherited from BaseWmiQueryBuilder: addQueryElement, addWhereClause, addWmiObjectProperties, getObjectName

Class Variables [hide private]
  WMI_QUERY_TEMPLATE = 'SELECT %s FROM %s'
Method Details [hide private]

__init__(self, objectName)
(Constructor)

source code 
Parameters:
  • objectName - the name of the queried CIM class
Overrides: BaseWmiQueryBuilder.__init__
(inherited documentation)

buildQuery(self)

source code 

This method builds WMI query using the following template: SELECT property [, property ...] FROM objectName [WHERE whereClause]

Overrides: BaseWmiQueryBuilder.buildQuery

parseResults(self, resultSet)

source code 

resultSet -> list(ResultItem) This method forms the result of WMI query. The result is a list of objects of type ResultItem with dynamically added properties corresponding to the queried properties names.

Overrides: BaseWmiQueryBuilder.parseResults