Interface JCoConnection
-
- All Known Implementing Classes:
ConnectionDelegator,JCoConnectionImpl,JCoConnectionStateful,JCoConnectionStateless
public interface JCoConnectionInterface for creating a connection to an ABAP system.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJCO_DESTINATIONProperty name for destination parameter.static java.lang.StringJCO_LANGProperty name for JCo language.static java.lang.StringJCO_SCOPE_TYPEProperty name for scope type parameter.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(com.sap.conn.jco.JCoFunction function)This method is used to execute a JCoFunction on behalf of this connection.com.sap.conn.jco.JCoFunctiongetFunction(java.lang.String functionName)Returns a JCoFunction object for the given function name.booleanisBackendAvailable()Returnstrueif the backend is available the connection is connected to.booleanisBackendOffline()Returnstrueif the backend is switched offline the connection is connected to.booleanisFunctionAvailable(java.lang.String functionName)Returnstrueif the JCo Function is available on the SAP system the connection is connected to.voidsetCallerId(java.lang.String callerID)Sets the caller id.
-
-
-
Field Detail
-
JCO_DESTINATION
static final java.lang.String JCO_DESTINATION
Property name for destination parameter.- See Also:
- Constant Field Values
-
JCO_SCOPE_TYPE
static final java.lang.String JCO_SCOPE_TYPE
Property name for scope type parameter.- See Also:
- Constant Field Values
-
JCO_LANG
static final java.lang.String JCO_LANG
Property name for JCo language.- See Also:
- Constant Field Values
-
-
Method Detail
-
getFunction
com.sap.conn.jco.JCoFunction getFunction(java.lang.String functionName) throws BackendExceptionReturns 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
void execute(com.sap.conn.jco.JCoFunction function) throws BackendExceptionThis 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
boolean isFunctionAvailable(java.lang.String functionName) throws BackendExceptionReturnstrueif 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
void setCallerId(java.lang.String callerID)
Sets the caller id.- Parameters:
callerID- caller id.
-
isBackendAvailable
boolean isBackendAvailable() throws BackendExceptionReturnstrueif the backend is available the connection is connected to.- Returns:
trueif the backend is available, otherwisefalse- Throws:
BackendException-BackendException
-
isBackendOffline
boolean isBackendOffline() throws BackendExceptionReturnstrueif the backend is switched offline the connection is connected to.- Returns:
trueif the backend is switched offline, otherwisefalse- Throws:
BackendException-BackendException
-
-