Package de.xanders.data.customer.dao

Examples of de.xanders.data.customer.dao.Invoice


    /**
     * @see InvoiceService#getInvoiceById(java.lang.Long)
     */
    protected InvoiceVO handleGetInvoiceById(java.lang.Long invoiceId)
        throws java.lang.Exception {
      Invoice invoice = this.getInvoiceDao().load(invoiceId);
      return this.getInvoiceDao().toInvoiceVO(invoice);
    }
View Full Code Here


        throws java.lang.Exception {
        List list = new ArrayList();
        Collection invoiceCollection = this.getInvoiceDao().findByCriteria(invoiceCriteria);
        Iterator iterator = invoiceCollection.iterator();
        while (iterator.hasNext()) {
            Invoice invoice = (Invoice) iterator.next();
            InvoiceVO invoiceVO = this.getInvoiceDao().toInvoiceVO(invoice);
            CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
            invoiceVO.setCustAccountVO(custAccountService.toCustAccountVO(invoice.getCustAccount()));
            list.add(invoiceVO);
        }
        return list;          
    }
View Full Code Here

    /**
     * @see InvoiceService#saveInvoice(InvoiceVO)
     */
    protected InvoiceVO handleSaveInvoice(InvoiceVO invoiceVO)
        throws java.lang.Exception {
      Invoice invoice = this.getInvoiceDao().invoiceVOToEntity(invoiceVO);
        if (invoice.getInvoiceId() == null) {
            invoice = this.getInvoiceDao().create(invoice);
            invoiceVO.setInvoiceId(invoice.getInvoiceId());
        }
        else {
            this.getInvoiceDao().update(invoice);           
        }
        return invoiceVO;
View Full Code Here

TOP

Related Classes of de.xanders.data.customer.dao.Invoice

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.