Dela via


IStoreTransactionScope Interface

public interface IStoreTransactionScope

Allows scoping of a transactional operation on the store.

Method Summary

Modifier and Type Method and Description
void executeCommandBatch(List<StringBuilder> commands)

Executes the given set of commands.

StoreResults executeCommandSingle(StringBuilder command)

Executes the given command.

StoreResults executeOperation(String operationName, JAXBElement operationData)

Executes the given operation using the operationData values as input to the operation.

Callable<StoreResults> executeOperationAsync(String operationName, JAXBElement operationData)

Asynchronously executes the given operation using the operationData values as input to the operation.

StoreTransactionScopeKind getKind()

Type of transaction scope.

boolean getSuccess()

When set to true, implies that the transaction is ready for commit.

void setSuccess(boolean value)

Method Details

executeCommandBatch

public void executeCommandBatch(List commands)

Executes the given set of commands.

Parameters:

commands - Collection of commands to execute.

executeCommandSingle

public StoreResults executeCommandSingle(StringBuilder command)

Executes the given command.

Parameters:

command - Command to execute.

Returns:

Storage results object.

executeOperation

public StoreResults executeOperation(String operationName, JAXBElement operationData)

Executes the given operation using the operationData values as input to the operation.

Parameters:

operationName - Operation to execute.
operationData - Input data for operation.

Returns:

Storage results object.

executeOperationAsync

public Callable executeOperationAsync(String operationName, JAXBElement operationData)

Asynchronously executes the given operation using the operationData values as input to the operation.

Parameters:

operationName - Operation to execute.
operationData - Input data for operation.

Returns:

Task encapsulating storage results object.

getKind

public StoreTransactionScopeKind getKind()

Type of transaction scope.

getSuccess

public boolean getSuccess()

When set to true, implies that the transaction is ready for commit.

setSuccess

public void setSuccess(boolean value)

Parameters:

value

Applies to