1 | public class Employee extends Person {↵ | | 1 | public class Document extends Item {↵
|
|
2 | private String title;↵ | | 2 | private ↵
|
3 | private BigDecimal salary;↵ | | |
|
4 | private Employee manager;↵ | | 3 | Blob content;↵
|
|
| | | 4 | private Calendar modified;↵
|
|
| | | 5 | private Calendar created;↵
|
|
5 | /**↵ | | 6 | /**↵
|
6 | * @return Returns the title.↵ | | 7 | * @return Returns the created.↵
|
7 | */↵ | | 8 | */↵
|
|
8 | public String getTitle() {↵ | | 9 | public Calendar getCreated() {↵
|
|
9 | return title;↵ | | 10 | return created;↵
|
|
10 | }↵ | | 11 | }↵
|
|
11 | /**↵ | | 12 | /**↵
|
12 | * @param title The title to set.↵ | | 13 | * @param created The created to set.↵
|
13 | */↵ | | 14 | */↵
|
|
14 | public void setTitle(String title) {↵ | | 15 | public void setCreated(Calendar created) {↵
|
|
15 | this.title = title;↵ | | 16 | this.created = created;↵
|
|
16 | }↵ | | 17 | }↵
|
|
17 | /**↵ | | 18 | /**↵
|
18 | * @return Returns the manager.↵ | | 19 | * @return Returns the modified.↵
|
19 | */↵ | | 20 | */↵
|
|
20 | public Employee getManager() {↵ | | 21 | public Calendar getModified() {↵
|
|
21 | return manager;↵ | | 22 | return modified;↵
|
|
22 | }↵ | | 23 | }↵
|
|
23 | /**↵ | | 24 | /**↵
|
24 | * @param manager The manager to set.↵ | | 25 | * @param modified The modified to set.↵
|
25 | */↵ | | 26 | */↵
|
|
26 | public void setManager(Employee manager) {↵ | | 27 | public void setModified(Calendar modified) {↵
|
|
27 | this.manager = manager;↵ | | 28 | this.modified = modified;↵
|
|
28 | }↵ | | 29 | }↵
|
|
29 | /**↵ | | 30 | /**↵
|
30 | * @return Returns the salary.↵ | | 31 | * @return Returns the content.↵
|
31 | */↵ | | 32 | */↵
|
|
32 | public BigDecimal getSalary() {↵ | | 33 | public Blob getContent() {↵
|
|
33 | return salary;↵ | | 34 | return content;↵
|
|
34 | }↵ | | 35 | }↵
|
|
35 | /**↵ | | 36 | /**↵
|
36 | * @param salary The salary to set.↵ | | 37 | * @param content The content to set.↵
|
37 | */↵ | | 38 | */↵
|
|
38 | public void setSalary(BigDecimal salary) {↵ | | 39 | public void setContent(Blob content) {↵
|
|
39 | this.salary = salary | | 40 | this.content = content
|