Package xpetstore.domain.catalog.interfaces

Examples of xpetstore.domain.catalog.interfaces.ItemLocal


        throws FinderException,
                   CreateException
    {
        try
        {
            ItemLocal      item = ItemUtil.getLocalHome(  ).findByPrimaryKey( itemId );

            OrderItemLocal oitem = OrderItemUtil.getLocalHome(  ).create( quantity, item.getItemValue(  ).getListPrice(  ) );
            oitem.setItem( item );
            getOrderItems(  ).add( oitem );
        }
        catch ( NamingException n )
        {
View Full Code Here


            {
                String  key = ( String ) it.next(  );
                Integer value = ( Integer ) _details.get( key );
                try
                {
                    ItemLocal    ilocal = ihome.findByPrimaryKey( key );
                    ItemValue    item = ilocal.getItemValue(  );
                    ProductValue prod = ilocal.getProduct(  ).getProductValue(  );

                    CartItem     ci = new CartItem( item.getItemId(  ), prod.getProductId(  ), prod.getName(  ), item.getDescription(  ), value.intValue(  ), item.getListPrice(  ) );

                    items.add( ci );
                }
View Full Code Here

TOP

Related Classes of xpetstore.domain.catalog.interfaces.ItemLocal

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.