View Javadoc
1   package org.kuali.ole.describe.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       *
23       * @return levelId
24       */
25      public String getLevelId() {
26          return levelId;
27      }
28  
29      /**
30       * Sets the levelId string value inside this OleLocationLevel class
31       *
32       * @param levelId
33       */
34      public void setLevelId(String levelId) {
35          this.levelId = levelId;
36      }
37  
38      /**
39       * Gets the levelCode string value from this OleLocationLevel class
40       *
41       * @return levelCode
42       */
43      public String getLevelCode() {
44          return levelCode;
45      }
46  
47      /**
48       * Sets the levelCode string value inside this OleLocationLevel class
49       *
50       * @param levelCode
51       */
52      public void setLevelCode(String levelCode) {
53          this.levelCode = levelCode;
54      }
55  
56      /**
57       * Gets the levelName string value from this OleLocationLevel class
58       *
59       * @return levelName
60       */
61      public String getLevelName() {
62          return levelName;
63      }
64  
65      /**
66       * Sets the levelName string value inside this OleLocationLevel class
67       *
68       * @param levelName
69       */
70      public void setLevelName(String levelName) {
71          this.levelName = levelName;
72      }
73  
74      /**
75       * Gets the parentLevelId string value from this OleLocationLevel class
76       *
77       * @return parentLevelId
78       */
79      public String getParentLevelId() {
80          return parentLevelId;
81      }
82  
83      /**
84       * Sets the parentLevelId string value inside this OleLocationLevel class
85       *
86       * @param parentLevelId
87       */
88      public void setParentLevelId(String parentLevelId) {
89          if (!parentLevelId.equals(""))
90              this.parentLevelId = parentLevelId;
91      }
92  
93      /**
94       * Gets the oleLocationLevel object value from this OleLocationLevel class
95       *
96       * @return oleLocationLevel
97       */
98      public OleLocationLevel getOleLocationLevel() {
99          return oleLocationLevel;
100     }
101 
102     /**
103      * ets the oleLocationLevel value inside this OleLocationLevel class
104      *
105      * @param oleLocationLevel
106      */
107     public void setOleLocationLevel(OleLocationLevel oleLocationLevel) {
108         this.oleLocationLevel = oleLocationLevel;
109     }
110 
111     /**
112      * Gets the oleLocation object value from this OleLocationLevel class
113      *
114      * @return oleLocation
115      */
116     public OleLocationLevel getOleLocation() {
117         return oleLocation;
118     }
119 
120     /**
121      * Sets the oleLocation value inside this OleLocationLevel class
122      *
123      * @param oleLocation
124      */
125     public void setOleLocation(OleLocationLevel oleLocation) {
126         this.oleLocation = oleLocation;
127     }
128 
129     /**
130      * This method returns a map that contains the Primary Key value of this OleLocationLevel class
131      *
132      * @return toStringMap
133      */
134     protected LinkedHashMap toStringMapper() {
135         LinkedHashMap toStringMap = new LinkedHashMap();
136         toStringMap.put("levelId", levelId);
137         return toStringMap;
138     }
139 }