Class JCoConnectionStateless
- java.lang.Object
-
- de.hybris.platform.sap.core.jco.connection.impl.JCoConnectionImpl
-
- de.hybris.platform.sap.core.jco.connection.impl.JCoConnectionStateless
-
- All Implemented Interfaces:
JCoConnection
public class JCoConnectionStateless extends JCoConnectionImpl
Stateless RFC connection.
Establishes a stateless RFC connection to the backend. Connection is taken from the connection pool and released automatically to the pool after execution was done.
-
-
Field Summary
Fields Modifier and Type Field Description protected JCoManagedFunctionCachemanagedFunctionCacheCache for managed functions.-
Fields inherited from class de.hybris.platform.sap.core.jco.connection.impl.JCoConnectionImpl
connectionParameters, destroyed, jcoManagedConnectionContainer, properties, rfcDestinationService
-
Fields inherited from interface de.hybris.platform.sap.core.jco.connection.JCoConnection
JCO_DESTINATION, JCO_LANG, JCO_SCOPE_TYPE
-
-
Constructor Summary
Constructors Constructor Description JCoConnectionStateless(java.util.Properties properties)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecuteCachedFunction(com.sap.conn.jco.JCoDestination destination, JCoManagedFunction managedFunction)Executes function on cache result.protected booleanisFunctionCached(JCoManagedFunction managedFunction)Checks if function result is cached.-
Methods inherited from class de.hybris.platform.sap.core.jco.connection.impl.JCoConnectionImpl
checkInternalStatus, execute, getCallerId, getDestination, getFunction, getReplacedFunctionModuleName, getRFCDestination, getScopeType, handleCommunicationExceptionAndDestroyConnection, init, isBackendAvailable, isBackendOffline, isFunctionAvailable, isStateful, postProcessingExecute, preProcessingExecute, setCallerId, setConnectionParameters, setDestroyed, setJcoManagedConnectionContainer, setRfcDestinationService, setScopeType
-
-
-
-
Field Detail
-
managedFunctionCache
protected JCoManagedFunctionCache managedFunctionCache
Cache for managed functions.
-
-
Method Detail
-
isFunctionCached
protected boolean isFunctionCached(JCoManagedFunction managedFunction)
Description copied from class:JCoConnectionImplChecks if function result is cached.- Overrides:
isFunctionCachedin classJCoConnectionImpl- Parameters:
managedFunction- requested function- Returns:
- true, if result is cached
-
executeCachedFunction
protected void executeCachedFunction(com.sap.conn.jco.JCoDestination destination, JCoManagedFunction managedFunction) throws BackendExceptionDescription copied from class:JCoConnectionImplExecutes function on cache result.- Overrides:
executeCachedFunctionin classJCoConnectionImpl- Parameters:
destination- rfc destinationmanagedFunction- rfc function- Throws:
BackendException-BackendException
-
-