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.portlet.ratings.model;
016    
017    import com.liferay.portal.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link RatingsEntry}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       RatingsEntry
026     * @generated
027     */
028    public class RatingsEntryWrapper implements RatingsEntry,
029            ModelWrapper<RatingsEntry> {
030            public RatingsEntryWrapper(RatingsEntry ratingsEntry) {
031                    _ratingsEntry = ratingsEntry;
032            }
033    
034            public Class<?> getModelClass() {
035                    return RatingsEntry.class;
036            }
037    
038            public String getModelClassName() {
039                    return RatingsEntry.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this ratings entry.
044            *
045            * @return the primary key of this ratings entry
046            */
047            public long getPrimaryKey() {
048                    return _ratingsEntry.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this ratings entry.
053            *
054            * @param primaryKey the primary key of this ratings entry
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _ratingsEntry.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the entry ID of this ratings entry.
062            *
063            * @return the entry ID of this ratings entry
064            */
065            public long getEntryId() {
066                    return _ratingsEntry.getEntryId();
067            }
068    
069            /**
070            * Sets the entry ID of this ratings entry.
071            *
072            * @param entryId the entry ID of this ratings entry
073            */
074            public void setEntryId(long entryId) {
075                    _ratingsEntry.setEntryId(entryId);
076            }
077    
078            /**
079            * Returns the company ID of this ratings entry.
080            *
081            * @return the company ID of this ratings entry
082            */
083            public long getCompanyId() {
084                    return _ratingsEntry.getCompanyId();
085            }
086    
087            /**
088            * Sets the company ID of this ratings entry.
089            *
090            * @param companyId the company ID of this ratings entry
091            */
092            public void setCompanyId(long companyId) {
093                    _ratingsEntry.setCompanyId(companyId);
094            }
095    
096            /**
097            * Returns the user ID of this ratings entry.
098            *
099            * @return the user ID of this ratings entry
100            */
101            public long getUserId() {
102                    return _ratingsEntry.getUserId();
103            }
104    
105            /**
106            * Sets the user ID of this ratings entry.
107            *
108            * @param userId the user ID of this ratings entry
109            */
110            public void setUserId(long userId) {
111                    _ratingsEntry.setUserId(userId);
112            }
113    
114            /**
115            * Returns the user uuid of this ratings entry.
116            *
117            * @return the user uuid of this ratings entry
118            * @throws SystemException if a system exception occurred
119            */
120            public java.lang.String getUserUuid()
121                    throws com.liferay.portal.kernel.exception.SystemException {
122                    return _ratingsEntry.getUserUuid();
123            }
124    
125            /**
126            * Sets the user uuid of this ratings entry.
127            *
128            * @param userUuid the user uuid of this ratings entry
129            */
130            public void setUserUuid(java.lang.String userUuid) {
131                    _ratingsEntry.setUserUuid(userUuid);
132            }
133    
134            /**
135            * Returns the user name of this ratings entry.
136            *
137            * @return the user name of this ratings entry
138            */
139            public java.lang.String getUserName() {
140                    return _ratingsEntry.getUserName();
141            }
142    
143            /**
144            * Sets the user name of this ratings entry.
145            *
146            * @param userName the user name of this ratings entry
147            */
148            public void setUserName(java.lang.String userName) {
149                    _ratingsEntry.setUserName(userName);
150            }
151    
152            /**
153            * Returns the create date of this ratings entry.
154            *
155            * @return the create date of this ratings entry
156            */
157            public java.util.Date getCreateDate() {
158                    return _ratingsEntry.getCreateDate();
159            }
160    
161            /**
162            * Sets the create date of this ratings entry.
163            *
164            * @param createDate the create date of this ratings entry
165            */
166            public void setCreateDate(java.util.Date createDate) {
167                    _ratingsEntry.setCreateDate(createDate);
168            }
169    
170            /**
171            * Returns the modified date of this ratings entry.
172            *
173            * @return the modified date of this ratings entry
174            */
175            public java.util.Date getModifiedDate() {
176                    return _ratingsEntry.getModifiedDate();
177            }
178    
179            /**
180            * Sets the modified date of this ratings entry.
181            *
182            * @param modifiedDate the modified date of this ratings entry
183            */
184            public void setModifiedDate(java.util.Date modifiedDate) {
185                    _ratingsEntry.setModifiedDate(modifiedDate);
186            }
187    
188            /**
189            * Returns the fully qualified class name of this ratings entry.
190            *
191            * @return the fully qualified class name of this ratings entry
192            */
193            public java.lang.String getClassName() {
194                    return _ratingsEntry.getClassName();
195            }
196    
197            /**
198            * Returns the class name ID of this ratings entry.
199            *
200            * @return the class name ID of this ratings entry
201            */
202            public long getClassNameId() {
203                    return _ratingsEntry.getClassNameId();
204            }
205    
206            /**
207            * Sets the class name ID of this ratings entry.
208            *
209            * @param classNameId the class name ID of this ratings entry
210            */
211            public void setClassNameId(long classNameId) {
212                    _ratingsEntry.setClassNameId(classNameId);
213            }
214    
215            /**
216            * Returns the class p k of this ratings entry.
217            *
218            * @return the class p k of this ratings entry
219            */
220            public long getClassPK() {
221                    return _ratingsEntry.getClassPK();
222            }
223    
224            /**
225            * Sets the class p k of this ratings entry.
226            *
227            * @param classPK the class p k of this ratings entry
228            */
229            public void setClassPK(long classPK) {
230                    _ratingsEntry.setClassPK(classPK);
231            }
232    
233            /**
234            * Returns the score of this ratings entry.
235            *
236            * @return the score of this ratings entry
237            */
238            public double getScore() {
239                    return _ratingsEntry.getScore();
240            }
241    
242            /**
243            * Sets the score of this ratings entry.
244            *
245            * @param score the score of this ratings entry
246            */
247            public void setScore(double score) {
248                    _ratingsEntry.setScore(score);
249            }
250    
251            public boolean isNew() {
252                    return _ratingsEntry.isNew();
253            }
254    
255            public void setNew(boolean n) {
256                    _ratingsEntry.setNew(n);
257            }
258    
259            public boolean isCachedModel() {
260                    return _ratingsEntry.isCachedModel();
261            }
262    
263            public void setCachedModel(boolean cachedModel) {
264                    _ratingsEntry.setCachedModel(cachedModel);
265            }
266    
267            public boolean isEscapedModel() {
268                    return _ratingsEntry.isEscapedModel();
269            }
270    
271            public java.io.Serializable getPrimaryKeyObj() {
272                    return _ratingsEntry.getPrimaryKeyObj();
273            }
274    
275            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
276                    _ratingsEntry.setPrimaryKeyObj(primaryKeyObj);
277            }
278    
279            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
280                    return _ratingsEntry.getExpandoBridge();
281            }
282    
283            public void setExpandoBridgeAttributes(
284                    com.liferay.portal.service.ServiceContext serviceContext) {
285                    _ratingsEntry.setExpandoBridgeAttributes(serviceContext);
286            }
287    
288            @Override
289            public java.lang.Object clone() {
290                    return new RatingsEntryWrapper((RatingsEntry)_ratingsEntry.clone());
291            }
292    
293            public int compareTo(
294                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
295                    return _ratingsEntry.compareTo(ratingsEntry);
296            }
297    
298            @Override
299            public int hashCode() {
300                    return _ratingsEntry.hashCode();
301            }
302    
303            public com.liferay.portal.model.CacheModel<com.liferay.portlet.ratings.model.RatingsEntry> toCacheModel() {
304                    return _ratingsEntry.toCacheModel();
305            }
306    
307            public com.liferay.portlet.ratings.model.RatingsEntry toEscapedModel() {
308                    return new RatingsEntryWrapper(_ratingsEntry.toEscapedModel());
309            }
310    
311            @Override
312            public java.lang.String toString() {
313                    return _ratingsEntry.toString();
314            }
315    
316            public java.lang.String toXmlString() {
317                    return _ratingsEntry.toXmlString();
318            }
319    
320            public void persist()
321                    throws com.liferay.portal.kernel.exception.SystemException {
322                    _ratingsEntry.persist();
323            }
324    
325            /**
326             * @deprecated Renamed to {@link #getWrappedModel}
327             */
328            public RatingsEntry getWrappedRatingsEntry() {
329                    return _ratingsEntry;
330            }
331    
332            public RatingsEntry getWrappedModel() {
333                    return _ratingsEntry;
334            }
335    
336            public void resetOriginalValues() {
337                    _ratingsEntry.resetOriginalValues();
338            }
339    
340            private RatingsEntry _ratingsEntry;
341    }