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("userTrackerPathId", getUserTrackerPathId());
056 attributes.put("userTrackerId", getUserTrackerId());
057 attributes.put("path", getPath());
058 attributes.put("pathDate", getPathDate());
059
060 return attributes;
061 }
062
063 @Override
064 public void setModelAttributes(Map<String, Object> attributes) {
065 Long userTrackerPathId = (Long)attributes.get("userTrackerPathId");
066
067 if (userTrackerPathId != null) {
068 setUserTrackerPathId(userTrackerPathId);
069 }
070
071 Long userTrackerId = (Long)attributes.get("userTrackerId");
072
073 if (userTrackerId != null) {
074 setUserTrackerId(userTrackerId);
075 }
076
077 String path = (String)attributes.get("path");
078
079 if (path != null) {
080 setPath(path);
081 }
082
083 Date pathDate = (Date)attributes.get("pathDate");
084
085 if (pathDate != null) {
086 setPathDate(pathDate);
087 }
088 }
089
090
095 @Override
096 public long getPrimaryKey() {
097 return _userTrackerPath.getPrimaryKey();
098 }
099
100
105 @Override
106 public void setPrimaryKey(long primaryKey) {
107 _userTrackerPath.setPrimaryKey(primaryKey);
108 }
109
110
115 @Override
116 public long getUserTrackerPathId() {
117 return _userTrackerPath.getUserTrackerPathId();
118 }
119
120
125 @Override
126 public void setUserTrackerPathId(long userTrackerPathId) {
127 _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
128 }
129
130
135 @Override
136 public long getUserTrackerId() {
137 return _userTrackerPath.getUserTrackerId();
138 }
139
140
145 @Override
146 public void setUserTrackerId(long userTrackerId) {
147 _userTrackerPath.setUserTrackerId(userTrackerId);
148 }
149
150
155 @Override
156 public java.lang.String getPath() {
157 return _userTrackerPath.getPath();
158 }
159
160
165 @Override
166 public void setPath(java.lang.String path) {
167 _userTrackerPath.setPath(path);
168 }
169
170
175 @Override
176 public java.util.Date getPathDate() {
177 return _userTrackerPath.getPathDate();
178 }
179
180
185 @Override
186 public void setPathDate(java.util.Date pathDate) {
187 _userTrackerPath.setPathDate(pathDate);
188 }
189
190 @Override
191 public boolean isNew() {
192 return _userTrackerPath.isNew();
193 }
194
195 @Override
196 public void setNew(boolean n) {
197 _userTrackerPath.setNew(n);
198 }
199
200 @Override
201 public boolean isCachedModel() {
202 return _userTrackerPath.isCachedModel();
203 }
204
205 @Override
206 public void setCachedModel(boolean cachedModel) {
207 _userTrackerPath.setCachedModel(cachedModel);
208 }
209
210 @Override
211 public boolean isEscapedModel() {
212 return _userTrackerPath.isEscapedModel();
213 }
214
215 @Override
216 public java.io.Serializable getPrimaryKeyObj() {
217 return _userTrackerPath.getPrimaryKeyObj();
218 }
219
220 @Override
221 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
222 _userTrackerPath.setPrimaryKeyObj(primaryKeyObj);
223 }
224
225 @Override
226 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
227 return _userTrackerPath.getExpandoBridge();
228 }
229
230 @Override
231 public void setExpandoBridgeAttributes(
232 com.liferay.portal.model.BaseModel<?> baseModel) {
233 _userTrackerPath.setExpandoBridgeAttributes(baseModel);
234 }
235
236 @Override
237 public void setExpandoBridgeAttributes(
238 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
239 _userTrackerPath.setExpandoBridgeAttributes(expandoBridge);
240 }
241
242 @Override
243 public void setExpandoBridgeAttributes(
244 com.liferay.portal.service.ServiceContext serviceContext) {
245 _userTrackerPath.setExpandoBridgeAttributes(serviceContext);
246 }
247
248 @Override
249 public java.lang.Object clone() {
250 return new UserTrackerPathWrapper((UserTrackerPath)_userTrackerPath.clone());
251 }
252
253 @Override
254 public int compareTo(
255 com.liferay.portal.model.UserTrackerPath userTrackerPath) {
256 return _userTrackerPath.compareTo(userTrackerPath);
257 }
258
259 @Override
260 public int hashCode() {
261 return _userTrackerPath.hashCode();
262 }
263
264 @Override
265 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserTrackerPath> toCacheModel() {
266 return _userTrackerPath.toCacheModel();
267 }
268
269 @Override
270 public com.liferay.portal.model.UserTrackerPath toEscapedModel() {
271 return new UserTrackerPathWrapper(_userTrackerPath.toEscapedModel());
272 }
273
274 @Override
275 public com.liferay.portal.model.UserTrackerPath toUnescapedModel() {
276 return new UserTrackerPathWrapper(_userTrackerPath.toUnescapedModel());
277 }
278
279 @Override
280 public java.lang.String toString() {
281 return _userTrackerPath.toString();
282 }
283
284 @Override
285 public java.lang.String toXmlString() {
286 return _userTrackerPath.toXmlString();
287 }
288
289 @Override
290 public void persist()
291 throws com.liferay.portal.kernel.exception.SystemException {
292 _userTrackerPath.persist();
293 }
294
295 @Override
296 public boolean equals(Object obj) {
297 if (this == obj) {
298 return true;
299 }
300
301 if (!(obj instanceof UserTrackerPathWrapper)) {
302 return false;
303 }
304
305 UserTrackerPathWrapper userTrackerPathWrapper = (UserTrackerPathWrapper)obj;
306
307 if (Validator.equals(_userTrackerPath,
308 userTrackerPathWrapper._userTrackerPath)) {
309 return true;
310 }
311
312 return false;
313 }
314
315
318 public UserTrackerPath getWrappedUserTrackerPath() {
319 return _userTrackerPath;
320 }
321
322 @Override
323 public UserTrackerPath getWrappedModel() {
324 return _userTrackerPath;
325 }
326
327 @Override
328 public void resetOriginalValues() {
329 _userTrackerPath.resetOriginalValues();
330 }
331
332 private UserTrackerPath _userTrackerPath;
333 }