Package com.darkhonor.rage.libs.dataaccess

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


            {
                modGradedEventQuestions.add(gevent.getQuestions().get(i));
            }
        }
        //em.close();
        courseDAO.closeConnection();
        gradedEventDAO.closeConnection();
    }//GEN-LAST:event_lstGradedEventsMouseClicked

    private void btnRemoveEventQuestionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveEventQuestionActionPerformed
View Full Code Here


                LOGGER.error("No questions found");
                btnSave.setEnabled(false);
                btnCancel.setEnabled(true);
            }
            em.close();
            courseDAO.closeConnection();
            btnSave.setEnabled(true);
            btnCancel.setEnabled(true);
            returnStatus = RET_CANCEL;
        }
        LOGGER.debug("Dialog initialized");
View Full Code Here

                lstQuestions.setSelectedIndex(-1);
                doClose(RET_OK);
            }

            em.close();
            courseDAO.closeConnection();
            gradedEventDAO.closeConnection();
        }
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCancel;
View Full Code Here

                    + ex.getLocalizedMessage());
        } finally
        {
            LOGGER.debug("Setting cboAssignActive to true");
            cboAssignActive = true;
            courseDAO.closeConnection();
            gradedEventDAO.closeConnection();
        }
        LOGGER.debug("Finished with cboCourseActionPerformed");
    }
}//GEN-LAST:event_cboCourseActionPerformed
View Full Code Here

                    "Information", JOptionPane.INFORMATION_MESSAGE);
            LOGGER.info("Grading Complete");

            // Release the EntityManager objects.
            gradedEventDAO.closeConnection();
            courseDAO.closeConnection();
        }
        btnGrade.setEnabled(true);
        gradeAssignmentsMenuItem.setEnabled(true);
        btnCancel.setEnabled(false);
View Full Code Here

                            .getMainFrame(), "Error: No Courses Found.", "Error",
                            JOptionPane.ERROR_MESSAGE);
                    LOGGER.warn("(connectAction) No Courses found");
                }
                LOGGER.debug("(connectAction) Closing CourseDAO connection");
                courseDAO.closeConnection();
            } catch (IllegalStateException ex)
            {
                LOGGER.error("(connectAction) Error connecting to the database "
                        + "when trying to retrieve course listing");
            } catch (Exception ex)
View Full Code Here

            LOGGER.info("Course Saved to Database: " + newId);

            if (courseDAO.isOpen())
            {
                LOGGER.debug("Closing EntityManager.");
                courseDAO.closeConnection();
            } else
            {
                LOGGER.debug("EntityManager previously closed");
            }
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.