@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class Query extends java.lang.Object
Constructor and Description |
---|
Query() |
Query(org.json.JSONObject rawQuery) |
Modifier and Type | Method and Description |
---|---|
IFilter |
getFilters() |
ISort |
getSorters() |
boolean |
isUnparsed() |
void |
parseQuery() |
void |
parseQuery(DataShapeDefinition dataShape) |
void |
parseQuery(InfoTable infoTable) |
InfoTable |
processQuery(InfoTable input) |
void |
setFilters(IFilter filters) |
void |
setSorters(ISort sorters) |
org.json.JSONObject |
toJSON()
Produces a JSON representation of this query. |
@ThingworxExtensionApiMethod(since={6,6}) public Query(org.json.JSONObject rawQuery)
@ThingworxExtensionApiMethod(since={6,6}) public Query()
@ThingworxExtensionApiMethod(since={6,6}) public boolean isUnparsed()
@ThingworxExtensionApiMethod(since={6,6}) public void parseQuery(DataShapeDefinition dataShape) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void parseQuery(InfoTable infoTable) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void parseQuery() throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public ISort getSorters()
@ThingworxExtensionApiMethod(since={6,6}) public void setSorters(ISort sorters)
@ThingworxExtensionApiMethod(since={6,6}) public IFilter getFilters()
@ThingworxExtensionApiMethod(since={6,6}) public void setFilters(IFilter filters)
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject toJSON() throws org.json.JSONException
CommonPropertyNames.PROP_FILTERS
: filter JSON (as per IFilter.toJSON()
), if
non-null
CommonPropertyNames.PROP_SORTS
: query JSON (as per ISort.toJSONArray()
), if
non-null
org.json.JSONException
- Upon internal errors@ThingworxExtensionApiMethod(since={6,6}) public InfoTable processQuery(InfoTable input) throws java.lang.Exception
java.lang.Exception
- If an error occurs