Class DropResponse

java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.DropResponse
All Implemented Interfaces:
RESTMessage, RESTResponse

public class DropResponse extends BaseResponse
Represents a response for a drop operation.
  • Constructor Details

    • DropResponse

      public DropResponse(Boolean dropped)
      Constructor for DropResponse.
      Parameters:
      dropped - Whether the drop operation was successful.
    • DropResponse

      public DropResponse(Boolean dropped, Boolean deleted)
      Constructor for DropResponse with both dropped and deleted fields.
      Parameters:
      dropped - Whether the drop operation was successful.
      deleted - Whether the delete operation was successful (used for backward compatibility).
    • DropResponse

      public DropResponse()
      Default constructor for DropResponse (used by Jackson deserializer).
  • Method Details

    • dropped

      public Boolean dropped()
      Returns whether the drop operation was successful.
      Returns:
      True if the drop operation was successful, otherwise false.
    • deleted

      public Boolean deleted()
      Returns whether the delete operation was successful. This method will only be called in test.
      Returns:
      True if the delete operation was successful, otherwise false.
    • validate

      public void validate()
      Description copied from class: BaseResponse
      Validates the response code.
      Specified by:
      validate in interface RESTMessage
      Overrides:
      validate in class BaseResponse