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 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            * Returns 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            * Returns 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            * Returns the fully qualified class name of this ratings stats.
077            *
078            * @return the fully qualified class name of this ratings stats
079            */
080            public java.lang.String getClassName() {
081                    return _ratingsStats.getClassName();
082            }
083    
084            /**
085            * Returns 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            * Returns 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            * Returns 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            * Returns 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            * Returns 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 java.io.Serializable getPrimaryKeyObj() {
195                    return _ratingsStats.getPrimaryKeyObj();
196            }
197    
198            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
199                    _ratingsStats.setPrimaryKeyObj(primaryKeyObj);
200            }
201    
202            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
203                    return _ratingsStats.getExpandoBridge();
204            }
205    
206            public void setExpandoBridgeAttributes(
207                    com.liferay.portal.service.ServiceContext serviceContext) {
208                    _ratingsStats.setExpandoBridgeAttributes(serviceContext);
209            }
210    
211            @Override
212            public java.lang.Object clone() {
213                    return new RatingsStatsWrapper((RatingsStats)_ratingsStats.clone());
214            }
215    
216            public int compareTo(
217                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
218                    return _ratingsStats.compareTo(ratingsStats);
219            }
220    
221            @Override
222            public int hashCode() {
223                    return _ratingsStats.hashCode();
224            }
225    
226            public com.liferay.portal.model.CacheModel<com.liferay.portlet.ratings.model.RatingsStats> toCacheModel() {
227                    return _ratingsStats.toCacheModel();
228            }
229    
230            public com.liferay.portlet.ratings.model.RatingsStats toEscapedModel() {
231                    return new RatingsStatsWrapper(_ratingsStats.toEscapedModel());
232            }
233    
234            @Override
235            public java.lang.String toString() {
236                    return _ratingsStats.toString();
237            }
238    
239            public java.lang.String toXmlString() {
240                    return _ratingsStats.toXmlString();
241            }
242    
243            public void persist()
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    _ratingsStats.persist();
246            }
247    
248            public RatingsStats getWrappedRatingsStats() {
249                    return _ratingsStats;
250            }
251    
252            public void resetOriginalValues() {
253                    _ratingsStats.resetOriginalValues();
254            }
255    
256            private RatingsStats _ratingsStats;
257    }