001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
026     * <p>
027     * This class is a wrapper for {@link UserTrackerPath}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see UserTrackerPath
032     * @generated
033     */
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            /**
114            * Returns the mvcc version of this user tracker path.
115            *
116            * @return the mvcc version of this user tracker path
117            */
118            @Override
119            public long getMvccVersion() {
120                    return _userTrackerPath.getMvccVersion();
121            }
122    
123            /**
124            * Returns the path of this user tracker path.
125            *
126            * @return the path of this user tracker path
127            */
128            @Override
129            public java.lang.String getPath() {
130                    return _userTrackerPath.getPath();
131            }
132    
133            /**
134            * Returns the path date of this user tracker path.
135            *
136            * @return the path date of this user tracker path
137            */
138            @Override
139            public java.util.Date getPathDate() {
140                    return _userTrackerPath.getPathDate();
141            }
142    
143            /**
144            * Returns the primary key of this user tracker path.
145            *
146            * @return the primary key of this user tracker path
147            */
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            /**
159            * Returns the user tracker ID of this user tracker path.
160            *
161            * @return the user tracker ID of this user tracker path
162            */
163            @Override
164            public long getUserTrackerId() {
165                    return _userTrackerPath.getUserTrackerId();
166            }
167    
168            /**
169            * Returns the user tracker path ID of this user tracker path.
170            *
171            * @return the user tracker path ID of this user tracker path
172            */
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            /**
227            * Sets the mvcc version of this user tracker path.
228            *
229            * @param mvccVersion the mvcc version of this user tracker path
230            */
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            /**
242            * Sets the path of this user tracker path.
243            *
244            * @param path the path of this user tracker path
245            */
246            @Override
247            public void setPath(java.lang.String path) {
248                    _userTrackerPath.setPath(path);
249            }
250    
251            /**
252            * Sets the path date of this user tracker path.
253            *
254            * @param pathDate the path date of this user tracker path
255            */
256            @Override
257            public void setPathDate(java.util.Date pathDate) {
258                    _userTrackerPath.setPathDate(pathDate);
259            }
260    
261            /**
262            * Sets the primary key of this user tracker path.
263            *
264            * @param primaryKey the primary key of this user tracker path
265            */
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            /**
277            * Sets the user tracker ID of this user tracker path.
278            *
279            * @param userTrackerId the user tracker ID of this user tracker path
280            */
281            @Override
282            public void setUserTrackerId(long userTrackerId) {
283                    _userTrackerPath.setUserTrackerId(userTrackerId);
284            }
285    
286            /**
287            * Sets the user tracker path ID of this user tracker path.
288            *
289            * @param userTrackerPathId the user tracker path ID of this user tracker path
290            */
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            /**
342             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
343             */
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    }