Interface RfcObject
-
- All Known Subinterfaces:
RfcFunctionModule
,RfcStructure
public interface RfcObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigDecimal
getBigDecimal(String name)
Get the value of a field/parameter of type BigDecimalBigInteger
getBigInteger(String name)
Get the value of a field/parameter of type BigIntegerByte
getByte(String name)
Get the value of a field/parameter as Bytebyte[]
getByteArray(String name)
Get the value of a field/parameter as byte arraychar[]
getCharArray(String name)
Get the value of a field/parameter of type CHAR[]Date
getDate(String name)
Get the value of a field/parameter of type DATEObject
getField(String name)
Get the value of a field/parameter of any typeInteger
getInteger(String name)
Get the value of an export/import field/parameter of type integerLong
getLong(String name)
Get the value of a field/parameter as LongMap<String,RfcSapFieldMetadata>
getMetadata()
This method returns Meta data of the interfaceString
getName()
Get the name of the rfc-object structure/function modulebyte[]
getRawByteArray(String name)
Get the value of a field/parameter of type RAW It assumes that the value is returned by SAP as a hex stringShort
getShort(String name)
Get the value of a field/parameter as ShortString
getString(String name)
Get the value of an export/import field/parameter of type stringRfcStructure
getStructure(String name)
Get an import/export structure Calling this method BEFORE executing the function module is required for getting and/or setting structure values<T extends RfcStructure>
RfcTable<T>getTable(String name)
Get an import/export table Calling this method BEFORE executing the function module is required for getting and/or setting table valuesDate
getTime(String name)
Get the value of a field/parameter of type TIMEboolean
isAttached()
This method can be used to find out this RfcObject detached or attachedvoid
setBigDecimal(String name, BigDecimal value)
Set the value of a field/parameter of type BigDecimalvoid
setBigInteger(String name, BigInteger value)
Set the value of a field/parameter of type BigIntegervoid
setByte(String name, Byte value)
Set the value of a field/parameter as Bytevoid
setByteArray(String name, byte[] value)
Set the value of a field/parameter as a byte arrayvoid
setCharArray(String name, char[] value)
Set the value of a field/parameter of type CHAR[]void
setDate(String name, Date value)
Set the value of a field/parameter of type DATEvoid
setField(String name, Object value)
Set the value of a field/parameter of any typevoid
setInteger(String name, Integer value)
Set an import field/parameter of type integervoid
setLong(String name, Long value)
Set the value of a field/parameter as Longvoid
setRawByteArray(String name, byte[] value)
Set the value of a field/parameter of type RAW It assumes that the value is expected by SAP as a hex stringvoid
setShort(String name, Short value)
Set the value of a field/parameter as Shortvoid
setString(String name, String value)
Set an import field/parameter of type stringvoid
setTime(String name, Date value)
Set the value of a field/parameter of type TIMEvoid
toXml(OutputStream output)
This method writes xml presentation of the function module to given stream
-
-
-
Method Detail
-
getName
String getName()
Get the name of the rfc-object structure/function module- Returns:
- name of the rfc-object structure/function module
-
getString
String getString(String name)
Get the value of an export/import field/parameter of type string- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setString
void setString(String name, String value)
Set an import field/parameter of type string- Parameters:
name
- name of the field/parameter to setvalue
- value of the field/parameter
-
getInteger
Integer getInteger(String name)
Get the value of an export/import field/parameter of type integer- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setInteger
void setInteger(String name, Integer value)
Set an import field/parameter of type integer- Parameters:
name
- name of the field/parameter to setvalue
- value of the field/parameter
-
getLong
Long getLong(String name)
Get the value of a field/parameter as Long- Parameters:
name
- name of the field/parameter- Returns:
- value of the field/parameter
-
setLong
void setLong(String name, Long value)
Set the value of a field/parameter as Long- Parameters:
name
- name of the field/parametervalue
- value of the field/parameter
-
getShort
Short getShort(String name)
Get the value of a field/parameter as Short- Parameters:
name
- name of the field/parameter- Returns:
- value of the field/parameter
-
setShort
void setShort(String name, Short value)
Set the value of a field/parameter as Short- Parameters:
name
- name of the field/parametervalue
- value of the field/parameter
-
getByte
Byte getByte(String name)
Get the value of a field/parameter as Byte- Parameters:
name
- name of the field/parameter- Returns:
- value of the field/parameter
-
setByte
void setByte(String name, Byte value)
Set the value of a field/parameter as Byte- Parameters:
name
- name of the field/parametervalue
- value of the field/parameter
-
getDate
Date getDate(String name)
Get the value of a field/parameter of type DATE- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setDate
void setDate(String name, Date value)
Set the value of a field/parameter of type DATE- Parameters:
name
- name of the field/parameter to setvalue
- value of the field/parameter
-
getTime
Date getTime(String name)
Get the value of a field/parameter of type TIME- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setTime
void setTime(String name, Date value)
Set the value of a field/parameter of type TIME- Parameters:
name
- name of the field/parameter to setvalue
- value of the field/parameter
-
getBigDecimal
BigDecimal getBigDecimal(String name)
Get the value of a field/parameter of type BigDecimal- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setBigDecimal
void setBigDecimal(String name, BigDecimal value)
Set the value of a field/parameter of type BigDecimal- Parameters:
name
- name of the field/parameter to setvalue
- value of the field/parameter
-
getBigInteger
BigInteger getBigInteger(String name)
Get the value of a field/parameter of type BigInteger- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setBigInteger
void setBigInteger(String name, BigInteger value)
Set the value of a field/parameter of type BigInteger- Parameters:
name
- name of the field/parameter to setvalue
- value of the field/parameter
-
getCharArray
char[] getCharArray(String name)
Get the value of a field/parameter of type CHAR[]- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setCharArray
void setCharArray(String name, char[] value)
Set the value of a field/parameter of type CHAR[]- Parameters:
name
- name of the field/parameter to setvalue
- value of the parameter
-
getByteArray
byte[] getByteArray(String name)
Get the value of a field/parameter as byte array- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setByteArray
void setByteArray(String name, byte[] value)
Set the value of a field/parameter as a byte array- Parameters:
name
- name of the field/parameter to setvalue
- value of the field/parameter
-
getRawByteArray
byte[] getRawByteArray(String name)
Get the value of a field/parameter of type RAW It assumes that the value is returned by SAP as a hex string- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
setRawByteArray
void setRawByteArray(String name, byte[] value)
Set the value of a field/parameter of type RAW It assumes that the value is expected by SAP as a hex string- Parameters:
name
- name of the field/parameter to setvalue
- value of the field/parameter
-
getStructure
RfcStructure getStructure(String name)
Get an import/export structure Calling this method BEFORE executing the function module is required for getting and/or setting structure values- Parameters:
name
- of the structure- Returns:
- import/export structure
-
getTable
<T extends RfcStructure> RfcTable<T> getTable(String name)
Get an import/export table Calling this method BEFORE executing the function module is required for getting and/or setting table values- Parameters:
name
- name of the table- Returns:
- import/export table
-
getMetadata
Map<String,RfcSapFieldMetadata> getMetadata()
This method returns Meta data of the interface- Returns:
- Meta data of the interface
-
toXml
void toXml(OutputStream output)
This method writes xml presentation of the function module to given stream- Parameters:
output
- Stream for xml output
-
isAttached
boolean isAttached()
This method can be used to find out this RfcObject detached or attached- Returns:
true
if RfcObject is connected to JCO
-
getField
Object getField(String name)
Get the value of a field/parameter of any type- Parameters:
name
- name of the field/parameter to get- Returns:
- value of the field/parameter
-
-