public class SQLJEPEvaluator extends RowJEP implements EvaluatorWithDescriptions, Persistent
EvaluatorWithDescriptions.Description
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TODATE_FUNCTION_NAME |
Constructor and Description |
---|
SQLJEPEvaluator(java.lang.String expresion) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(EvaluatorData data)
Evaluate with the data passed as parameter.
|
EvaluatorWithDescriptions.Description[] |
getAvailableFunctions() |
EvaluatorWithDescriptions.Description[] |
getAvailableOperators() |
java.lang.String |
getDescription()
Get a description of the action performed with the evaluator.
|
EvaluatorFieldsInfo |
getFieldsInfo()
Get information about fiels used in the evaluator.
|
java.lang.String |
getName()
Get the symbolic name of the evaluator.
|
java.lang.String |
getSQL()
Get a SQL representation of the evaluator.
|
java.util.Map.Entry |
getVariable(java.lang.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 java.lang.String TODATE_FUNCTION_NAME
public java.lang.String getName()
Evaluator
public java.lang.String getSQL()
Evaluator
public java.lang.String getDescription()
Evaluator
getDescription
in interface Evaluator
public java.lang.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 java.util.Map.Entry getVariable(java.lang.String name) throws ParseException
ParseException
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