Package com.darkhonor.rage.libs.dataaccess

Examples of com.darkhonor.rage.libs.dataaccess.InstructorDAO.closeConnection()


                    }
                    sectionReport.sortStudentReports();
                    RageLib.printSectionReport(outputFile, sectionReport);
                }
                // Close the connection to the Data Source
                instructorDAO.closeConnection();
            } /**
             * Grade all students in a single section
             */
            else if ((cboStudent.getSelectedIndex() == 0)
                    && (cboSection.getSelectedIndex() > 0))
View Full Code Here


                        student = (Student) query.getSingleResult();
                        path = path.concat(student.getWebID());
                    }
                    sectionDAO.closeConnection();
                }
                instructorDAO.closeConnection();
            }
            // Figure out what is selected based on the path info above
            if ((cboInstructor.getSelectedIndex() == 0) && (cboSection.getSelectedIndex() < 0))
            {  // Assignment and All Instructors is selected, no section or student
                // selected
View Full Code Here

                    // authorized.  Perhaps give them a couple of tries.
                }
                statusMessageLabel.setText("Welcome " + instructor.getFirstName()
                        + " " + instructor.getLastName());
                LOGGER.debug("(connectAction) Closing InstructorDAO connection");
                instructorDAO.closeConnection();
            } catch (NoResultException ex)
            {
                LOGGER.error("(connectAction) Instructor not found in the data "
                        + "source");
                JOptionPane.showMessageDialog(CourseGraderApp.getApplication()
View Full Code Here

                        + "source");
                JOptionPane.showMessageDialog(CourseGraderApp.getApplication()
                        .getMainFrame(), "Instructor " + userName + " not found "
                        + "in the database.  Exiting CourseGrader.", "Error",
                        JOptionPane.ERROR_MESSAGE);
                instructorDAO.closeConnection();
                this.exitApplication();
            } catch (IllegalStateException ex)
            {
                LOGGER.warn("(connectAction) Problem connecting to the database "
                        + "with the InstructorDAO object");
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.