Package de.xanders.data.customer.dao

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


    /**
     * @see QuoteService#getQuoteById(java.lang.Long)
     */
    protected QuoteVO handleGetQuoteById(java.lang.Long quoteId)
        throws java.lang.Exception {
      Quote quote = this.getQuoteDao().load(quoteId);
      QuoteVO quoteVO = this.getQuoteDao().toQuoteVO(quote);
      CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
      quoteVO.setCustAccountVO(custAccountService.toCustAccountVO(quote.getCustAccount()));
      return quoteVO;           
    }
View Full Code Here


        throws java.lang.Exception {
      List list = new ArrayList();
        Collection quoteCollection = this.getQuoteDao().findByCriteria(quoteCriteria);
        Iterator iterator = quoteCollection.iterator();
        while (iterator.hasNext()) {
          Quote quote = (Quote) iterator.next();
          QuoteVO quoteVO = this.getQuoteDao().toQuoteVO(quote);
          CustAccountService custAccountService = DataServiceLocator.instance().getCustAccountService();
          quoteVO.setCustAccountVO(custAccountService.toCustAccountVO(quote.getCustAccount()));
          list.add(quoteVO);
        }
        return list;  
    }
View Full Code Here

    /**
     * @see QuoteService#saveQuote(QuoteVO)
     */
    protected QuoteVO handleSaveQuote(QuoteVO quoteVO)
        throws java.lang.Exception {
      Quote quote = this.getQuoteDao().quoteVOToEntity(quoteVO);
        if (quote.getQuoteId() == null) {
            quote = this.getQuoteDao().create(quote);
            quoteVO.setQuoteId(quote.getQuoteId());
        }
        else {
            this.getQuoteDao().update(quote);           
        }   
        return quoteVO;
View Full Code Here

TOP

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

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.