Code Search for Developers
 
 
  

Discount.java from riverock at Krugle


Show Discount.java syntax highlighted

/*
 * org.riverock.commerce - Commerce application
 *
 * Copyright (C) 2006, Riverock Software, All Rights Reserved.
 *
 * Riverock - The Open-source Java Development Community
 * http://www.riverock.org
 *
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */
package org.riverock.commerce.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.math.BigDecimal;

/**
 * Class Discount.
 * 
 * @version $Revision$ $Date$
 */
public class Discount implements Serializable {

    /**
     * Field discountItems
     */
    private List<DiscountItem> discountItems = new ArrayList<DiscountItem>();

    /**
     * Field resultDiscount
     */
    private BigDecimal resultDiscount;

    /**
     * Field resultDiscountName
     */
    private String resultDiscountName;

    public List<DiscountItem> getDiscountItems() {
        if (discountItems ==null) {
            discountItems = new ArrayList<DiscountItem>();
        }
        return discountItems;
    }

    public void setDiscountItems(List<DiscountItem> discountItems) {
        this.discountItems = discountItems;
    }

    public BigDecimal getResultDiscount() {
        return resultDiscount;
    }

    public void setResultDiscount(BigDecimal resultDiscount) {
        this.resultDiscount = resultDiscount;
    }

    public String getResultDiscountName() {
        return resultDiscountName;
    }

    public void setResultDiscountName(String resultDiscountName) {
        this.resultDiscountName = resultDiscountName;
    }
}




See more files for this project here

riverock

Main project of riverock is Webmill portal. Webmill is CMS portal with build-in XML/XSLT transformation of content of portlet, JSR-168, JSF and other things.

Project homepage: http://sourceforge.net/projects/riverock
Programming language(s): Java,JSP,SQL,XML
License: other

  price/
  ClassQueryItemImpl.java
  Currency.java
  CurrencyCurs.java
  CurrencyPrecision.java
  CustomCurrency.java
  Discount.java
  DiscountItem.java
  ImportShopItem.java
  Shop.java
  ShopItem.java
  ShopOrder.java
  ShopOrderItem.java
  StandardCurrency.java
  StandardCurrencyCurs.java
  UserOrder.java