public void firstBreakCommit()
    {
            QueryWarehouse bank = new QueryWarehouse();
            String query = "";
            this.connect();
            
            Statement stmt = null;
            try
            {
                stmt = conn.createStatement();
            }
            catch(Exception e)
            {
            
            }
            
            if(choice == 0)
                query = bank.loanFirstCommit(memberID, loanType, currentdtString, startdtString, enddtString, principal, terms, interestrt, interest, totalPayment, monthlyAmortization, checkNo);
            
            if(choice == 1)
                query = bank.updateLoanFirstCommit(loanID, memberID, loanType, currentdtString, startdtString, enddtString, principal, terms, interestrt, interest, totalPayment, monthlyAmortization, checkNo);
                
            if(choice == 2) {
                query = bank.loanFirstCommit(memberID, loanType, currentdtString, startdtString, enddtString, principal, terms, interestrt, interest, totalPayment, monthlyAmortization, checkNo);
                try {
                    stmt.addBatch(query);
                } catch (SQLException ex) {
                    Logger.getLogger(AddLoan.class.getName()).log(Level.SEVERE, null, ex);
                }
                query = bank.updateLoanFirstCommitTerminate(loanID);
            }
            
            System.out.println(query);
            try
            {
                stmt.addBatch(query);
                stmt.executeBatch();
            }
            catch (Exception ex)
            {
                ex.printStackTrace();
            }
        
            finally{
                this.disconnect();
            }
    }