Package net.sourceforge.wampum.finance.entities

Examples of net.sourceforge.wampum.finance.entities.TransSplitDAO


      }
     
      TransactionDAO transDAO = (TransactionDAO)daoFactory.getDAO("transaction");
      transDAO.create(trans, false);
     
      TransSplitDAO transSplitDAO = (TransSplitDAO)daoFactory.getDAO("transSplit");
      TransSplit transSplit = null;
      for (int i=0; i<this.transSplitList.size(); i++) {
        transSplit = (TransSplit)transSplitList.get(i);
        transSplit.setParentTransaction(trans);
        transSplitDAO.create(transSplit, false);
      }
     
      this.accountsController.updateRegisterTableData();
      clearTransaction();
    }
View Full Code Here


    else if (name.equalsIgnoreCase("budget"))
      dao = new BudgetDAO();
    else if (name.equalsIgnoreCase("transaction"))
      dao = new TransactionDAO();
    else if (name.equalsIgnoreCase("transSplit"))
      dao = new TransSplitDAO();
    else if (name.equalsIgnoreCase("payee"))
      dao = new PayeeDAO();
    else if (name.equalsIgnoreCase("register"))
      dao = new RegisterDAO();
   
View Full Code Here

          currentTransaction.setPayee(payee);
          transactionDAO.update(currentTransaction, false);
        }
       
        // create transaction splits
        TransSplitDAO transSplitDAO = (TransSplitDAO)daoFactory.getDAO("transSplit");
        try {
          for (int i=0; i<transSplitList.size(); i++) {
            currentTransSplit = (TransSplit)transSplitList.get(i);
            //System.out.println("Split: " + currentTransSplit.getTransSplitID());
            where = "where TRANS_SPLIT_ID = '" + currentTransSplit.getTransSplitID() + "'";
            if (transSplitDAO.load(where, null, true).size() == 0)
              transSplitDAO.create(currentTransSplit, false);
            else
              transSplitDAO.update(currentTransSplit, false);
          }
        }
        catch (Exception ex) {
          System.out.println("Error with transSplit:\n" +
            currentTransSplit.getTransSplitID() + "\n" +
View Full Code Here

TOP

Related Classes of net.sourceforge.wampum.finance.entities.TransSplitDAO

Copyright © 2018 www.massapicom. 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.