Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
CategoryImpl |
|
| 0.0;0 |
1 | package com.neidetcher.petunia.service; |
|
2 | ||
3 | 6 | public class CategoryImpl implements Category |
4 | { |
|
5 | ||
6 | private Integer id; |
|
7 | private String name; |
|
8 | private String description; |
|
9 | private Integer parentCategoryId; |
|
10 | ||
11 | /* (non-Javadoc) |
|
12 | * @see com.neidetcher.petunia.Category#getId() |
|
13 | */ |
|
14 | public Integer getId() |
|
15 | { |
|
16 | 12 | return id; |
17 | } |
|
18 | ||
19 | /* (non-Javadoc) |
|
20 | * @see com.neidetcher.petunia.Category#setId(java.lang.Integer) |
|
21 | */ |
|
22 | public void setId(Integer id) |
|
23 | { |
|
24 | 10 | this.id = id; |
25 | 10 | } |
26 | ||
27 | /* (non-Javadoc) |
|
28 | * @see com.neidetcher.petunia.Category#getName() |
|
29 | */ |
|
30 | public String getName() |
|
31 | { |
|
32 | 6 | return name; |
33 | } |
|
34 | ||
35 | /* (non-Javadoc) |
|
36 | * @see com.neidetcher.petunia.Category#setName(java.lang.String) |
|
37 | */ |
|
38 | public void setName(String name) |
|
39 | { |
|
40 | 6 | this.name = name; |
41 | 6 | } |
42 | ||
43 | /* (non-Javadoc) |
|
44 | * @see com.neidetcher.petunia.Category#getParentCategory() |
|
45 | */ |
|
46 | public Integer getParentCategoryId() |
|
47 | { |
|
48 | 6 | return parentCategoryId; |
49 | } |
|
50 | ||
51 | /* (non-Javadoc) |
|
52 | * @see com.neidetcher.petunia.Category#setParentCategory(com.neidetcher.petunia.Category) |
|
53 | */ |
|
54 | public void setParentCategoryId(Integer parentCategoryId) |
|
55 | { |
|
56 | 8 | this.parentCategoryId = parentCategoryId; |
57 | 8 | } |
58 | ||
59 | @Override |
|
60 | public String getDescription() |
|
61 | { |
|
62 | 6 | return description; |
63 | } |
|
64 | ||
65 | @Override |
|
66 | public void setDescription(String description) |
|
67 | { |
|
68 | 6 | this.description = description; |
69 | 6 | } |
70 | } |