1 package be.dvw.administration.model;
2
3 import java.util.Date;
4 import java.util.Calendar;
5
6 /***
7 * Created by IntelliJ IDEA.
8 * User: Toon.Timbermont
9 * Date: Jun 11, 2005
10 * Time: 7:19:17 PM
11 * To change this template use File | Settings | File Templates.
12 */
13 public class Score {
14
15
16 private int id;
17 private String name = null;
18 private float price;
19 private String composer = null;
20 private String arranger = null;
21 private int boxNumber;
22 private String description = null;
23
24
25 private Calendar date = null;
26
27
28 public int getId()
29 {
30 return id;
31 }
32
33 public void setId(int id)
34 {
35 this.id = id;
36 }
37
38 public String getComposer()
39 {
40 return composer;
41 }
42
43 public void setComposer(String composer)
44 {
45 this.composer = composer;
46 }
47
48 public String getName() {
49 return name;
50 }
51
52 public void setName(String name) {
53 this.name = name;
54 }
55
56 public float getPrice() {
57 return price;
58 }
59
60 public void setPrice(float price) {
61 this.price = price;
62 }
63
64 public String getArranger() {
65 return arranger;
66 }
67
68 public void setArranger(String arranger) {
69 this.arranger = arranger;
70 }
71
72 public int getBoxNumber() {
73 return boxNumber;
74 }
75
76 public void setBoxNumber(int boxNumber) {
77 this.boxNumber = boxNumber;
78 }
79
80 public String getDescription() {
81 return description;
82 }
83
84 public void setDescription(String description) {
85 this.description = description;
86 }
87
88 public String toString()
89 {
90 StringBuffer buffer;
91 buffer = new StringBuffer().append("Score: \n");
92 buffer.append("\t[id] = ").append(getId()).append("\n");
93 buffer.append("\t[name] = ").append(getName()).append("\n");
94 buffer.append("\t[composer] = ").append(composer).append("\n");
95 buffer.append("\t[arranger] = ").append(arranger).append("\n");
96 buffer.append("\t[boxNumber] = ").append(boxNumber).append("\n");
97 buffer.append("\t[price] = ").append(price).append("\n");
98 buffer.append("\t[description] = ").append(description).append("\n");
99
100 return buffer.toString() ;
101 }
102
103
104
105 }