public class SaveRowsResponse extends CommandResponse
| Constructor and Description |
|---|
SaveRowsResponse(java.lang.String text,
int statusCode,
java.lang.String contentType,
org.json.simple.JSONObject json,
SaveRowsCommand sourceCommand)
Constructs a new SaveRowsResponse given the response text and status code
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCommand()
Returns the 'command' response property.
|
java.lang.String |
getQueryName()
Returns the 'queryName' response property.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getRows()
Returns the list of rows from the parsed response data.
|
java.lang.Number |
getRowsAffected()
Returns the 'rowsAffected' response property.
|
java.lang.String |
getSchemaName()
Returns the 'schemaName' response property.
|
findObject, getContentType, getParsedData, getProperty, getProperty, getRequiredVersion, getSourceCommand, getStatusCode, getTextpublic SaveRowsResponse(java.lang.String text,
int statusCode,
java.lang.String contentType,
org.json.simple.JSONObject json,
SaveRowsCommand sourceCommand)
text - The response text.statusCode - The HTTP status code.contentType - The Content-Type header value.json - The parsed JSONObject (or null if JSON was not returned).sourceCommand - A copy of the command that created this responsepublic java.lang.Number getRowsAffected()
public java.lang.String getSchemaName()
public java.lang.String getQueryName()
public java.lang.String getCommand()
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRows()
for (Map<String,Object> row : response.getRows())
{
Number key = (Number)row.get("Key");
// use Number.intValue(), doubleValue(), longValue(), etc to get various primitive types
}