Package org.metricshub.winrm
Class WqlQuery
java.lang.Object
org.metricshub.winrm.WqlQuery
-
Method Summary
Modifier and TypeMethodDescriptionGet the properties of the SELECT statement, in lower case.Get the map of subproperties to retrieve inside each selected property, in lower case.static WqlQuerynewInstance(CharSequence wql) Parses the specified WQL query and returns a new instance of WqlQuery Supported WQL syntaxes: SELECT * FROM Class SELECT PropA, PropB FROM Class SELECT PropA, PropB FROM Class WHERE condition ASSOCIATORS OF { objectId } ASSOCIATORS OF { objectId } WHERE condition SELECT * FROM ASSOCIATORS OF { objectId } WHERE condition SELECT PropA, PropB FROM ASSOCIATORS OF { objectId } WHERE conditiontoString()
-
Method Details
-
newInstance
Parses the specified WQL query and returns a new instance of WqlQuery Supported WQL syntaxes:- SELECT * FROM Class
- SELECT PropA, PropB FROM Class
- SELECT PropA, PropB FROM Class WHERE condition
- ASSOCIATORS OF { objectId }
- ASSOCIATORS OF { objectId } WHERE condition
- SELECT * FROM ASSOCIATORS OF { objectId } WHERE condition
- SELECT PropA, PropB FROM ASSOCIATORS OF { objectId } WHERE condition
- Parameters:
wql- The WQL query to parse- Returns:
- a new WqlQuery instance
- Throws:
WqlQuerySyntaxException- when the specified WQL is invalid and cannot be parsedIllegalArgumentException- if wql is null
-
getSelectedProperties
Get the properties of the SELECT statement, in lower case.- Returns:
- an unmodifiable view of the selected properties (empty for
SELECT *)
-
getSubPropertiesMap
Get the map of subproperties to retrieve inside each selected property, in lower case.- Returns:
- an unmodifiable view of the property to subproperties map (the subproperty sets are unmodifiable too)
-
getCleanWql
-
toString
-