001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portal.kernel.util.Validator;
018    
019    import java.util.Date;
020    import java.util.HashMap;
021    import java.util.Map;
022    
023    /**
024     * <p>
025     * This class is a wrapper for {@link UserTrackerPath}.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see UserTrackerPath
030     * @generated
031     */
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            /**
088            * Returns the primary key of this user tracker path.
089            *
090            * @return the primary key of this user tracker path
091            */
092            @Override
093            public long getPrimaryKey() {
094                    return _userTrackerPath.getPrimaryKey();
095            }
096    
097            /**
098            * Sets the primary key of this user tracker path.
099            *
100            * @param primaryKey the primary key of this user tracker path
101            */
102            @Override
103            public void setPrimaryKey(long primaryKey) {
104                    _userTrackerPath.setPrimaryKey(primaryKey);
105            }
106    
107            /**
108            * Returns the user tracker path ID of this user tracker path.
109            *
110            * @return the user tracker path ID of this user tracker path
111            */
112            @Override
113            public long getUserTrackerPathId() {
114                    return _userTrackerPath.getUserTrackerPathId();
115            }
116    
117            /**
118            * Sets the user tracker path ID of this user tracker path.
119            *
120            * @param userTrackerPathId the user tracker path ID of this user tracker path
121            */
122            @Override
123            public void setUserTrackerPathId(long userTrackerPathId) {
124                    _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
125            }
126    
127            /**
128            * Returns the user tracker ID of this user tracker path.
129            *
130            * @return the user tracker ID of this user tracker path
131            */
132            @Override
133            public long getUserTrackerId() {
134                    return _userTrackerPath.getUserTrackerId();
135            }
136    
137            /**
138            * Sets the user tracker ID of this user tracker path.
139            *
140            * @param userTrackerId the user tracker ID of this user tracker path
141            */
142            @Override
143            public void setUserTrackerId(long userTrackerId) {
144                    _userTrackerPath.setUserTrackerId(userTrackerId);
145            }
146    
147            /**
148            * Returns the path of this user tracker path.
149            *
150            * @return the path of this user tracker path
151            */
152            @Override
153            public java.lang.String getPath() {
154                    return _userTrackerPath.getPath();
155            }
156    
157            /**
158            * Sets the path of this user tracker path.
159            *
160            * @param path the path of this user tracker path
161            */
162            @Override
163            public void setPath(java.lang.String path) {
164                    _userTrackerPath.setPath(path);
165            }
166    
167            /**
168            * Returns the path date of this user tracker path.
169            *
170            * @return the path date of this user tracker path
171            */
172            @Override
173            public java.util.Date getPathDate() {
174                    return _userTrackerPath.getPathDate();
175            }
176    
177            /**
178            * Sets the path date of this user tracker path.
179            *
180            * @param pathDate the path date of this user tracker path
181            */
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            /**
313             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
314             */
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    }