Examples of Course


Examples of org.apache.geronimo.javaee6.jpa20.entities.Course

            String cid=request.getParameter("cid");
            String sid=request.getParameter("sid");
            int intsid = Integer.parseInt(sid);
            int intcid = Integer.parseInt(cid);
            Student student=facade.findStudent(intsid);
            Course course=facade.findCourse(intcid);
            facade.unselectCourse(student, course);
            RequestDispatcher dispatcher=request.getRequestDispatcher("viewSelect_CourseRelation?sid="+sid);
            dispatcher.forward(request, response);
        } finally {
            out.close();
View Full Code Here

Examples of org.apache.geronimo.javaee6.jpa20.entities.Course

    private Facade cfacade = null;

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        String cname = request.getParameter("cname");
        Course c  = cfacade.findCourseByName(cname);
        String cn = c.getClassroom();
        PrintWriter out = response.getWriter();
        try {
            out.println("<html>");
            out.println("<head>");
            out.println("<title>listQuery</title>");
View Full Code Here

Examples of org.apache.openjpa.persistence.common.apps.Course

        String name = "";
        List<Course> clist = new ArrayList<Course>();
        List<Department> dlist = new ArrayList<Department>();

        for (int i = 0; i < 5; i++) {
            Course curr = new Course("Math " + i, i * 2, i);
            Course acurr = new ArtCourse(i + 20, "English" + (2 * i));
            Department durr = new Department("CompSci" + i, null, i + 2);
            clist.add(curr);
            clist.add(acurr);
            dlist.add(durr);
        }
View Full Code Here

Examples of org.drools.planner.examples.curriculumcourse.domain.Course

                if (lineTokens.length != (coursesInCurriculum + 2)) {
                    throw new IllegalArgumentException("Read line (" + line + ") is expected to contain "
                            + (coursesInCurriculum + 2) + " tokens.");
                }
                for (int j = 2; j < lineTokens.length; j++) {
                    Course course = courseMap.get(lineTokens[j]);
                    if (course == null) {
                        throw new IllegalArgumentException("Read line (" + line + ") uses an unexisting course("
                                + lineTokens[j] + ").");
                    }
                    course.getCurriculumList().add(curriculum);
                }
                curriculumList.add(curriculum);
            }
            schedule.setCurriculumList(curriculumList);
        }
View Full Code Here

Examples of org.drools.planner.examples.curriculumcourse.domain.Course

            Map<String, Teacher> teacherMap = new HashMap<String, Teacher>();
            List<Course> courseList = new ArrayList<Course>(courseListSize);
            readEmptyLine();
            readConstantLine("COURSES:");
            for (int i = 0; i < courseListSize; i++) {
                Course course = new Course();
                course.setId((long) i);
                // Courses: <CourseID> <Teacher> <# Lectures> <MinWorkingDays> <# Students>
                String line = bufferedReader.readLine();
                String[] lineTokens = splitBySpacesOrTabs(line, 5);
                course.setCode(lineTokens[0]);
                course.setTeacher(findOrCreateTeacher(teacherMap, lineTokens[1]));
                course.setLectureSize(Integer.parseInt(lineTokens[2]));
                course.setMinWorkingDaySize(Integer.parseInt(lineTokens[3]));
                course.setCurriculumList(new ArrayList<Curriculum>());
                course.setStudentSize(Integer.parseInt(lineTokens[4]));
                courseList.add(course);
                courseMap.put(course.getCode(), course);
            }
            schedule.setCourseList(courseList);
            List<Teacher> teacherList = new ArrayList<Teacher>(teacherMap.values());
            schedule.setTeacherList(teacherList);
            return courseMap;
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Course

        student = Student.findById(2);
        courses = student.getAll(Course.class);
        a(1).shouldBeEqual(courses.size());

        Course c = Course.findById(1);
        List<Student> Students = c.getAll(Student.class);
        a(2).shouldBeEqual(Students.size());

        c = Course.findById(2);
        Students = c.getAll(Student.class);
        a(1).shouldBeEqual(Students.size());
    }
View Full Code Here

Examples of org.jboss.cache.data.Course

         joe.setAddress(add);

         String str;
         for(int i=0; i < objectListSize_; i++)
         {
            Course course = new Course();
            str = RandomString.randomstring(10,20);
            course.setInstructor(str);
            str = RandomString.randomstring(10,20);
            course.setTitle(str);
            str = RandomString.randomstring(10,20);
            course.setRoom(str);
            joe.addCourse(course);
         }

         return joe;
      }
View Full Code Here

Examples of org.jboss.serial.data.cache.Course

        joe.setAddress(add);

        String str;
        for(int i=0; i < 100; i++)
        {
           Course course = new Course();
           str = RandomString.randomstring(10,20);
           course.setInstructor(str);
           str = RandomString.randomstring(10,20);
           course.setTitle(str);
           str = RandomString.randomstring(10,20);
           course.setRoom(str);
           joe.addCourse(course);
        }

        return joe;
   
View Full Code Here

Examples of org.nm.ntutimetabletoics.Course

    private void initSemesterTimetable(net.htmlparser.jericho.Element div,
            SemesterTimetable sT) {
        List<net.htmlparser.jericho.Element> rows =
                div.getAllElements(HTMLElementName.TR);
        Iterator<net.htmlparser.jericho.Element> rowIt = rows.iterator();
        Course course = null;
        int rowNo = 0;
        while (rowIt.hasNext()) {
            div = rowIt.next();
            List<net.htmlparser.jericho.Element> cols = div.getChildElements();
            if (rowNo == 0) { // header row
View Full Code Here

Examples of org.nm.ntutimetabletoics.Course

            boolean emptyString = txt == null || txt.trim().isEmpty();
            if (colNo == 0) {
                if (emptyString) {
                    sameCourse = true;
                } else {
                    course = new Course(sT);
                    sT.getCourses().add(course);
                    ntuTimetable.getCourses().add(course);
                    Setter.set(course, header[colNo], txt.trim());
                    sameCourse = false;
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.