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