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
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.
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
FieldsFields inherited from class de.hybris.platform.sap.core.jco.connection.impl.JCoConnectionImpl
connectionParameters, destroyed, jcoManagedConnectionContainer, properties, rfcDestinationService, scopeTypeFields inherited from interface de.hybris.platform.sap.core.jco.connection.JCoConnection
JCO_DESTINATION, JCO_LANG, JCO_SCOPE_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
managedFunctionCache
Cache for managed functions.
-
-
Constructor Details
-
JCoConnectionStateless
Constructor.- Parameters:
properties- properties
-
-
Method Details
-
isFunctionCached
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 BackendException Description copied from class:JCoConnectionImplExecutes function on cache result.- Overrides:
executeCachedFunctionin classJCoConnectionImpl- Parameters:
destination- rfc destinationmanagedFunction- rfc function- Throws:
BackendException-BackendException
-