public class GetQueriesCommand extends Command<GetQueriesResponse>
Command.CommonParameters, Command.ResponseCONTENT_TYPE_JSON| Constructor and Description |
|---|
GetQueriesCommand(GetQueriesCommand source) |
GetQueriesCommand(java.lang.String schemaName)
Constructs the command given a particular schema name.
|
| Modifier and Type | Method and Description |
|---|---|
GetQueriesCommand |
copy()
Returns a copy of this object.
|
protected GetQueriesResponse |
createResponse(java.lang.String text,
int status,
java.lang.String contentType,
org.json.simple.JSONObject json)
Creates an instance of the response class, initialized with
the response text, the HTTP status code, and parsed JSONObject.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Returns the current parameter map, or null if a map has not yet been set.
|
java.lang.String |
getSchemaName() |
boolean |
isIncludeColumns() |
boolean |
isIncludeUserQueries() |
void |
setIncludeColumns(boolean includeColumns)
Pass false to omit information about the columns within each query.
|
void |
setIncludeUserQueries(boolean includeUserQueries)
Pass false to this method to omit user-defined queries from the results.
|
void |
setSchemaName(java.lang.String schemaName) |
_execute, createRequest, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeoutpublic GetQueriesCommand(java.lang.String schemaName)
schemaName - The schema name.public GetQueriesCommand(GetQueriesCommand source)
public java.lang.String getSchemaName()
public void setSchemaName(java.lang.String schemaName)
public boolean isIncludeUserQueries()
public void setIncludeUserQueries(boolean includeUserQueries)
includeUserQueries - Set to false to omit user-defined queries.public boolean isIncludeColumns()
public void setIncludeColumns(boolean includeColumns)
includeColumns - Set to false to omit column information.public java.util.Map<java.lang.String,java.lang.Object> getParameters()
CommandgetParameters in class Command<GetQueriesResponse>protected GetQueriesResponse createResponse(java.lang.String text, int status, java.lang.String contentType, org.json.simple.JSONObject json)
CommandOverride this method to create an instance of a different class that extends CommandResponse
createResponse in class Command<GetQueriesResponse>text - The response text from the server.status - The HTTP status code.contentType - The Content-Type header value.json - The parsed JSONObject (or null if no JSON was returned).public GetQueriesCommand copy()
Commandcopy in class Command<GetQueriesResponse>