public abstract class AbstractRemoteFunctionQuery<QueryT extends AbstractRemoteFunctionQuery<QueryT,QueryResultT>,QueryResultT extends AbstractRemoteFunctionQueryResult<QueryT,QueryResultT>> extends Query<QueryT,QueryResultT>
Modifier and Type | Field and Description |
---|---|
protected String |
constructedByMethod |
protected String |
functionName |
protected boolean |
performTransactionalCommit |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRemoteFunctionQuery(String functionName,
boolean performTransactionalCommit,
String constructedByMethod) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
doCommit()
Deprecated.
This method will be removed in one of the next versions. Use
isPerformingTransactionalCommit() instead. |
boolean |
equals(Object o) |
String |
getConstructedByMethod() |
String |
getFunctionName() |
Collection<ErpTypeConverter<?>> |
getTypeConverters() |
int |
hashCode() |
protected abstract QueryT |
instance()
Convenience method that returns the current instance.
|
boolean |
isPerformingTransactionalCommit() |
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) |
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) |
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) |
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) |
String |
toString() |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType)
Adds an exporting parameter reflected by a data element.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
BigDecimal value)
Adds an exporting
BigDecimal parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
BigInteger value)
Adds an exporting
BigInteger parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Boolean value)
Adds an exporting
Boolean parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Byte value)
Adds an exporting
Byte parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Character value)
Adds an exporting
Character parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Double value)
Adds an exporting
Double parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Float value)
Adds an exporting
Float parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Integer value)
Adds an exporting
Integer parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
LocalDate value)
Adds an exporting
LocalDate parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Locale value)
Adds an exporting
Locale parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
LocalTime value)
Adds an exporting
LocalTime parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Long value)
Adds an exporting
Long parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Short value)
Adds an exporting
Short parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
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> AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
T value,
ErpTypeConverter<T> typeConverter)
Adds an exporting parameter reflected by a data element.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExporting(String name,
String dataType,
Year value)
Adds an exporting
Year parameter. |
ParameterFields<QueryT> |
withExportingFields(String name,
String dataType)
Adds an exporting parameter reflected by a structure.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withExportingFields(String name,
String dataType,
Fields fields)
Adds an exporting parameter reflected by a structure.
|
Table<QueryT> |
withExportingTable(String name,
String dataType)
Adds an exporting parameter reflected by a table type.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType)
Adds an importing parameter reflected by a data element.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
BigDecimal value)
Adds a importing
BigDecimal parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
BigInteger value)
Adds a importing
BigInteger parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Boolean value)
Adds a importing
Boolean parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Byte value)
Adds a importing
Byte parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Character value)
Adds a importing
Character parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Double value)
Adds a importing
Double parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Float value)
Adds a importing
Float parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Integer value)
Adds a importing
Integer parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
LocalDate value)
Adds a importing
LocalDate parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Locale value)
Adds a importing
Locale parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
LocalTime value)
Adds a importing
LocalTime parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Long value)
Adds a importing
Long parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Short value)
Adds a importing
Short parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
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> AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
T value,
ErpTypeConverter<T> typeConverter)
Adds an importing parameter reflected by a data element.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImporting(String name,
String dataType,
Year value)
Adds a importing
Year parameter reflected by a data element. |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImportingAsReturn(String dataType)
Adds an importing parameter as a return parameter with the name defined by
RETURN_PARAMETER . |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImportingAsReturn(String name,
String dataType)
Adds an importing parameter as a return parameter.
|
ParameterFields<QueryT> |
withImportingFields(String name,
String dataType)
Adds an importing parameter reflected by a structure.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withImportingFields(String name,
String dataType,
Fields fields)
Adds an importing parameter reflected by a structure.
|
Table<QueryT> |
withImportingTable(String name,
String dataType)
Adds an importing parameter reflected by a table type.
|
Table<QueryT> |
withTable(String name,
String dataType)
Adds a table parameter.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withTableAsReturn(String dataType)
Adds a table parameter as a return parameter with the name defined by
RETURN_PARAMETER . |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withTableAsReturn(String name,
String dataType)
Adds a table parameter as a return parameter.
|
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withTypeConverters(ErpTypeConverter<?>... typeConverters)
Delegates to
withTypeConverters(Iterable) . |
AbstractRemoteFunctionQuery<QueryT,QueryResultT> |
withTypeConverters(Iterable<ErpTypeConverter<?>> typeConverters)
Registers the given
ErpTypeConverter s. |
execute, execute, getHeaderParameters, getLongRunningRequestThreshold, getReadAccessData, getRequestId, setLongRunningRequestThreshold, withCustomHttpHeader, withSameCustomHttpHeadersAs
protected final String functionName
protected final boolean performTransactionalCommit
protected final String constructedByMethod
@Nonnull protected abstract QueryT instance()
public Collection<ErpTypeConverter<?>> getTypeConverters()
public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withTypeConverters(Iterable<ErpTypeConverter<?>> typeConverters)
ErpTypeConverter
s. Replaces existing converters for already existing types that have
been added before.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withTypeConverters(ErpTypeConverter<?>... typeConverters)
withTypeConverters(Iterable)
.public String getFunctionName()
@Deprecated public boolean doCommit()
isPerformingTransactionalCommit()
instead.true
if a transactional commit will be performed after invoking the function, false
otherwise.public boolean isPerformingTransactionalCommit()
true
if a transactional commit will be performed after invoking the function, false
otherwise.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)
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)
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)
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)
public AbstractRemoteFunctionQuery<QueryT,QueryResultT> 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>> AbstractRemoteFunctionQuery<QueryT,QueryResultT> 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> AbstractRemoteFunctionQuery<QueryT,QueryResultT> 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 AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Boolean value)
Boolean
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Byte value)
Byte
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Character value)
Character
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, String value)
String
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Short value)
Short
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Integer value)
Integer
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Long value)
Long
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Float value)
Float
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Double value)
Double
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, BigInteger value)
BigInteger
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, BigDecimal value)
BigDecimal
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Locale value)
Locale
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, Year value)
Year
parameter. reflected by a data elementpublic AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, LocalDate value)
LocalDate
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withExporting(String name, String dataType, LocalTime value)
LocalTime
parameter reflected by a data element.public ParameterFields<QueryT> 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 AbstractRemoteFunctionQuery<QueryT,QueryResultT> 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<QueryT> 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 AbstractRemoteFunctionQuery<QueryT,QueryResultT> 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>> AbstractRemoteFunctionQuery<QueryT,QueryResultT> 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> AbstractRemoteFunctionQuery<QueryT,QueryResultT> 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 AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Boolean value)
Boolean
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Byte value)
Byte
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Character value)
Character
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, String value)
String
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Short value)
Short
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Integer value)
Integer
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Long value)
Long
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Float value)
Float
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Double value)
Double
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, BigInteger value)
BigInteger
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, BigDecimal value)
BigDecimal
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Locale value)
Locale
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, Year value)
Year
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, LocalDate value)
LocalDate
parameter reflected by a data element.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImporting(String name, String dataType, LocalTime value)
LocalTime
parameter reflected by a data element.public ParameterFields<QueryT> 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 AbstractRemoteFunctionQuery<QueryT,QueryResultT> 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<QueryT> 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 AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImportingAsReturn(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.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withImportingAsReturn(String name, 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.public Table<QueryT> withTable(String name, String dataType)
name
- The parameter name.dataType
- The ABAP data type of the parameter.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withTableAsReturn(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.public AbstractRemoteFunctionQuery<QueryT,QueryResultT> withTableAsReturn(String name, 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.protected boolean canEqual(Object other)
public String getConstructedByMethod()
getConstructedByMethod
in class Query<QueryT extends AbstractRemoteFunctionQuery<QueryT,QueryResultT>,QueryResultT extends AbstractRemoteFunctionQueryResult<QueryT,QueryResultT>>
Copyright © 2018 SAP SE. All rights reserved.