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.ERP request from which this result originates.Deprecated.Get the list of all result elements.Deprecated.Deprecated.boolean
Deprecated.Indicates whether the element with the given name exists in the result.boolean
Deprecated.Check whether there are error messages.boolean
Deprecated.Check whether the request failed.boolean
Deprecated.Indicates whether information messages occurred during BAPI execution.boolean
Deprecated.Indicates whether success messages occurred during BAPI execution.boolean
Deprecated.Indicates whether warning messages occurred during BAPI execution.boolean
isEmpty()
Deprecated.Check whether result list is empty.iterator()
Deprecated.int
size()
Deprecated.Get the size of the result list.toString()
Deprecated.boolean
Deprecated.Check whether the request was successful.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
ResultElement
representing 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
ResultElement
representing 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
ResultElement
representing 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
CollectedResultCollection
representing 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.Description copied from interface:RequestResult
ERP request from which this result originates.- Specified by:
getRequest
in interfaceRequestResult<RequestT extends Request<RequestT,
RequestResultT>, RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT, RequestResultT>> - Returns:
- The ERP request.
-
getSuccessMessages
Deprecated. -
getInformationMessages
Deprecated. -
getWarningMessages
Deprecated. -
getErrorMessages
Deprecated.
-