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 RatingsStats}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       RatingsStats
026     * @generated
027     */
028    public class RatingsStatsWrapper implements RatingsStats,
029            ModelWrapper<RatingsStats> {
030            public RatingsStatsWrapper(RatingsStats ratingsStats) {
031                    _ratingsStats = ratingsStats;
032            }
033    
034            public Class<?> getModelClass() {
035                    return RatingsStats.class;
036            }
037    
038            public String getModelClassName() {
039                    return RatingsStats.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this ratings stats.
044            *
045            * @return the primary key of this ratings stats
046            */
047            public long getPrimaryKey() {
048                    return _ratingsStats.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this ratings stats.
053            *
054            * @param primaryKey the primary key of this ratings stats
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _ratingsStats.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the stats ID of this ratings stats.
062            *
063            * @return the stats ID of this ratings stats
064            */
065            public long getStatsId() {
066                    return _ratingsStats.getStatsId();
067            }
068    
069            /**
070            * Sets the stats ID of this ratings stats.
071            *
072            * @param statsId the stats ID of this ratings stats
073            */
074            public void setStatsId(long statsId) {
075                    _ratingsStats.setStatsId(statsId);
076            }
077    
078            /**
079            * Returns the fully qualified class name of this ratings stats.
080            *
081            * @return the fully qualified class name of this ratings stats
082            */
083            public java.lang.String getClassName() {
084                    return _ratingsStats.getClassName();
085            }
086    
087            /**
088            * Returns the class name ID of this ratings stats.
089            *
090            * @return the class name ID of this ratings stats
091            */
092            public long getClassNameId() {
093                    return _ratingsStats.getClassNameId();
094            }
095    
096            /**
097            * Sets the class name ID of this ratings stats.
098            *
099            * @param classNameId the class name ID of this ratings stats
100            */
101            public void setClassNameId(long classNameId) {
102                    _ratingsStats.setClassNameId(classNameId);
103            }
104    
105            /**
106            * Returns the class p k of this ratings stats.
107            *
108            * @return the class p k of this ratings stats
109            */
110            public long getClassPK() {
111                    return _ratingsStats.getClassPK();
112            }
113    
114            /**
115            * Sets the class p k of this ratings stats.
116            *
117            * @param classPK the class p k of this ratings stats
118            */
119            public void setClassPK(long classPK) {
120                    _ratingsStats.setClassPK(classPK);
121            }
122    
123            /**
124            * Returns the total entries of this ratings stats.
125            *
126            * @return the total entries of this ratings stats
127            */
128            public int getTotalEntries() {
129                    return _ratingsStats.getTotalEntries();
130            }
131    
132            /**
133            * Sets the total entries of this ratings stats.
134            *
135            * @param totalEntries the total entries of this ratings stats
136            */
137            public void setTotalEntries(int totalEntries) {
138                    _ratingsStats.setTotalEntries(totalEntries);
139            }
140    
141            /**
142            * Returns the total score of this ratings stats.
143            *
144            * @return the total score of this ratings stats
145            */
146            public double getTotalScore() {
147                    return _ratingsStats.getTotalScore();
148            }
149    
150            /**
151            * Sets the total score of this ratings stats.
152            *
153            * @param totalScore the total score of this ratings stats
154            */
155            public void setTotalScore(double totalScore) {
156                    _ratingsStats.setTotalScore(totalScore);
157            }
158    
159            /**
160            * Returns the average score of this ratings stats.
161            *
162            * @return the average score of this ratings stats
163            */
164            public double getAverageScore() {
165                    return _ratingsStats.getAverageScore();
166            }
167    
168            /**
169            * Sets the average score of this ratings stats.
170            *
171            * @param averageScore the average score of this ratings stats
172            */
173            public void setAverageScore(double averageScore) {
174                    _ratingsStats.setAverageScore(averageScore);
175            }
176    
177            public boolean isNew() {
178                    return _ratingsStats.isNew();
179            }
180    
181            public void setNew(boolean n) {
182                    _ratingsStats.setNew(n);
183            }
184    
185            public boolean isCachedModel() {
186                    return _ratingsStats.isCachedModel();
187            }
188    
189            public void setCachedModel(boolean cachedModel) {
190                    _ratingsStats.setCachedModel(cachedModel);
191            }
192    
193            public boolean isEscapedModel() {
194                    return _ratingsStats.isEscapedModel();
195            }
196    
197            public java.io.Serializable getPrimaryKeyObj() {
198                    return _ratingsStats.getPrimaryKeyObj();
199            }
200    
201            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
202                    _ratingsStats.setPrimaryKeyObj(primaryKeyObj);
203            }
204    
205            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
206                    return _ratingsStats.getExpandoBridge();
207            }
208    
209            public void setExpandoBridgeAttributes(
210                    com.liferay.portal.service.ServiceContext serviceContext) {
211                    _ratingsStats.setExpandoBridgeAttributes(serviceContext);
212            }
213    
214            @Override
215            public java.lang.Object clone() {
216                    return new RatingsStatsWrapper((RatingsStats)_ratingsStats.clone());
217            }
218    
219            public int compareTo(
220                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
221                    return _ratingsStats.compareTo(ratingsStats);
222            }
223    
224            @Override
225            public int hashCode() {
226                    return _ratingsStats.hashCode();
227            }
228    
229            public com.liferay.portal.model.CacheModel<com.liferay.portlet.ratings.model.RatingsStats> toCacheModel() {
230                    return _ratingsStats.toCacheModel();
231            }
232    
233            public com.liferay.portlet.ratings.model.RatingsStats toEscapedModel() {
234                    return new RatingsStatsWrapper(_ratingsStats.toEscapedModel());
235            }
236    
237            @Override
238            public java.lang.String toString() {
239                    return _ratingsStats.toString();
240            }
241    
242            public java.lang.String toXmlString() {
243                    return _ratingsStats.toXmlString();
244            }
245    
246            public void persist()
247                    throws com.liferay.portal.kernel.exception.SystemException {
248                    _ratingsStats.persist();
249            }
250    
251            /**
252             * @deprecated Renamed to {@link #getWrappedModel}
253             */
254            public RatingsStats getWrappedRatingsStats() {
255                    return _ratingsStats;
256            }
257    
258            public RatingsStats getWrappedModel() {
259                    return _ratingsStats;
260            }
261    
262            public void resetOriginalValues() {
263                    _ratingsStats.resetOriginalValues();
264            }
265    
266            private RatingsStats _ratingsStats;
267    }