001
014
015 package com.liferay.portal.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.expando.kernel.model.ExpandoBridge;
020
021 import com.liferay.portal.kernel.service.ServiceContext;
022
023 import java.io.Serializable;
024
025 import java.util.Date;
026 import java.util.HashMap;
027 import java.util.Map;
028 import java.util.Objects;
029
030
039 @ProviderType
040 public class UserTrackerPathWrapper implements UserTrackerPath,
041 ModelWrapper<UserTrackerPath> {
042 public UserTrackerPathWrapper(UserTrackerPath userTrackerPath) {
043 _userTrackerPath = userTrackerPath;
044 }
045
046 @Override
047 public Class<?> getModelClass() {
048 return UserTrackerPath.class;
049 }
050
051 @Override
052 public String getModelClassName() {
053 return UserTrackerPath.class.getName();
054 }
055
056 @Override
057 public Map<String, Object> getModelAttributes() {
058 Map<String, Object> attributes = new HashMap<String, Object>();
059
060 attributes.put("mvccVersion", getMvccVersion());
061 attributes.put("userTrackerPathId", getUserTrackerPathId());
062 attributes.put("companyId", getCompanyId());
063 attributes.put("userTrackerId", getUserTrackerId());
064 attributes.put("path", getPath());
065 attributes.put("pathDate", getPathDate());
066
067 return attributes;
068 }
069
070 @Override
071 public void setModelAttributes(Map<String, Object> attributes) {
072 Long mvccVersion = (Long)attributes.get("mvccVersion");
073
074 if (mvccVersion != null) {
075 setMvccVersion(mvccVersion);
076 }
077
078 Long userTrackerPathId = (Long)attributes.get("userTrackerPathId");
079
080 if (userTrackerPathId != null) {
081 setUserTrackerPathId(userTrackerPathId);
082 }
083
084 Long companyId = (Long)attributes.get("companyId");
085
086 if (companyId != null) {
087 setCompanyId(companyId);
088 }
089
090 Long userTrackerId = (Long)attributes.get("userTrackerId");
091
092 if (userTrackerId != null) {
093 setUserTrackerId(userTrackerId);
094 }
095
096 String path = (String)attributes.get("path");
097
098 if (path != null) {
099 setPath(path);
100 }
101
102 Date pathDate = (Date)attributes.get("pathDate");
103
104 if (pathDate != null) {
105 setPathDate(pathDate);
106 }
107 }
108
109 @Override
110 public CacheModel<UserTrackerPath> toCacheModel() {
111 return _userTrackerPath.toCacheModel();
112 }
113
114 @Override
115 public UserTrackerPath toEscapedModel() {
116 return new UserTrackerPathWrapper(_userTrackerPath.toEscapedModel());
117 }
118
119 @Override
120 public UserTrackerPath toUnescapedModel() {
121 return new UserTrackerPathWrapper(_userTrackerPath.toUnescapedModel());
122 }
123
124 @Override
125 public boolean isCachedModel() {
126 return _userTrackerPath.isCachedModel();
127 }
128
129 @Override
130 public boolean isEscapedModel() {
131 return _userTrackerPath.isEscapedModel();
132 }
133
134 @Override
135 public boolean isNew() {
136 return _userTrackerPath.isNew();
137 }
138
139 @Override
140 public ExpandoBridge getExpandoBridge() {
141 return _userTrackerPath.getExpandoBridge();
142 }
143
144 @Override
145 public int compareTo(UserTrackerPath userTrackerPath) {
146 return _userTrackerPath.compareTo(userTrackerPath);
147 }
148
149 @Override
150 public int hashCode() {
151 return _userTrackerPath.hashCode();
152 }
153
154 @Override
155 public Serializable getPrimaryKeyObj() {
156 return _userTrackerPath.getPrimaryKeyObj();
157 }
158
159 @Override
160 public java.lang.Object clone() {
161 return new UserTrackerPathWrapper((UserTrackerPath)_userTrackerPath.clone());
162 }
163
164
169 @Override
170 public java.lang.String getPath() {
171 return _userTrackerPath.getPath();
172 }
173
174 @Override
175 public java.lang.String toString() {
176 return _userTrackerPath.toString();
177 }
178
179 @Override
180 public java.lang.String toXmlString() {
181 return _userTrackerPath.toXmlString();
182 }
183
184
189 @Override
190 public Date getPathDate() {
191 return _userTrackerPath.getPathDate();
192 }
193
194
199 @Override
200 public long getCompanyId() {
201 return _userTrackerPath.getCompanyId();
202 }
203
204
209 @Override
210 public long getMvccVersion() {
211 return _userTrackerPath.getMvccVersion();
212 }
213
214
219 @Override
220 public long getPrimaryKey() {
221 return _userTrackerPath.getPrimaryKey();
222 }
223
224
229 @Override
230 public long getUserTrackerId() {
231 return _userTrackerPath.getUserTrackerId();
232 }
233
234
239 @Override
240 public long getUserTrackerPathId() {
241 return _userTrackerPath.getUserTrackerPathId();
242 }
243
244 @Override
245 public void persist() {
246 _userTrackerPath.persist();
247 }
248
249 @Override
250 public void setCachedModel(boolean cachedModel) {
251 _userTrackerPath.setCachedModel(cachedModel);
252 }
253
254
259 @Override
260 public void setCompanyId(long companyId) {
261 _userTrackerPath.setCompanyId(companyId);
262 }
263
264 @Override
265 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
266 _userTrackerPath.setExpandoBridgeAttributes(baseModel);
267 }
268
269 @Override
270 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
271 _userTrackerPath.setExpandoBridgeAttributes(expandoBridge);
272 }
273
274 @Override
275 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
276 _userTrackerPath.setExpandoBridgeAttributes(serviceContext);
277 }
278
279
284 @Override
285 public void setMvccVersion(long mvccVersion) {
286 _userTrackerPath.setMvccVersion(mvccVersion);
287 }
288
289 @Override
290 public void setNew(boolean n) {
291 _userTrackerPath.setNew(n);
292 }
293
294
299 @Override
300 public void setPath(java.lang.String path) {
301 _userTrackerPath.setPath(path);
302 }
303
304
309 @Override
310 public void setPathDate(Date pathDate) {
311 _userTrackerPath.setPathDate(pathDate);
312 }
313
314
319 @Override
320 public void setPrimaryKey(long primaryKey) {
321 _userTrackerPath.setPrimaryKey(primaryKey);
322 }
323
324 @Override
325 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
326 _userTrackerPath.setPrimaryKeyObj(primaryKeyObj);
327 }
328
329
334 @Override
335 public void setUserTrackerId(long userTrackerId) {
336 _userTrackerPath.setUserTrackerId(userTrackerId);
337 }
338
339
344 @Override
345 public void setUserTrackerPathId(long userTrackerPathId) {
346 _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
347 }
348
349 @Override
350 public boolean equals(Object obj) {
351 if (this == obj) {
352 return true;
353 }
354
355 if (!(obj instanceof UserTrackerPathWrapper)) {
356 return false;
357 }
358
359 UserTrackerPathWrapper userTrackerPathWrapper = (UserTrackerPathWrapper)obj;
360
361 if (Objects.equals(_userTrackerPath,
362 userTrackerPathWrapper._userTrackerPath)) {
363 return true;
364 }
365
366 return false;
367 }
368
369 @Override
370 public UserTrackerPath getWrappedModel() {
371 return _userTrackerPath;
372 }
373
374 @Override
375 public boolean isEntityCacheEnabled() {
376 return _userTrackerPath.isEntityCacheEnabled();
377 }
378
379 @Override
380 public boolean isFinderCacheEnabled() {
381 return _userTrackerPath.isFinderCacheEnabled();
382 }
383
384 @Override
385 public void resetOriginalValues() {
386 _userTrackerPath.resetOriginalValues();
387 }
388
389 private final UserTrackerPath _userTrackerPath;
390 }