Interface JCoConnection
- All Known Implementing Classes:
ConnectionDelegator,JCoConnectionImpl,JCoConnectionStateful,JCoConnectionStateless
public interface JCoConnection
Interface for creating a connection to an ABAP system.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(com.sap.conn.jco.JCoFunction function) This method is used to execute a JCoFunction on behalf of this connection.com.sap.conn.jco.JCoFunctiongetFunction(String functionName) Returns a JCoFunction object for the given function name.booleanReturnstrueif the backend is available the connection is connected to.booleanReturnstrueif the backend is switched offline the connection is connected to.booleanisFunctionAvailable(String functionName) Returnstrueif the JCo Function is available on the SAP system the connection is connected to.voidsetCallerId(String callerID) Sets the caller id.
-
Field Details
-
JCO_DESTINATION
Property name for destination parameter.- See Also:
-
JCO_SCOPE_TYPE
Property name for scope type parameter.- See Also:
-
JCO_LANG
Property name for JCo language.- See Also:
-
-
Method Details
-
getFunction
Returns a JCoFunction object for the given function name.- Parameters:
functionName- name of remote callable function module on the SAP system- Returns:
- JCoFunction
- Throws:
BackendException- when something goes wrong while retrieving meta data
-
execute
This method is used to execute a JCoFunction on behalf of this connection.- Parameters:
function- a JCoFunction which should be executed- Throws:
BackendException- thrown if something goes wrong in the EAI layer or if an JCoException is thrown by the SAP Java Connector.
-
isFunctionAvailable
Returnstrueif the JCo Function is available on the SAP system the connection is connected to.- Parameters:
functionName- function name- Returns:
trueif the JCo Function is available, otherwisefalse- Throws:
BackendException-BackendException
-
setCallerId
Sets the caller id.- Parameters:
callerID- caller id.
-
isBackendAvailable
Returnstrueif the backend is available the connection is connected to.- Returns:
trueif the backend is available, otherwisefalse- Throws:
BackendException-BackendException
-
isBackendOffline
Returnstrueif the backend is switched offline the connection is connected to.- Returns:
trueif the backend is switched offline, otherwisefalse- Throws:
BackendException-BackendException
-