Package org.labkey.remoteapi.query
Class TruncateTableResponse
java.lang.Object
org.labkey.remoteapi.CommandResponse
org.labkey.remoteapi.query.TruncateTableResponse
Response object used for commands that derive from TruncateTableCommand.
This response object provides helper methods for accessing the important
bits of the parsed response data.
-
Constructor Summary
ConstructorsConstructorDescriptionTruncateTableResponse
(String text, int statusCode, String contentType, org.json.JSONObject json) Constructs a new TruncateTableResponse given the response text and status code -
Method Summary
Modifier and TypeMethodDescriptionReturns the 'command' response property.Returns the 'deletedRows' response property.Returns the 'queryName' response property.Returns the 'schemaName' response property.Methods inherited from class org.labkey.remoteapi.CommandResponse
findObject, getContentType, getParsedData, getProperty, getProperty, getStatusCode, getText
-
Constructor Details
-
TruncateTableResponse
public TruncateTableResponse(String text, int statusCode, String contentType, org.json.JSONObject json) Constructs a new TruncateTableResponse given the response text and status code- Parameters:
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)
-
-
Method Details
-
getDeletedRowCount
Returns the 'deletedRows' response property.- Returns:
- The number of rows deleted by the command, or null if this property was not present in the response.
-
getSchemaName
Returns the 'schemaName' response property.- Returns:
- The schema name affected by the command, or null if this property was not present in the response.
-
getQueryName
Returns the 'queryName' response property.- Returns:
- The query name affected by the command, or null if this property was not present in the response.
-
getCommand
Returns the 'command' response property.- Returns:
- The command executed, or null if this property was not present in the response.
-