public enum CommitStrategy extends Enum<CommitStrategy>
The strategy how the commitment of created, updated or deleted records is conducted after the execution of an
AbstractRemoteFunctionQuery
in the remote system.
For instance, after the invocation of a BAPI using BapiQuery
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.
Enum Constant and Description |
---|
COMMIT_ASYNC
The commitment in the remote system is triggered asynchronously.
|
COMMIT_SYNC
The commitment in the remote system is triggered synchronously.
|
NO_COMMIT
No commitment is triggered in the remote system.
|
Modifier and Type | Method and Description |
---|---|
static CommitStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommitStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommitStrategy NO_COMMIT
public static final CommitStrategy COMMIT_SYNC
Query.execute()
returns after the commitment is finished in the remote
system. If the commitment in the remote system failed, the method Query.execute()
throws an RemoteFunctionCommitFailedException
accordingly.public static final CommitStrategy COMMIT_ASYNC
Query.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.public static CommitStrategy[] values()
for (CommitStrategy c : CommitStrategy.values()) System.out.println(c);
public static CommitStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 SAP SE. All rights reserved.