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