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.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.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.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.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.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.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.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.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.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.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) throws com.liferay.portlet.ratings.NoSuchEntryException; 510 511 /** 512 * Returns the number of ratings entries where userId = ? and classNameId = ? and classPK = ?. 513 * 514 * @param userId the user ID 515 * @param classNameId the class name ID 516 * @param classPK the class p k 517 * @return the number of matching ratings entries 518 */ 519 public int countByU_C_C(long userId, long classNameId, long classPK); 520 521 /** 522 * Returns all the ratings entries where classNameId = ? and classPK = ? and score = ?. 523 * 524 * @param classNameId the class name ID 525 * @param classPK the class p k 526 * @param score the score 527 * @return the matching ratings entries 528 */ 529 public java.util.List<RatingsEntry> findByC_C_S(long classNameId, 530 long classPK, double score); 531 532 /** 533 * Returns a range of all the ratings entries where classNameId = ? and classPK = ? and score = ?. 534 * 535 * <p> 536 * 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. 537 * </p> 538 * 539 * @param classNameId the class name ID 540 * @param classPK the class p k 541 * @param score the score 542 * @param start the lower bound of the range of ratings entries 543 * @param end the upper bound of the range of ratings entries (not inclusive) 544 * @return the range of matching ratings entries 545 */ 546 public java.util.List<RatingsEntry> findByC_C_S(long classNameId, 547 long classPK, double score, int start, int end); 548 549 /** 550 * Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?. 551 * 552 * <p> 553 * 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. 554 * </p> 555 * 556 * @param classNameId the class name ID 557 * @param classPK the class p k 558 * @param score the score 559 * @param start the lower bound of the range of ratings entries 560 * @param end the upper bound of the range of ratings entries (not inclusive) 561 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 562 * @return the ordered range of matching ratings entries 563 */ 564 public java.util.List<RatingsEntry> findByC_C_S(long classNameId, 565 long classPK, double score, int start, int end, 566 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 567 568 /** 569 * Returns an ordered range of all the ratings entries where classNameId = ? and classPK = ? and score = ?. 570 * 571 * <p> 572 * 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. 573 * </p> 574 * 575 * @param classNameId the class name ID 576 * @param classPK the class p k 577 * @param score the score 578 * @param start the lower bound of the range of ratings entries 579 * @param end the upper bound of the range of ratings entries (not inclusive) 580 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 581 * @param retrieveFromCache whether to retrieve from the finder cache 582 * @return the ordered range of matching ratings entries 583 */ 584 public java.util.List<RatingsEntry> findByC_C_S(long classNameId, 585 long classPK, double score, int start, int end, 586 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator, 587 boolean retrieveFromCache); 588 589 /** 590 * Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 591 * 592 * @param classNameId the class name ID 593 * @param classPK the class p k 594 * @param score the score 595 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 596 * @return the first matching ratings entry 597 * @throws NoSuchEntryException if a matching ratings entry could not be found 598 */ 599 public RatingsEntry findByC_C_S_First(long classNameId, long classPK, 600 double score, 601 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 602 throws com.liferay.portlet.ratings.NoSuchEntryException; 603 604 /** 605 * Returns the first ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 606 * 607 * @param classNameId the class name ID 608 * @param classPK the class p k 609 * @param score the score 610 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 611 * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 612 */ 613 public RatingsEntry fetchByC_C_S_First(long classNameId, long classPK, 614 double score, 615 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 616 617 /** 618 * Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 619 * 620 * @param classNameId the class name ID 621 * @param classPK the class p k 622 * @param score the score 623 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 624 * @return the last matching ratings entry 625 * @throws NoSuchEntryException if a matching ratings entry could not be found 626 */ 627 public RatingsEntry findByC_C_S_Last(long classNameId, long classPK, 628 double score, 629 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 630 throws com.liferay.portlet.ratings.NoSuchEntryException; 631 632 /** 633 * Returns the last ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 634 * 635 * @param classNameId the class name ID 636 * @param classPK the class p k 637 * @param score the score 638 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 639 * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found 640 */ 641 public RatingsEntry fetchByC_C_S_Last(long classNameId, long classPK, 642 double score, 643 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 644 645 /** 646 * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = ? and classPK = ? and score = ?. 647 * 648 * @param entryId the primary key of the current ratings entry 649 * @param classNameId the class name ID 650 * @param classPK the class p k 651 * @param score the score 652 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 653 * @return the previous, current, and next ratings entry 654 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 655 */ 656 public RatingsEntry[] findByC_C_S_PrevAndNext(long entryId, 657 long classNameId, long classPK, double score, 658 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator) 659 throws com.liferay.portlet.ratings.NoSuchEntryException; 660 661 /** 662 * Removes all the ratings entries where classNameId = ? and classPK = ? and score = ? from the database. 663 * 664 * @param classNameId the class name ID 665 * @param classPK the class p k 666 * @param score the score 667 */ 668 public void removeByC_C_S(long classNameId, long classPK, double score); 669 670 /** 671 * Returns the number of ratings entries where classNameId = ? and classPK = ? and score = ?. 672 * 673 * @param classNameId the class name ID 674 * @param classPK the class p k 675 * @param score the score 676 * @return the number of matching ratings entries 677 */ 678 public int countByC_C_S(long classNameId, long classPK, double score); 679 680 /** 681 * Caches the ratings entry in the entity cache if it is enabled. 682 * 683 * @param ratingsEntry the ratings entry 684 */ 685 public void cacheResult(RatingsEntry ratingsEntry); 686 687 /** 688 * Caches the ratings entries in the entity cache if it is enabled. 689 * 690 * @param ratingsEntries the ratings entries 691 */ 692 public void cacheResult(java.util.List<RatingsEntry> ratingsEntries); 693 694 /** 695 * Creates a new ratings entry with the primary key. Does not add the ratings entry to the database. 696 * 697 * @param entryId the primary key for the new ratings entry 698 * @return the new ratings entry 699 */ 700 public RatingsEntry create(long entryId); 701 702 /** 703 * Removes the ratings entry with the primary key from the database. Also notifies the appropriate model listeners. 704 * 705 * @param entryId the primary key of the ratings entry 706 * @return the ratings entry that was removed 707 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 708 */ 709 public RatingsEntry remove(long entryId) 710 throws com.liferay.portlet.ratings.NoSuchEntryException; 711 712 public RatingsEntry updateImpl(RatingsEntry ratingsEntry); 713 714 /** 715 * Returns the ratings entry with the primary key or throws a {@link NoSuchEntryException} if it could not be found. 716 * 717 * @param entryId the primary key of the ratings entry 718 * @return the ratings entry 719 * @throws NoSuchEntryException if a ratings entry with the primary key could not be found 720 */ 721 public RatingsEntry findByPrimaryKey(long entryId) 722 throws com.liferay.portlet.ratings.NoSuchEntryException; 723 724 /** 725 * Returns the ratings entry with the primary key or returns <code>null</code> if it could not be found. 726 * 727 * @param entryId the primary key of the ratings entry 728 * @return the ratings entry, or <code>null</code> if a ratings entry with the primary key could not be found 729 */ 730 public RatingsEntry fetchByPrimaryKey(long entryId); 731 732 @Override 733 public java.util.Map<java.io.Serializable, RatingsEntry> fetchByPrimaryKeys( 734 java.util.Set<java.io.Serializable> primaryKeys); 735 736 /** 737 * Returns all the ratings entries. 738 * 739 * @return the ratings entries 740 */ 741 public java.util.List<RatingsEntry> findAll(); 742 743 /** 744 * Returns a range of all the ratings entries. 745 * 746 * <p> 747 * 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. 748 * </p> 749 * 750 * @param start the lower bound of the range of ratings entries 751 * @param end the upper bound of the range of ratings entries (not inclusive) 752 * @return the range of ratings entries 753 */ 754 public java.util.List<RatingsEntry> findAll(int start, int end); 755 756 /** 757 * Returns an ordered range of all the ratings entries. 758 * 759 * <p> 760 * 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. 761 * </p> 762 * 763 * @param start the lower bound of the range of ratings entries 764 * @param end the upper bound of the range of ratings entries (not inclusive) 765 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 766 * @return the ordered range of ratings entries 767 */ 768 public java.util.List<RatingsEntry> findAll(int start, int end, 769 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator); 770 771 /** 772 * Returns an ordered range of all the ratings entries. 773 * 774 * <p> 775 * 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. 776 * </p> 777 * 778 * @param start the lower bound of the range of ratings entries 779 * @param end the upper bound of the range of ratings entries (not inclusive) 780 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 781 * @param retrieveFromCache whether to retrieve from the finder cache 782 * @return the ordered range of ratings entries 783 */ 784 public java.util.List<RatingsEntry> findAll(int start, int end, 785 com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator, 786 boolean retrieveFromCache); 787 788 /** 789 * Removes all the ratings entries from the database. 790 */ 791 public void removeAll(); 792 793 /** 794 * Returns the number of ratings entries. 795 * 796 * @return the number of ratings entries 797 */ 798 public int countAll(); 799 800 @Override 801 public java.util.Set<java.lang.String> getBadColumnNames(); 802 }