public class RfcQuery extends Query<QueryT,QueryResultT>
Constructor and Description |
---|
RfcQuery(String functionName)
Constructs a remote function call query for which the result will be committed.
|
RfcQuery(String functionName,
boolean commit)
Constructs a remote function call query.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doCommit() |
boolean |
equals(Object o) |
RfcQueryResult |
execute(ErpEndpoint erpEndpoint)
Executes a given query against the given S/4HANA endpoint.
|
String |
getConstructedByMethod() |
Set<String> |
getExceptionNames() |
String |
getFunctionName() |
Collection<ErpTypeConverter<?>> |
getTypeConverters() |
int |
hashCode() |
String |
toString() |
RfcQuery |
withChanging(String name,
String dataType)
Adds a changing parameter.
|
RfcQuery |
withChanging(String name,
String dataType,
BigDecimal value)
Adds a changing
BigDecimal parameter. |
RfcQuery |
withChanging(String name,
String dataType,
BigInteger value)
Adds a changing
BigInteger parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Boolean value)
Adds a changing
Boolean parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Byte value)
Adds a changing
Byte parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Character value)
Adds a changing
Character parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Double value)
Adds a changing
Double parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Float value)
Adds a changing
Float parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Integer value)
Adds a changing
Integer parameter. |
RfcQuery |
withChanging(String name,
String dataType,
org.joda.time.LocalDate value)
Adds a changing
LocalDate parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Locale value)
Adds a changing
Locale parameter. |
RfcQuery |
withChanging(String name,
String dataType,
org.joda.time.LocalTime value)
Adds a changing
LocalTime parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Long value)
Adds a changing
Long parameter. |
RfcQuery |
withChanging(String name,
String dataType,
Short value)
Adds a changing
Short parameter. |
RfcQuery |
withChanging(String name,
String dataType,
String value)
Adds a changing
String parameter. |
<T extends ErpType<T>> |
withChanging(String name,
String dataType,
T value)
Adds a changing parameter.
|
<T> RfcQuery |
withChanging(String name,
String dataType,
T value,
ErpTypeConverter<T> typeConverter)
Adds a changing parameter.
|
RfcQuery |
withChanging(String name,
String dataType,
Year value)
Adds a changing
Year parameter. |
ParameterFields<RfcQuery> |
withChangingFields(String name,
String dataType)
Adds a changing fields parameter for multiple values.
|
RfcQuery |
withChangingFields(String name,
String dataType,
Fields fields)
Adds a changing fields parameter for multiple values.
|
Table<RfcQuery> |
withChangingTable(String name,
String dataType)
Adds a changing table parameter.
|
RfcQuery |
withException(String name)
Declares an expected exception from calling a remote function module.
|
RfcQuery |
withExporting(String name,
String dataType)
Adds an exporting parameter.
|
RfcQuery |
withExporting(String name,
String dataType,
BigDecimal value)
Adds an exporting
BigDecimal parameter. |
RfcQuery |
withExporting(String name,
String dataType,
BigInteger value)
Adds an exporting
BigInteger parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Boolean value)
Adds an exporting
Boolean parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Byte value)
Adds an exporting
Byte parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Character value)
Adds an exporting
Character parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Double value)
Adds an exporting
Double parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Float value)
Adds an exporting
Float parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Integer value)
Adds an exporting
Integer parameter. |
RfcQuery |
withExporting(String name,
String dataType,
org.joda.time.LocalDate value)
Adds an exporting
LocalDate parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Locale value)
Adds an exporting
Locale parameter. |
RfcQuery |
withExporting(String name,
String dataType,
org.joda.time.LocalTime value)
Adds an exporting
LocalTime parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Long value)
Adds an exporting
Long parameter. |
RfcQuery |
withExporting(String name,
String dataType,
Short value)
Adds an exporting
Short parameter. |
RfcQuery |
withExporting(String name,
String dataType,
String value)
Adds an exporting
String parameter. |
<T extends ErpType<T>> |
withExporting(String name,
String dataType,
T value)
Adds an exporting parameter.
|
<T> RfcQuery |
withExporting(String name,
String dataType,
T value,
ErpTypeConverter<T> typeConverter)
Adds an exporting parameter.
|
RfcQuery |
withExporting(String name,
String dataType,
Year value)
Adds an exporting
Year parameter. |
ParameterFields<RfcQuery> |
withExportingFields(String name,
String dataType)
Adds an exporting fields parameter for multiple values.
|
RfcQuery |
withExportingFields(String name,
String dataType,
Fields fields)
Adds an exporting fields parameter for multiple values.
|
Table<RfcQuery> |
withExportingTable(String name,
String dataType)
Adds an exporting table parameter.
|
RfcQuery |
withImporting(String name,
String dataType)
Adds an importing parameter.
|
RfcQuery |
withImporting(String name,
String dataType,
BigDecimal value)
Adds a importing
BigDecimal parameter. |
RfcQuery |
withImporting(String name,
String dataType,
BigInteger value)
Adds a importing
BigInteger parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Boolean value)
Adds a importing
Boolean parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Byte value)
Adds a importing
Byte parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Character value)
Adds a importing
Character parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Double value)
Adds a importing
Double parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Float value)
Adds a importing
Float parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Integer value)
Adds a importing
Integer parameter. |
RfcQuery |
withImporting(String name,
String dataType,
org.joda.time.LocalDate value)
Adds a importing
LocalDate parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Locale value)
Adds a importing
Locale parameter. |
RfcQuery |
withImporting(String name,
String dataType,
org.joda.time.LocalTime value)
Adds a importing
LocalTime parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Long value)
Adds a importing
Long parameter. |
RfcQuery |
withImporting(String name,
String dataType,
Short value)
Adds a importing
Short parameter. |
RfcQuery |
withImporting(String name,
String dataType,
String value)
Adds a importing
String parameter. |
<T extends ErpType<T>> |
withImporting(String name,
String dataType,
T value)
Adds an importing parameter.
|
<T> RfcQuery |
withImporting(String name,
String dataType,
T value,
ErpTypeConverter<T> typeConverter)
Adds an importing parameter.
|
RfcQuery |
withImporting(String name,
String dataType,
Year value)
Adds a importing
Year parameter. |
RfcQuery |
withImportingAsReturn(String dataType)
Adds an importing parameter as a return parameter with the name defined by
RETURN_PARAMETER . |
RfcQuery |
withImportingAsReturn(String name,
String dataType)
Adds an importing parameter as a return parameter.
|
ParameterFields<RfcQuery> |
withImportingFields(String name,
String dataType)
Adds an importing fields parameter for multiple values.
|
RfcQuery |
withImportingFields(String name,
String dataType,
Fields fields)
Adds an importing fields parameter for multiple values.
|
Table<RfcQuery> |
withImportingTable(String name,
String dataType)
Adds an importing table parameter.
|
Table<RfcQuery> |
withTable(String name,
String dataType)
Adds a table parameter.
|
RfcQuery |
withTableAsReturn(String dataType)
Adds a table parameter as a return parameter with the name defined by
RETURN_PARAMETER . |
RfcQuery |
withTableAsReturn(String name,
String dataType)
Adds a table parameter as a return parameter.
|
RfcQuery |
withTypeConverters(ErpTypeConverter<?>... typeConverters)
Delegates to
withTypeConverters(Iterable) . |
RfcQuery |
withTypeConverters(Iterable<ErpTypeConverter<?>> typeConverters)
Registers the given
ErpTypeConverter s. |
getReadAccessData, getRequestId
public RfcQuery(String functionName) throws IllegalArgumentException
functionName
- The name of the function to be called.IllegalArgumentException
- If the given function is a BAPI, i.e., its name starts with the prefix "BAPI".public RfcQuery(String functionName, boolean commit) throws IllegalArgumentException
functionName
- The name of the function to be called.commit
- Decides whether to commit the result of the function call.IllegalArgumentException
- If the given function is a BAPI, i.e., its name starts with the prefix "BAPI".public RfcQueryResult execute(ErpEndpoint erpEndpoint) throws QuerySerializationException, QueryExecutionException
Query
execute
in class Query<RfcQuery,RfcQueryResult>
QuerySerializationException
QueryExecutionException
public RfcQuery withTypeConverters(Iterable<ErpTypeConverter<?>> typeConverters)
ErpTypeConverter
s. Replaces existing converters for already existing types that have
been added before.public RfcQuery withTypeConverters(ErpTypeConverter<?>... typeConverters)
withTypeConverters(Iterable)
.public RfcQuery withExporting(String name, 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.public <T extends ErpType<T>> RfcQuery withExporting(String name, String dataType, 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.
name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The value of the parameter.public <T> RfcQuery withExporting(String name, String dataType, T value, 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.
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.public RfcQuery withExporting(String name, String dataType, Boolean value)
Boolean
parameter.public RfcQuery withExporting(String name, String dataType, Byte value)
Byte
parameter.public RfcQuery withExporting(String name, String dataType, Character value)
Character
parameter.public RfcQuery withExporting(String name, String dataType, String value)
String
parameter.public RfcQuery withExporting(String name, String dataType, Short value)
Short
parameter.public RfcQuery withExporting(String name, String dataType, Integer value)
Integer
parameter.public RfcQuery withExporting(String name, String dataType, Long value)
Long
parameter.public RfcQuery withExporting(String name, String dataType, Float value)
Float
parameter.public RfcQuery withExporting(String name, String dataType, Double value)
Double
parameter.public RfcQuery withExporting(String name, String dataType, BigInteger value)
BigInteger
parameter.public RfcQuery withExporting(String name, String dataType, BigDecimal value)
BigDecimal
parameter.public RfcQuery withExporting(String name, String dataType, Locale value)
Locale
parameter.public RfcQuery withExporting(String name, String dataType, Year value)
Year
parameter.public RfcQuery withExporting(String name, String dataType, org.joda.time.LocalDate value)
LocalDate
parameter.public RfcQuery withExporting(String name, String dataType, org.joda.time.LocalTime value)
LocalTime
parameter.public ParameterFields<RfcQuery> withExportingFields(String name, 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.public RfcQuery withExportingFields(String name, String dataType, 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.public Table<RfcQuery> withExportingTable(String name, 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.public RfcQuery withImporting(String name, 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.public <T extends ErpType<T>> RfcQuery withImporting(String name, String dataType, 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.
name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The value of the parameter.public <T> RfcQuery 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.
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.public RfcQuery withImporting(String name, String dataType, Boolean value)
Boolean
parameter.public RfcQuery withImporting(String name, String dataType, Byte value)
Byte
parameter.public RfcQuery withImporting(String name, String dataType, Character value)
Character
parameter.public RfcQuery withImporting(String name, String dataType, String value)
String
parameter.public RfcQuery withImporting(String name, String dataType, Short value)
Short
parameter.public RfcQuery withImporting(String name, String dataType, Integer value)
Integer
parameter.public RfcQuery withImporting(String name, String dataType, Long value)
Long
parameter.public RfcQuery withImporting(String name, String dataType, Float value)
Float
parameter.public RfcQuery withImporting(String name, String dataType, Double value)
Double
parameter.public RfcQuery withImporting(String name, String dataType, BigInteger value)
BigInteger
parameter.public RfcQuery withImporting(String name, String dataType, BigDecimal value)
BigDecimal
parameter.public RfcQuery withImporting(String name, String dataType, Locale value)
Locale
parameter.public RfcQuery withImporting(String name, String dataType, Year value)
Year
parameter.public RfcQuery withImporting(String name, String dataType, org.joda.time.LocalDate value)
LocalDate
parameter.public RfcQuery withImporting(String name, String dataType, org.joda.time.LocalTime value)
LocalTime
parameter.public ParameterFields<RfcQuery> withImportingFields(String name, 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.public RfcQuery withImportingFields(String name, String dataType, 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.public Table<RfcQuery> withImportingTable(String name, 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.public RfcQuery withImportingAsReturn(String dataType)
RETURN_PARAMETER
.
Note that return parameters refer to parameters for which return messages will be parsed and translated to
RemoteFunctionMessage
s.
dataType
- The ABAP data type of the parameter.public RfcQuery withImportingAsReturn(String name, String dataType)
Note that return parameters refer to parameters for which return messages will be parsed and translated to
RemoteFunctionMessage
s.
name
- The parameter name.dataType
- The ABAP data type of the parameter.public Table<RfcQuery> withTable(String name, String dataType)
name
- The parameter name.dataType
- The ABAP data type of the parameter.public RfcQuery withTableAsReturn(String dataType)
RETURN_PARAMETER
.
Note that return parameters refer to parameters for which return messages will be parsed and translated to
RemoteFunctionMessage
s.
dataType
- The ABAP data type of the parameter.public RfcQuery withTableAsReturn(String name, String dataType)
Note that return parameters refer to parameters for which return messages will be parsed and translated to
RemoteFunctionMessage
s.
name
- The parameter name.dataType
- The ABAP data type of the parameter.public RfcQuery withChanging(String name, String dataType)
name
- The parameter name.dataType
- The ABAP data type of the parameter.public <T extends ErpType<T>> RfcQuery withChanging(String name, String dataType, T value)
name
- The parameter name.dataType
- The ABAP data type of the parameter.value
- The value of the parameter.public <T> RfcQuery withChanging(String name, String dataType, T value, ErpTypeConverter<T> typeConverter)
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.public RfcQuery withChanging(String name, String dataType, Boolean value)
Boolean
parameter.public RfcQuery withChanging(String name, String dataType, Byte value)
Byte
parameter.public RfcQuery withChanging(String name, String dataType, Character value)
Character
parameter.public RfcQuery withChanging(String name, String dataType, String value)
String
parameter.public RfcQuery withChanging(String name, String dataType, Short value)
Short
parameter.public RfcQuery withChanging(String name, String dataType, Integer value)
Integer
parameter.public RfcQuery withChanging(String name, String dataType, Long value)
Long
parameter.public RfcQuery withChanging(String name, String dataType, Float value)
Float
parameter.public RfcQuery withChanging(String name, String dataType, Double value)
Double
parameter.public RfcQuery withChanging(String name, String dataType, BigInteger value)
BigInteger
parameter.public RfcQuery withChanging(String name, String dataType, BigDecimal value)
BigDecimal
parameter.public RfcQuery withChanging(String name, String dataType, Locale value)
Locale
parameter.public RfcQuery withChanging(String name, String dataType, Year value)
Year
parameter.public RfcQuery withChanging(String name, String dataType, org.joda.time.LocalDate value)
LocalDate
parameter.public RfcQuery withChanging(String name, String dataType, org.joda.time.LocalTime value)
LocalTime
parameter.public ParameterFields<RfcQuery> withChangingFields(String name, String dataType)
name
- The parameter name.dataType
- The ABAP data type of the parameter.public RfcQuery withChangingFields(String name, String dataType, Fields fields)
name
- The parameter name.dataType
- The ABAP data type of the parameter.fields
- The changing fields.public Table<RfcQuery> withChangingTable(String name, String dataType)
name
- The parameter name.dataType
- The ABAP data type of the parameter.public RfcQuery withException(String name)
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String toString()
@Generated(value="lombok") public Set<String> getExceptionNames()
public Collection<ErpTypeConverter<?>> getTypeConverters()
public String getFunctionName()
public boolean doCommit()
true
if the result of the function call will be committed, false
otherwise.@Generated(value="lombok") public String getConstructedByMethod()
getConstructedByMethod
in class Query<QueryT extends com.sap.cloud.sdk.s4hana.connectivity.rfc.AbstractRemoteFunctionQuery<QueryT,QueryResultT>,QueryResultT extends com.sap.cloud.sdk.s4hana.connectivity.rfc.AbstractRemoteFunctionQueryResult<QueryT,QueryResultT>>
Copyright © 2017 SAP SE. All rights reserved.