001
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
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
088 public long getPrimaryKey() {
089 return _userTrackerPath.getPrimaryKey();
090 }
091
092
097 public void setPrimaryKey(long primaryKey) {
098 _userTrackerPath.setPrimaryKey(primaryKey);
099 }
100
101
106 public long getUserTrackerPathId() {
107 return _userTrackerPath.getUserTrackerPathId();
108 }
109
110
115 public void setUserTrackerPathId(long userTrackerPathId) {
116 _userTrackerPath.setUserTrackerPathId(userTrackerPathId);
117 }
118
119
124 public long getUserTrackerId() {
125 return _userTrackerPath.getUserTrackerId();
126 }
127
128
133 public void setUserTrackerId(long userTrackerId) {
134 _userTrackerPath.setUserTrackerId(userTrackerId);
135 }
136
137
142 public java.lang.String getPath() {
143 return _userTrackerPath.getPath();
144 }
145
146
151 public void setPath(java.lang.String path) {
152 _userTrackerPath.setPath(path);
153 }
154
155
160 public java.util.Date getPathDate() {
161 return _userTrackerPath.getPathDate();
162 }
163
164
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
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 }