svnno****@sourc*****
svnno****@sourc*****
2007年 8月 24日 (金) 14:18:09 JST
Revision: 469 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=469 Author: takeharu Date: 2007-08-24 14:18:09 +0900 (Fri, 24 Aug 2007) Log Message: ----------- move Cart class procut to cart Added Paths: ----------- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/Cart.java Removed Paths: ------------- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/Cart.java -------------- next part -------------- Copied: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/Cart.java (from rev 458, pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/Cart.java) =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/Cart.java 2007-08-18 14:57:35 UTC (rev 458) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/Cart.java 2007-08-24 05:18:09 UTC (rev 469) @@ -0,0 +1,46 @@ +package jp.sf.pal.pompei.web.user.cart; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import org.seasar.framework.container.annotation.tiger.Component; +import org.seasar.framework.container.annotation.tiger.InstanceType; + +/** + * カート情報を表すクラスです。 + * @author takeharu + * + */ + @ Component(instance=InstanceType.SESSION) +public class Cart implements Serializable { + + /** + * シリアルバージョンID + */ + private static final long serialVersionUID = 1L; + + private List<Map<String, ?>> orderdetails; + + /** + * コンストラクタ + */ + public Cart() { + orderdetails = new ArrayList<Map<String,?>>(); + } + + public void addDescription(Map detail) { + orderdetails.add(detail); + } + + public List<Map<String,?>> getOrderdetails() { + return orderdetails; + } + + public void setOrderdetails(List<Map<String,?>> details) { + this.orderdetails = details; + } +} + Deleted: pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/Cart.java =================================================================== --- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/Cart.java 2007-08-24 04:41:57 UTC (rev 468) +++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/Cart.java 2007-08-24 05:18:09 UTC (rev 469) @@ -1,43 +0,0 @@ -package jp.sf.pal.pompei.web.user.product; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; - -import jp.sf.pal.pompei.exentity.ProductsDescription; - -/** - * カート情報を表すクラスです。 - * @author takeharu - * - */ -public class Cart implements Serializable { - - /** - * シリアルバージョンID - */ - private static final long serialVersionUID = 1L; - - private List<ProductsDescription> products; - - /** - * コンストラクタ - */ - public Cart() { - products = new ArrayList<ProductsDescription>(); - } - - public void addDescription(ProductsDescription description) { - products.add(description); - } - - public List<ProductsDescription> getProducts() { - return products; - } - - public void setProducts(List<ProductsDescription> products) { - this.products = products; - } - -}