stmt.setLong(2, actionId);
stmt.setInt(2, actionId);
    public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) throws StoreException {        Connection conn = null;        PreparedStatement stmt = null;        try {            conn = getConnection();            String sql = "UPDATE " + currentTable + " SET " + stepStatus + " = ?, " + stepActionId + " = ?, " + stepFinishDate + " = ?, " + stepCaller + " = ? WHERE " + stepId + " = ?";            if (log.isDebugEnabled()) {                log.debug("Executing SQL statement: " + sql);            }            stmt = conn.prepareStatement(sql);            stmt.setString(1, status);            stmt.setLong(2, actionId);            stmt.setTimestamp(3, new Timestamp(finishDate.getTime()));            stmt.setString(4, caller);            stmt.setLong(5, step.getId());            stmt.executeUpdate();            SimpleStep theStep = (SimpleStep) step;            theStep.setActionId(actionId);            theStep.setFinishDate(finishDate);            theStep.setStatus(status);            theStep.setCaller(caller);            return theStep;        } catch (SQLException e) {            throw new StoreException("Unable to mark step finished for #" + step.getEntryId(), e);        } finally {            cleanup(conn, stmt, null);        }    }