Class JCoManagedFunction

  • All Implemented Interfaces:
    com.sap.conn.jco.JCoFunction, java.io.Serializable, java.lang.Cloneable

    public class JCoManagedFunction
    extends java.lang.Object
    implements com.sap.conn.jco.JCoFunction, java.lang.Cloneable
    Delegator for JCoFunction.
    Adds connection parameter.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.sap.conn.jco.JCoFunction clone()  
      void execute​(com.sap.conn.jco.JCoDestination destination)
      Delegates call to delegator instance.
      void execute​(com.sap.conn.jco.JCoDestination destination, java.lang.String tid)
      Delegates call to delegator instance.
      void execute​(com.sap.conn.jco.JCoDestination destination, java.lang.String tid, java.lang.String queueName)
      Delegates call to delegator instance.
      com.sap.conn.jco.JCoParameterList getChangingParameterList()
      Delegates call to delegator instance.
      JCoConnectionParameter getConnectionParameter()
      Getter for connection parameter.
      com.sap.conn.jco.JCoFunction getDelegate()
      Getter for delegated JCoFunction.
      com.sap.conn.jco.AbapException getException​(java.lang.String key)
      Delegates call to delegator instance.
      com.sap.conn.jco.AbapException[] getExceptionList()
      Delegates call to delegator instance.
      com.sap.conn.jco.JCoParameterList getExportParameterList()
      Delegates call to delegator instance.
      com.sap.conn.jco.JCoFunctionTemplate getFunctionTemplate()
      Delegates call to delegator instance.
      com.sap.conn.jco.JCoParameterList getImportParameterList()
      Delegates call to delegator instance.
      java.lang.String getName()
      Delegates call to delegator instance.
      com.sap.conn.jco.JCoParameterList getTableParameterList()
      Delegates call to delegator instance.
      boolean hasConnectionParameters()
      Checks if connection parameters are available.
      boolean isAbapClassExceptionEnabled()
      Delegates call to delegator instance.
      void setAbapClassExceptionMode​(com.sap.conn.jco.AbapClassException.Mode mode)
      Delegates call to delegator instance.
      void setConnectionParameter​(JCoConnectionParameter connectionParameter)
      Setter for connection parameter.
      void setDelegate​(com.sap.conn.jco.JCoFunction delegate)
      Setter for delegated JCoFunction.
      java.lang.String toXML()
      Delegates call to delegator instance.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • delegate

        protected com.sap.conn.jco.JCoFunction delegate
        Delegator instance.
    • Constructor Detail

      • JCoManagedFunction

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

      • 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,
                            java.lang.String tid,
                            java.lang.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,
                            java.lang.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​(java.lang.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 java.lang.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 java.lang.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 java.lang.Object