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