001 /** 002 * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.AttachedModel; 020 import com.liferay.portal.model.BaseModel; 021 import com.liferay.portal.model.CacheModel; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.expando.model.ExpandoBridge; 025 026 import java.io.Serializable; 027 028 /** 029 * The base model interface for the RatingsStats service. Represents a row in the "RatingsStats" database table, with each column mapped to a property of this class. 030 * 031 * <p> 032 * This interface and its corresponding implementation {@link com.liferay.portlet.ratings.model.impl.RatingsStatsModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.ratings.model.impl.RatingsStatsImpl}. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see RatingsStats 037 * @see com.liferay.portlet.ratings.model.impl.RatingsStatsImpl 038 * @see com.liferay.portlet.ratings.model.impl.RatingsStatsModelImpl 039 * @generated 040 */ 041 @ProviderType 042 public interface RatingsStatsModel extends AttachedModel, BaseModel<RatingsStats> { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify or reference this interface directly. All methods that expect a ratings stats model instance should use the {@link RatingsStats} interface instead. 047 */ 048 049 /** 050 * Returns the primary key of this ratings stats. 051 * 052 * @return the primary key of this ratings stats 053 */ 054 public long getPrimaryKey(); 055 056 /** 057 * Sets the primary key of this ratings stats. 058 * 059 * @param primaryKey the primary key of this ratings stats 060 */ 061 public void setPrimaryKey(long primaryKey); 062 063 /** 064 * Returns the stats ID of this ratings stats. 065 * 066 * @return the stats ID of this ratings stats 067 */ 068 public long getStatsId(); 069 070 /** 071 * Sets the stats ID of this ratings stats. 072 * 073 * @param statsId the stats ID of this ratings stats 074 */ 075 public void setStatsId(long statsId); 076 077 /** 078 * Returns the fully qualified class name of this ratings stats. 079 * 080 * @return the fully qualified class name of this ratings stats 081 */ 082 @Override 083 public String getClassName(); 084 085 public void setClassName(String className); 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 @Override 093 public long getClassNameId(); 094 095 /** 096 * Sets the class name ID of this ratings stats. 097 * 098 * @param classNameId the class name ID of this ratings stats 099 */ 100 @Override 101 public void setClassNameId(long classNameId); 102 103 /** 104 * Returns the class p k of this ratings stats. 105 * 106 * @return the class p k of this ratings stats 107 */ 108 @Override 109 public long getClassPK(); 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 @Override 117 public void setClassPK(long classPK); 118 119 /** 120 * Returns the total entries of this ratings stats. 121 * 122 * @return the total entries of this ratings stats 123 */ 124 public int getTotalEntries(); 125 126 /** 127 * Sets the total entries of this ratings stats. 128 * 129 * @param totalEntries the total entries of this ratings stats 130 */ 131 public void setTotalEntries(int totalEntries); 132 133 /** 134 * Returns the total score of this ratings stats. 135 * 136 * @return the total score of this ratings stats 137 */ 138 public double getTotalScore(); 139 140 /** 141 * Sets the total score of this ratings stats. 142 * 143 * @param totalScore the total score of this ratings stats 144 */ 145 public void setTotalScore(double totalScore); 146 147 /** 148 * Returns the average score of this ratings stats. 149 * 150 * @return the average score of this ratings stats 151 */ 152 public double getAverageScore(); 153 154 /** 155 * Sets the average score of this ratings stats. 156 * 157 * @param averageScore the average score of this ratings stats 158 */ 159 public void setAverageScore(double averageScore); 160 161 @Override 162 public boolean isNew(); 163 164 @Override 165 public void setNew(boolean n); 166 167 @Override 168 public boolean isCachedModel(); 169 170 @Override 171 public void setCachedModel(boolean cachedModel); 172 173 @Override 174 public boolean isEscapedModel(); 175 176 @Override 177 public Serializable getPrimaryKeyObj(); 178 179 @Override 180 public void setPrimaryKeyObj(Serializable primaryKeyObj); 181 182 @Override 183 public ExpandoBridge getExpandoBridge(); 184 185 @Override 186 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 187 188 @Override 189 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 190 191 @Override 192 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 193 194 @Override 195 public Object clone(); 196 197 @Override 198 public int compareTo(RatingsStats ratingsStats); 199 200 @Override 201 public int hashCode(); 202 203 @Override 204 public CacheModel<RatingsStats> toCacheModel(); 205 206 @Override 207 public RatingsStats toEscapedModel(); 208 209 @Override 210 public RatingsStats toUnescapedModel(); 211 212 @Override 213 public String toString(); 214 215 @Override 216 public String toXmlString(); 217 }