All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.transaction.UnitOfWorkResult Maven / Gradle / Ivy

The newest version!
package com.backendless.transaction;

import java.util.Map;

public class UnitOfWorkResult
{
  private boolean success;
  private TransactionOperationError error;
  private Map results;

  public UnitOfWorkResult()
  {
  }

  public UnitOfWorkResult( boolean success, TransactionOperationError error )
  {
    this.success = success;
    this.error = error;
  }

  public UnitOfWorkResult( boolean success, Map results )
  {
    this.success = success;
    this.results = results;
  }

  public boolean isSuccess()
  {
    return success;
  }

  public void setSuccess( boolean success )
  {
    this.success = success;
  }

  public TransactionOperationError getError()
  {
    return error;
  }

  public void setError( TransactionOperationError error )
  {
    this.error = error;
  }

  public Map getResults()
  {
    return results;
  }

  public void setResults( Map results )
  {
    this.results = results;
  }

  @Override
  public String toString()
  {
    String error = this.error != null ? this.error.toString() : "error=null";
    return "UnitOfWorkResult{success=" + success + ", " + error + ", results=" + results + "}";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy