public class FunctionContext
extends Object
Constructor and Description |
---|
FunctionContext()
Instantiates a new FunctionContext.
|
Modifier and Type | Method and Description |
---|---|
Object |
execute(Variable var)
Executes function associated with the variable for the current execution scope.
|
DataSetRecord |
getCurrentRecord()
Gets the current record of the data set.
|
Object |
getCurrentValue()
Gets the value of the current field of the current record of the data set.
|
long |
getRow()
Gets the current row.
|
int |
getScope()
Gets the execution scope.
|
Variable |
getVariable()
Gets the variable associated with the execution context.
|
boolean |
isDoNotEncode()
Checks if "do not encode" flag is set.
|
boolean |
isFromCursor()
Checks if "from cursor" flag is set.
|
void |
setCurrentRecord(DataSetRecord value)
Sets the current record of the data set.
|
void |
setCurrentValue(Object value)
Sets the value of the current field of the current record of the data set.
|
void |
setDoNotEncode(boolean value)
Sets the "do not encode" flag.
|
void |
setFromCursor(boolean value)
Sets the flag "from cursor".
|
void |
setRow(long value)
Sets the row.
|
void |
setScope(int value)
Sets the execution scope.
|
void |
setVariable(Variable var)
Sets the variable.
|
public Object execute(Variable var) throws Exception
var
- the variableException
- in case of any errorpublic DataSetRecord getCurrentRecord()
public Object getCurrentValue()
public long getRow()
public int getScope()
public Variable getVariable()
public boolean isFromCursor()
public void setCurrentRecord(DataSetRecord value)
value
- the new current recordpublic void setCurrentValue(Object value)
value
- The new current valuepublic void setFromCursor(boolean value)
value
- the new checks if is from tablepublic void setDoNotEncode(boolean value)
value
- the new vaue of the do not encode flagpublic boolean isDoNotEncode()
public void setRow(long value)
value
- the new rowpublic void setScope(int value)
before, after and at runtime
(any combination of these).value
- the new scopepublic void setVariable(Variable var)
var
- the new variableCopyright © 2010-2020 Toolsverse. All Rights Reserved.