-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.java
More file actions
37 lines (30 loc) · 999 Bytes
/
Order.java
File metadata and controls
37 lines (30 loc) · 999 Bytes
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
class Order extends Thing {
private static final long serialVersionUID = 7442516981767694296L;
private int orderID;
private int clientID;
private int productID;
private int manufacturerID;
private int Quantity;
private int transactionID;
private Order(int oId, int cId, int pId, int mId, int qu, int tras) {
this.orderID = (OrderIdServer.instance().getId());
this.clientID = cId;
this.productID = pId;
this.manufacturerID = mId;
this.Quantity = qu;
this.transactionID = tras;
}
int getOrderID() {
return orderID;
}
int getClientID() {
return clientID;
}
int getTransactionID() {
return transactionID;
}
public String toString() {
return "Order ID: " + orderID + "\nClient ID: " + clientID + "\nProduct ID: " + productID
+ "\nManufacturer ID: " + manufacturerID + "Quantity: " + Quantity + "Transaction ID: " + transactionID;
}
}