Interface JCoConnection

All Known Implementing Classes:
ConnectionDelegator, JCoConnectionImpl, JCoConnectionStateful, JCoConnectionStateless

public interface JCoConnection
Interface for creating a connection to an ABAP system.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Property name for destination parameter.
    static final String
    Property name for JCo language.
    static final String
    Property name for scope type parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    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(String functionName)
    Returns a JCoFunction object for the given function name.
    boolean
    Returns true if the backend is available the connection is connected to.
    boolean
    Returns true if the backend is switched offline the connection is connected to.
    boolean
    Returns true if the JCo Function is available on the SAP system the connection is connected to.
    void
    setCallerId(String callerID)
    Sets the caller id.
  • Field Details

  • Method Details

    • getFunction

      com.sap.conn.jco.JCoFunction getFunction(String functionName) throws BackendException
      Returns a JCoFunction object for the given function name.
      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

      void execute(com.sap.conn.jco.JCoFunction function) throws BackendException
      This method is used to execute a JCoFunction on behalf of this connection.
      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

      boolean isFunctionAvailable(String functionName) throws BackendException
      Returns true if the JCo Function is available on the SAP system the connection is connected to.
      Parameters:
      functionName - function name
      Returns:
      true if the JCo Function is available, otherwise false
      Throws:
      BackendException - BackendException
    • setCallerId

      void setCallerId(String callerID)
      Sets the caller id.
      Parameters:
      callerID - caller id.
    • isBackendAvailable

      boolean isBackendAvailable() throws BackendException
      Returns true if the backend is available the connection is connected to.
      Returns:
      true if the backend is available, otherwise false
      Throws:
      BackendException - BackendException
    • isBackendOffline

      boolean isBackendOffline() throws BackendException
      Returns true if the backend is switched offline the connection is connected to.
      Returns:
      true if the backend is switched offline, otherwise false
      Throws:
      BackendException - BackendException