-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCartDTO.java
More file actions
110 lines (87 loc) · 2.48 KB
/
Copy pathCartDTO.java
File metadata and controls
110 lines (87 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package data;
/**
*
* @author thien
*/
public class CartDTO {
private int customerID;
private int productID;
private int quantity;
private String p_image_link;
private String p_description;
private float p_price;
private int p_quantity;
private String p_name;
public CartDTO(int customerID, int productID, String p_name, int quantity, String p_image_link, String p_description, float p_price, int p_quantity) {
this.customerID = customerID;
this.productID = productID;
this.quantity = quantity;
this.p_image_link = p_image_link;
this.p_description = p_description;
this.p_price = p_price;
this.p_quantity = p_quantity;
this.p_name = p_name;
}
public CartDTO(int customerID, int productID, int quantity) {
this.customerID = customerID;
this.productID = productID;
this.quantity = quantity;
}
public CartDTO(int customerID, int productID) {
this.customerID = customerID;
this.productID = productID;
}
public int getCustomerID() {
return customerID;
}
public void setCustomerID(int customerID) {
this.customerID = customerID;
}
public int getProductID() {
return productID;
}
public void setProductID(int productID) {
this.productID = productID;
}
public int getQuantity() {
return quantity;
}
public void setQuantity(int quantity) {
this.quantity = quantity;
}
public String getP_image_link() {
return p_image_link;
}
public void setP_image_link(String p_image_link) {
this.p_image_link = p_image_link;
}
public String getP_description() {
return p_description;
}
public void setP_description(String p_description) {
this.p_description = p_description;
}
public float getP_price() {
return p_price;
}
public void setP_price(float p_price) {
this.p_price = p_price;
}
public int getP_quantity() {
return p_quantity;
}
public void setP_quantity(int p_quantity) {
this.p_quantity = p_quantity;
}
public String getP_name() {
return p_name;
}
public void setP_name(String p_name) {
this.p_name = p_name;
}
}