001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class UserTrackerPathWrapper implements UserTrackerPath,
033 ModelWrapper<UserTrackerPath> {
034 public UserTrackerPathWrapper(UserTrackerPath userTrackerPath) {
035 _userTrackerPath = userTrackerPath;
036 }
037
038 @Override
039 public Class<?> getModelClass() {
040 return UserTrackerPath.class;
041 }
042
043 @Override
044 public String getModelClassName() {
045 return UserTrackerPath.class.getName();
046 }
047
048 @Override
049 public Map<String, Object> getModelAttributes() {
050 Map<String, Object> attributes = new HashMap<String, Object>();
051
052 attributes.put("userTrackerPathId", getUserTrackerPathId());
053 attributes.put("userTrackerId", getUserTrackerId());
054 attributes.put("path", getPath());
055 attributes.put("pathDate", getPathDate());
056
057 return attributes;
058 }
059
060 @Override
061 public void setModelAttributes(Map<String, Object> attributes) {
062 Long userTrackerPathId = (Long)attributes.get("userTrackerPathId");
063
064 if (userTrackerPathId != null) {
065 setUserTrackerPathId(userTrackerPathId);
066 }
067
068 Long userTrackerId = (Long)attributes.get("userTrackerId");
069
070 if (userTrackerId != null) {
071 setUserTrackerId(userTrackerId);
072 }
073
074 String path = (String)attributes.get("path");
075
076 if (path != null) {
077 setPath(path);
078 }
079
080 Date pathDate = (Date)attributes.get("pathDate");
081
082 if (pathDate != null) {
083 setPathDate(pathDate);
084 }
085 }
086
087
092 @Override
093 public long getPrimaryKey() {
094 return _userTrackerPath.getPrimaryKey();
095 }
096
097
102 @Override
103 public void setPrimaryKey(long primaryKey) {
104 _userTrackerPath.setPrimaryKey(primaryKey);
105 }
106
107
112 @Override
113 public long getUserTrackerPathId() {
114 return _userTrackerPath.getUserTrackerPathId();
115 }
116
117
122 @Override
123 public void setUserTrackerPathId(long userTrackerPathId) {
124 _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
125 }
126
127
132 @Override
133 public long getUserTrackerId() {
134 return _userTrackerPath.getUserTrackerId();
135 }
136
137
142 @Override
143 public void setUserTrackerId(long userTrackerId) {
144 _userTrackerPath.setUserTrackerId(userTrackerId);
145 }
146
147
152 @Override
153 public java.lang.String getPath() {
154 return _userTrackerPath.getPath();
155 }
156
157
162 @Override
163 public void setPath(java.lang.String path) {
164 _userTrackerPath.setPath(path);
165 }
166
167
172 @Override
173 public java.util.Date getPathDate() {
174 return _userTrackerPath.getPathDate();
175 }
176
177
182 @Override
183 public void setPathDate(java.util.Date pathDate) {
184 _userTrackerPath.setPathDate(pathDate);
185 }
186
187 @Override
188 public boolean isNew() {
189 return _userTrackerPath.isNew();
190 }
191
192 @Override
193 public void setNew(boolean n) {
194 _userTrackerPath.setNew(n);
195 }
196
197 @Override
198 public boolean isCachedModel() {
199 return _userTrackerPath.isCachedModel();
200 }
201
202 @Override
203 public void setCachedModel(boolean cachedModel) {
204 _userTrackerPath.setCachedModel(cachedModel);
205 }
206
207 @Override
208 public boolean isEscapedModel() {
209 return _userTrackerPath.isEscapedModel();
210 }
211
212 @Override
213 public java.io.Serializable getPrimaryKeyObj() {
214 return _userTrackerPath.getPrimaryKeyObj();
215 }
216
217 @Override
218 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
219 _userTrackerPath.setPrimaryKeyObj(primaryKeyObj);
220 }
221
222 @Override
223 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
224 return _userTrackerPath.getExpandoBridge();
225 }
226
227 @Override
228 public void setExpandoBridgeAttributes(
229 com.liferay.portal.model.BaseModel<?> baseModel) {
230 _userTrackerPath.setExpandoBridgeAttributes(baseModel);
231 }
232
233 @Override
234 public void setExpandoBridgeAttributes(
235 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
236 _userTrackerPath.setExpandoBridgeAttributes(expandoBridge);
237 }
238
239 @Override
240 public void setExpandoBridgeAttributes(
241 com.liferay.portal.service.ServiceContext serviceContext) {
242 _userTrackerPath.setExpandoBridgeAttributes(serviceContext);
243 }
244
245 @Override
246 public java.lang.Object clone() {
247 return new UserTrackerPathWrapper((UserTrackerPath)_userTrackerPath.clone());
248 }
249
250 @Override
251 public int compareTo(
252 com.liferay.portal.model.UserTrackerPath userTrackerPath) {
253 return _userTrackerPath.compareTo(userTrackerPath);
254 }
255
256 @Override
257 public int hashCode() {
258 return _userTrackerPath.hashCode();
259 }
260
261 @Override
262 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserTrackerPath> toCacheModel() {
263 return _userTrackerPath.toCacheModel();
264 }
265
266 @Override
267 public com.liferay.portal.model.UserTrackerPath toEscapedModel() {
268 return new UserTrackerPathWrapper(_userTrackerPath.toEscapedModel());
269 }
270
271 @Override
272 public com.liferay.portal.model.UserTrackerPath toUnescapedModel() {
273 return new UserTrackerPathWrapper(_userTrackerPath.toUnescapedModel());
274 }
275
276 @Override
277 public java.lang.String toString() {
278 return _userTrackerPath.toString();
279 }
280
281 @Override
282 public java.lang.String toXmlString() {
283 return _userTrackerPath.toXmlString();
284 }
285
286 @Override
287 public void persist()
288 throws com.liferay.portal.kernel.exception.SystemException {
289 _userTrackerPath.persist();
290 }
291
292 @Override
293 public boolean equals(Object obj) {
294 if (this == obj) {
295 return true;
296 }
297
298 if (!(obj instanceof UserTrackerPathWrapper)) {
299 return false;
300 }
301
302 UserTrackerPathWrapper userTrackerPathWrapper = (UserTrackerPathWrapper)obj;
303
304 if (Validator.equals(_userTrackerPath,
305 userTrackerPathWrapper._userTrackerPath)) {
306 return true;
307 }
308
309 return false;
310 }
311
312
315 public UserTrackerPath getWrappedUserTrackerPath() {
316 return _userTrackerPath;
317 }
318
319 @Override
320 public UserTrackerPath getWrappedModel() {
321 return _userTrackerPath;
322 }
323
324 @Override
325 public void resetOriginalValues() {
326 _userTrackerPath.resetOriginalValues();
327 }
328
329 private UserTrackerPath _userTrackerPath;
330 }