public abstract class SapFunctionFacade extends Object implements ISapFunctionFacade
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
log |
Constructor and Description |
---|
SapFunctionFacade() |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateStaticFieldIndices(com.sap.conn.jco.JCoFunctionTemplate ft)
This method must be called from configure().
|
void |
closeFacade() |
void |
configure() |
protected int |
findFieldIndex(com.sap.conn.jco.JCoParameterList params,
int index,
String name)
Calculate the index of the field that corresponds with the message as a whole.
|
Message |
functionCall2message(com.sap.conn.jco.JCoFunction function) |
Message |
functionResult2message(com.sap.conn.jco.JCoFunction function) |
String |
getCorrelationIdFromField(com.sap.conn.jco.JCoFunction function) |
protected abstract String |
getFunctionName()
Listeners and IdocSenders don't use a functionName
|
protected com.sap.conn.jco.JCoFunctionTemplate |
getFunctionTemplate() |
protected com.sap.conn.jco.JCoFunctionTemplate |
getFunctionTemplate(SapSystemImpl sapSystem,
String functionName) |
protected String |
getLogPrefix() |
String |
getPhysicalDestinationName() |
SapSystemImpl |
getSapSystem() |
SapSystemImpl |
getSapSystem(String systemName) |
void |
message2FunctionCall(com.sap.conn.jco.JCoFunction function,
String request,
String correlationId,
ParameterValueList pvl) |
void |
message2FunctionResult(com.sap.conn.jco.JCoFunction function,
String result) |
void |
openFacade() |
void |
setCorrelationIdFieldIndex(int i)
Index of the field in the ImportParameterList of the RFC function that contains the correlationId
|
void |
setCorrelationIdFieldName(String string)
Name of the field in the ImportParameterList of the RFC function that contains the correlationId
|
void |
setName(String string)
Name of the Ibis-object
|
protected static void |
setParameters(com.sap.conn.jco.JCoParameterList inputOrOutputParameterList,
com.sap.conn.jco.JCoParameterList tableParameterList,
String message,
int fieldIndex) |
void |
setReplyFieldIndex(int i)
Index of the field in the ExportParameterList of the RFC function that contains the whole reply message contents
|
void |
setReplyFieldName(String string)
Name of the field in the ExportParameterList of the RFC function that contains the whole reply message contents
|
void |
setRequestFieldIndex(int i)
Index of the field in the ImportParameterList of the RFC function that contains the whole request message contents
|
void |
setRequestFieldName(String string)
Name of the field in the ImportParameterList of the RFC function that contains the whole request message contents
|
void |
setSapSystemName(String string)
Name of the
SapSystem used by this object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getDomain
protected String getLogPrefix()
public void configure() throws ConfigurationException
configure
in interface IConfigurable
ConfigurationException
public void openFacade() throws SapException
SapException
public void closeFacade()
public String getPhysicalDestinationName()
getPhysicalDestinationName
in interface HasPhysicalDestination
protected static void setParameters(com.sap.conn.jco.JCoParameterList inputOrOutputParameterList, com.sap.conn.jco.JCoParameterList tableParameterList, String message, int fieldIndex) throws SapException
SapException
protected void calculateStaticFieldIndices(com.sap.conn.jco.JCoFunctionTemplate ft)
ft
- protected int findFieldIndex(com.sap.conn.jco.JCoParameterList params, int index, String name)
public String getCorrelationIdFromField(com.sap.conn.jco.JCoFunction function)
public Message functionCall2message(com.sap.conn.jco.JCoFunction function)
public Message functionResult2message(com.sap.conn.jco.JCoFunction function)
public void message2FunctionCall(com.sap.conn.jco.JCoFunction function, String request, String correlationId, ParameterValueList pvl) throws SapException
SapException
public void message2FunctionResult(com.sap.conn.jco.JCoFunction function, String result) throws SapException
SapException
public SapSystemImpl getSapSystem() throws SapException
SapException
public SapSystemImpl getSapSystem(String systemName) throws SapException
SapException
protected com.sap.conn.jco.JCoFunctionTemplate getFunctionTemplate() throws SapException
SapException
protected com.sap.conn.jco.JCoFunctionTemplate getFunctionTemplate(SapSystemImpl sapSystem, String functionName) throws SapException
SapException
public void setName(String string)
setName
in interface INamedObject
public void setSapSystemName(String string)
SapSystem
used by this objectsetSapSystemName
in interface ISapFunctionFacade
public void setCorrelationIdFieldIndex(int i)
setCorrelationIdFieldIndex
in interface ISapFunctionFacade
public void setCorrelationIdFieldName(String string)
setCorrelationIdFieldName
in interface ISapFunctionFacade
public void setRequestFieldIndex(int i)
setRequestFieldIndex
in interface ISapFunctionFacade
public void setRequestFieldName(String string)
setRequestFieldName
in interface ISapFunctionFacade
public void setReplyFieldIndex(int i)
setReplyFieldIndex
in interface ISapFunctionFacade
public void setReplyFieldName(String string)
setReplyFieldName
in interface ISapFunctionFacade
protected abstract String getFunctionName()
Copyright © 2023 Frank!Framework. All rights reserved.