001package org.kuali.ole.describe.bo;
002
003import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
004
005import java.util.LinkedHashMap;
006
007/**
008 * The OleLocationLevel is a BO class that defines the location level fields with getters and setters which
009 * is used for interacting the location level data with the persistence layer in OLE.
010 */
011public class OleLocationLevel extends PersistableBusinessObjectBase {
012
013    private String levelId;
014    private String levelCode;
015    private String levelName;
016    private String parentLevelId;
017    private OleLocationLevel oleLocationLevel;
018    private OleLocationLevel oleLocation;
019
020    /**
021     * Gets the levelId string value from this OleLocationLevel class
022     *
023     * @return levelId
024     */
025    public String getLevelId() {
026        return levelId;
027    }
028
029    /**
030     * Sets the levelId string value inside this OleLocationLevel class
031     *
032     * @param levelId
033     */
034    public void setLevelId(String levelId) {
035        this.levelId = levelId;
036    }
037
038    /**
039     * Gets the levelCode string value from this OleLocationLevel class
040     *
041     * @return levelCode
042     */
043    public String getLevelCode() {
044        return levelCode;
045    }
046
047    /**
048     * Sets the levelCode string value inside this OleLocationLevel class
049     *
050     * @param levelCode
051     */
052    public void setLevelCode(String levelCode) {
053        this.levelCode = levelCode;
054    }
055
056    /**
057     * Gets the levelName string value from this OleLocationLevel class
058     *
059     * @return levelName
060     */
061    public String getLevelName() {
062        return levelName;
063    }
064
065    /**
066     * Sets the levelName string value inside this OleLocationLevel class
067     *
068     * @param levelName
069     */
070    public void setLevelName(String levelName) {
071        this.levelName = levelName;
072    }
073
074    /**
075     * Gets the parentLevelId string value from this OleLocationLevel class
076     *
077     * @return parentLevelId
078     */
079    public String getParentLevelId() {
080        return parentLevelId;
081    }
082
083    /**
084     * Sets the parentLevelId string value inside this OleLocationLevel class
085     *
086     * @param parentLevelId
087     */
088    public void setParentLevelId(String parentLevelId) {
089        if (!parentLevelId.equals(""))
090            this.parentLevelId = parentLevelId;
091    }
092
093    /**
094     * Gets the oleLocationLevel object value from this OleLocationLevel class
095     *
096     * @return oleLocationLevel
097     */
098    public OleLocationLevel getOleLocationLevel() {
099        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}