Package net.sourceforge.wampum.finance.entities

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


           preparedStatement.executeUpdate();

           if (storeChildren) {
               List childList = payee.getTransactionList();
               Transaction childTransaction = null;
               DAO dao = daoFactory.getDAO("transaction");
               for (int i=0; i<childList.size(); i++) {
                   childTransaction = (Transaction)childList.get(i);
                   dao.store(childTransaction,true);
               }
View Full Code Here


    "AND TRANS_SPLIT.ACCOUNT_ID = ? " +
    "ORDER BY TRANSACTIONS.DATE_POSTED DESC";
  // accountID:c45b0316a4c98f47224657637c14bf0e
  // payeeID:c75b4655-faf3-42ef-9611-236d010d0dbc "Check"
  public static Transaction findLastTransactionForPayee(Payee payee, String accountID) {
    Transaction retVal = null;
    Connection conn = null;
    PreparedStatement ps = null;
    ResultSet resultSet = null;
    try {
      conn = DatabasePool.getConnection();
View Full Code Here

                NodeList transactionNodes = childNode.getChildNodes();
                for (int j=0; j<transactionNodes.getLength(); j++) {
                   Node transactionNode = transactionNodes.item(j);
                   if (transactionNode.getNodeName().equalsIgnoreCase("Transaction")) {
                        Document transactionDoc = XMLUtil.newDocument(transactionNode);
                     Transaction transaction = TransactionXML.loadFromXML(transactionDoc);
                     retVal.appendTransaction(transaction);
                    }
                }
            }
        }
View Full Code Here

          }
         
          Element transElement = XMLUtil.newChildElement(doc.getDocumentElement(), "Transactions", null);
          TransactionDAO transDAO = (TransactionDAO)daoFactory.getDAO("transaction");
          List transList = transDAO.load(null, null, false);
          Transaction trans = null;
          for (int i=0; i<transList.size(); i++) {
            trans = (Transaction)transList.get(i);
            List transSplitList = trans.getTransSplitList();
            for (int j=0; j<transSplitList.size(); j++) {
              ((TransSplit)transSplitList.get(j)).setParentTransaction(null);
            }
            XMLUtil.appendChildNode(transElement, TransactionXML.createXMLDocument(trans).getDocumentElement());
          }
View Full Code Here

    public void setParentTransaction(Transaction transaction) {
        this.parentTransaction = transaction;
    }

    public void setParentTransactionTransactionID(String transactionID) {
        Transaction transaction = new Transaction();
        transaction.setTransactionID(transactionID);
        this.parentTransaction = transaction;
    }
View Full Code Here

TOP

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

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.