public T create(ExecutionContext executionContext) { @SuppressWarnings("unchecked") T result = (T) expressionEvaluator.getValue(executionContext); return result; }
public T create(ExecutionContext executionContext) { @SuppressWarnings("unchecked") T result = (T) expressionEvaluator.getValue(executionContext); return result; }
public boolean eval(ExecutionContext context) throws ExpressionEvaluationException { return (Boolean) getValue(context); }
public T create(ExecutionContext executionContext) { @SuppressWarnings("unchecked") T result = (T) expressionEvaluator.getValue(executionContext); return result; }
public boolean eval(ExecutionContext context) throws ExpressionEvaluationException { return (Boolean) getValue(context); }
public boolean eval(ExecutionContext context) throws ExpressionEvaluationException { return (Boolean) getValue(context); }
public boolean eval(ExecutionContext context) throws ExpressionEvaluationException { return (Boolean) getValue(context); }
private void setStatementParamaters(PreparedStatement preparedStatement, Map<String, Object> beanMap) throws SQLException { // The query params are coming from other fields in // the row (the "join fields")... for (int i = 0; i < statementExpressionEvaluators.size(); i++) { Object value; try { value = statementExpressionEvaluators.get(i).getValue(beanMap); } catch(Throwable t) { SQLException e = new SQLException("Error evaluting expression '" + statementExpressionEvaluators.get(i).getExpression() + "' on map " + beanMap); e.initCause(t); throw e; } preparedStatement.setObject((i + 1), value); } }
private void setStatementParamaters(PreparedStatement preparedStatement, Map<String, Object> beanMap) throws SQLException { // The query params are coming from other fields in // the row (the "join fields")... for (int i = 0; i < statementExpressionEvaluators.size(); i++) { Object value; try { value = statementExpressionEvaluators.get(i).getValue(beanMap); } catch(Throwable t) { SQLException e = new SQLException("Error evaluting expression '" + statementExpressionEvaluators.get(i).getExpression() + "' on map " + beanMap); e.initCause(t); throw e; } preparedStatement.setObject((i + 1), value); } }