String left;
String left = fieldName(field);
    private String queryComparison(WorkflowQuery query) {        Object value = query.getValue();        int operator = query.getOperator();        int field = query.getField();        //int type = query.getType();        String oper;        switch (operator) {        case WorkflowQuery.EQUALS:            oper = " = ";            break;        case WorkflowQuery.NOT_EQUALS:            oper = " <> ";            break;        case WorkflowQuery.GT:            oper = " > ";            break;        case WorkflowQuery.LT:            oper = " < ";            break;        default:            oper = " = ";        }        String left;        String right;        switch (field) {        case WorkflowQuery.ACTION: // actionId            left = stepActionId;            break;        case WorkflowQuery.CALLER:            left = stepCaller;            break;        case WorkflowQuery.FINISH_DATE:            left = stepFinishDate;            break;        case WorkflowQuery.OWNER:            left = stepOwner;            break;        case WorkflowQuery.START_DATE:            left = stepStartDate;            break;        case WorkflowQuery.STEP: // stepId            left = stepStepId;            break;        case WorkflowQuery.STATUS:            left = stepStatus;            break;        default:            left = "1";        }        if (value != null) {            right = "'" + escape(value.toString()) + "'";        } else {            right = "null";        }        return left + oper + right;    }