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            public Class<?> getModelClass() {
039                    return UserTrackerPath.class;
040            }
041    
042            public String getModelClassName() {
043                    return UserTrackerPath.class.getName();
044            }
045    
046            public Map<String, Object> getModelAttributes() {
047                    Map<String, Object> attributes = new HashMap<String, Object>();
048    
049                    attributes.put("userTrackerPathId", getUserTrackerPathId());
050                    attributes.put("userTrackerId", getUserTrackerId());
051                    attributes.put("path", getPath());
052                    attributes.put("pathDate", getPathDate());
053    
054                    return attributes;
055            }
056    
057            public void setModelAttributes(Map<String, Object> attributes) {
058                    Long userTrackerPathId = (Long)attributes.get("userTrackerPathId");
059    
060                    if (userTrackerPathId != null) {
061                            setUserTrackerPathId(userTrackerPathId);
062                    }
063    
064                    Long userTrackerId = (Long)attributes.get("userTrackerId");
065    
066                    if (userTrackerId != null) {
067                            setUserTrackerId(userTrackerId);
068                    }
069    
070                    String path = (String)attributes.get("path");
071    
072                    if (path != null) {
073                            setPath(path);
074                    }
075    
076                    Date pathDate = (Date)attributes.get("pathDate");
077    
078                    if (pathDate != null) {
079                            setPathDate(pathDate);
080                    }
081            }
082    
083            /**
084            * Returns the primary key of this user tracker path.
085            *
086            * @return the primary key of this user tracker path
087            */
088            public long getPrimaryKey() {
089                    return _userTrackerPath.getPrimaryKey();
090            }
091    
092            /**
093            * Sets the primary key of this user tracker path.
094            *
095            * @param primaryKey the primary key of this user tracker path
096            */
097            public void setPrimaryKey(long primaryKey) {
098                    _userTrackerPath.setPrimaryKey(primaryKey);
099            }
100    
101            /**
102            * Returns the user tracker path ID of this user tracker path.
103            *
104            * @return the user tracker path ID of this user tracker path
105            */
106            public long getUserTrackerPathId() {
107                    return _userTrackerPath.getUserTrackerPathId();
108            }
109    
110            /**
111            * Sets the user tracker path ID of this user tracker path.
112            *
113            * @param userTrackerPathId the user tracker path ID of this user tracker path
114            */
115            public void setUserTrackerPathId(long userTrackerPathId) {
116                    _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
117            }
118    
119            /**
120            * Returns the user tracker ID of this user tracker path.
121            *
122            * @return the user tracker ID of this user tracker path
123            */
124            public long getUserTrackerId() {
125                    return _userTrackerPath.getUserTrackerId();
126            }
127    
128            /**
129            * Sets the user tracker ID of this user tracker path.
130            *
131            * @param userTrackerId the user tracker ID of this user tracker path
132            */
133            public void setUserTrackerId(long userTrackerId) {
134                    _userTrackerPath.setUserTrackerId(userTrackerId);
135            }
136    
137            /**
138            * Returns the path of this user tracker path.
139            *
140            * @return the path of this user tracker path
141            */
142            public java.lang.String getPath() {
143                    return _userTrackerPath.getPath();
144            }
145    
146            /**
147            * Sets the path of this user tracker path.
148            *
149            * @param path the path of this user tracker path
150            */
151            public void setPath(java.lang.String path) {
152                    _userTrackerPath.setPath(path);
153            }
154    
155            /**
156            * Returns the path date of this user tracker path.
157            *
158            * @return the path date of this user tracker path
159            */
160            public java.util.Date getPathDate() {
161                    return _userTrackerPath.getPathDate();
162            }
163    
164            /**
165            * Sets the path date of this user tracker path.
166            *
167            * @param pathDate the path date of this user tracker path
168            */
169            public void setPathDate(java.util.Date pathDate) {
170                    _userTrackerPath.setPathDate(pathDate);
171            }
172    
173            public boolean isNew() {
174                    return _userTrackerPath.isNew();
175            }
176    
177            public void setNew(boolean n) {
178                    _userTrackerPath.setNew(n);
179            }
180    
181            public boolean isCachedModel() {
182                    return _userTrackerPath.isCachedModel();
183            }
184    
185            public void setCachedModel(boolean cachedModel) {
186                    _userTrackerPath.setCachedModel(cachedModel);
187            }
188    
189            public boolean isEscapedModel() {
190                    return _userTrackerPath.isEscapedModel();
191            }
192    
193            public java.io.Serializable getPrimaryKeyObj() {
194                    return _userTrackerPath.getPrimaryKeyObj();
195            }
196    
197            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
198                    _userTrackerPath.setPrimaryKeyObj(primaryKeyObj);
199            }
200    
201            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
202                    return _userTrackerPath.getExpandoBridge();
203            }
204    
205            public void setExpandoBridgeAttributes(
206                    com.liferay.portal.service.ServiceContext serviceContext) {
207                    _userTrackerPath.setExpandoBridgeAttributes(serviceContext);
208            }
209    
210            @Override
211            public java.lang.Object clone() {
212                    return new UserTrackerPathWrapper((UserTrackerPath)_userTrackerPath.clone());
213            }
214    
215            public int compareTo(
216                    com.liferay.portal.model.UserTrackerPath userTrackerPath) {
217                    return _userTrackerPath.compareTo(userTrackerPath);
218            }
219    
220            @Override
221            public int hashCode() {
222                    return _userTrackerPath.hashCode();
223            }
224    
225            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserTrackerPath> toCacheModel() {
226                    return _userTrackerPath.toCacheModel();
227            }
228    
229            public com.liferay.portal.model.UserTrackerPath toEscapedModel() {
230                    return new UserTrackerPathWrapper(_userTrackerPath.toEscapedModel());
231            }
232    
233            public com.liferay.portal.model.UserTrackerPath toUnescapedModel() {
234                    return new UserTrackerPathWrapper(_userTrackerPath.toUnescapedModel());
235            }
236    
237            @Override
238            public java.lang.String toString() {
239                    return _userTrackerPath.toString();
240            }
241    
242            public java.lang.String toXmlString() {
243                    return _userTrackerPath.toXmlString();
244            }
245    
246            public void persist()
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    _userTrackerPath.persist();
249            }
250    
251            @Override
252            public boolean equals(Object obj) {
253                    if (this == obj) {
254                            return true;
255                    }
256    
257                    if (!(obj instanceof UserTrackerPathWrapper)) {
258                            return false;
259                    }
260    
261                    UserTrackerPathWrapper userTrackerPathWrapper = (UserTrackerPathWrapper)obj;
262    
263                    if (Validator.equals(_userTrackerPath,
264                                            userTrackerPathWrapper._userTrackerPath)) {
265                            return true;
266                    }
267    
268                    return false;
269            }
270    
271            /**
272             * @deprecated Renamed to {@link #getWrappedModel}
273             */
274            public UserTrackerPath getWrappedUserTrackerPath() {
275                    return _userTrackerPath;
276            }
277    
278            public UserTrackerPath getWrappedModel() {
279                    return _userTrackerPath;
280            }
281    
282            public void resetOriginalValues() {
283                    _userTrackerPath.resetOriginalValues();
284            }
285    
286            private UserTrackerPath _userTrackerPath;
287    }