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