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