Class AbstractRemoteFunctionRequestResult<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>>

java.lang.Object
com.sap.cloud.sdk.s4hana.connectivity.rfc.AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>
Type Parameters:
RequestT - The generic request type.
RequestResultT - The generic result type.
All Implemented Interfaces:
RequestResult<RequestT,RequestResultT>, Iterable<ResultElement>
Direct Known Subclasses:
BapiRequestResult, RfmRequestResult

@Deprecated public abstract class AbstractRemoteFunctionRequestResult<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>> extends Object implements RequestResult<RequestT,RequestResultT>, Iterable<ResultElement>
Deprecated.
This module will be discontinued, along with its classes and methods.
Abstract class for RemoteFunctionRequestResult.
  • Method Details

    • hasSuccessMessages

      public boolean hasSuccessMessages()
      Deprecated.
      Indicates whether success messages occurred during BAPI execution.
      Returns:
      True if there is a success message.
    • hasInformationMessages

      public boolean hasInformationMessages()
      Deprecated.
      Indicates whether information messages occurred during BAPI execution.
      Returns:
      True if there is an information message.
    • hasWarningMessages

      public boolean hasWarningMessages()
      Deprecated.
      Indicates whether warning messages occurred during BAPI execution.
      Returns:
      True if there is a warning message.
    • hasFailed

      public boolean hasFailed()
      Deprecated.
      Check whether the request failed.
      Returns:
      Checks whether the call failed, i.e. whether the result contains error messages.
    • wasSuccessful

      public boolean wasSuccessful()
      Deprecated.
      Check whether the request was successful.
      Returns:
      Whether the BAPI request was successful.
    • hasErrorMessages

      public boolean hasErrorMessages()
      Deprecated.
      Check whether there are error messages.
      Returns:
      Whether error messages occurred during BAPI execution.
    • size

      public int size()
      Deprecated.
      Get the size of the result list.
      Returns:
      The number of elements in the result.
    • isEmpty

      public boolean isEmpty()
      Deprecated.
      Check whether result list is empty.
      Returns:
      Whether this result has any elements.
    • has

      public boolean has(@Nonnull String elementName)
      Deprecated.
      Indicates whether the element with the given name exists in the result.
      Parameters:
      elementName - The name of the element to be accessed.
      Returns:
      True if a result element can be found under that name.
    • getIfPresent

      @Nonnull public io.vavr.control.Option<ResultElement> getIfPresent(@Nonnull String elementName)
      Deprecated.
      Returns the element with the given name from this result.
      Parameters:
      elementName - The name of the element to be accessed.
      Returns:
      If existing, an optional instance of ResultElement representing the corresponding element.
    • get

      @Nonnull public ResultElement get(int index) throws IndexOutOfBoundsException
      Deprecated.
      Returns the element with the given name from this result.
      Parameters:
      index - The index of the element to be accessed.
      Returns:
      An instance of ResultElement representing the corresponding element.
      Throws:
      IndexOutOfBoundsException - If the given index is out of bounds.
    • get

      @Nonnull public ResultElement get(@Nonnull String elementName) throws IllegalArgumentException
      Deprecated.
      Returns the element with the given name from this result.
      Parameters:
      elementName - The name of the element to be accessed.
      Returns:
      An instance of ResultElement representing the corresponding element.
      Throws:
      IllegalArgumentException - If the element could not be found.
    • collect

      @Nullable public CollectedResultCollection collect(@Nonnull String elementName)
      Deprecated.
      Collects the resulting elements with the given name from the parameters of this result.
      Parameters:
      elementName - The name of the nested elements to be collected.
      Returns:
      An instance of CollectedResultCollection representing the corresponding elements.
    • getResultElements

      @Nonnull public ArrayList<ResultElement> getResultElements()
      Deprecated.
      Get the list of all result elements.
      Returns:
      A list of all result elements.
    • iterator

      @Nonnull public Iterator<ResultElement> iterator()
      Deprecated.
      Specified by:
      iterator in interface Iterable<RequestT extends Request<RequestT,RequestResultT>>
    • toString

      @Nonnull public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • getRequest

      public RequestT getRequest()
      Deprecated.
      Description copied from interface: RequestResult
      ERP request from which this result originates.
      Specified by:
      getRequest in interface RequestResult<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>>
      Returns:
      The ERP request.
    • getSuccessMessages

      public List<RemoteFunctionMessage> getSuccessMessages()
      Deprecated.
    • getInformationMessages

      public List<RemoteFunctionMessage> getInformationMessages()
      Deprecated.
    • getWarningMessages

      public List<RemoteFunctionMessage> getWarningMessages()
      Deprecated.
    • getErrorMessages

      public List<RemoteFunctionMessage> getErrorMessages()
      Deprecated.