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