com.backendless.transaction.UnitOfWorkResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Commons lib for both server and client Java/Android SDKs
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