Class ConnectionDelegator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Gets called if connection should be destroyed.
      void execute​(com.sap.conn.jco.JCoFunction function)
      This method is used to execute a JCoFunction on behalf of this connection.
      com.sap.conn.jco.JCoFunction getFunction​(java.lang.String functionName)
      Returns a JCoFunction object for the given function name.
      boolean isBackendAvailable()
      Returns true if the backend is available the connection is connected to.
      boolean isBackendOffline()
      Returns true if the backend is switched offline the connection is connected to.
      boolean isFunctionAvailable​(java.lang.String functionName)
      Returns true if the JCo Function is available on the SAP system the connection is connected to.
      void setCallerId​(java.lang.String callerID)
      Sets the caller id.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectionDelegator

        public ConnectionDelegator​(JCoConnection connection,
                                   JCoRecMode mode,
                                   RepositoryPlayback repoPlayback,
                                   RepositoryRecording repoRecording)
        Constructor.
        Parameters:
        connection - the delegated Connection.
        mode - the mode of the recorder.
        repoPlayback - the RepositoryPlayback instance.
        repoRecording - the RepositoryRecording instance.
    • Method Detail

      • getFunction

        public com.sap.conn.jco.JCoFunction getFunction​(java.lang.String functionName)
                                                 throws BackendException
        Description copied from interface: JCoConnection
        Returns a JCoFunction object for the given function name.
        Specified by:
        getFunction in interface JCoConnection
        Parameters:
        functionName - name of remote callable function module on the SAP system
        Returns:
        JCoFunction
        Throws:
        BackendException - when something goes wrong while retrieving meta data
      • execute

        public void execute​(com.sap.conn.jco.JCoFunction function)
                     throws BackendException
        Description copied from interface: JCoConnection
        This method is used to execute a JCoFunction on behalf of this connection.
        Specified by:
        execute in interface JCoConnection
        Parameters:
        function - a JCoFunction which should be executed
        Throws:
        BackendException - thrown if something goes wrong in the EAI layer or if an JCoException is thrown by the SAP Java Connector.
      • isFunctionAvailable

        public boolean isFunctionAvailable​(java.lang.String functionName)
                                    throws BackendException
        Description copied from interface: JCoConnection
        Returns true if the JCo Function is available on the SAP system the connection is connected to.
        Specified by:
        isFunctionAvailable in interface JCoConnection
        Parameters:
        functionName - function name
        Returns:
        true if the JCo Function is available, otherwise false
        Throws:
        BackendException - BackendException
      • setCallerId

        public void setCallerId​(java.lang.String callerID)
        Description copied from interface: JCoConnection
        Sets the caller id.
        Specified by:
        setCallerId in interface JCoConnection
        Parameters:
        callerID - caller id.