6.6.8.1.2.2. Result

public class Result<V>

A Quasardb batch operation result is :

  • A success status.
  • The alias which was associated with the current operation result.
  • The operation type which was associated with the current operation result.
  • A value which can be the result of the current operation.
  • An error which can be the result of the current operation.
Author:

© quasardb - 2014

Parameters:
  • <V> – Object type associated with the current operation.

6.6.8.1.2.2.1. Constructors

6.6.8.1.2.2.1.1. Result

public Result()

6.6.8.1.2.2.2. Methods

6.6.8.1.2.2.2.1. getAlias

public String getAlias()

Get alias associated with the current operation.

Returns:alias associated with the current operation.

6.6.8.1.2.2.2.2. getError

public String getError()

Get result error for the current operation.

Returns:Result error for the current operation.

6.6.8.1.2.2.2.3. getTypeOperation

public TypeOperation getTypeOperation()

Get operation type associated with the current operation.

Returns:Operation type associated with the current operation.

6.6.8.1.2.2.2.4. getValue

public V getValue()

Get result value for the current operation.

Returns:Result value for the current operation.

6.6.8.1.2.2.2.5. isSuccess

public boolean isSuccess()

Are this current operation successful ?

Returns:true if current operation is successful. false in all other cases.

6.6.8.1.2.2.2.6. setAlias

public void setAlias(String alias)

Set alias associated with the current operation.

Parameters:
  • alias – Alias associated with the current operation.

6.6.8.1.2.2.2.7. setError

public void setError(String error)

Set result error for the current operation.

Parameters:
  • error – Result error for the current operation.

6.6.8.1.2.2.2.8. setSuccess

public void setSuccess(boolean success)

Set if current operation is successful or not.

Parameters:
  • success – Success status for current operation.

6.6.8.1.2.2.2.9. setTypeOperation

public void setTypeOperation(TypeOperation typeOperation)

Set operation type associated with the current operation.

Parameters:
  • typeOperation – Operation type associated with the current operation.

6.6.8.1.2.2.2.10. setValue

public void setValue(V value)

Set result value for the current operation.

Parameters:
  • value – Result value for the current operation.