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