001
014
015 package com.liferay.portlet.ratings.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class RatingsEntryWrapper implements RatingsEntry,
033 ModelWrapper<RatingsEntry> {
034 public RatingsEntryWrapper(RatingsEntry ratingsEntry) {
035 _ratingsEntry = ratingsEntry;
036 }
037
038 public Class<?> getModelClass() {
039 return RatingsEntry.class;
040 }
041
042 public String getModelClassName() {
043 return RatingsEntry.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("entryId", getEntryId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("userId", getUserId());
052 attributes.put("userName", getUserName());
053 attributes.put("createDate", getCreateDate());
054 attributes.put("modifiedDate", getModifiedDate());
055 attributes.put("classNameId", getClassNameId());
056 attributes.put("classPK", getClassPK());
057 attributes.put("score", getScore());
058
059 return attributes;
060 }
061
062 public void setModelAttributes(Map<String, Object> attributes) {
063 Long entryId = (Long)attributes.get("entryId");
064
065 if (entryId != null) {
066 setEntryId(entryId);
067 }
068
069 Long companyId = (Long)attributes.get("companyId");
070
071 if (companyId != null) {
072 setCompanyId(companyId);
073 }
074
075 Long userId = (Long)attributes.get("userId");
076
077 if (userId != null) {
078 setUserId(userId);
079 }
080
081 String userName = (String)attributes.get("userName");
082
083 if (userName != null) {
084 setUserName(userName);
085 }
086
087 Date createDate = (Date)attributes.get("createDate");
088
089 if (createDate != null) {
090 setCreateDate(createDate);
091 }
092
093 Date modifiedDate = (Date)attributes.get("modifiedDate");
094
095 if (modifiedDate != null) {
096 setModifiedDate(modifiedDate);
097 }
098
099 Long classNameId = (Long)attributes.get("classNameId");
100
101 if (classNameId != null) {
102 setClassNameId(classNameId);
103 }
104
105 Long classPK = (Long)attributes.get("classPK");
106
107 if (classPK != null) {
108 setClassPK(classPK);
109 }
110
111 Double score = (Double)attributes.get("score");
112
113 if (score != null) {
114 setScore(score);
115 }
116 }
117
118
123 public long getPrimaryKey() {
124 return _ratingsEntry.getPrimaryKey();
125 }
126
127
132 public void setPrimaryKey(long primaryKey) {
133 _ratingsEntry.setPrimaryKey(primaryKey);
134 }
135
136
141 public long getEntryId() {
142 return _ratingsEntry.getEntryId();
143 }
144
145
150 public void setEntryId(long entryId) {
151 _ratingsEntry.setEntryId(entryId);
152 }
153
154
159 public long getCompanyId() {
160 return _ratingsEntry.getCompanyId();
161 }
162
163
168 public void setCompanyId(long companyId) {
169 _ratingsEntry.setCompanyId(companyId);
170 }
171
172
177 public long getUserId() {
178 return _ratingsEntry.getUserId();
179 }
180
181
186 public void setUserId(long userId) {
187 _ratingsEntry.setUserId(userId);
188 }
189
190
196 public java.lang.String getUserUuid()
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return _ratingsEntry.getUserUuid();
199 }
200
201
206 public void setUserUuid(java.lang.String userUuid) {
207 _ratingsEntry.setUserUuid(userUuid);
208 }
209
210
215 public java.lang.String getUserName() {
216 return _ratingsEntry.getUserName();
217 }
218
219
224 public void setUserName(java.lang.String userName) {
225 _ratingsEntry.setUserName(userName);
226 }
227
228
233 public java.util.Date getCreateDate() {
234 return _ratingsEntry.getCreateDate();
235 }
236
237
242 public void setCreateDate(java.util.Date createDate) {
243 _ratingsEntry.setCreateDate(createDate);
244 }
245
246
251 public java.util.Date getModifiedDate() {
252 return _ratingsEntry.getModifiedDate();
253 }
254
255
260 public void setModifiedDate(java.util.Date modifiedDate) {
261 _ratingsEntry.setModifiedDate(modifiedDate);
262 }
263
264
269 public java.lang.String getClassName() {
270 return _ratingsEntry.getClassName();
271 }
272
273 public void setClassName(java.lang.String className) {
274 _ratingsEntry.setClassName(className);
275 }
276
277
282 public long getClassNameId() {
283 return _ratingsEntry.getClassNameId();
284 }
285
286
291 public void setClassNameId(long classNameId) {
292 _ratingsEntry.setClassNameId(classNameId);
293 }
294
295
300 public long getClassPK() {
301 return _ratingsEntry.getClassPK();
302 }
303
304
309 public void setClassPK(long classPK) {
310 _ratingsEntry.setClassPK(classPK);
311 }
312
313
318 public double getScore() {
319 return _ratingsEntry.getScore();
320 }
321
322
327 public void setScore(double score) {
328 _ratingsEntry.setScore(score);
329 }
330
331 public boolean isNew() {
332 return _ratingsEntry.isNew();
333 }
334
335 public void setNew(boolean n) {
336 _ratingsEntry.setNew(n);
337 }
338
339 public boolean isCachedModel() {
340 return _ratingsEntry.isCachedModel();
341 }
342
343 public void setCachedModel(boolean cachedModel) {
344 _ratingsEntry.setCachedModel(cachedModel);
345 }
346
347 public boolean isEscapedModel() {
348 return _ratingsEntry.isEscapedModel();
349 }
350
351 public java.io.Serializable getPrimaryKeyObj() {
352 return _ratingsEntry.getPrimaryKeyObj();
353 }
354
355 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
356 _ratingsEntry.setPrimaryKeyObj(primaryKeyObj);
357 }
358
359 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
360 return _ratingsEntry.getExpandoBridge();
361 }
362
363 public void setExpandoBridgeAttributes(
364 com.liferay.portal.service.ServiceContext serviceContext) {
365 _ratingsEntry.setExpandoBridgeAttributes(serviceContext);
366 }
367
368 @Override
369 public java.lang.Object clone() {
370 return new RatingsEntryWrapper((RatingsEntry)_ratingsEntry.clone());
371 }
372
373 public int compareTo(
374 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
375 return _ratingsEntry.compareTo(ratingsEntry);
376 }
377
378 @Override
379 public int hashCode() {
380 return _ratingsEntry.hashCode();
381 }
382
383 public com.liferay.portal.model.CacheModel<com.liferay.portlet.ratings.model.RatingsEntry> toCacheModel() {
384 return _ratingsEntry.toCacheModel();
385 }
386
387 public com.liferay.portlet.ratings.model.RatingsEntry toEscapedModel() {
388 return new RatingsEntryWrapper(_ratingsEntry.toEscapedModel());
389 }
390
391 @Override
392 public java.lang.String toString() {
393 return _ratingsEntry.toString();
394 }
395
396 public java.lang.String toXmlString() {
397 return _ratingsEntry.toXmlString();
398 }
399
400 public void persist()
401 throws com.liferay.portal.kernel.exception.SystemException {
402 _ratingsEntry.persist();
403 }
404
405
408 public RatingsEntry getWrappedRatingsEntry() {
409 return _ratingsEntry;
410 }
411
412 public RatingsEntry getWrappedModel() {
413 return _ratingsEntry;
414 }
415
416 public void resetOriginalValues() {
417 _ratingsEntry.resetOriginalValues();
418 }
419
420 private RatingsEntry _ratingsEntry;
421 }