001 package org.kuali.ole.location.bo; 002 003 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 004 005 import 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 */ 011 public 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 * @return levelId 023 */ 024 public String getLevelId() { 025 return levelId; 026 } 027 028 /** 029 * Sets the levelId string value inside this OleLocationLevel class 030 * @param levelId 031 */ 032 public void setLevelId(String levelId) { 033 this.levelId = levelId; 034 } 035 036 /** 037 * Gets the levelCode string value from this OleLocationLevel class 038 * @return levelCode 039 */ 040 public String getLevelCode() { 041 return levelCode; 042 } 043 044 /** 045 * Sets the levelCode string value inside this OleLocationLevel class 046 * @param levelCode 047 */ 048 public void setLevelCode(String levelCode) { 049 this.levelCode = levelCode; 050 } 051 052 /** 053 * Gets the levelName string value from this OleLocationLevel class 054 * @return levelName 055 */ 056 public String getLevelName() { 057 return levelName; 058 } 059 060 /** 061 * Sets the levelName string value inside this OleLocationLevel class 062 * @param levelName 063 */ 064 public void setLevelName(String levelName) { 065 this.levelName = levelName; 066 } 067 068 /** 069 * Gets the parentLevelId string value from this OleLocationLevel class 070 * @return parentLevelId 071 */ 072 public String getParentLevelId() { 073 return parentLevelId; 074 } 075 076 /** 077 * Sets the parentLevelId string value inside this OleLocationLevel class 078 * @param parentLevelId 079 */ 080 public void setParentLevelId(String parentLevelId) { 081 if(!parentLevelId.equals("")) 082 this.parentLevelId = parentLevelId; 083 } 084 085 /** 086 * Gets the oleLocationLevel object value from this OleLocationLevel class 087 * @return oleLocationLevel 088 */ 089 public OleLocationLevel getOleLocationLevel() { 090 return oleLocationLevel; 091 } 092 093 /** 094 * ets the oleLocationLevel value inside this OleLocationLevel class 095 * @param oleLocationLevel 096 */ 097 public void setOleLocationLevel(OleLocationLevel oleLocationLevel) { 098 this.oleLocationLevel = oleLocationLevel; 099 } 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 }