Package com.supinfo.analytics.entities

Examples of com.supinfo.analytics.entities.Customer


            Product p = new Product();
            p.setName(s.getProduct().getProdName());
            p.setId(s.getProduct().getProdId());

            Customer cu = new Customer();
            cu.setCity(s.getCustomer().getCustCity());
            cu.setFirstName(s.getCustomer().getCustFirstName());
            cu.setGender(s.getCustomer().getCustGender());
            cu.setId(s.getCustomer().getCustId());
            cu.setIncomeLevel(s.getCustomer().getCustIncomeLevel());
            cu.setLastName(s.getCustomer().getCustLastName());
            cu.setMaritalStatus(s.getCustomer().getCustMaritalStatus());

            channelDAO.addChannel(c);
            productDAO.addProduct(p);
            customerDAO.addCustomer(cu);
View Full Code Here


               
                Product p = new Product();
                p.setId(jsonProduct.getInt("prodId"));
                p.setName(jsonProduct.getString("prodName"));
               
                Customer cu = new Customer();
                cu.setCity(jsonCustomer.getString("custCity"));
                cu.setFirstName(jsonCustomer.getString("custFirstName"));
                cu.setGender(jsonCustomer.getString("custGender"));
                cu.setId(jsonCustomer.getInt("custId"));
                cu.setIncomeLevel(jsonCustomer.getString("custIncomeLevel"));
                cu.setLastName(jsonCustomer.getString("custLastName"));
                cu.setMaritalStatus(jsonCustomer.getString("custMaritalStatus"));
               
                channelDAO.addChannel(c);
                productDAO.addProduct(p);
                customerDAO.addCustomer(cu);
               
View Full Code Here

                Product p = new Product();
                p.setId(Integer.parseInt(info[PRODUCT_ID]));
                p.setName(info[PRODUCT_NAME]);

                Customer cu = new Customer();
                cu.setCity(info[CUSTOMER_CITY]);
                cu.setFirstName(info[CUSTOMER_FIRSTNAME]);
                cu.setGender(info[CUSTOMER_GENDER]);
                cu.setId(Integer.valueOf(info[CUSTOMER_ID]));
                cu.setIncomeLevel(info[CUSTOMER_INCOME_LEVEL]);
                cu.setLastName(info[CUSTOMER_LASTNAME]);
                cu.setMaritalStatus(info[CUSTOMER_MARITAL_STATUS]);

                channelDAO.addChannel(c);
                productDAO.addProduct(p);
                customerDAO.addCustomer(cu);
View Full Code Here

        List<Object[]> results = q.setMaxResults(10).getResultList();
        List<Customer> customers = new ArrayList<Customer>();
       
        for(Object[] result : results)
        {
            Customer c = (Customer) result[0];
            c.setSalesAmount(result[1]);
            customers.add(c);
        }
       
        return customers;
    }
View Full Code Here

TOP

Related Classes of com.supinfo.analytics.entities.Customer

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.