1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
package org.mule.example.bookstore; |
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
public class Order |
17 | |
{ |
18 | |
private Book book; |
19 | |
private int quantity; |
20 | |
|
21 | |
private String address; |
22 | |
|
23 | |
private String email; |
24 | |
|
25 | |
public Order() |
26 | 0 | { |
27 | |
|
28 | 0 | } |
29 | |
|
30 | |
public Order(Book book, int quantity, String address, String email) |
31 | 0 | { |
32 | 0 | this.book = book; |
33 | 0 | this.quantity = quantity; |
34 | 0 | this.address = address; |
35 | 0 | this.email = email; |
36 | 0 | } |
37 | |
|
38 | |
public Book getBook() |
39 | |
{ |
40 | 0 | return book; |
41 | |
} |
42 | |
|
43 | |
public void setBook(Book book) |
44 | |
{ |
45 | 0 | this.book = book; |
46 | 0 | } |
47 | |
|
48 | |
public int getQuantity() |
49 | |
{ |
50 | 0 | return quantity; |
51 | |
} |
52 | |
|
53 | |
public void setQuantity(int quantity) |
54 | |
{ |
55 | 0 | this.quantity = quantity; |
56 | 0 | } |
57 | |
|
58 | |
public String getAddress() |
59 | |
{ |
60 | 0 | return address; |
61 | |
} |
62 | |
|
63 | |
public void setAddress(String address) |
64 | |
{ |
65 | 0 | this.address = address; |
66 | 0 | } |
67 | |
|
68 | |
public String getEmail() |
69 | |
{ |
70 | 0 | return email; |
71 | |
} |
72 | |
|
73 | |
public void setEmail(String email) |
74 | |
{ |
75 | 0 | this.email = email; |
76 | 0 | } |
77 | |
} |