001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets the class name of the model instance this ratings entry is polymorphically associated with.
187            *
188            * @return the class name of the model instance this ratings entry is polymorphically associated with
189            */
190            public java.lang.String getClassName() {
191                    return _ratingsEntry.getClassName();
192            }
193    
194            /**
195            * Gets 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            * Gets 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            * Gets 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 void setEscapedModel(boolean escapedModel) {
269                    _ratingsEntry.setEscapedModel(escapedModel);
270            }
271    
272            public java.io.Serializable getPrimaryKeyObj() {
273                    return _ratingsEntry.getPrimaryKeyObj();
274            }
275    
276            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
277                    _ratingsEntry.setPrimaryKeyObj(primaryKeyObj);
278            }
279    
280            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
281                    return _ratingsEntry.getExpandoBridge();
282            }
283    
284            public void setExpandoBridgeAttributes(
285                    com.liferay.portal.service.ServiceContext serviceContext) {
286                    _ratingsEntry.setExpandoBridgeAttributes(serviceContext);
287            }
288    
289            @Override
290            public java.lang.Object clone() {
291                    return new RatingsEntryWrapper((RatingsEntry)_ratingsEntry.clone());
292            }
293    
294            public int compareTo(
295                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
296                    return _ratingsEntry.compareTo(ratingsEntry);
297            }
298    
299            @Override
300            public int hashCode() {
301                    return _ratingsEntry.hashCode();
302            }
303    
304            public com.liferay.portal.model.CacheModel<com.liferay.portlet.ratings.model.RatingsEntry> toCacheModel() {
305                    return _ratingsEntry.toCacheModel();
306            }
307    
308            public com.liferay.portlet.ratings.model.RatingsEntry toEscapedModel() {
309                    return new RatingsEntryWrapper(_ratingsEntry.toEscapedModel());
310            }
311    
312            @Override
313            public java.lang.String toString() {
314                    return _ratingsEntry.toString();
315            }
316    
317            public java.lang.String toXmlString() {
318                    return _ratingsEntry.toXmlString();
319            }
320    
321            public void persist()
322                    throws com.liferay.portal.kernel.exception.SystemException {
323                    _ratingsEntry.persist();
324            }
325    
326            public RatingsEntry getWrappedRatingsEntry() {
327                    return _ratingsEntry;
328            }
329    
330            public void resetOriginalValues() {
331                    _ratingsEntry.resetOriginalValues();
332            }
333    
334            private RatingsEntry _ratingsEntry;
335    }