Package beans.directory.simple.entities

Examples of beans.directory.simple.entities.DiscountCardType


   
   
    @Override
    public List<DiscountDetails> getDetails(int discountCardTypeID) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_READ);
        DiscountCardType type = findEntity(DiscountCardType.class, discountCardTypeID);
        Collection<Discount> discounts = findEntityList(Discount.class, "cardType", type);
        List<DiscountDetails> list = new ArrayList<DiscountDetails>();
        Iterator<Discount> i = discounts.iterator();
        while(i.hasNext()) {
            Discount j = (Discount) i.next();
View Full Code Here


           
    @Override
    public void update(int discountCardTypeID, List<DiscountDetails> list) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_WRITE);
        DiscountCardType type = findEntity(DiscountCardType.class, discountCardTypeID);
       
        for(int i=0; i<list.size(); i++) {
            DiscountDetails d = list.get(i);
            DiscountLevel level = findEntity(DiscountLevel.class, d.level);
            ServiceClass cls = findEntity(ServiceClass.class, d.cls);
View Full Code Here

TOP

Related Classes of beans.directory.simple.entities.DiscountCardType

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.