1 package org.kuali.ole.location.bo;
2
3 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
4
5 import java.util.LinkedHashMap;
6
7 /**
8 * The OleLocationLevel is a BO class that defines the location level fields with getters and setters which
9 * is used for interacting the location level data with the persistence layer in OLE.
10 */
11 public class OleLocationLevel extends PersistableBusinessObjectBase {
12
13 private String levelId;
14 private String levelCode;
15 private String levelName;
16 private String parentLevelId;
17 private OleLocationLevel oleLocationLevel;
18 private OleLocationLevel oleLocation;
19
20 /**
21 * Gets the levelId string value from this OleLocationLevel class
22 * @return levelId
23 */
24 public String getLevelId() {
25 return levelId;
26 }
27
28 /**
29 * Sets the levelId string value inside this OleLocationLevel class
30 * @param levelId
31 */
32 public void setLevelId(String levelId) {
33 this.levelId = levelId;
34 }
35
36 /**
37 * Gets the levelCode string value from this OleLocationLevel class
38 * @return levelCode
39 */
40 public String getLevelCode() {
41 return levelCode;
42 }
43
44 /**
45 * Sets the levelCode string value inside this OleLocationLevel class
46 * @param levelCode
47 */
48 public void setLevelCode(String levelCode) {
49 this.levelCode = levelCode;
50 }
51
52 /**
53 * Gets the levelName string value from this OleLocationLevel class
54 * @return levelName
55 */
56 public String getLevelName() {
57 return levelName;
58 }
59
60 /**
61 * Sets the levelName string value inside this OleLocationLevel class
62 * @param levelName
63 */
64 public void setLevelName(String levelName) {
65 this.levelName = levelName;
66 }
67
68 /**
69 * Gets the parentLevelId string value from this OleLocationLevel class
70 * @return parentLevelId
71 */
72 public String getParentLevelId() {
73 return parentLevelId;
74 }
75
76 /**
77 * Sets the parentLevelId string value inside this OleLocationLevel class
78 * @param parentLevelId
79 */
80 public void setParentLevelId(String parentLevelId) {
81 if(!parentLevelId.equals(""))
82 this.parentLevelId = parentLevelId;
83 }
84
85 /**
86 * Gets the oleLocationLevel object value from this OleLocationLevel class
87 * @return oleLocationLevel
88 */
89 public OleLocationLevel getOleLocationLevel() {
90 return oleLocationLevel;
91 }
92
93 /**
94 * ets the oleLocationLevel value inside this OleLocationLevel class
95 * @param oleLocationLevel
96 */
97 public void setOleLocationLevel(OleLocationLevel oleLocationLevel) {
98 this.oleLocationLevel = oleLocationLevel;
99 }
100
101 /**
102 * Gets the oleLocation object value from this OleLocationLevel class
103 * @return oleLocation
104 */
105 public OleLocationLevel getOleLocation() {
106 return oleLocation;
107 }
108
109 /**
110 * Sets the oleLocation value inside this OleLocationLevel class
111 * @param oleLocation
112 */
113 public void setOleLocation(OleLocationLevel oleLocation) {
114 this.oleLocation = oleLocation;
115 }
116
117 /**
118 * This method returns a map that contains the Primary Key value of this OleLocationLevel class
119 * @return toStringMap
120 */
121 protected LinkedHashMap toStringMapper() {
122 LinkedHashMap toStringMap = new LinkedHashMap();
123 toStringMap.put("levelId", levelId);
124 return toStringMap;
125 }
126 }