com.backendless.transaction.OpResultValueReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-common Show documentation
Show all versions of java-sdk-common Show documentation
Provides access to Backendless API
The newest version!
package com.backendless.transaction;
import java.util.Map;
public class OpResultValueReference
{
private final OpResult opResult;
private final Integer resultIndex;
private final String propName;
OpResultValueReference( OpResult opResult, Integer resultIndex, String propName )
{
this.opResult = opResult;
this.resultIndex = resultIndex;
this.propName = propName;
}
OpResultValueReference( OpResult opResult, Integer resultIndex )
{
this.opResult = opResult;
this.resultIndex = resultIndex;
this.propName = null;
}
OpResultValueReference( OpResult opResult, String propName )
{
this.opResult = opResult;
this.resultIndex = null;
this.propName = propName;
}
public OpResult getOpResult()
{
return opResult;
}
public Integer getResultIndex()
{
return resultIndex;
}
public String getPropName()
{
return propName;
}
public OpResultValueReference resolveTo( String propName )
{
return new OpResultValueReference( opResult, resultIndex, propName );
}
Map makeReference()
{
Map referenceMap = opResult.makeReference();
if( resultIndex != null )
referenceMap.put( UnitOfWork.RESULT_INDEX, resultIndex );
if( propName != null )
referenceMap.put( UnitOfWork.PROP_NAME, propName );
return referenceMap;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy