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()
Evaluatorpublic String getSQL()
Evaluatorpublic String getDescription()
EvaluatorgetDescription in interface Evaluatorpublic 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 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