/** Gets an expression for the current date */ private Expression getCurrentDate() { // unfortunately, we hard code the method name here return translator.convertVariable( translator.getTypeFactory().createSqlType(SqlTypeName.DATE), "getContextVariable_CURRENT_DATE", new ExpressionList()); }