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 Summary
Modifier and TypeMethodDescriptionDeprecated.Collects the resulting elements with the given name from the parameters of this result.get(int index) Deprecated.Returns the element with the given name from this result.Deprecated.Returns the element with the given name from this result.Deprecated.io.vavr.control.Option<ResultElement>getIfPresent(String elementName) Deprecated.Returns the element with the given name from this result.Deprecated.Deprecated.Deprecated.Get the list of all result elements.Deprecated.Deprecated.booleanDeprecated.Indicates whether the element with the given name exists in the result.booleanDeprecated.Check whether there are error messages.booleanDeprecated.Check whether the request failed.booleanDeprecated.Indicates whether information messages occurred during BAPI execution.booleanDeprecated.Indicates whether success messages occurred during BAPI execution.booleanDeprecated.Indicates whether warning messages occurred during BAPI execution.booleanisEmpty()Deprecated.Check whether result list is empty.iterator()Deprecated.intsize()Deprecated.Get the size of the result list.toString()Deprecated.booleanDeprecated.Check whether the request was successful.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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
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
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
ResultElementrepresenting the corresponding element.
-
get
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
ResultElementrepresenting the corresponding element. - Throws:
IndexOutOfBoundsException- If the given index is out of bounds.
-
get
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
ResultElementrepresenting the corresponding element. - Throws:
IllegalArgumentException- If the element could not be found.
-
collect
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
CollectedResultCollectionrepresenting the corresponding elements.
-
getResultElements
Deprecated.Get the list of all result elements.- Returns:
- A list of all result elements.
-
iterator
Deprecated. -
toString
Deprecated. -
getRequest
Deprecated.- Specified by:
getRequestin interfaceRequestResult<RequestT extends Request<RequestT,RequestResultT>, RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT, RequestResultT>>
-
getSuccessMessages
Deprecated. -
getInformationMessages
Deprecated. -
getWarningMessages
Deprecated. -
getErrorMessages
Deprecated.
-