Enum Class CommitStrategy

java.lang.Object
java.lang.Enum<CommitStrategy>
com.sap.cloud.sdk.s4hana.connectivity.rfc.CommitStrategy
All Implemented Interfaces:
Serializable, Comparable<CommitStrategy>, Constable

@Deprecated public enum CommitStrategy extends Enum<CommitStrategy>
Deprecated.
This module will be discontinued, along with its classes and methods.

The strategy how the commitment of created, updated or deleted records is conducted after the execution of an AbstractRemoteFunctionRequest in the remote system.

For instance, after the invocation of a BAPI using BapiRequest it may be required to invoke BAPI_TRANSACTION_COMMIT in order to trigger the commitment in the remote system. This strategy decides if BAPI_TRANSACTION_COMMIT is invoked and if so, whether its processing is executed synchronously or asynchronously.

See Also:
  • Enum Constant Details

    • NO_COMMIT

      public static final CommitStrategy NO_COMMIT
      Deprecated.
      No commitment is triggered in the remote system.
    • COMMIT_SYNC

      public static final CommitStrategy COMMIT_SYNC
      Deprecated.
      The commitment in the remote system is triggered synchronously. That is, the method AbstractRemoteFunctionRequest#execute() returns after the commitment is finished in the remote system. If the commitment in the remote system failed, the method AbstractRemoteFunctionRequest#execute() throws an RemoteFunctionCommitFailedException accordingly.
    • COMMIT_ASYNC

      public static final CommitStrategy COMMIT_ASYNC
      Deprecated.
      The commitment in the remote system is triggered asynchronously. That is, the method AbstractRemoteFunctionRequest#execute() invokes the commitment in the remote system, but does not wait for its processing. Consequently, there is no means to find out if the commitment in the remote system was successful.
  • Method Details

    • values

      public static CommitStrategy[] values()
      Deprecated.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CommitStrategy valueOf(String name)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null