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.kernel.bean.AutoEscape; 018 import com.liferay.portal.kernel.exception.SystemException; 019 import com.liferay.portal.model.AttachedModel; 020 import com.liferay.portal.model.AuditedModel; 021 import com.liferay.portal.model.BaseModel; 022 import com.liferay.portal.model.CacheModel; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.expando.model.ExpandoBridge; 026 027 import java.io.Serializable; 028 029 import java.util.Date; 030 031 /** 032 * The base model interface for the RatingsEntry service. Represents a row in the "RatingsEntry" database table, with each column mapped to a property of this class. 033 * 034 * <p> 035 * This interface and its corresponding implementation {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl} 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.RatingsEntryImpl}. 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see RatingsEntry 040 * @see com.liferay.portlet.ratings.model.impl.RatingsEntryImpl 041 * @see com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl 042 * @generated 043 */ 044 public interface RatingsEntryModel extends AttachedModel, AuditedModel, 045 BaseModel<RatingsEntry> { 046 /* 047 * NOTE FOR DEVELOPERS: 048 * 049 * Never modify or reference this interface directly. All methods that expect a ratings entry model instance should use the {@link RatingsEntry} interface instead. 050 */ 051 052 /** 053 * Returns the primary key of this ratings entry. 054 * 055 * @return the primary key of this ratings entry 056 */ 057 public long getPrimaryKey(); 058 059 /** 060 * Sets the primary key of this ratings entry. 061 * 062 * @param primaryKey the primary key of this ratings entry 063 */ 064 public void setPrimaryKey(long primaryKey); 065 066 /** 067 * Returns the entry ID of this ratings entry. 068 * 069 * @return the entry ID of this ratings entry 070 */ 071 public long getEntryId(); 072 073 /** 074 * Sets the entry ID of this ratings entry. 075 * 076 * @param entryId the entry ID of this ratings entry 077 */ 078 public void setEntryId(long entryId); 079 080 /** 081 * Returns the company ID of this ratings entry. 082 * 083 * @return the company ID of this ratings entry 084 */ 085 @Override 086 public long getCompanyId(); 087 088 /** 089 * Sets the company ID of this ratings entry. 090 * 091 * @param companyId the company ID of this ratings entry 092 */ 093 @Override 094 public void setCompanyId(long companyId); 095 096 /** 097 * Returns the user ID of this ratings entry. 098 * 099 * @return the user ID of this ratings entry 100 */ 101 @Override 102 public long getUserId(); 103 104 /** 105 * Sets the user ID of this ratings entry. 106 * 107 * @param userId the user ID of this ratings entry 108 */ 109 @Override 110 public void setUserId(long userId); 111 112 /** 113 * Returns the user uuid of this ratings entry. 114 * 115 * @return the user uuid of this ratings entry 116 * @throws SystemException if a system exception occurred 117 */ 118 @Override 119 public String getUserUuid() throws SystemException; 120 121 /** 122 * Sets the user uuid of this ratings entry. 123 * 124 * @param userUuid the user uuid of this ratings entry 125 */ 126 @Override 127 public void setUserUuid(String userUuid); 128 129 /** 130 * Returns the user name of this ratings entry. 131 * 132 * @return the user name of this ratings entry 133 */ 134 @AutoEscape 135 @Override 136 public String getUserName(); 137 138 /** 139 * Sets the user name of this ratings entry. 140 * 141 * @param userName the user name of this ratings entry 142 */ 143 @Override 144 public void setUserName(String userName); 145 146 /** 147 * Returns the create date of this ratings entry. 148 * 149 * @return the create date of this ratings entry 150 */ 151 @Override 152 public Date getCreateDate(); 153 154 /** 155 * Sets the create date of this ratings entry. 156 * 157 * @param createDate the create date of this ratings entry 158 */ 159 @Override 160 public void setCreateDate(Date createDate); 161 162 /** 163 * Returns the modified date of this ratings entry. 164 * 165 * @return the modified date of this ratings entry 166 */ 167 @Override 168 public Date getModifiedDate(); 169 170 /** 171 * Sets the modified date of this ratings entry. 172 * 173 * @param modifiedDate the modified date of this ratings entry 174 */ 175 @Override 176 public void setModifiedDate(Date modifiedDate); 177 178 /** 179 * Returns the fully qualified class name of this ratings entry. 180 * 181 * @return the fully qualified class name of this ratings entry 182 */ 183 @Override 184 public String getClassName(); 185 186 public void setClassName(String className); 187 188 /** 189 * Returns the class name ID of this ratings entry. 190 * 191 * @return the class name ID of this ratings entry 192 */ 193 @Override 194 public long getClassNameId(); 195 196 /** 197 * Sets the class name ID of this ratings entry. 198 * 199 * @param classNameId the class name ID of this ratings entry 200 */ 201 @Override 202 public void setClassNameId(long classNameId); 203 204 /** 205 * Returns the class p k of this ratings entry. 206 * 207 * @return the class p k of this ratings entry 208 */ 209 @Override 210 public long getClassPK(); 211 212 /** 213 * Sets the class p k of this ratings entry. 214 * 215 * @param classPK the class p k of this ratings entry 216 */ 217 @Override 218 public void setClassPK(long classPK); 219 220 /** 221 * Returns the score of this ratings entry. 222 * 223 * @return the score of this ratings entry 224 */ 225 public double getScore(); 226 227 /** 228 * Sets the score of this ratings entry. 229 * 230 * @param score the score of this ratings entry 231 */ 232 public void setScore(double score); 233 234 @Override 235 public boolean isNew(); 236 237 @Override 238 public void setNew(boolean n); 239 240 @Override 241 public boolean isCachedModel(); 242 243 @Override 244 public void setCachedModel(boolean cachedModel); 245 246 @Override 247 public boolean isEscapedModel(); 248 249 @Override 250 public Serializable getPrimaryKeyObj(); 251 252 @Override 253 public void setPrimaryKeyObj(Serializable primaryKeyObj); 254 255 @Override 256 public ExpandoBridge getExpandoBridge(); 257 258 @Override 259 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 260 261 @Override 262 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 263 264 @Override 265 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 266 267 @Override 268 public Object clone(); 269 270 @Override 271 public int compareTo(RatingsEntry ratingsEntry); 272 273 @Override 274 public int hashCode(); 275 276 @Override 277 public CacheModel<RatingsEntry> toCacheModel(); 278 279 @Override 280 public RatingsEntry toEscapedModel(); 281 282 @Override 283 public RatingsEntry toUnescapedModel(); 284 285 @Override 286 public String toString(); 287 288 @Override 289 public String toXmlString(); 290 }