001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
029 public class ListTypeWrapper implements ListType, ModelWrapper<ListType> {
030 public ListTypeWrapper(ListType listType) {
031 _listType = listType;
032 }
033
034 public Class<?> getModelClass() {
035 return ListType.class;
036 }
037
038 public String getModelClassName() {
039 return ListType.class.getName();
040 }
041
042 public Map<String, Object> getModelAttributes() {
043 Map<String, Object> attributes = new HashMap<String, Object>();
044
045 attributes.put("listTypeId", getListTypeId());
046 attributes.put("name", getName());
047 attributes.put("type", getType());
048
049 return attributes;
050 }
051
052 public void setModelAttributes(Map<String, Object> attributes) {
053 Integer listTypeId = (Integer)attributes.get("listTypeId");
054
055 if (listTypeId != null) {
056 setListTypeId(listTypeId);
057 }
058
059 String name = (String)attributes.get("name");
060
061 if (name != null) {
062 setName(name);
063 }
064
065 String type = (String)attributes.get("type");
066
067 if (type != null) {
068 setType(type);
069 }
070 }
071
072
077 public int getPrimaryKey() {
078 return _listType.getPrimaryKey();
079 }
080
081
086 public void setPrimaryKey(int primaryKey) {
087 _listType.setPrimaryKey(primaryKey);
088 }
089
090
095 public int getListTypeId() {
096 return _listType.getListTypeId();
097 }
098
099
104 public void setListTypeId(int listTypeId) {
105 _listType.setListTypeId(listTypeId);
106 }
107
108
113 public java.lang.String getName() {
114 return _listType.getName();
115 }
116
117
122 public void setName(java.lang.String name) {
123 _listType.setName(name);
124 }
125
126
131 public java.lang.String getType() {
132 return _listType.getType();
133 }
134
135
140 public void setType(java.lang.String type) {
141 _listType.setType(type);
142 }
143
144 public boolean isNew() {
145 return _listType.isNew();
146 }
147
148 public void setNew(boolean n) {
149 _listType.setNew(n);
150 }
151
152 public boolean isCachedModel() {
153 return _listType.isCachedModel();
154 }
155
156 public void setCachedModel(boolean cachedModel) {
157 _listType.setCachedModel(cachedModel);
158 }
159
160 public boolean isEscapedModel() {
161 return _listType.isEscapedModel();
162 }
163
164 public java.io.Serializable getPrimaryKeyObj() {
165 return _listType.getPrimaryKeyObj();
166 }
167
168 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
169 _listType.setPrimaryKeyObj(primaryKeyObj);
170 }
171
172 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
173 return _listType.getExpandoBridge();
174 }
175
176 public void setExpandoBridgeAttributes(
177 com.liferay.portal.model.BaseModel<?> baseModel) {
178 _listType.setExpandoBridgeAttributes(baseModel);
179 }
180
181 public void setExpandoBridgeAttributes(
182 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
183 _listType.setExpandoBridgeAttributes(expandoBridge);
184 }
185
186 public void setExpandoBridgeAttributes(
187 com.liferay.portal.service.ServiceContext serviceContext) {
188 _listType.setExpandoBridgeAttributes(serviceContext);
189 }
190
191 @Override
192 public java.lang.Object clone() {
193 return new ListTypeWrapper((ListType)_listType.clone());
194 }
195
196 public int compareTo(com.liferay.portal.model.ListType listType) {
197 return _listType.compareTo(listType);
198 }
199
200 @Override
201 public int hashCode() {
202 return _listType.hashCode();
203 }
204
205 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ListType> toCacheModel() {
206 return _listType.toCacheModel();
207 }
208
209 public com.liferay.portal.model.ListType toEscapedModel() {
210 return new ListTypeWrapper(_listType.toEscapedModel());
211 }
212
213 public com.liferay.portal.model.ListType toUnescapedModel() {
214 return new ListTypeWrapper(_listType.toUnescapedModel());
215 }
216
217 @Override
218 public java.lang.String toString() {
219 return _listType.toString();
220 }
221
222 public java.lang.String toXmlString() {
223 return _listType.toXmlString();
224 }
225
226
229 public ListType getWrappedListType() {
230 return _listType;
231 }
232
233 public ListType getWrappedModel() {
234 return _listType;
235 }
236
237 public void resetOriginalValues() {
238 _listType.resetOriginalValues();
239 }
240
241 private ListType _listType;
242 }