RequestT
- The generic request type.RequestResultT
- The generic result type.public abstract class AbstractRemoteFunctionRequest<RequestT extends AbstractRemoteFunctionRequest<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>> extends Request<RequestT,RequestResultT>
Modifier and Type | Field and Description |
---|---|
protected CommitStrategy |
commitStrategy
The strategy of commit handling in the remote system.
|
protected String |
constructedByMethod |
protected String |
functionName
The name of the remote function to invoke.
|
protected RemoteFunctionRequestErrorHandler |
remoteFunctionRequestErrorHandler
The result handler that is invoked after the request execution.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractRemoteFunctionRequest(String functionName,
CommitStrategy commitStrategy,
String constructedByMethod)
Constructor for remote function request.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
CommitStrategy |
getCommitStrategy()
Get the commit strategy.
|
String |
getConstructedByMethod() |
String |
getFunctionName()
Get the function name.
|
Collection<ErpTypeConverter<?>> |
getTypeConverters()
Get the ERP type converters.
|
int |
hashCode() |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
ignoringErrors()
Specifies to invoke a
RemoteFunctionRequestErrorHandler after the request execution which does not
inspect the request result and, therefore, does not throw a
RemoteFunctionException . |
protected abstract RequestT |
instance()
Convenience method that returns the current instance.
|
boolean |
isPerformingTransactionalCommit()
Get boolean indicator whether transactional commit is being performed.
|
protected com.sap.cloud.sdk.s4hana.connectivity.rfc.Parameter<?> |
newParameter(String name,
String dataType,
com.sap.cloud.sdk.s4hana.connectivity.rfc.ParameterType parameterType,
com.sap.cloud.sdk.s4hana.connectivity.rfc.ValueType valueType)
Adds a new parameter with a new single value reference.
|
protected <T> void |
newParameterWithValue(String name,
String dataType,
com.sap.cloud.sdk.s4hana.connectivity.rfc.ParameterType parameterType,
com.sap.cloud.sdk.s4hana.connectivity.rfc.ValueType valueType,
T value,
ErpTypeConverter<T> typeConverter)
Adds a new parameter with a single value.
|
protected ArrayList<com.sap.cloud.sdk.s4hana.connectivity.rfc.Value<?>> |
newParameterWithValueList(String name,
String dataType,
com.sap.cloud.sdk.s4hana.connectivity.rfc.ParameterType parameterType,
com.sap.cloud.sdk.s4hana.connectivity.rfc.ValueType valueType)
Adds a new parameter with new value list reference.
|
protected void |
newParameterWithValueList(String name,
String dataType,
com.sap.cloud.sdk.s4hana.connectivity.rfc.ParameterType parameterType,
com.sap.cloud.sdk.s4hana.connectivity.rfc.ValueType valueType,
ArrayList<com.sap.cloud.sdk.s4hana.connectivity.rfc.Value<?>> valueList)
Adds a new parameter with a value list.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
propagatingErrorsAsExceptions()
Specifies to invoke a
RemoteFunctionRequestErrorHandler after the request execution which inspects the
request result and throws a RemoteFunctionException
or one of its more-specific exceptions depending on the returned error messages of the request. |
String |
toString() |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withErrorHandler(RemoteFunctionRequestErrorHandler remoteFunctionRequestErrorHandler)
Specifies to invoke the provided
RemoteFunctionRequestErrorHandler after the request has been executed. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType)
Adds an exporting parameter reflected by a data element.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
BigDecimal value)
Adds an exporting
BigDecimal parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
BigInteger value)
Adds an exporting
BigInteger parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Boolean value)
Adds an exporting
Boolean parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Byte value)
Adds an exporting
Byte parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Character value)
Adds an exporting
Character parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Double value)
Adds an exporting
Double parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Float value)
Adds an exporting
Float parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Integer value)
Adds an exporting
Integer parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
LocalDate value)
Adds an exporting
LocalDate parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Locale value)
Adds an exporting
Locale parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
LocalTime value)
Adds an exporting
LocalTime parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Long value)
Adds an exporting
Long parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Short value)
Adds an exporting
Short parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
String value)
Adds an exporting
String parameter reflected by a data element. |
<T extends ErpType<T>> |
withExporting(String name,
String dataType,
T value)
Adds an exporting parameter reflected by a data element.
|
<T> AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
T value,
ErpTypeConverter<T> typeConverter)
Adds an exporting parameter reflected by a data element.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExporting(String name,
String dataType,
Year value)
Adds an exporting
Year parameter. |
ParameterFields<RequestT> |
withExportingFields(String name,
String dataType)
Adds an exporting parameter reflected by a structure.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withExportingFields(String name,
String dataType,
Fields fields)
Adds an exporting parameter reflected by a structure.
|
Table<RequestT> |
withExportingTable(String name,
String dataType)
Adds an exporting parameter reflected by a table type.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType)
Adds an importing parameter reflected by a data element.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
BigDecimal value)
Adds a importing
BigDecimal parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
BigInteger value)
Adds a importing
BigInteger parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Boolean value)
Adds a importing
Boolean parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Byte value)
Adds a importing
Byte parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Character value)
Adds a importing
Character parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Double value)
Adds a importing
Double parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Float value)
Adds a importing
Float parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Integer value)
Adds a importing
Integer parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
LocalDate value)
Adds a importing
LocalDate parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Locale value)
Adds a importing
Locale parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
LocalTime value)
Adds a importing
LocalTime parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Long value)
Adds a importing
Long parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Short value)
Adds a importing
Short parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
String value)
Adds a importing
String parameter reflected by a data element. |
<T extends ErpType<T>> |
withImporting(String name,
String dataType,
T value)
Adds an importing parameter reflected by a data element.
|
<T> AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
T value,
ErpTypeConverter<T> typeConverter)
Adds an importing parameter reflected by a data element.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImporting(String name,
String dataType,
Year value)
Adds a importing
Year parameter reflected by a data element. |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImportingAsReturn(String dataType)
Adds an importing parameter as a return parameter with the name defined by
RETURN_PARAMETER . |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImportingAsReturn(String name,
String dataType)
Adds an importing parameter as a return parameter.
|
ParameterFields<RequestT> |
withImportingFields(String name,
String dataType)
Adds an importing parameter reflected by a structure.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withImportingFields(String name,
String dataType,
Fields fields)
Adds an importing parameter reflected by a structure.
|
Table<RequestT> |
withImportingTable(String name,
String dataType)
Adds an importing parameter reflected by a table type.
|
Table<RequestT> |
withTable(String name,
String dataType)
Adds a table parameter.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withTableAsReturn(String dataType)
Adds a table parameter as a return parameter with the name defined by
RETURN_PARAMETER . |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withTableAsReturn(String name,
String dataType)
Adds a table parameter as a return parameter.
|
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withTypeConverters(ErpTypeConverter<?>... typeConverters)
Delegates to
withTypeConverters(Iterable) . |
AbstractRemoteFunctionRequest<RequestT,RequestResultT> |
withTypeConverters(Iterable<ErpTypeConverter<?>> typeConverters)
Registers the given
ErpTypeConverter s. |
execute, getCustomHttpHeaders, getLongRunningRequestThreshold, getReadAccessData, getRequestId, getThis, setLongRunningRequestThreshold, withHeader, withHeader, withSameCustomHttpHeadersAs
protected final String functionName
protected final CommitStrategy commitStrategy
CommitStrategy
protected RemoteFunctionRequestErrorHandler remoteFunctionRequestErrorHandler
RemoteFunctionRequestErrorHandler
protected AbstractRemoteFunctionRequest(@Nonnull String functionName, @Nonnull CommitStrategy commitStrategy, @Nullable String constructedByMethod)
functionName
- The function name.commitStrategy
- The commit strategy.constructedByMethod
- The name of the method from which this constructor is being called.@Nonnull protected abstract RequestT instance()
@Nonnull public Collection<ErpTypeConverter<?>> getTypeConverters()
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withTypeConverters(@Nonnull Iterable<ErpTypeConverter<?>> typeConverters)
ErpTypeConverter
s. Replaces existing converters for already existing types that have
been added before.typeConverters
- The type converters to be added.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withTypeConverters(@Nonnull ErpTypeConverter<?>... typeConverters)
withTypeConverters(Iterable)
.typeConverters
- The type converters to be added.@Nonnull public String getFunctionName()
@Nonnull public CommitStrategy getCommitStrategy()
public boolean isPerformingTransactionalCommit()
true
if a transactional commit will be performed after invoking the function, false
otherwise.@Nonnull protected com.sap.cloud.sdk.s4hana.connectivity.rfc.Parameter<?> newParameter(@Nonnull String name, @Nonnull String dataType, @Nonnull com.sap.cloud.sdk.s4hana.connectivity.rfc.ParameterType parameterType, @Nonnull com.sap.cloud.sdk.s4hana.connectivity.rfc.ValueType valueType)
name
- The parameter name.dataType
- The ABAP data type of the parameter.parameterType
- The parameter type.valueType
- The value type.protected <T> void newParameterWithValue(@Nonnull String name, @Nonnull String dataType, @Nonnull com.sap.cloud.sdk.s4hana.connectivity.rfc.ParameterType parameterType, @Nonnull com.sap.cloud.sdk.s4hana.connectivity.rfc.ValueType valueType, @Nullable T value, @Nullable ErpTypeConverter<T> typeConverter)
T
- The generic value type.name
- The parameter name.dataType
- The ABAP data type of the parameter.parameterType
- The parameter type.valueType
- The value type.value
- The parameter value.typeConverter
- The parameter value type converter.protected void newParameterWithValueList(@Nonnull String name, @Nonnull String dataType, @Nonnull com.sap.cloud.sdk.s4hana.connectivity.rfc.ParameterType parameterType, @Nonnull com.sap.cloud.sdk.s4hana.connectivity.rfc.ValueType valueType, @Nullable ArrayList<com.sap.cloud.sdk.s4hana.connectivity.rfc.Value<?>> valueList)
name
- The parameter name.dataType
- The ABAP data type of the parameter.parameterType
- The parameter type.valueType
- The value type.valueList
- The value list to be added.@Nonnull protected ArrayList<com.sap.cloud.sdk.s4hana.connectivity.rfc.Value<?>> newParameterWithValueList(@Nonnull String name, @Nonnull String dataType, @Nonnull com.sap.cloud.sdk.s4hana.connectivity.rfc.ParameterType parameterType, @Nonnull com.sap.cloud.sdk.s4hana.connectivity.rfc.ValueType valueType)
name
- The parameter name.dataType
- The ABAP data type of the parameter.parameterType
- The parameter type.valueType
- The value type.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType)
Note: Exporting refers to the point of view of the caller. Thus, when a parameter is declared as importing on ABAP side, you have to specify it as exporting here.
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public <T extends ErpType<T>> AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable T value)
Note: Exporting refers to the point of view of the caller. Thus, when a parameter is declared as importing on ABAP side, you have to specify it as exporting here.
T
- The generic value type.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The value of the parameter.@Nonnull public <T> AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable T value, @Nullable ErpTypeConverter<T> typeConverter)
Note: Exporting refers to the point of view of the caller. Thus, when a parameter is declared as importing on ABAP side, you have to specify it as exporting here.
T
- The generic value type.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The value of the parameter.typeConverter
- A type converter defining how to convert the type of the given value to its ERP representation.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Boolean value)
Boolean
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Byte value)
Byte
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Character value)
Character
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable String value)
String
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Short value)
Short
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Integer value)
Integer
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Long value)
Long
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Float value)
Float
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Double value)
Double
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable BigInteger value)
BigInteger
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable BigDecimal value)
BigDecimal
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Locale value)
Locale
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable Year value)
Year
parameter. reflected by a data elementname
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable LocalDate value)
LocalDate
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExporting(@Nonnull String name, @Nonnull String dataType, @Nullable LocalTime value)
LocalTime
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withExporting(String, String, Object, ErpTypeConverter)
@Nonnull public ParameterFields<RequestT> withExportingFields(@Nonnull String name, @Nonnull String dataType)
Note: Exporting refers to the point of view of the caller. Thus, when a parameter is declared as importing on ABAP side, you have to specify it as exporting here.
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withExportingFields(@Nonnull String name, @Nonnull String dataType, @Nonnull Fields fields)
Note: Exporting refers to the point of view of the caller. Thus, when a parameter is declared as importing on ABAP side, you have to specify it as exporting here.
name
- The parameter name.dataType
- The ABAP data type of the parameter.fields
- The exporting fields.@Nonnull public Table<RequestT> withExportingTable(@Nonnull String name, @Nonnull String dataType)
Note: Exporting refers to the point of view of the caller. Thus, when a parameter is declared as importing on ABAP side, you have to specify it as exporting here.
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType)
Note that importing is related to the point of view of the caller. Thus, when a parameter is declared as exporting on ABAP side, you have to specify it as importing here.
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public <T extends ErpType<T>> AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable T value)
Note that importing is related to the point of view of the caller. Thus, when a parameter is declared as exporting on ABAP side, you have to specify it as importing here.
T
- The generic value type.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The value of the parameter.@Nonnull public <T> AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(String name, String dataType, T value, ErpTypeConverter<T> typeConverter)
Note that importing is related to the point of view of the caller. Thus, when a parameter is declared as exporting on ABAP side, you have to specify it as importing here.
T
- The generic value type.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The value of the parameter.typeConverter
- A type converter defining how to convert the type of the given value to its ERP representation.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Boolean value)
Boolean
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Byte value)
Byte
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Character value)
Character
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable String value)
String
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Short value)
Short
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Integer value)
Integer
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Long value)
Long
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Float value)
Float
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Double value)
Double
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable BigInteger value)
BigInteger
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable BigDecimal value)
BigDecimal
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Locale value)
Locale
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable Year value)
Year
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable LocalDate value)
LocalDate
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImporting(@Nonnull String name, @Nonnull String dataType, @Nullable LocalTime value)
LocalTime
parameter reflected by a data element.name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The optional parameter value.withImporting(String, String, Object, ErpTypeConverter)
@Nonnull public ParameterFields<RequestT> withImportingFields(@Nonnull String name, @Nonnull String dataType)
Note that importing is related to the point of view of the caller. Thus, when a parameter is declared as exporting on ABAP side, you have to specify it as importing here.
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImportingFields(@Nonnull String name, @Nonnull String dataType, @Nonnull Fields fields)
Note that importing is related to the point of view of the caller. Thus, when a parameter is declared as exporting on ABAP side, you have to specify it as importing here.
name
- The parameter name.dataType
- The ABAP data type of the parameter.fields
- The importing fields.@Nonnull public Table<RequestT> withImportingTable(@Nonnull String name, @Nonnull String dataType)
Note that importing is related to the point of view of the caller. Thus, when a parameter is declared as exporting on ABAP side, you have to specify it as importing here.
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImportingAsReturn(@Nonnull String dataType)
RETURN_PARAMETER
.
Note that return parameters refer to parameters for which return messages will be parsed and translated to RemoteFunctionMessages.
dataType
- The ABAP data type of the parameter.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withImportingAsReturn(@Nonnull String name, @Nonnull String dataType)
Note that return parameters refer to parameters for which return messages will be parsed and translated to RemoteFunctionMessages.
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public Table<RequestT> withTable(@Nonnull String name, @Nonnull String dataType)
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withTableAsReturn(@Nonnull String dataType)
RETURN_PARAMETER
.
Note that return parameters refer to parameters for which return messages will be parsed and translated to RemoteFunctionMessages.
dataType
- The ABAP data type of the parameter.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withTableAsReturn(@Nonnull String name, @Nonnull String dataType)
Note that return parameters refer to parameters for which return messages will be parsed and translated to RemoteFunctionMessages.
name
- The parameter name.dataType
- The ABAP data type of the parameter.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> withErrorHandler(@Nonnull RemoteFunctionRequestErrorHandler remoteFunctionRequestErrorHandler)
RemoteFunctionRequestErrorHandler
after the request has been executed.remoteFunctionRequestErrorHandler
- The result handler to invoke after request execution@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> ignoringErrors()
RemoteFunctionRequestErrorHandler
after the request execution which does not
inspect the request result and, therefore, does not throw a
RemoteFunctionException
.@Nonnull public AbstractRemoteFunctionRequest<RequestT,RequestResultT> propagatingErrorsAsExceptions()
RemoteFunctionRequestErrorHandler
after the request execution which inspects the
request result and throws a RemoteFunctionException
or one of its more-specific exceptions depending on the returned error messages of the request.protected boolean canEqual(Object other)
@Nullable public String getConstructedByMethod()
getConstructedByMethod
in class Request<RequestT extends AbstractRemoteFunctionRequest<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>>
Copyright © 2020 SAP SE. All rights reserved.