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