Class JCoManagedFunction

java.lang.Object
de.hybris.platform.sap.core.jco.connection.impl.JCoManagedFunction
All Implemented Interfaces:
com.sap.conn.jco.JCoFunction, Serializable, Cloneable

public class JCoManagedFunction extends Object implements com.sap.conn.jco.JCoFunction, Cloneable
Delegator for JCoFunction.
Adds connection parameter.
See Also:
  • Field Details

    • delegate

      protected com.sap.conn.jco.JCoFunction delegate
      Delegator instance.
    • connectionParameter

      protected JCoConnectionParameter connectionParameter
      Connection parameters.
  • Constructor Details

    • JCoManagedFunction

      public JCoManagedFunction(com.sap.conn.jco.JCoFunction delegate, JCoConnectionParameter connectionParameter)
      Constructor.
      Parameters:
      delegate - delegate instance
      connectionParameter - connection parameters
  • Method Details

    • hasConnectionParameters

      public boolean hasConnectionParameters()
      Checks if connection parameters are available.
      Returns:
      true if connection parameter are available.
    • getConnectionParameter

      public JCoConnectionParameter getConnectionParameter()
      Getter for connection parameter.
      Returns:
      connection parameter or null
    • setConnectionParameter

      public void setConnectionParameter(JCoConnectionParameter connectionParameter)
      Setter for connection parameter.
      Parameters:
      connectionParameter - connection parameter
    • execute

      public void execute(com.sap.conn.jco.JCoDestination destination, String tid, String queueName) throws com.sap.conn.jco.JCoException
      Delegates call to delegator instance.
      Specified by:
      execute in interface com.sap.conn.jco.JCoFunction
      Parameters:
      destination - destination
      tid - tid
      queueName - queueName
      Throws:
      com.sap.conn.jco.JCoException - JCoException
      See Also:
      • JCoFunction.execute(com.sap.conn.jco.JCoDestination, java.lang.String, java.lang.String)
    • execute

      public void execute(com.sap.conn.jco.JCoDestination destination, String tid) throws com.sap.conn.jco.JCoException
      Delegates call to delegator instance.
      Specified by:
      execute in interface com.sap.conn.jco.JCoFunction
      Parameters:
      destination - destination
      tid - tid
      Throws:
      com.sap.conn.jco.JCoException - JCoException
      See Also:
      • JCoFunction.execute(com.sap.conn.jco.JCoDestination, java.lang.String)
    • execute

      public void execute(com.sap.conn.jco.JCoDestination destination) throws com.sap.conn.jco.JCoException
      Delegates call to delegator instance.
      Specified by:
      execute in interface com.sap.conn.jco.JCoFunction
      Parameters:
      destination - destination
      Throws:
      com.sap.conn.jco.JCoException - JCoException
      See Also:
      • JCoFunction.execute(com.sap.conn.jco.JCoDestination)
    • getChangingParameterList

      public com.sap.conn.jco.JCoParameterList getChangingParameterList()
      Delegates call to delegator instance.
      Specified by:
      getChangingParameterList in interface com.sap.conn.jco.JCoFunction
      Returns:
      JCoParameterList
      See Also:
      • JCoFunction.getChangingParameterList()
    • getException

      public com.sap.conn.jco.AbapException getException(String key)
      Delegates call to delegator instance.
      Specified by:
      getException in interface com.sap.conn.jco.JCoFunction
      Parameters:
      key - key
      Returns:
      AbapException
      See Also:
      • JCoFunction.getException(java.lang.String)
    • getExceptionList

      public com.sap.conn.jco.AbapException[] getExceptionList()
      Delegates call to delegator instance.
      Specified by:
      getExceptionList in interface com.sap.conn.jco.JCoFunction
      Returns:
      AbapException[]
      See Also:
      • JCoFunction.getExceptionList()
    • getExportParameterList

      public com.sap.conn.jco.JCoParameterList getExportParameterList()
      Delegates call to delegator instance.
      Specified by:
      getExportParameterList in interface com.sap.conn.jco.JCoFunction
      Returns:
      JCoParameterList
      See Also:
      • JCoFunction.getExportParameterList()
    • getFunctionTemplate

      public com.sap.conn.jco.JCoFunctionTemplate getFunctionTemplate()
      Delegates call to delegator instance.
      Specified by:
      getFunctionTemplate in interface com.sap.conn.jco.JCoFunction
      Returns:
      JCoFunctionTemplate
      See Also:
      • JCoFunction.getFunctionTemplate()
    • getImportParameterList

      public com.sap.conn.jco.JCoParameterList getImportParameterList()
      Delegates call to delegator instance.
      Specified by:
      getImportParameterList in interface com.sap.conn.jco.JCoFunction
      Returns:
      JCoParameterList
      See Also:
      • JCoFunction.getImportParameterList()
    • getName

      public String getName()
      Delegates call to delegator instance.
      Specified by:
      getName in interface com.sap.conn.jco.JCoFunction
      Returns:
      name
      See Also:
      • JCoFunction.getName()
    • getTableParameterList

      public com.sap.conn.jco.JCoParameterList getTableParameterList()
      Delegates call to delegator instance.
      Specified by:
      getTableParameterList in interface com.sap.conn.jco.JCoFunction
      Returns:
      TableParameterList
      See Also:
      • JCoFunction.getTableParameterList()
    • isAbapClassExceptionEnabled

      public boolean isAbapClassExceptionEnabled()
      Delegates call to delegator instance.
      Specified by:
      isAbapClassExceptionEnabled in interface com.sap.conn.jco.JCoFunction
      Returns:
      isAbapClassExceptionEnabled
      See Also:
      • JCoFunction.isAbapClassExceptionEnabled()
    • setAbapClassExceptionMode

      public void setAbapClassExceptionMode(com.sap.conn.jco.AbapClassException.Mode mode)
      Delegates call to delegator instance.
      Specified by:
      setAbapClassExceptionMode in interface com.sap.conn.jco.JCoFunction
      Parameters:
      mode - mode
      See Also:
      • JCoFunction.setAbapClassExceptionMode(com.sap.conn.jco.AbapClassException.Mode)
    • toXML

      public String toXML()
      Delegates call to delegator instance.
      Specified by:
      toXML in interface com.sap.conn.jco.JCoFunction
      Returns:
      xml
      See Also:
      • JCoFunction.toXML()
    • getDelegate

      public com.sap.conn.jco.JCoFunction getDelegate()
      Getter for delegated JCoFunction.
      Returns:
      the delegate
    • setDelegate

      public void setDelegate(com.sap.conn.jco.JCoFunction delegate)
      Setter for delegated JCoFunction.
      Parameters:
      delegate - the delegate to set
    • clone

      public com.sap.conn.jco.JCoFunction clone()
      Specified by:
      clone in interface com.sap.conn.jco.JCoFunction
      Overrides:
      clone in class Object