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()
Evaluatorpublic java.lang.String getSQL()
Evaluatorpublic java.lang.String getDescription()
EvaluatorgetDescription in interface Evaluatorpublic java.lang.Object evaluate(EvaluatorData data) throws EvaluatorException
Evaluatorevaluate in interface EvaluatorEvaluatorException - 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
ParseExceptionpublic void saveToState(PersistentState ps) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState ps) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic EvaluatorFieldsInfo getFieldsInfo()
EvaluatorgetFieldsInfo in interface Evaluatorpublic EvaluatorWithDescriptions.Description[] getAvailableOperators()
getAvailableOperators in interface EvaluatorWithDescriptionspublic EvaluatorWithDescriptions.Description[] getAvailableFunctions()
getAvailableFunctions in interface EvaluatorWithDescriptions