Interface BackendBusinessObjectJCo
- All Superinterfaces:
BackendBusinessObject
- All Known Implementing Classes:
BackendBusinessObjectBaseJCo,BasketERP,ConverterBackendERP,ConverterBackendERPCRM,IsaBackendBusinessObjectBaseSalesERP,OrderBaseERP,OrderERP,OrderHistoryERP,SalesDocumentERP,SapCreditCheckBackendERP,SapInvoiceBackendImpl,SapPricingBackendERP,SapProductAvailabilityBackendERP,SearchBackendERP,TransactionConfigurationBase,TransactionConfigurationERP
This interface should be implemented by Backend Business Object which communicate with an SAP System using Java
Connector of SAP.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the defaultConnectionName.Returns the destinationName.Returns the requested default JCo connection with the default connection name and the RFC connection defined in the SAP Base Store configuration.getJCoConnection(String connectionName, String destinationName) Returns the requested JCo connection.getJCoConnection(String connectionName, String destinationName, String scopeId) Returns the requested JCo connection for a given scope.voidsetDefaultConnectionName(String defaultConnectionName) Sets the defaultConnectionName.voidsetDefaultDestinationName(String destinationName) Sets the destinationName (optional).Methods inherited from interface de.hybris.platform.sap.core.bol.backend.BackendBusinessObject
destroyBackendObject, initBackendObject
-
Method Details
-
getDefaultJCoConnection
Returns the requested default JCo connection with the default connection name and the RFC connection defined in the SAP Base Store configuration.- Returns:
- JCo client connection to an SAP system
- Throws:
BackendException- Backend Exception
-
getJCoConnection
JCoConnection getJCoConnection(String connectionName, String destinationName) throws BackendException Returns the requested JCo connection.- Parameters:
connectionName- name of the connection as defined in sapcorejco-spring.xml (e.g. JCoConnectionStateless)destinationName- name of the RFC destination to be used- Returns:
- JCo client connection to an SAP system
- Throws:
BackendException- Backend Exception
-
getJCoConnection
JCoConnection getJCoConnection(String connectionName, String destinationName, String scopeId) throws BackendException Returns the requested JCo connection for a given scope.- Parameters:
connectionName- name of the connection as defined in sapcorejco-spring.xml (e.g. JCoConnectionStateless)destinationName- name of the RFC destination to be usedscopeId- scope id which is needed to identify different connections (sessions) to the same destination- Returns:
- JCo client connection to an SAP system
- Throws:
BackendException- Backend Exception
-
setDefaultConnectionName
Sets the defaultConnectionName.- Parameters:
defaultConnectionName- default connection name to be set
-
getDefaultConnectionName
String getDefaultConnectionName()Returns the defaultConnectionName.- Returns:
- default connection name
-
setDefaultDestinationName
Sets the destinationName (optional).- Parameters:
destinationName- destination name to be used for JCo
-
getDefaultDestinationName
String getDefaultDestinationName()Returns the destinationName.- Returns:
- destinationName to be used for JCo
-