Class JCoRecFunctionDecorator
- java.lang.Object
-
- de.hybris.platform.sap.core.jco.rec.impl.JCoRecFunctionDecorator
-
- All Implemented Interfaces:
com.sap.conn.jco.JCoFunction,java.io.Serializable,java.lang.Cloneable
public class JCoRecFunctionDecorator extends java.lang.Object implements com.sap.conn.jco.JCoFunction, java.lang.CloneableDesign of this class follows the decorator pattern although it is not exactly the class hierarchy mentioned in http://en.wikipedia.org/wiki/Decorator_pattern.
Execution of the actual backend calls is delegated todecoratedFunction, the execution against the XML repository is implemented here.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JCoRecFunctionDecorator(com.sap.conn.jco.JCoFunction function, int counter, JCoRecMode mode)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JCoRecFunctionDecoratorclone()voidexecute(com.sap.conn.jco.JCoDestination destination)voidexecute(com.sap.conn.jco.JCoDestination destination, java.lang.String tid)Unsupported method.voidexecute(com.sap.conn.jco.JCoDestination destination, java.lang.String tid, java.lang.String queueName)Unsupported method.com.sap.conn.jco.JCoParameterListgetChangingParameterList()com.sap.conn.jco.JCoFunctiongetDecoratedFunction()Getter for the delegated function.com.sap.conn.jco.AbapExceptiongetException(java.lang.String arg0)com.sap.conn.jco.AbapException[]getExceptionList()com.sap.conn.jco.JCoParameterListgetExportParameterList()java.lang.StringgetFunctionKey()Generates the function key for this instance.com.sap.conn.jco.JCoFunctionTemplategetFunctionTemplate()com.sap.conn.jco.JCoParameterListgetImportParameterList()java.lang.StringgetName()com.sap.conn.jco.JCoParameterListgetTableParameterList()booleanisAbapClassExceptionEnabled()voidsetAbapClassExceptionMode(com.sap.conn.jco.AbapClassException.Mode arg0)protected voidsetDecoratedFunction(com.sap.conn.jco.JCoFunction function)Setter for the delegated function.java.lang.StringtoString()java.lang.StringtoXML()
-
-
-
Constructor Detail
-
JCoRecFunctionDecorator
public JCoRecFunctionDecorator(com.sap.conn.jco.JCoFunction function, int counter, JCoRecMode mode)Constructor.- Parameters:
function- this function will be delegated/wrapped.counter- the execution counter of the wrapped function.mode- the current mode of the JCoRecorder.
-
-
Method Detail
-
getDecoratedFunction
public com.sap.conn.jco.JCoFunction getDecoratedFunction()
Getter for the delegated function.- Returns:
- Returns the delegated function.
-
setDecoratedFunction
protected void setDecoratedFunction(com.sap.conn.jco.JCoFunction function)
Setter for the delegated function.- Parameters:
function- the new value for the delegated function.
-
execute
public void execute(com.sap.conn.jco.JCoDestination destination) throws com.sap.conn.jco.JCoException- Specified by:
executein interfacecom.sap.conn.jco.JCoFunction- Throws:
com.sap.conn.jco.JCoException
-
execute
public void execute(com.sap.conn.jco.JCoDestination destination, java.lang.String tid) throws com.sap.conn.jco.JCoExceptionUnsupported method.- Specified by:
executein interfacecom.sap.conn.jco.JCoFunction- Parameters:
destination- Unsupported method.tid- Unsupported method.- Throws:
com.sap.conn.jco.JCoException- Unsupported method.- See Also:
JCoFunction.execute(com.sap.conn.jco.JCoDestination, java.lang.String)
-
execute
public void execute(com.sap.conn.jco.JCoDestination destination, java.lang.String tid, java.lang.String queueName) throws com.sap.conn.jco.JCoExceptionUnsupported method.- Specified by:
executein interfacecom.sap.conn.jco.JCoFunction- Parameters:
destination- Unsupported method.tid- Unsupported method.queueName- Unsupported method.- Throws:
com.sap.conn.jco.JCoException- Unsupported method.- See Also:
JCoFunction.execute(com.sap.conn.jco.JCoDestination, java.lang.String, java.lang.String)
-
getImportParameterList
public com.sap.conn.jco.JCoParameterList getImportParameterList()
- Specified by:
getImportParameterListin interfacecom.sap.conn.jco.JCoFunction
-
getExportParameterList
public com.sap.conn.jco.JCoParameterList getExportParameterList()
- Specified by:
getExportParameterListin interfacecom.sap.conn.jco.JCoFunction
-
getChangingParameterList
public com.sap.conn.jco.JCoParameterList getChangingParameterList()
- Specified by:
getChangingParameterListin interfacecom.sap.conn.jco.JCoFunction
-
getTableParameterList
public com.sap.conn.jco.JCoParameterList getTableParameterList()
- Specified by:
getTableParameterListin interfacecom.sap.conn.jco.JCoFunction
-
getException
public com.sap.conn.jco.AbapException getException(java.lang.String arg0)
- Specified by:
getExceptionin interfacecom.sap.conn.jco.JCoFunction
-
getExceptionList
public com.sap.conn.jco.AbapException[] getExceptionList()
- Specified by:
getExceptionListin interfacecom.sap.conn.jco.JCoFunction
-
getFunctionTemplate
public com.sap.conn.jco.JCoFunctionTemplate getFunctionTemplate()
- Specified by:
getFunctionTemplatein interfacecom.sap.conn.jco.JCoFunction
-
toXML
public java.lang.String toXML()
- Specified by:
toXMLin interfacecom.sap.conn.jco.JCoFunction
-
getFunctionKey
public java.lang.String getFunctionKey()
Generates the function key for this instance.- Returns:
- Returns the result from
RecorderUtils.getFunctionKey(String, int)with the name of the decorated function and the local counter as parameter.
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacecom.sap.conn.jco.JCoFunction
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isAbapClassExceptionEnabled
public boolean isAbapClassExceptionEnabled()
- Specified by:
isAbapClassExceptionEnabledin interfacecom.sap.conn.jco.JCoFunction
-
setAbapClassExceptionMode
public void setAbapClassExceptionMode(com.sap.conn.jco.AbapClassException.Mode arg0)
- Specified by:
setAbapClassExceptionModein interfacecom.sap.conn.jco.JCoFunction
-
clone
public JCoRecFunctionDecorator clone()
- Specified by:
clonein interfacecom.sap.conn.jco.JCoFunction- Overrides:
clonein classjava.lang.Object
-
-