Package com.darkhonor.rage.libs.dataaccess

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


                                                {
                                                    tx.begin();
                                                    em.persist(stu);
                                                    tx.commit();
                                                }
                                                sectionDAO.closeConnection();
                                            }
                                            tx.begin();
                                            // TODO: RAGE-71 - Migrate to InstructorDAO
                                            query = em.createQuery("select p FROM Person p WHERE p.webID = :webid");
                                            query.setParameter("webid", ins.getWebID());
View Full Code Here


            } catch (Exception ex)
            {
                LOGGER.error("Exception Caught: " + ex.getLocalizedMessage());
            } finally
            {
                sectionDAO.closeConnection();
            }
            cboStudent.setSelectedIndex(-1)// Blank out the student name as well
            cboStudent.setEnabled(false);
            cboSection.setSelectedIndex(-1);
            cboSection.setEnabled(true);
View Full Code Here

        } catch (IllegalArgumentException ex)
        {
            LOGGER.error("Illegal Argument to command.  " + ex.getLocalizedMessage());
        } finally
        {
            sectionDAO.closeConnection();
        }
        LOGGER.debug("Finished with cboSectionActionPerformed");
        gradeAssignmentsMenuItem.setEnabled(true);
    }
}//GEN-LAST:event_cboSectionActionPerformed
View Full Code Here

                }
                sectionReport.sortStudentReports();
                RageLib.printSectionReport(outputFile, sectionReport);

                // Close the connection to the Data Source
                sectionDAO.closeConnection();
            } /**
             * Just grade a single student
             */
            else
            {
View Full Code Here

                        query.setParameter("fname", name[1].trim());
                        query.setParameter("lname", name[0].trim());
                        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))
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.