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 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("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            /**
091            * Returns the primary key of this user tracker path.
092            *
093            * @return the primary key of this user tracker path
094            */
095            @Override
096            public long getPrimaryKey() {
097                    return _userTrackerPath.getPrimaryKey();
098            }
099    
100            /**
101            * Sets the primary key of this user tracker path.
102            *
103            * @param primaryKey the primary key of this user tracker path
104            */
105            @Override
106            public void setPrimaryKey(long primaryKey) {
107                    _userTrackerPath.setPrimaryKey(primaryKey);
108            }
109    
110            /**
111            * Returns the user tracker path ID of this user tracker path.
112            *
113            * @return the user tracker path ID of this user tracker path
114            */
115            @Override
116            public long getUserTrackerPathId() {
117                    return _userTrackerPath.getUserTrackerPathId();
118            }
119    
120            /**
121            * Sets the user tracker path ID of this user tracker path.
122            *
123            * @param userTrackerPathId the user tracker path ID of this user tracker path
124            */
125            @Override
126            public void setUserTrackerPathId(long userTrackerPathId) {
127                    _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
128            }
129    
130            /**
131            * Returns the user tracker ID of this user tracker path.
132            *
133            * @return the user tracker ID of this user tracker path
134            */
135            @Override
136            public long getUserTrackerId() {
137                    return _userTrackerPath.getUserTrackerId();
138            }
139    
140            /**
141            * Sets the user tracker ID of this user tracker path.
142            *
143            * @param userTrackerId the user tracker ID of this user tracker path
144            */
145            @Override
146            public void setUserTrackerId(long userTrackerId) {
147                    _userTrackerPath.setUserTrackerId(userTrackerId);
148            }
149    
150            /**
151            * Returns the path of this user tracker path.
152            *
153            * @return the path of this user tracker path
154            */
155            @Override
156            public java.lang.String getPath() {
157                    return _userTrackerPath.getPath();
158            }
159    
160            /**
161            * Sets the path of this user tracker path.
162            *
163            * @param path the path of this user tracker path
164            */
165            @Override
166            public void setPath(java.lang.String path) {
167                    _userTrackerPath.setPath(path);
168            }
169    
170            /**
171            * Returns the path date of this user tracker path.
172            *
173            * @return the path date of this user tracker path
174            */
175            @Override
176            public java.util.Date getPathDate() {
177                    return _userTrackerPath.getPathDate();
178            }
179    
180            /**
181            * Sets the path date of this user tracker path.
182            *
183            * @param pathDate the path date of this user tracker path
184            */
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            /**
316             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
317             */
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    }