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 java.util.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(
210 com.liferay.portal.model.BaseModel<?> baseModel) {
211 _userTrackerPath.setExpandoBridgeAttributes(baseModel);
212 }
213
214 @Override
215 public void setExpandoBridgeAttributes(
216 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
217 _userTrackerPath.setExpandoBridgeAttributes(expandoBridge);
218 }
219
220 @Override
221 public void setExpandoBridgeAttributes(
222 com.liferay.portal.service.ServiceContext serviceContext) {
223 _userTrackerPath.setExpandoBridgeAttributes(serviceContext);
224 }
225
226
231 @Override
232 public void setMvccVersion(long mvccVersion) {
233 _userTrackerPath.setMvccVersion(mvccVersion);
234 }
235
236 @Override
237 public void setNew(boolean n) {
238 _userTrackerPath.setNew(n);
239 }
240
241
246 @Override
247 public void setPath(java.lang.String path) {
248 _userTrackerPath.setPath(path);
249 }
250
251
256 @Override
257 public void setPathDate(java.util.Date pathDate) {
258 _userTrackerPath.setPathDate(pathDate);
259 }
260
261
266 @Override
267 public void setPrimaryKey(long primaryKey) {
268 _userTrackerPath.setPrimaryKey(primaryKey);
269 }
270
271 @Override
272 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
273 _userTrackerPath.setPrimaryKeyObj(primaryKeyObj);
274 }
275
276
281 @Override
282 public void setUserTrackerId(long userTrackerId) {
283 _userTrackerPath.setUserTrackerId(userTrackerId);
284 }
285
286
291 @Override
292 public void setUserTrackerPathId(long userTrackerPathId) {
293 _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
294 }
295
296 @Override
297 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserTrackerPath> toCacheModel() {
298 return _userTrackerPath.toCacheModel();
299 }
300
301 @Override
302 public com.liferay.portal.model.UserTrackerPath toEscapedModel() {
303 return new UserTrackerPathWrapper(_userTrackerPath.toEscapedModel());
304 }
305
306 @Override
307 public java.lang.String toString() {
308 return _userTrackerPath.toString();
309 }
310
311 @Override
312 public com.liferay.portal.model.UserTrackerPath toUnescapedModel() {
313 return new UserTrackerPathWrapper(_userTrackerPath.toUnescapedModel());
314 }
315
316 @Override
317 public java.lang.String toXmlString() {
318 return _userTrackerPath.toXmlString();
319 }
320
321 @Override
322 public boolean equals(Object obj) {
323 if (this == obj) {
324 return true;
325 }
326
327 if (!(obj instanceof UserTrackerPathWrapper)) {
328 return false;
329 }
330
331 UserTrackerPathWrapper userTrackerPathWrapper = (UserTrackerPathWrapper)obj;
332
333 if (Validator.equals(_userTrackerPath,
334 userTrackerPathWrapper._userTrackerPath)) {
335 return true;
336 }
337
338 return false;
339 }
340
341
344 @Deprecated
345 public UserTrackerPath getWrappedUserTrackerPath() {
346 return _userTrackerPath;
347 }
348
349 @Override
350 public UserTrackerPath getWrappedModel() {
351 return _userTrackerPath;
352 }
353
354 @Override
355 public boolean isEntityCacheEnabled() {
356 return _userTrackerPath.isEntityCacheEnabled();
357 }
358
359 @Override
360 public boolean isFinderCacheEnabled() {
361 return _userTrackerPath.isFinderCacheEnabled();
362 }
363
364 @Override
365 public void resetOriginalValues() {
366 _userTrackerPath.resetOriginalValues();
367 }
368
369 private final UserTrackerPath _userTrackerPath;
370 }