public class GetQueryDetailsCommand extends Command<GetQueryDetailsResponse>
Command.CommonParameters, Command.Response
CONTENT_TYPE_JSON
Constructor and Description |
---|
GetQueryDetailsCommand(GetQueryDetailsCommand source) |
GetQueryDetailsCommand(java.lang.String schemaName,
java.lang.String queryName)
Constructs the command given a particular schema name.
|
Modifier and Type | Method and Description |
---|---|
GetQueryDetailsCommand |
copy()
Returns a copy of this object.
|
protected GetQueryDetailsResponse |
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 |
getQueryName() |
java.lang.String |
getSchemaName() |
void |
setQueryName(java.lang.String queryName) |
void |
setSchemaName(java.lang.String schemaName) |
_execute, checkThrowError, createRequest, execute, getActionName, getActionUrl, getControllerName, getHttpRequest, getParamValueAsString, getQueryString, getRequiredVersion, getTimeout, setParameters, setRequiredVersion, setTimeout
public GetQueryDetailsCommand(java.lang.String schemaName, java.lang.String queryName)
schemaName
- The schema name.queryName
- The name of the query (e.g., table) for the corresponding schema.public GetQueryDetailsCommand(GetQueryDetailsCommand source)
public java.lang.String getSchemaName()
public void setSchemaName(java.lang.String schemaName)
public java.lang.String getQueryName()
public void setQueryName(java.lang.String queryName)
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
Command
getParameters
in class Command<GetQueryDetailsResponse>
protected GetQueryDetailsResponse createResponse(java.lang.String text, int status, java.lang.String contentType, org.json.simple.JSONObject json)
Command
Override this method to create an instance of a different class that extends CommandResponse
createResponse
in class Command<GetQueryDetailsResponse>
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 GetQueryDetailsCommand copy()
Command
copy
in class Command<GetQueryDetailsResponse>