Package org.labkey.remoteapi.query
Class GetQueriesResponse
java.lang.Object
org.labkey.remoteapi.CommandResponse
org.labkey.remoteapi.query.GetQueriesResponse
Represents the response from a GetQueriesCommand.
-
Constructor Summary
ConstructorsConstructorDescriptionGetQueriesResponse
(String text, int statusCode, String contentType, org.json.JSONObject json) -
Method Summary
Modifier and TypeMethodDescriptiongetColumnNames
(String queryName) Returns the list of column names available in the given query name.Returns the list of available query names in the given schema.Returns the schema name the queries in this response belong to.boolean
isUserDefined
(String queryName) Methods inherited from class org.labkey.remoteapi.CommandResponse
findObject, getContentType, getParsedData, getProperty, getProperty, getStatusCode, getText
-
Constructor Details
-
GetQueriesResponse
-
-
Method Details
-
getSchemaName
Returns the schema name the queries in this response belong to.- Returns:
- The schema name.
-
getQueryNames
Returns the list of available query names in the given schema.- Returns:
- List of query names.
-
isUserDefined
- Parameters:
queryName
- The query name to find.- Returns:
- true if the query of interest is known to be a custom LabKey SQL query, false otherwise.
-
getColumnNames
Returns the list of column names available in the given query name. Note that if the command was set to not include column information, this will return an empty list.- Parameters:
queryName
- The query name to find.- Returns:
- The list of columns available within that query, or an empty list if not found.
-