Class SoapTransaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>>
java.lang.Object
com.sap.cloud.sdk.s4hana.connectivity.rfc.SoapTransaction<RequestT,RequestResultT>
- Type Parameters:
RequestT
- The type of the request to execute.RequestResultT
- The type of the result to return.
- All Implemented Interfaces:
Transaction<RequestT,
RequestResultT>
@Deprecated
public class SoapTransaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,RequestResultT>,RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT,RequestResultT>>
extends Object
implements Transaction<RequestT,RequestResultT>
Deprecated.
This module will be discontinued, along with its classes and methods.
Implementation of the
Transaction
interface to be used for SOAP queries.-
Constructor Summary
ConstructorDescriptionSoapTransaction
(RequestSerializer<RequestT, RequestResultT> requestSerializer, ErpHttpRequestExecutor<RequestT, RequestResultT> requestExecutorLogic, ErpHttpRequestExecutor<BapiRequest, BapiRequestResult> bapiRequestExecutorLogic) Deprecated.Creates a newSoapTransaction
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
after()
Deprecated.This method gets called *in any case* after the transactional calls are done.void
before
(Destination destination, RequestT request) Deprecated.This method gets called before anything else gets called in theRemoteFunctionRequestExecutor
.void
commit
(Destination destination, RequestT request) Deprecated.IfTransaction.execute(Destination, AbstractRemoteFunctionRequest)
succeeded, this method is called to actually commit the changes.execute
(Destination destination, RequestT request) Deprecated.The actual logic to be executed.void
rollback
(Destination destination, RequestT request) Deprecated.If there was a problem withTransaction.execute(Destination, AbstractRemoteFunctionRequest)
orTransaction.commit(Destination, AbstractRemoteFunctionRequest)
this method will get called to rollback any unwanted changes.
-
Constructor Details
-
SoapTransaction
public SoapTransaction(RequestSerializer<RequestT, RequestResultT> requestSerializer, ErpHttpRequestExecutor<RequestT, RequestResultT> requestExecutorLogic, ErpHttpRequestExecutor<BapiRequest, BapiRequestResult> bapiRequestExecutorLogic) Deprecated.Creates a newSoapTransaction
instance.- Parameters:
requestSerializer
- The serializer to be used during execution.requestExecutorLogic
- The executor logic to be used in the execute case.bapiRequestExecutorLogic
- The executor logic to be used in the commit and rollback case.
-
-
Method Details
-
before
Deprecated.Description copied from interface:Transaction
This method gets called before anything else gets called in theRemoteFunctionRequestExecutor
.- Specified by:
before
in interfaceTransaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,
RequestResultT>, RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT, RequestResultT>> - Parameters:
destination
- TheDestination
of this call.request
- TheAbstractRemoteFunctionRequest
going to be executed.
-
execute
@Nonnull public RequestResultT execute(@Nonnull Destination destination, @Nonnull RequestT request) throws RequestExecutionException Deprecated.Description copied from interface:Transaction
The actual logic to be executed.- Specified by:
execute
in interfaceTransaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,
RequestResultT>, RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT, RequestResultT>> - Parameters:
destination
- TheDestination
of this call.request
- TheAbstractRemoteFunctionRequest
going to execute.- Returns:
- The
AbstractRemoteFunctionRequestResult
created by the request. - Throws:
RequestExecutionException
- if an exception occurred during theexecute
implementation.
-
commit
public void commit(@Nonnull Destination destination, @Nonnull RequestT request) throws RequestSerializationException, RequestExecutionException Deprecated.Description copied from interface:Transaction
IfTransaction.execute(Destination, AbstractRemoteFunctionRequest)
succeeded, this method is called to actually commit the changes.- Specified by:
commit
in interfaceTransaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,
RequestResultT>, RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT, RequestResultT>> - Parameters:
destination
- TheDestination
of this call.request
- TheAbstractRemoteFunctionRequest
that was executed.- Throws:
RequestExecutionException
- If an exception occurred during thecommit
implementation.RequestSerializationException
-
rollback
public void rollback(@Nonnull Destination destination, @Nonnull RequestT request) throws RequestSerializationException, RequestExecutionException Deprecated.Description copied from interface:Transaction
If there was a problem withTransaction.execute(Destination, AbstractRemoteFunctionRequest)
orTransaction.commit(Destination, AbstractRemoteFunctionRequest)
this method will get called to rollback any unwanted changes.- Specified by:
rollback
in interfaceTransaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,
RequestResultT>, RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT, RequestResultT>> - Parameters:
destination
- TheDestination
of this call.request
- TheAbstractRemoteFunctionRequest
that was executed.- Throws:
RequestExecutionException
- If an exception occurred during therollback
implementation.RequestSerializationException
-
after
public void after()Deprecated.Description copied from interface:Transaction
This method gets called *in any case* after the transactional calls are done.- Specified by:
after
in interfaceTransaction<RequestT extends AbstractRemoteFunctionRequest<RequestT,
RequestResultT>, RequestResultT extends AbstractRemoteFunctionRequestResult<RequestT, RequestResultT>>
-