001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Validator;
020
021 import java.util.Date;
022 import java.util.HashMap;
023 import java.util.Map;
024
025
034 @ProviderType
035 public class UserTrackerPathWrapper implements UserTrackerPath,
036 ModelWrapper<UserTrackerPath> {
037 public UserTrackerPathWrapper(UserTrackerPath userTrackerPath) {
038 _userTrackerPath = userTrackerPath;
039 }
040
041 @Override
042 public Class<?> getModelClass() {
043 return UserTrackerPath.class;
044 }
045
046 @Override
047 public String getModelClassName() {
048 return UserTrackerPath.class.getName();
049 }
050
051 @Override
052 public Map<String, Object> getModelAttributes() {
053 Map<String, Object> attributes = new HashMap<String, Object>();
054
055 attributes.put("mvccVersion", getMvccVersion());
056 attributes.put("userTrackerPathId", getUserTrackerPathId());
057 attributes.put("userTrackerId", getUserTrackerId());
058 attributes.put("path", getPath());
059 attributes.put("pathDate", getPathDate());
060
061 return attributes;
062 }
063
064 @Override
065 public void setModelAttributes(Map<String, Object> attributes) {
066 Long mvccVersion = (Long)attributes.get("mvccVersion");
067
068 if (mvccVersion != null) {
069 setMvccVersion(mvccVersion);
070 }
071
072 Long userTrackerPathId = (Long)attributes.get("userTrackerPathId");
073
074 if (userTrackerPathId != null) {
075 setUserTrackerPathId(userTrackerPathId);
076 }
077
078 Long userTrackerId = (Long)attributes.get("userTrackerId");
079
080 if (userTrackerId != null) {
081 setUserTrackerId(userTrackerId);
082 }
083
084 String path = (String)attributes.get("path");
085
086 if (path != null) {
087 setPath(path);
088 }
089
090 Date pathDate = (Date)attributes.get("pathDate");
091
092 if (pathDate != null) {
093 setPathDate(pathDate);
094 }
095 }
096
097 @Override
098 public java.lang.Object clone() {
099 return new UserTrackerPathWrapper((UserTrackerPath)_userTrackerPath.clone());
100 }
101
102 @Override
103 public int compareTo(
104 com.liferay.portal.model.UserTrackerPath userTrackerPath) {
105 return _userTrackerPath.compareTo(userTrackerPath);
106 }
107
108 @Override
109 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
110 return _userTrackerPath.getExpandoBridge();
111 }
112
113
118 @Override
119 public long getMvccVersion() {
120 return _userTrackerPath.getMvccVersion();
121 }
122
123
128 @Override
129 public java.lang.String getPath() {
130 return _userTrackerPath.getPath();
131 }
132
133
138 @Override
139 public Date getPathDate() {
140 return _userTrackerPath.getPathDate();
141 }
142
143
148 @Override
149 public long getPrimaryKey() {
150 return _userTrackerPath.getPrimaryKey();
151 }
152
153 @Override
154 public java.io.Serializable getPrimaryKeyObj() {
155 return _userTrackerPath.getPrimaryKeyObj();
156 }
157
158
163 @Override
164 public long getUserTrackerId() {
165 return _userTrackerPath.getUserTrackerId();
166 }
167
168
173 @Override
174 public long getUserTrackerPathId() {
175 return _userTrackerPath.getUserTrackerPathId();
176 }
177
178 @Override
179 public int hashCode() {
180 return _userTrackerPath.hashCode();
181 }
182
183 @Override
184 public boolean isCachedModel() {
185 return _userTrackerPath.isCachedModel();
186 }
187
188 @Override
189 public boolean isEscapedModel() {
190 return _userTrackerPath.isEscapedModel();
191 }
192
193 @Override
194 public boolean isNew() {
195 return _userTrackerPath.isNew();
196 }
197
198 @Override
199 public void persist() {
200 _userTrackerPath.persist();
201 }
202
203 @Override
204 public void setCachedModel(boolean cachedModel) {
205 _userTrackerPath.setCachedModel(cachedModel);
206 }
207
208 @Override
209 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
210 _userTrackerPath.setExpandoBridgeAttributes(baseModel);
211 }
212
213 @Override
214 public void setExpandoBridgeAttributes(
215 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
216 _userTrackerPath.setExpandoBridgeAttributes(expandoBridge);
217 }
218
219 @Override
220 public void setExpandoBridgeAttributes(
221 com.liferay.portal.service.ServiceContext serviceContext) {
222 _userTrackerPath.setExpandoBridgeAttributes(serviceContext);
223 }
224
225
230 @Override
231 public void setMvccVersion(long mvccVersion) {
232 _userTrackerPath.setMvccVersion(mvccVersion);
233 }
234
235 @Override
236 public void setNew(boolean n) {
237 _userTrackerPath.setNew(n);
238 }
239
240
245 @Override
246 public void setPath(java.lang.String path) {
247 _userTrackerPath.setPath(path);
248 }
249
250
255 @Override
256 public void setPathDate(Date pathDate) {
257 _userTrackerPath.setPathDate(pathDate);
258 }
259
260
265 @Override
266 public void setPrimaryKey(long primaryKey) {
267 _userTrackerPath.setPrimaryKey(primaryKey);
268 }
269
270 @Override
271 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
272 _userTrackerPath.setPrimaryKeyObj(primaryKeyObj);
273 }
274
275
280 @Override
281 public void setUserTrackerId(long userTrackerId) {
282 _userTrackerPath.setUserTrackerId(userTrackerId);
283 }
284
285
290 @Override
291 public void setUserTrackerPathId(long userTrackerPathId) {
292 _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
293 }
294
295 @Override
296 public CacheModel<com.liferay.portal.model.UserTrackerPath> toCacheModel() {
297 return _userTrackerPath.toCacheModel();
298 }
299
300 @Override
301 public com.liferay.portal.model.UserTrackerPath toEscapedModel() {
302 return new UserTrackerPathWrapper(_userTrackerPath.toEscapedModel());
303 }
304
305 @Override
306 public java.lang.String toString() {
307 return _userTrackerPath.toString();
308 }
309
310 @Override
311 public com.liferay.portal.model.UserTrackerPath toUnescapedModel() {
312 return new UserTrackerPathWrapper(_userTrackerPath.toUnescapedModel());
313 }
314
315 @Override
316 public java.lang.String toXmlString() {
317 return _userTrackerPath.toXmlString();
318 }
319
320 @Override
321 public boolean equals(Object obj) {
322 if (this == obj) {
323 return true;
324 }
325
326 if (!(obj instanceof UserTrackerPathWrapper)) {
327 return false;
328 }
329
330 UserTrackerPathWrapper userTrackerPathWrapper = (UserTrackerPathWrapper)obj;
331
332 if (Validator.equals(_userTrackerPath,
333 userTrackerPathWrapper._userTrackerPath)) {
334 return true;
335 }
336
337 return false;
338 }
339
340
343 @Deprecated
344 public UserTrackerPath getWrappedUserTrackerPath() {
345 return _userTrackerPath;
346 }
347
348 @Override
349 public UserTrackerPath getWrappedModel() {
350 return _userTrackerPath;
351 }
352
353 @Override
354 public boolean isEntityCacheEnabled() {
355 return _userTrackerPath.isEntityCacheEnabled();
356 }
357
358 @Override
359 public boolean isFinderCacheEnabled() {
360 return _userTrackerPath.isFinderCacheEnabled();
361 }
362
363 @Override
364 public void resetOriginalValues() {
365 _userTrackerPath.resetOriginalValues();
366 }
367
368 private final UserTrackerPath _userTrackerPath;
369 }