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
public interface BackendBusinessObjectJCo extends BackendBusinessObject
This interface should be implemented by Backend Business Object which communicate with an SAP System using Java Connector of SAP.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDefaultConnectionName()Returns the defaultConnectionName.java.lang.StringgetDefaultDestinationName()Returns the destinationName.JCoConnectiongetDefaultJCoConnection()Returns the requested default JCo connection with the default connection name and the RFC connection defined in the SAP Base Store configuration.JCoConnectiongetJCoConnection(java.lang.String connectionName, java.lang.String destinationName)Returns the requested JCo connection.JCoConnectiongetJCoConnection(java.lang.String connectionName, java.lang.String destinationName, java.lang.String scopeId)Returns the requested JCo connection for a given scope.voidsetDefaultConnectionName(java.lang.String defaultConnectionName)Sets the defaultConnectionName.voidsetDefaultDestinationName(java.lang.String destinationName)Sets the destinationName (optional).-
Methods inherited from interface de.hybris.platform.sap.core.bol.backend.BackendBusinessObject
destroyBackendObject, initBackendObject
-
-
-
-
Method Detail
-
getDefaultJCoConnection
JCoConnection getDefaultJCoConnection() throws BackendException
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(java.lang.String connectionName, java.lang.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(java.lang.String connectionName, java.lang.String destinationName, java.lang.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
void setDefaultConnectionName(java.lang.String defaultConnectionName)
Sets the defaultConnectionName.- Parameters:
defaultConnectionName- default connection name to be set
-
getDefaultConnectionName
java.lang.String getDefaultConnectionName()
Returns the defaultConnectionName.- Returns:
- default connection name
-
setDefaultDestinationName
void setDefaultDestinationName(java.lang.String destinationName)
Sets the destinationName (optional).- Parameters:
destinationName- destination name to be used for JCo
-
getDefaultDestinationName
java.lang.String getDefaultDestinationName()
Returns the destinationName.- Returns:
- destinationName to be used for JCo
-
-