Package com.supinfo.analytics.entities

Examples of com.supinfo.analytics.entities.Product


        {
            Channel c = new Channel();
            c.setDescription(s.getChannel().getChannelDesc());
            c.setId(s.getChannel().getChannelId());

            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());
View Full Code Here


                Channel c = new Channel();
                c.setId(jsonChannel.getInt("channelId"));
                c.setDescription(jsonChannel.getString("channelDesc"));
               
                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"));
View Full Code Here

            {
                Channel c = new Channel();
                c.setDescription(info[CHANNEL_DESCRIPTION]);
                c.setId(Integer.parseInt(info[CHANNEL_ID]));

                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]);
View Full Code Here

        List<Object[]> results = q.setMaxResults(10).getResultList();
        List<Product> products = new ArrayList<Product>();
       
        for(Object[] result : results)
        {
            Product p = (Product) result[0];
            p.setQuantitySold(result[1]);
            products.add(p);
        }
       
        return products;
    }
View Full Code Here

TOP

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

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.