public class SQLJEPEvaluator extends RowJEP implements EvaluatorWithDescriptions, Persistent
EvaluatorWithDescriptions.Description
Modifier and Type | Field and Description |
---|---|
static String |
TODATE_FUNCTION_NAME |
Constructor and Description |
---|
SQLJEPEvaluator(String expresion) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(EvaluatorData data)
Evaluate with the data passed as parameter.
|
EvaluatorWithDescriptions.Description[] |
getAvailableFunctions() |
EvaluatorWithDescriptions.Description[] |
getAvailableOperators() |
String |
getDescription()
Get a description of the action performed with the evaluator.
|
EvaluatorFieldsInfo |
getFieldsInfo()
Get information about fiels used in the evaluator.
|
String |
getName()
Get the symbolic name of the evaluator.
|
String |
getSQL()
Get a SQL representation of the evaluator.
|
Map.Entry |
getVariable(String name) |
void |
loadFromState(PersistentState ps)
Set the state of the object from the state passed as parameter.
|
void |
saveToState(PersistentState ps)
Saves the internal state of the object on the provided
PersistentState object.
|
public static final String TODATE_FUNCTION_NAME
public SQLJEPEvaluator(String expresion)
public String getName()
Evaluator
public String getSQL()
Evaluator
public String getDescription()
Evaluator
getDescription
in interface Evaluator
public Object evaluate(EvaluatorData data) throws EvaluatorException
Evaluator
evaluate
in interface Evaluator
EvaluatorException
- if an issue is found while evaluating.
The subclass EvaluatorParseException
is used to indicate
a problem while parsing (malformed expression) rather than a
problem while evaluating.public void saveToState(PersistentState ps) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState ps) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public EvaluatorFieldsInfo getFieldsInfo()
Evaluator
getFieldsInfo
in interface Evaluator
public EvaluatorWithDescriptions.Description[] getAvailableOperators()
getAvailableOperators
in interface EvaluatorWithDescriptions
public EvaluatorWithDescriptions.Description[] getAvailableFunctions()
getAvailableFunctions
in interface EvaluatorWithDescriptions