Class TruncateTableResponse

java.lang.Object
org.labkey.remoteapi.CommandResponse
org.labkey.remoteapi.query.TruncateTableResponse

public class TruncateTableResponse extends CommandResponse
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 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

      public Integer 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

      public String 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

      public String 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

      public String getCommand()
      Returns the 'command' response property.
      Returns:
      The command executed, or null if this property was not present in the response.