Module wmiutils :: Class BaseWmiQueryBuilder
[hide private]

Class BaseWmiQueryBuilder

source code

This is a base class for all QueryBuilders. QueryBuilder is a class which provides single interface to compose WMI query regardless to the underlying protocol

Instance Methods [hide private]
 
__init__(self, objectName) source code
 
addQueryElement(self, columnName, attributeName=None, type='string') source code
 
addWmiObjectProperties(self, *columnNames) source code
 
addWhereClause(self, whereClause)
This method allows to add 'WHERE' clause to the WMI query
source code
 
buildQuery(self)
Abstract method for query buidling
source code
 
parseResults(self, resultSet)
Abstract method for results parsing
source code
 
getObjectName(self)
Returns queried CIM class name
source code
Method Details [hide private]

__init__(self, objectName)
(Constructor)

source code 
Parameters:
  • objectName - the name of the queried CIM class

addQueryElement(self, columnName, attributeName=None, type='string')

source code 

Deprecated: This method should not be used by clients

See Also: addWmiObjectProperties method instead

addWmiObjectProperties(self, *columnNames)

source code 
Parameters:
  • columnNames - the list of the names of the queried properties, order of properties if not important.