Class JCoRecFunctionDecorator
java.lang.Object
de.hybris.platform.sap.core.jco.rec.impl.JCoRecFunctionDecorator
- All Implemented Interfaces:
com.sap.conn.jco.JCoFunction,Serializable,Cloneable
public class JCoRecFunctionDecorator
extends Object
implements com.sap.conn.jco.JCoFunction, Cloneable
Design 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 to
Execution of the actual backend calls is delegated to
decoratedFunction, the execution against the XML repository is
implemented here.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJCoRecFunctionDecorator(com.sap.conn.jco.JCoFunction function, int counter, JCoRecMode mode) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()voidexecute(com.sap.conn.jco.JCoDestination destination) voidUnsupported method.voidUnsupported method.com.sap.conn.jco.JCoParameterListcom.sap.conn.jco.JCoFunctionGetter for the delegated function.com.sap.conn.jco.AbapExceptiongetException(String arg0) com.sap.conn.jco.AbapException[]com.sap.conn.jco.JCoParameterListGenerates the function key for this instance.com.sap.conn.jco.JCoFunctionTemplatecom.sap.conn.jco.JCoParameterListgetName()com.sap.conn.jco.JCoParameterListbooleanvoidsetAbapClassExceptionMode(com.sap.conn.jco.AbapClassException.Mode arg0) protected voidsetDecoratedFunction(com.sap.conn.jco.JCoFunction function) Setter for the delegated function.toString()toXML()
-
Constructor Details
-
JCoRecFunctionDecorator
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 Details
-
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, String tid) throws com.sap.conn.jco.JCoException Unsupported 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, String tid, String queueName) throws com.sap.conn.jco.JCoException Unsupported 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
- 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
- Specified by:
toXMLin interfacecom.sap.conn.jco.JCoFunction
-
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
- Specified by:
getNamein interfacecom.sap.conn.jco.JCoFunction
-
toString
-
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
-