• R/O
  • SSH
  • HTTPS

pal: Commit


Commit MetaInfo

Revision469 (tree)
Zeit2007-08-24 14:18:09
Autortakeharu

Log Message

move Cart class procut to cart

Ändern Zusammenfassung

Diff

--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/Cart.java (revision 468)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/product/Cart.java (nonexistent)
@@ -1,43 +0,0 @@
1-package jp.sf.pal.pompei.web.user.product;
2-
3-import java.io.Serializable;
4-import java.math.BigDecimal;
5-import java.util.ArrayList;
6-import java.util.List;
7-
8-import jp.sf.pal.pompei.exentity.ProductsDescription;
9-
10-/**
11- * カート情報を表すクラスです。
12- * @author takeharu
13- *
14- */
15-public class Cart implements Serializable {
16-
17- /**
18- * シリアルバージョンID
19- */
20- private static final long serialVersionUID = 1L;
21-
22- private List<ProductsDescription> products;
23-
24- /**
25- * コンストラクタ
26- */
27- public Cart() {
28- products = new ArrayList<ProductsDescription>();
29- }
30-
31- public void addDescription(ProductsDescription description) {
32- products.add(description);
33- }
34-
35- public List<ProductsDescription> getProducts() {
36- return products;
37- }
38-
39- public void setProducts(List<ProductsDescription> products) {
40- this.products = products;
41- }
42-
43-}
--- pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/Cart.java (nonexistent)
+++ pompei/portlets/pompei-core/trunk/src/main/java/jp/sf/pal/pompei/web/user/cart/Cart.java (revision 469)
@@ -0,0 +1,46 @@
1+package jp.sf.pal.pompei.web.user.cart;
2+
3+import java.io.Serializable;
4+import java.math.BigDecimal;
5+import java.util.ArrayList;
6+import java.util.List;
7+import java.util.Map;
8+
9+import org.seasar.framework.container.annotation.tiger.Component;
10+import org.seasar.framework.container.annotation.tiger.InstanceType;
11+
12+/**
13+ * カート情報を表すクラスです。
14+ * @author takeharu
15+ *
16+ */
17+@Component(instance=InstanceType.SESSION)
18+public class Cart implements Serializable {
19+
20+ /**
21+ * シリアルバージョンID
22+ */
23+ private static final long serialVersionUID = 1L;
24+
25+ private List<Map<String, ?>> orderdetails;
26+
27+ /**
28+ * コンストラクタ
29+ */
30+ public Cart() {
31+ orderdetails = new ArrayList<Map<String,?>>();
32+ }
33+
34+ public void addDescription(Map detail) {
35+ orderdetails.add(detail);
36+ }
37+
38+ public List<Map<String,?>> getOrderdetails() {
39+ return orderdetails;
40+ }
41+
42+ public void setOrderdetails(List<Map<String,?>> details) {
43+ this.orderdetails = details;
44+ }
45+}
46+
Show on old repository browser