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