Interface RfcObject

    • 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 set
        value - 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 set
        value - 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/parameter
        value - 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/parameter
        value - 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/parameter
        value - 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 set
        value - 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 set
        value - 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 set
        value - 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 set
        value - 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 set
        value - 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 set
        value - 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 set
        value - 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 RfcStructureRfcTable<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
      • setField

        void setField​(String name,
                      Object value)
        Set the value of a field/parameter of any type
        Parameters:
        name - name of the field/parameter to set
        value - value of the field/parameter