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("companyId", getCompanyId());
058                    attributes.put("userTrackerId", getUserTrackerId());
059                    attributes.put("path", getPath());
060                    attributes.put("pathDate", getPathDate());
061    
062                    return attributes;
063            }
064    
065            @Override
066            public void setModelAttributes(Map<String, Object> attributes) {
067                    Long mvccVersion = (Long)attributes.get("mvccVersion");
068    
069                    if (mvccVersion != null) {
070                            setMvccVersion(mvccVersion);
071                    }
072    
073                    Long userTrackerPathId = (Long)attributes.get("userTrackerPathId");
074    
075                    if (userTrackerPathId != null) {
076                            setUserTrackerPathId(userTrackerPathId);
077                    }
078    
079                    Long companyId = (Long)attributes.get("companyId");
080    
081                    if (companyId != null) {
082                            setCompanyId(companyId);
083                    }
084    
085                    Long userTrackerId = (Long)attributes.get("userTrackerId");
086    
087                    if (userTrackerId != null) {
088                            setUserTrackerId(userTrackerId);
089                    }
090    
091                    String path = (String)attributes.get("path");
092    
093                    if (path != null) {
094                            setPath(path);
095                    }
096    
097                    Date pathDate = (Date)attributes.get("pathDate");
098    
099                    if (pathDate != null) {
100                            setPathDate(pathDate);
101                    }
102            }
103    
104            @Override
105            public java.lang.Object clone() {
106                    return new UserTrackerPathWrapper((UserTrackerPath)_userTrackerPath.clone());
107            }
108    
109            @Override
110            public int compareTo(
111                    com.liferay.portal.model.UserTrackerPath userTrackerPath) {
112                    return _userTrackerPath.compareTo(userTrackerPath);
113            }
114    
115            /**
116            * Returns the company ID of this user tracker path.
117            *
118            * @return the company ID of this user tracker path
119            */
120            @Override
121            public long getCompanyId() {
122                    return _userTrackerPath.getCompanyId();
123            }
124    
125            @Override
126            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
127                    return _userTrackerPath.getExpandoBridge();
128            }
129    
130            /**
131            * Returns the mvcc version of this user tracker path.
132            *
133            * @return the mvcc version of this user tracker path
134            */
135            @Override
136            public long getMvccVersion() {
137                    return _userTrackerPath.getMvccVersion();
138            }
139    
140            /**
141            * Returns the path of this user tracker path.
142            *
143            * @return the path of this user tracker path
144            */
145            @Override
146            public java.lang.String getPath() {
147                    return _userTrackerPath.getPath();
148            }
149    
150            /**
151            * Returns the path date of this user tracker path.
152            *
153            * @return the path date of this user tracker path
154            */
155            @Override
156            public Date getPathDate() {
157                    return _userTrackerPath.getPathDate();
158            }
159    
160            /**
161            * Returns the primary key of this user tracker path.
162            *
163            * @return the primary key of this user tracker path
164            */
165            @Override
166            public long getPrimaryKey() {
167                    return _userTrackerPath.getPrimaryKey();
168            }
169    
170            @Override
171            public java.io.Serializable getPrimaryKeyObj() {
172                    return _userTrackerPath.getPrimaryKeyObj();
173            }
174    
175            /**
176            * Returns the user tracker ID of this user tracker path.
177            *
178            * @return the user tracker ID of this user tracker path
179            */
180            @Override
181            public long getUserTrackerId() {
182                    return _userTrackerPath.getUserTrackerId();
183            }
184    
185            /**
186            * Returns the user tracker path ID of this user tracker path.
187            *
188            * @return the user tracker path ID of this user tracker path
189            */
190            @Override
191            public long getUserTrackerPathId() {
192                    return _userTrackerPath.getUserTrackerPathId();
193            }
194    
195            @Override
196            public int hashCode() {
197                    return _userTrackerPath.hashCode();
198            }
199    
200            @Override
201            public boolean isCachedModel() {
202                    return _userTrackerPath.isCachedModel();
203            }
204    
205            @Override
206            public boolean isEscapedModel() {
207                    return _userTrackerPath.isEscapedModel();
208            }
209    
210            @Override
211            public boolean isNew() {
212                    return _userTrackerPath.isNew();
213            }
214    
215            @Override
216            public void persist() {
217                    _userTrackerPath.persist();
218            }
219    
220            @Override
221            public void setCachedModel(boolean cachedModel) {
222                    _userTrackerPath.setCachedModel(cachedModel);
223            }
224    
225            /**
226            * Sets the company ID of this user tracker path.
227            *
228            * @param companyId the company ID of this user tracker path
229            */
230            @Override
231            public void setCompanyId(long companyId) {
232                    _userTrackerPath.setCompanyId(companyId);
233            }
234    
235            @Override
236            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
237                    _userTrackerPath.setExpandoBridgeAttributes(baseModel);
238            }
239    
240            @Override
241            public void setExpandoBridgeAttributes(
242                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
243                    _userTrackerPath.setExpandoBridgeAttributes(expandoBridge);
244            }
245    
246            @Override
247            public void setExpandoBridgeAttributes(
248                    com.liferay.portal.service.ServiceContext serviceContext) {
249                    _userTrackerPath.setExpandoBridgeAttributes(serviceContext);
250            }
251    
252            /**
253            * Sets the mvcc version of this user tracker path.
254            *
255            * @param mvccVersion the mvcc version of this user tracker path
256            */
257            @Override
258            public void setMvccVersion(long mvccVersion) {
259                    _userTrackerPath.setMvccVersion(mvccVersion);
260            }
261    
262            @Override
263            public void setNew(boolean n) {
264                    _userTrackerPath.setNew(n);
265            }
266    
267            /**
268            * Sets the path of this user tracker path.
269            *
270            * @param path the path of this user tracker path
271            */
272            @Override
273            public void setPath(java.lang.String path) {
274                    _userTrackerPath.setPath(path);
275            }
276    
277            /**
278            * Sets the path date of this user tracker path.
279            *
280            * @param pathDate the path date of this user tracker path
281            */
282            @Override
283            public void setPathDate(Date pathDate) {
284                    _userTrackerPath.setPathDate(pathDate);
285            }
286    
287            /**
288            * Sets the primary key of this user tracker path.
289            *
290            * @param primaryKey the primary key of this user tracker path
291            */
292            @Override
293            public void setPrimaryKey(long primaryKey) {
294                    _userTrackerPath.setPrimaryKey(primaryKey);
295            }
296    
297            @Override
298            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
299                    _userTrackerPath.setPrimaryKeyObj(primaryKeyObj);
300            }
301    
302            /**
303            * Sets the user tracker ID of this user tracker path.
304            *
305            * @param userTrackerId the user tracker ID of this user tracker path
306            */
307            @Override
308            public void setUserTrackerId(long userTrackerId) {
309                    _userTrackerPath.setUserTrackerId(userTrackerId);
310            }
311    
312            /**
313            * Sets the user tracker path ID of this user tracker path.
314            *
315            * @param userTrackerPathId the user tracker path ID of this user tracker path
316            */
317            @Override
318            public void setUserTrackerPathId(long userTrackerPathId) {
319                    _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
320            }
321    
322            @Override
323            public CacheModel<com.liferay.portal.model.UserTrackerPath> toCacheModel() {
324                    return _userTrackerPath.toCacheModel();
325            }
326    
327            @Override
328            public com.liferay.portal.model.UserTrackerPath toEscapedModel() {
329                    return new UserTrackerPathWrapper(_userTrackerPath.toEscapedModel());
330            }
331    
332            @Override
333            public java.lang.String toString() {
334                    return _userTrackerPath.toString();
335            }
336    
337            @Override
338            public com.liferay.portal.model.UserTrackerPath toUnescapedModel() {
339                    return new UserTrackerPathWrapper(_userTrackerPath.toUnescapedModel());
340            }
341    
342            @Override
343            public java.lang.String toXmlString() {
344                    return _userTrackerPath.toXmlString();
345            }
346    
347            @Override
348            public boolean equals(Object obj) {
349                    if (this == obj) {
350                            return true;
351                    }
352    
353                    if (!(obj instanceof UserTrackerPathWrapper)) {
354                            return false;
355                    }
356    
357                    UserTrackerPathWrapper userTrackerPathWrapper = (UserTrackerPathWrapper)obj;
358    
359                    if (Validator.equals(_userTrackerPath,
360                                            userTrackerPathWrapper._userTrackerPath)) {
361                            return true;
362                    }
363    
364                    return false;
365            }
366    
367            @Override
368            public UserTrackerPath getWrappedModel() {
369                    return _userTrackerPath;
370            }
371    
372            @Override
373            public boolean isEntityCacheEnabled() {
374                    return _userTrackerPath.isEntityCacheEnabled();
375            }
376    
377            @Override
378            public boolean isFinderCacheEnabled() {
379                    return _userTrackerPath.isFinderCacheEnabled();
380            }
381    
382            @Override
383            public void resetOriginalValues() {
384                    _userTrackerPath.resetOriginalValues();
385            }
386    
387            private final UserTrackerPath _userTrackerPath;
388    }