Package com.mmoscene.h4j.habbohotel.catalog

Examples of com.mmoscene.h4j.habbohotel.catalog.CatalogItem


        return page;
    }

    @Override
    public CatalogItem generateAndFillItem(ResultSet set) {
        CatalogItem item = new CatalogItem();

        try {
            item.setId(set.getInt("id"));
            item.setPage(set.getInt("page"));
            item.setCost(set.getInt("cost"));
            item.setPixelCost(set.getInt("cost_pixels"));
            item.setCurrencyCost(set.getInt("cost_currency"));
            item.setQuantity(set.getInt("quantity"));
            item.setBaseId(set.getInt("unique_id"));
            item.setLtd(set.getInt("ltd") == 1);
            item.setName(set.getString("store_title"));

            item.setLtdStock(set.getInt("ltd_stock"));
            item.setLtdPurchased(set.getInt("ltd_purchased"));
        } catch (Exception ex) {
            H4J.getLogger(CatalogDAO.class.getName()).error(ex.getMessage());
        }

        return item;
View Full Code Here


        return page;
    }

    public CatalogItem generateAndFillItem(ResultSet set) {
        CatalogItem item = new CatalogItem();

        try {
            item.setId(set.getInt("id"));
            item.setPage(set.getInt("page"));
            item.setCost(set.getInt("cost"));
            item.setPixelCost(set.getInt("cost_pixels"));
            item.setCurrencyCost(set.getInt("cost_currency"));
            item.setQuantity(set.getInt("quantity"));
            item.setBaseId(set.getInt("unique_id"));
            item.setLtd(set.getInt("ltd") == 1);
            item.setName(set.getString("store_title"));

            item.setLtdStock(set.getInt("ltd_stock"));
            item.setLtdPurchased(set.getInt("ltd_purchased"));
        } catch (Exception ex) {
            H4J.getLogger(Catalog.class.getName()).error(ex.getMessage());
        }

        return item;
View Full Code Here

TOP

Related Classes of com.mmoscene.h4j.habbohotel.catalog.CatalogItem

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.