001 /** 002 * Copyright (c) 2000-2010 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.BaseModel; 018 import com.liferay.portal.service.ServiceContext; 019 020 import com.liferay.portlet.expando.model.ExpandoBridge; 021 022 import java.io.Serializable; 023 024 /** 025 * 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. 026 * 027 * <p> 028 * 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}. 029 * </p> 030 * 031 * <p> 032 * Never modify or reference this interface directly. All methods that expect a ratings stats model instance should use the {@link RatingsStats} interface instead. 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 public interface RatingsStatsModel extends BaseModel<RatingsStats> { 042 /** 043 * Gets the primary key of this ratings stats. 044 * 045 * @return the primary key of this ratings stats 046 */ 047 public long getPrimaryKey(); 048 049 /** 050 * Sets the primary key of this ratings stats 051 * 052 * @param pk the primary key of this ratings stats 053 */ 054 public void setPrimaryKey(long pk); 055 056 /** 057 * Gets the stats id of this ratings stats. 058 * 059 * @return the stats id of this ratings stats 060 */ 061 public long getStatsId(); 062 063 /** 064 * Sets the stats id of this ratings stats. 065 * 066 * @param statsId the stats id of this ratings stats 067 */ 068 public void setStatsId(long statsId); 069 070 /** 071 * Gets the class name of the model instance this ratings stats is polymorphically associated with. 072 * 073 * @return the class name of the model instance this ratings stats is polymorphically associated with 074 */ 075 public String getClassName(); 076 077 /** 078 * Gets the class name id of this ratings stats. 079 * 080 * @return the class name id of this ratings stats 081 */ 082 public long getClassNameId(); 083 084 /** 085 * Sets the class name id of this ratings stats. 086 * 087 * @param classNameId the class name id of this ratings stats 088 */ 089 public void setClassNameId(long classNameId); 090 091 /** 092 * Gets the class p k of this ratings stats. 093 * 094 * @return the class p k of this ratings stats 095 */ 096 public long getClassPK(); 097 098 /** 099 * Sets the class p k of this ratings stats. 100 * 101 * @param classPK the class p k of this ratings stats 102 */ 103 public void setClassPK(long classPK); 104 105 /** 106 * Gets the total entries of this ratings stats. 107 * 108 * @return the total entries of this ratings stats 109 */ 110 public int getTotalEntries(); 111 112 /** 113 * Sets the total entries of this ratings stats. 114 * 115 * @param totalEntries the total entries of this ratings stats 116 */ 117 public void setTotalEntries(int totalEntries); 118 119 /** 120 * Gets the total score of this ratings stats. 121 * 122 * @return the total score of this ratings stats 123 */ 124 public double getTotalScore(); 125 126 /** 127 * Sets the total score of this ratings stats. 128 * 129 * @param totalScore the total score of this ratings stats 130 */ 131 public void setTotalScore(double totalScore); 132 133 /** 134 * Gets the average score of this ratings stats. 135 * 136 * @return the average score of this ratings stats 137 */ 138 public double getAverageScore(); 139 140 /** 141 * Sets the average score of this ratings stats. 142 * 143 * @param averageScore the average score of this ratings stats 144 */ 145 public void setAverageScore(double averageScore); 146 147 /** 148 * Gets a copy of this ratings stats as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 149 * 150 * @return the escaped model instance 151 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 152 */ 153 public RatingsStats toEscapedModel(); 154 155 public boolean isNew(); 156 157 public void setNew(boolean n); 158 159 public boolean isCachedModel(); 160 161 public void setCachedModel(boolean cachedModel); 162 163 public boolean isEscapedModel(); 164 165 public void setEscapedModel(boolean escapedModel); 166 167 public Serializable getPrimaryKeyObj(); 168 169 public ExpandoBridge getExpandoBridge(); 170 171 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 172 173 public Object clone(); 174 175 public int compareTo(RatingsStats ratingsStats); 176 177 public int hashCode(); 178 179 public String toString(); 180 181 public String toXmlString(); 182 }