public static Exercise getExerciseRowWithExerciseNo(String exerciseNo) {
        Connection conn = ConnectionManager.getInstance().getConnection();
        
        String sql = "{call selectExerciseRowWithExerciseNo(?)}";
        ResultSet rs = null;

        try (PreparedStatement stmt = conn.prepareStatement(sql);) {
            stmt.setString(1, exerciseNo);
            rs = stmt.executeQuery();
            rs.next();

            Exercise exerciseEntity = new Exercise();
            exerciseEntity.setExerciseNo(rs.getString("exerciseNo"));
            exerciseEntity.setCourseNo(rs.getString("courseNo"));
            exerciseEntity.setAuthor(rs.getString("author"));
            exerciseEntity.setExerciseParameterNo(rs
                    .getString("exerciseParameterNo"));
            exerciseEntity.setExerciseName(rs.getString("exerciseName"));
            exerciseEntity.setDateAdded(rs.getTimestamp("dateAdded"));
            exerciseEntity.setPassword(rs.getString("password"));

            return exerciseEntity;

        } catch (SQLTransientConnectionException SQLtce) {
            return getExerciseRowWithExerciseNo(exerciseNo);
        } catch (SQLTransientException SQLte) {
            return getExerciseRowWithExerciseNo(exerciseNo);
        } catch (SQLException e) {
            System.err.println(e);
            return null;
        } finally {
            try {
                if (rs != null) {
                    rs.close();
                }
                conn.close();
            } catch (SQLException e) {
                System.err.println(e);
            }
        }
    }