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.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.ratings.model.RatingsEntry; 022 023 /** 024 * The persistence interface for the ratings entry service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see com.liferay.portlet.ratings.service.persistence.impl.RatingsEntryPersistenceImpl 032 * @see RatingsEntryUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface RatingsEntryPersistence extends BasePersistence<RatingsEntry> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link RatingsEntryUtil} to access the ratings entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the ratings entries where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching ratings entries 048 */ 049 public java.util.List<RatingsEntry> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the ratings entries where uuid = ?. 053 * 054 * <p> 055 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 056 * </p> 057 * 058 * @param uuid the uuid 059 * @param start the lower bound of the range of ratings entries 060 * @param end the upper bound of the range of ratings entries (not inclusive) 061 * @return the range of matching ratings entries 062 */ 063 public java.util.List<RatingsEntry> findByUuid(java.lang.String uuid, 064 int start, int end); 065 066 /** 067 * Returns an ordered range of all the ratings entries where uuid = ?. 068 * 069 * <p> 070 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of ratings entries 075 * @param end the upper bound of the range of ratings entries (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching ratings entries 078 */ 079 public java.util.List<RatingsEntry> findByUuid(java.lang.String uuid, 080 int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 082 083 /** 084 * Returns an ordered range of all the ratings entries where uuid = ?. 085 * 086 * <p> 087 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 088 * </p> 089 * 090 * @param uuid the uuid 091 * @param start the lower bound of the range of ratings entries 092 * @param end the upper bound of the range of ratings entries (not inclusive) 093 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 094 * @param retrieveFromCache whether to retrieve from the finder cache 095 * @return the ordered range of matching ratings entries 096 */ 097 public java.util.List<RatingsEntry> findByUuid(java.lang.String uuid, 098 int start, int end, 099 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator, 100 boolean retrieveFromCache); 101 102 /** 103 * Returns the first ratings entry in the ordered set where uuid = ?. 104 * 105 * @param uuid the uuid 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching ratings entry 108 * @throws NoSuchEntryException if a matching ratings entry could not be found 109 */ 110 public RatingsEntry findByUuid_First(java.lang.String uuid, 111 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 112 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 113 114 /** 115 * Returns the first ratings entry in the ordered set where uuid = ?. 116 * 117 * @param uuid the uuid 118 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 119 * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 120 */ 121 public RatingsEntry fetchByUuid_First(java.lang.String uuid, 122 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 123 124 /** 125 * Returns the last ratings entry in the ordered set where uuid = ?. 126 * 127 * @param uuid the uuid 128 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 129 * @return the last matching ratings entry 130 * @throws NoSuchEntryException if a matching ratings entry could not be found 131 */ 132 public RatingsEntry findByUuid_Last(java.lang.String uuid, 133 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 134 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 135 136 /** 137 * Returns the last ratings entry in the ordered set where uuid = ?. 138 * 139 * @param uuid the uuid 140 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 141 * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 142 */ 143 public RatingsEntry fetchByUuid_Last(java.lang.String uuid, 144 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 145 146 /** 147 * Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = ?. 148 * 149 * @param entryId the primary key of the current ratings entry 150 * @param uuid the uuid 151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 152 * @return the previous, current, and next ratings entry 153 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 154 */ 155 public RatingsEntry[] findByUuid_PrevAndNext(long entryId, 156 java.lang.String uuid, 157 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 158 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 159 160 /** 161 * Removes all the ratings entries where uuid = ? from the database. 162 * 163 * @param uuid the uuid 164 */ 165 public void removeByUuid(java.lang.String uuid); 166 167 /** 168 * Returns the number of ratings entries where uuid = ?. 169 * 170 * @param uuid the uuid 171 * @return the number of matching ratings entries 172 */ 173 public int countByUuid(java.lang.String uuid); 174 175 /** 176 * Returns all the ratings entries where uuid = ? and companyId = ?. 177 * 178 * @param uuid the uuid 179 * @param companyId the company ID 180 * @return the matching ratings entries 181 */ 182 public java.util.List<RatingsEntry> findByUuid_C(java.lang.String uuid, 183 long companyId); 184 185 /** 186 * Returns a range of all the ratings entries where uuid = ? and companyId = ?. 187 * 188 * <p> 189 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 190 * </p> 191 * 192 * @param uuid the uuid 193 * @param companyId the company ID 194 * @param start the lower bound of the range of ratings entries 195 * @param end the upper bound of the range of ratings entries (not inclusive) 196 * @return the range of matching ratings entries 197 */ 198 public java.util.List<RatingsEntry> findByUuid_C(java.lang.String uuid, 199 long companyId, int start, int end); 200 201 /** 202 * Returns an ordered range of all the ratings entries where uuid = ? and companyId = ?. 203 * 204 * <p> 205 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 206 * </p> 207 * 208 * @param uuid the uuid 209 * @param companyId the company ID 210 * @param start the lower bound of the range of ratings entries 211 * @param end the upper bound of the range of ratings entries (not inclusive) 212 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 213 * @return the ordered range of matching ratings entries 214 */ 215 public java.util.List<RatingsEntry> findByUuid_C(java.lang.String uuid, 216 long companyId, int start, int end, 217 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 218 219 /** 220 * Returns an ordered range of all the ratings entries where uuid = ? and companyId = ?. 221 * 222 * <p> 223 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 224 * </p> 225 * 226 * @param uuid the uuid 227 * @param companyId the company ID 228 * @param start the lower bound of the range of ratings entries 229 * @param end the upper bound of the range of ratings entries (not inclusive) 230 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 231 * @param retrieveFromCache whether to retrieve from the finder cache 232 * @return the ordered range of matching ratings entries 233 */ 234 public java.util.List<RatingsEntry> findByUuid_C(java.lang.String uuid, 235 long companyId, int start, int end, 236 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator, 237 boolean retrieveFromCache); 238 239 /** 240 * Returns the first ratings entry in the ordered set where uuid = ? and companyId = ?. 241 * 242 * @param uuid the uuid 243 * @param companyId the company ID 244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 245 * @return the first matching ratings entry 246 * @throws NoSuchEntryException if a matching ratings entry could not be found 247 */ 248 public RatingsEntry findByUuid_C_First(java.lang.String uuid, 249 long companyId, 250 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 251 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 252 253 /** 254 * Returns the first ratings entry in the ordered set where uuid = ? and companyId = ?. 255 * 256 * @param uuid the uuid 257 * @param companyId the company ID 258 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 259 * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 260 */ 261 public RatingsEntry fetchByUuid_C_First(java.lang.String uuid, 262 long companyId, 263 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 264 265 /** 266 * Returns the last ratings entry in the ordered set where uuid = ? and companyId = ?. 267 * 268 * @param uuid the uuid 269 * @param companyId the company ID 270 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 271 * @return the last matching ratings entry 272 * @throws NoSuchEntryException if a matching ratings entry could not be found 273 */ 274 public RatingsEntry findByUuid_C_Last(java.lang.String uuid, 275 long companyId, 276 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 277 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 278 279 /** 280 * Returns the last ratings entry in the ordered set where uuid = ? and companyId = ?. 281 * 282 * @param uuid the uuid 283 * @param companyId the company ID 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 286 */ 287 public RatingsEntry fetchByUuid_C_Last(java.lang.String uuid, 288 long companyId, 289 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 290 291 /** 292 * Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = ? and companyId = ?. 293 * 294 * @param entryId the primary key of the current ratings entry 295 * @param uuid the uuid 296 * @param companyId the company ID 297 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 298 * @return the previous, current, and next ratings entry 299 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 300 */ 301 public RatingsEntry[] findByUuid_C_PrevAndNext(long entryId, 302 java.lang.String uuid, long companyId, 303 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 304 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 305 306 /** 307 * Removes all the ratings entries where uuid = ? and companyId = ? from the database. 308 * 309 * @param uuid the uuid 310 * @param companyId the company ID 311 */ 312 public void removeByUuid_C(java.lang.String uuid, long companyId); 313 314 /** 315 * Returns the number of ratings entries where uuid = ? and companyId = ?. 316 * 317 * @param uuid the uuid 318 * @param companyId the company ID 319 * @return the number of matching ratings entries 320 */ 321 public int countByUuid_C(java.lang.String uuid, long companyId); 322 323 /** 324 * Returns all the ratings entries where classNameId = ? and classPK = ?. 325 * 326 * @param classNameId the class name ID 327 * @param classPK the class p k 328 * @return the matching ratings entries 329 */ 330 public java.util.List<RatingsEntry> findByC_C(long classNameId, long classPK); 331 332 /** 333 * Returns a range of all the ratings entries where classNameId = ? and classPK = ?. 334 * 335 * <p> 336 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 337 * </p> 338 * 339 * @param classNameId the class name ID 340 * @param classPK the class p k 341 * @param start the lower bound of the range of ratings entries 342 * @param end the upper bound of the range of ratings entries (not inclusive) 343 * @return the range of matching ratings entries 344 */ 345 public java.util.List<RatingsEntry> findByC_C(long classNameId, 346 long classPK, int start, int end); 347 348 /** 349 * Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?. 350 * 351 * <p> 352 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 353 * </p> 354 * 355 * @param classNameId the class name ID 356 * @param classPK the class p k 357 * @param start the lower bound of the range of ratings entries 358 * @param end the upper bound of the range of ratings entries (not inclusive) 359 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 360 * @return the ordered range of matching ratings entries 361 */ 362 public java.util.List<RatingsEntry> findByC_C(long classNameId, 363 long classPK, int start, int end, 364 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 365 366 /** 367 * Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ?. 368 * 369 * <p> 370 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 371 * </p> 372 * 373 * @param classNameId the class name ID 374 * @param classPK the class p k 375 * @param start the lower bound of the range of ratings entries 376 * @param end the upper bound of the range of ratings entries (not inclusive) 377 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 378 * @param retrieveFromCache whether to retrieve from the finder cache 379 * @return the ordered range of matching ratings entries 380 */ 381 public java.util.List<RatingsEntry> findByC_C(long classNameId, 382 long classPK, int start, int end, 383 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator, 384 boolean retrieveFromCache); 385 386 /** 387 * Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?. 388 * 389 * @param classNameId the class name ID 390 * @param classPK the class p k 391 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 392 * @return the first matching ratings entry 393 * @throws NoSuchEntryException if a matching ratings entry could not be found 394 */ 395 public RatingsEntry findByC_C_First(long classNameId, long classPK, 396 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 397 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 398 399 /** 400 * Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ?. 401 * 402 * @param classNameId the class name ID 403 * @param classPK the class p k 404 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 405 * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 406 */ 407 public RatingsEntry fetchByC_C_First(long classNameId, long classPK, 408 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 409 410 /** 411 * Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?. 412 * 413 * @param classNameId the class name ID 414 * @param classPK the class p k 415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 416 * @return the last matching ratings entry 417 * @throws NoSuchEntryException if a matching ratings entry could not be found 418 */ 419 public RatingsEntry findByC_C_Last(long classNameId, long classPK, 420 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 421 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 422 423 /** 424 * Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ?. 425 * 426 * @param classNameId the class name ID 427 * @param classPK the class p k 428 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 429 * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 430 */ 431 public RatingsEntry fetchByC_C_Last(long classNameId, long classPK, 432 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 433 434 /** 435 * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ?. 436 * 437 * @param entryId the primary key of the current ratings entry 438 * @param classNameId the class name ID 439 * @param classPK the class p k 440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 441 * @return the previous, current, and next ratings entry 442 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 443 */ 444 public RatingsEntry[] findByC_C_PrevAndNext(long entryId, long classNameId, 445 long classPK, 446 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 447 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 448 449 /** 450 * Removes all the ratings entries where classNameId = ? and classPK = ? from the database. 451 * 452 * @param classNameId the class name ID 453 * @param classPK the class p k 454 */ 455 public void removeByC_C(long classNameId, long classPK); 456 457 /** 458 * Returns the number of ratings entries where classNameId = ? and classPK = ?. 459 * 460 * @param classNameId the class name ID 461 * @param classPK the class p k 462 * @return the number of matching ratings entries 463 */ 464 public int countByC_C(long classNameId, long classPK); 465 466 /** 467 * Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or throws a {@link NoSuchEntryException} if it could not be found. 468 * 469 * @param userId the user ID 470 * @param classNameId the class name ID 471 * @param classPK the class p k 472 * @return the matching ratings entry 473 * @throws NoSuchEntryException if a matching ratings entry could not be found 474 */ 475 public RatingsEntry findByU_C_C(long userId, long classNameId, long classPK) 476 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 477 478 /** 479 * Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 480 * 481 * @param userId the user ID 482 * @param classNameId the class name ID 483 * @param classPK the class p k 484 * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 485 */ 486 public RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK); 487 488 /** 489 * Returns the ratings entry where userId = ? and classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 490 * 491 * @param userId the user ID 492 * @param classNameId the class name ID 493 * @param classPK the class p k 494 * @param retrieveFromCache whether to retrieve from the finder cache 495 * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 496 */ 497 public RatingsEntry fetchByU_C_C(long userId, long classNameId, 498 long classPK, boolean retrieveFromCache); 499 500 /** 501 * Removes the ratings entry where userId = ? and classNameId = ? and classPK = ? from the database. 502 * 503 * @param userId the user ID 504 * @param classNameId the class name ID 505 * @param classPK the class p k 506 * @return the ratings entry that was removed 507 */ 508 public RatingsEntry removeByU_C_C(long userId, long classNameId, 509 long classPK) 510 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 511 512 /** 513 * Returns the number of ratings entries where userId = ? and classNameId = ? and classPK = ?. 514 * 515 * @param userId the user ID 516 * @param classNameId the class name ID 517 * @param classPK the class p k 518 * @return the number of matching ratings entries 519 */ 520 public int countByU_C_C(long userId, long classNameId, long classPK); 521 522 /** 523 * Returns all the ratings entries where classNameId = ? and classPK = ? and score = ?. 524 * 525 * @param classNameId the class name ID 526 * @param classPK the class p k 527 * @param score the score 528 * @return the matching ratings entries 529 */ 530 public java.util.List<RatingsEntry> findByC_C_S(long classNameId, 531 long classPK, double score); 532 533 /** 534 * Returns a range of all the ratings entries where classNameId = ? and classPK = ? and score = ?. 535 * 536 * <p> 537 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 538 * </p> 539 * 540 * @param classNameId the class name ID 541 * @param classPK the class p k 542 * @param score the score 543 * @param start the lower bound of the range of ratings entries 544 * @param end the upper bound of the range of ratings entries (not inclusive) 545 * @return the range of matching ratings entries 546 */ 547 public java.util.List<RatingsEntry> findByC_C_S(long classNameId, 548 long classPK, double score, int start, int end); 549 550 /** 551 * Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?. 552 * 553 * <p> 554 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 555 * </p> 556 * 557 * @param classNameId the class name ID 558 * @param classPK the class p k 559 * @param score the score 560 * @param start the lower bound of the range of ratings entries 561 * @param end the upper bound of the range of ratings entries (not inclusive) 562 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 563 * @return the ordered range of matching ratings entries 564 */ 565 public java.util.List<RatingsEntry> findByC_C_S(long classNameId, 566 long classPK, double score, int start, int end, 567 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 568 569 /** 570 * Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?. 571 * 572 * <p> 573 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 574 * </p> 575 * 576 * @param classNameId the class name ID 577 * @param classPK the class p k 578 * @param score the score 579 * @param start the lower bound of the range of ratings entries 580 * @param end the upper bound of the range of ratings entries (not inclusive) 581 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 582 * @param retrieveFromCache whether to retrieve from the finder cache 583 * @return the ordered range of matching ratings entries 584 */ 585 public java.util.List<RatingsEntry> findByC_C_S(long classNameId, 586 long classPK, double score, int start, int end, 587 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator, 588 boolean retrieveFromCache); 589 590 /** 591 * Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 592 * 593 * @param classNameId the class name ID 594 * @param classPK the class p k 595 * @param score the score 596 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 597 * @return the first matching ratings entry 598 * @throws NoSuchEntryException if a matching ratings entry could not be found 599 */ 600 public RatingsEntry findByC_C_S_First(long classNameId, long classPK, 601 double score, 602 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 603 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 604 605 /** 606 * Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 607 * 608 * @param classNameId the class name ID 609 * @param classPK the class p k 610 * @param score the score 611 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 612 * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 613 */ 614 public RatingsEntry fetchByC_C_S_First(long classNameId, long classPK, 615 double score, 616 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 617 618 /** 619 * Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 620 * 621 * @param classNameId the class name ID 622 * @param classPK the class p k 623 * @param score the score 624 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 625 * @return the last matching ratings entry 626 * @throws NoSuchEntryException if a matching ratings entry could not be found 627 */ 628 public RatingsEntry findByC_C_S_Last(long classNameId, long classPK, 629 double score, 630 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 631 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 632 633 /** 634 * Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 635 * 636 * @param classNameId the class name ID 637 * @param classPK the class p k 638 * @param score the score 639 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 640 * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 641 */ 642 public RatingsEntry fetchByC_C_S_Last(long classNameId, long classPK, 643 double score, 644 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 645 646 /** 647 * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 648 * 649 * @param entryId the primary key of the current ratings entry 650 * @param classNameId the class name ID 651 * @param classPK the class p k 652 * @param score the score 653 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 654 * @return the previous, current, and next ratings entry 655 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 656 */ 657 public RatingsEntry[] findByC_C_S_PrevAndNext(long entryId, 658 long classNameId, long classPK, double score, 659 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 660 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 661 662 /** 663 * Removes all the ratings entries where classNameId = ? and classPK = ? and score = ? from the database. 664 * 665 * @param classNameId the class name ID 666 * @param classPK the class p k 667 * @param score the score 668 */ 669 public void removeByC_C_S(long classNameId, long classPK, double score); 670 671 /** 672 * Returns the number of ratings entries where classNameId = ? and classPK = ? and score = ?. 673 * 674 * @param classNameId the class name ID 675 * @param classPK the class p k 676 * @param score the score 677 * @return the number of matching ratings entries 678 */ 679 public int countByC_C_S(long classNameId, long classPK, double score); 680 681 /** 682 * Caches the ratings entry in the entity cache if it is enabled. 683 * 684 * @param ratingsEntry the ratings entry 685 */ 686 public void cacheResult(RatingsEntry ratingsEntry); 687 688 /** 689 * Caches the ratings entries in the entity cache if it is enabled. 690 * 691 * @param ratingsEntries the ratings entries 692 */ 693 public void cacheResult(java.util.List<RatingsEntry> ratingsEntries); 694 695 /** 696 * Creates a new ratings entry with the primary key. Does not add the ratings entry to the database. 697 * 698 * @param entryId the primary key for the new ratings entry 699 * @return the new ratings entry 700 */ 701 public RatingsEntry create(long entryId); 702 703 /** 704 * Removes the ratings entry with the primary key from the database. Also notifies the appropriate model listeners. 705 * 706 * @param entryId the primary key of the ratings entry 707 * @return the ratings entry that was removed 708 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 709 */ 710 public RatingsEntry remove(long entryId) 711 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 712 713 public RatingsEntry updateImpl(RatingsEntry ratingsEntry); 714 715 /** 716 * Returns the ratings entry with the primary key or throws a {@link NoSuchEntryException} if it could not be found. 717 * 718 * @param entryId the primary key of the ratings entry 719 * @return the ratings entry 720 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 721 */ 722 public RatingsEntry findByPrimaryKey(long entryId) 723 throws com.liferay.portlet.ratings.exception.NoSuchEntryException; 724 725 /** 726 * Returns the ratings entry with the primary key or returns <code>null</code> if it could not be found. 727 * 728 * @param entryId the primary key of the ratings entry 729 * @return the ratings entry, or <code>null</code> if a ratings entry with the primary key could not be found 730 */ 731 public RatingsEntry fetchByPrimaryKey(long entryId); 732 733 @Override 734 public java.util.Map<java.io.Serializable, RatingsEntry> fetchByPrimaryKeys( 735 java.util.Set<java.io.Serializable> primaryKeys); 736 737 /** 738 * Returns all the ratings entries. 739 * 740 * @return the ratings entries 741 */ 742 public java.util.List<RatingsEntry> findAll(); 743 744 /** 745 * Returns a range of all the ratings entries. 746 * 747 * <p> 748 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 749 * </p> 750 * 751 * @param start the lower bound of the range of ratings entries 752 * @param end the upper bound of the range of ratings entries (not inclusive) 753 * @return the range of ratings entries 754 */ 755 public java.util.List<RatingsEntry> findAll(int start, int end); 756 757 /** 758 * Returns an ordered range of all the ratings entries. 759 * 760 * <p> 761 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 762 * </p> 763 * 764 * @param start the lower bound of the range of ratings entries 765 * @param end the upper bound of the range of ratings entries (not inclusive) 766 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 767 * @return the ordered range of ratings entries 768 */ 769 public java.util.List<RatingsEntry> findAll(int start, int end, 770 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 771 772 /** 773 * Returns an ordered range of all the ratings entries. 774 * 775 * <p> 776 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 777 * </p> 778 * 779 * @param start the lower bound of the range of ratings entries 780 * @param end the upper bound of the range of ratings entries (not inclusive) 781 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 782 * @param retrieveFromCache whether to retrieve from the finder cache 783 * @return the ordered range of ratings entries 784 */ 785 public java.util.List<RatingsEntry> findAll(int start, int end, 786 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator, 787 boolean retrieveFromCache); 788 789 /** 790 * Removes all the ratings entries from the database. 791 */ 792 public void removeAll(); 793 794 /** 795 * Returns the number of ratings entries. 796 * 797 * @return the number of ratings entries 798 */ 799 public int countAll(); 800 801 @Override 802 public java.util.Set<java.lang.String> getBadColumnNames(); 803 }