long actionId = DataUtil.getLong((Long) value);
long actionId = DataUtil.getInt((Integer) value);
    private boolean queryEquals(Long entryId, int field, int type, Object value) {        List steps;        if (type == WorkflowQuery.CURRENT) {            steps = (List) currentStepsCache.get(entryId);        } else {            steps = (List) historyStepsCache.get(entryId);        }        switch (field) {        case WorkflowQuery.ACTION:            long actionId = DataUtil.getLong((Long) value);            for (Iterator iterator = steps.iterator(); iterator.hasNext();) {                SimpleStep step = (SimpleStep) iterator.next();                if (step.getActionId() == actionId) {                    return true;                }            }            return false;        case WorkflowQuery.CALLER:            String caller = (String) value;            for (Iterator iterator = steps.iterator(); iterator.hasNext();) {                SimpleStep step = (SimpleStep) iterator.next();                if (TextUtils.noNull(step.getCaller()).equals(caller)) {                    return true;                }            }            return false;        case WorkflowQuery.FINISH_DATE:            Date finishDate = (Date) value;            for (Iterator iterator = steps.iterator(); iterator.hasNext();) {                SimpleStep step = (SimpleStep) iterator.next();                if (finishDate.equals(step.getFinishDate())) {                    return true;                }            }            return false;        case WorkflowQuery.OWNER:            String owner = (String) value;            for (Iterator iterator = steps.iterator(); iterator.hasNext();) {                SimpleStep step = (SimpleStep) iterator.next();                if (TextUtils.noNull(step.getOwner()).equals(owner)) {                    return true;                }            }            return false;        case WorkflowQuery.START_DATE:            Date startDate = (Date) value;            for (Iterator iterator = steps.iterator(); iterator.hasNext();) {                SimpleStep step = (SimpleStep) iterator.next();                if (startDate.equals(step.getStartDate())) {                    return true;                }            }            return false;        case WorkflowQuery.STEP:            int stepId = DataUtil.getInt((Integer) value);            for (Iterator iterator = steps.iterator(); iterator.hasNext();) {                SimpleStep step = (SimpleStep) iterator.next();                if (stepId == step.getStepId()) {                    return true;                }            }            return false;        case WorkflowQuery.STATUS:            String status = (String) value;            for (Iterator iterator = steps.iterator(); iterator.hasNext();) {                SimpleStep step = (SimpleStep) iterator.next();                if (TextUtils.noNull(step.getStatus()).equals(status)) {                    return true;                }            }            return false;        }        return false;    }