001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.social.model.SocialRequest; 020 021 /** 022 * The persistence interface for the social request service. 023 * 024 * <p> 025 * Never modify or reference this interface directly. Always use {@link SocialRequestUtil} to access the social request persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 026 * </p> 027 * 028 * <p> 029 * Caching information and settings can be found in <code>portal.properties</code> 030 * </p> 031 * 032 * @author Brian Wing Shun Chan 033 * @see SocialRequestPersistenceImpl 034 * @see SocialRequestUtil 035 * @generated 036 */ 037 public interface SocialRequestPersistence extends BasePersistence<SocialRequest> { 038 /** 039 * Caches the social request in the entity cache if it is enabled. 040 * 041 * @param socialRequest the social request to cache 042 */ 043 public void cacheResult( 044 com.liferay.portlet.social.model.SocialRequest socialRequest); 045 046 /** 047 * Caches the social requests in the entity cache if it is enabled. 048 * 049 * @param socialRequests the social requests to cache 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests); 053 054 /** 055 * Creates a new social request with the primary key. Does not add the social request to the database. 056 * 057 * @param requestId the primary key for the new social request 058 * @return the new social request 059 */ 060 public com.liferay.portlet.social.model.SocialRequest create(long requestId); 061 062 /** 063 * Removes the social request with the primary key from the database. Also notifies the appropriate model listeners. 064 * 065 * @param requestId the primary key of the social request to remove 066 * @return the social request that was removed 067 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 068 * @throws SystemException if a system exception occurred 069 */ 070 public com.liferay.portlet.social.model.SocialRequest remove(long requestId) 071 throws com.liferay.portal.kernel.exception.SystemException, 072 com.liferay.portlet.social.NoSuchRequestException; 073 074 public com.liferay.portlet.social.model.SocialRequest updateImpl( 075 com.liferay.portlet.social.model.SocialRequest socialRequest, 076 boolean merge) 077 throws com.liferay.portal.kernel.exception.SystemException; 078 079 /** 080 * Finds the social request with the primary key or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found. 081 * 082 * @param requestId the primary key of the social request to find 083 * @return the social request 084 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 085 * @throws SystemException if a system exception occurred 086 */ 087 public com.liferay.portlet.social.model.SocialRequest findByPrimaryKey( 088 long requestId) 089 throws com.liferay.portal.kernel.exception.SystemException, 090 com.liferay.portlet.social.NoSuchRequestException; 091 092 /** 093 * Finds the social request with the primary key or returns <code>null</code> if it could not be found. 094 * 095 * @param requestId the primary key of the social request to find 096 * @return the social request, or <code>null</code> if a social request with the primary key could not be found 097 * @throws SystemException if a system exception occurred 098 */ 099 public com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey( 100 long requestId) 101 throws com.liferay.portal.kernel.exception.SystemException; 102 103 /** 104 * Finds all the social requests where uuid = ?. 105 * 106 * @param uuid the uuid to search with 107 * @return the matching social requests 108 * @throws SystemException if a system exception occurred 109 */ 110 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid( 111 java.lang.String uuid) 112 throws com.liferay.portal.kernel.exception.SystemException; 113 114 /** 115 * Finds a range of all the social requests where uuid = ?. 116 * 117 * <p> 118 * 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. 119 * </p> 120 * 121 * @param uuid the uuid to search with 122 * @param start the lower bound of the range of social requests to return 123 * @param end the upper bound of the range of social requests to return (not inclusive) 124 * @return the range of matching social requests 125 * @throws SystemException if a system exception occurred 126 */ 127 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid( 128 java.lang.String uuid, int start, int end) 129 throws com.liferay.portal.kernel.exception.SystemException; 130 131 /** 132 * Finds an ordered range of all the social requests where uuid = ?. 133 * 134 * <p> 135 * 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. 136 * </p> 137 * 138 * @param uuid the uuid to search with 139 * @param start the lower bound of the range of social requests to return 140 * @param end the upper bound of the range of social requests to return (not inclusive) 141 * @param orderByComparator the comparator to order the results by 142 * @return the ordered range of matching social requests 143 * @throws SystemException if a system exception occurred 144 */ 145 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid( 146 java.lang.String uuid, int start, int end, 147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 148 throws com.liferay.portal.kernel.exception.SystemException; 149 150 /** 151 * Finds the first social request in the ordered set where uuid = ?. 152 * 153 * <p> 154 * 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. 155 * </p> 156 * 157 * @param uuid the uuid to search with 158 * @param orderByComparator the comparator to order the set by 159 * @return the first matching social request 160 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public com.liferay.portlet.social.model.SocialRequest findByUuid_First( 164 java.lang.String uuid, 165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 166 throws com.liferay.portal.kernel.exception.SystemException, 167 com.liferay.portlet.social.NoSuchRequestException; 168 169 /** 170 * Finds the last social request in the ordered set where uuid = ?. 171 * 172 * <p> 173 * 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. 174 * </p> 175 * 176 * @param uuid the uuid to search with 177 * @param orderByComparator the comparator to order the set by 178 * @return the last matching social request 179 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 180 * @throws SystemException if a system exception occurred 181 */ 182 public com.liferay.portlet.social.model.SocialRequest findByUuid_Last( 183 java.lang.String uuid, 184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 185 throws com.liferay.portal.kernel.exception.SystemException, 186 com.liferay.portlet.social.NoSuchRequestException; 187 188 /** 189 * Finds the social requests before and after the current social request in the ordered set where uuid = ?. 190 * 191 * <p> 192 * 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. 193 * </p> 194 * 195 * @param requestId the primary key of the current social request 196 * @param uuid the uuid to search with 197 * @param orderByComparator the comparator to order the set by 198 * @return the previous, current, and next social request 199 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 200 * @throws SystemException if a system exception occurred 201 */ 202 public com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext( 203 long requestId, java.lang.String uuid, 204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 205 throws com.liferay.portal.kernel.exception.SystemException, 206 com.liferay.portlet.social.NoSuchRequestException; 207 208 /** 209 * Finds the social request where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found. 210 * 211 * @param uuid the uuid to search with 212 * @param groupId the group id to search with 213 * @return the matching social request 214 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 215 * @throws SystemException if a system exception occurred 216 */ 217 public com.liferay.portlet.social.model.SocialRequest findByUUID_G( 218 java.lang.String uuid, long groupId) 219 throws com.liferay.portal.kernel.exception.SystemException, 220 com.liferay.portlet.social.NoSuchRequestException; 221 222 /** 223 * Finds the social request where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 224 * 225 * @param uuid the uuid to search with 226 * @param groupId the group id to search with 227 * @return the matching social request, or <code>null</code> if a matching social request could not be found 228 * @throws SystemException if a system exception occurred 229 */ 230 public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G( 231 java.lang.String uuid, long groupId) 232 throws com.liferay.portal.kernel.exception.SystemException; 233 234 /** 235 * Finds the social request where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 236 * 237 * @param uuid the uuid to search with 238 * @param groupId the group id to search with 239 * @return the matching social request, or <code>null</code> if a matching social request could not be found 240 * @throws SystemException if a system exception occurred 241 */ 242 public com.liferay.portlet.social.model.SocialRequest fetchByUUID_G( 243 java.lang.String uuid, long groupId, boolean retrieveFromCache) 244 throws com.liferay.portal.kernel.exception.SystemException; 245 246 /** 247 * Finds all the social requests where companyId = ?. 248 * 249 * @param companyId the company id to search with 250 * @return the matching social requests 251 * @throws SystemException if a system exception occurred 252 */ 253 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId( 254 long companyId) 255 throws com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Finds a range of all the social requests where companyId = ?. 259 * 260 * <p> 261 * 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. 262 * </p> 263 * 264 * @param companyId the company id to search with 265 * @param start the lower bound of the range of social requests to return 266 * @param end the upper bound of the range of social requests to return (not inclusive) 267 * @return the range of matching social requests 268 * @throws SystemException if a system exception occurred 269 */ 270 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId( 271 long companyId, int start, int end) 272 throws com.liferay.portal.kernel.exception.SystemException; 273 274 /** 275 * Finds an ordered range of all the social requests where companyId = ?. 276 * 277 * <p> 278 * 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. 279 * </p> 280 * 281 * @param companyId the company id to search with 282 * @param start the lower bound of the range of social requests to return 283 * @param end the upper bound of the range of social requests to return (not inclusive) 284 * @param orderByComparator the comparator to order the results by 285 * @return the ordered range of matching social requests 286 * @throws SystemException if a system exception occurred 287 */ 288 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId( 289 long companyId, int start, int end, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException; 292 293 /** 294 * Finds the first social request in the ordered set where companyId = ?. 295 * 296 * <p> 297 * 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. 298 * </p> 299 * 300 * @param companyId the company id to search with 301 * @param orderByComparator the comparator to order the set by 302 * @return the first matching social request 303 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 304 * @throws SystemException if a system exception occurred 305 */ 306 public com.liferay.portlet.social.model.SocialRequest findByCompanyId_First( 307 long companyId, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.kernel.exception.SystemException, 310 com.liferay.portlet.social.NoSuchRequestException; 311 312 /** 313 * Finds the last social request in the ordered set where companyId = ?. 314 * 315 * <p> 316 * 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. 317 * </p> 318 * 319 * @param companyId the company id to search with 320 * @param orderByComparator the comparator to order the set by 321 * @return the last matching social request 322 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 323 * @throws SystemException if a system exception occurred 324 */ 325 public com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last( 326 long companyId, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.kernel.exception.SystemException, 329 com.liferay.portlet.social.NoSuchRequestException; 330 331 /** 332 * Finds the social requests before and after the current social request in the ordered set where companyId = ?. 333 * 334 * <p> 335 * 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. 336 * </p> 337 * 338 * @param requestId the primary key of the current social request 339 * @param companyId the company id to search with 340 * @param orderByComparator the comparator to order the set by 341 * @return the previous, current, and next social request 342 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 343 * @throws SystemException if a system exception occurred 344 */ 345 public com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext( 346 long requestId, long companyId, 347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 348 throws com.liferay.portal.kernel.exception.SystemException, 349 com.liferay.portlet.social.NoSuchRequestException; 350 351 /** 352 * Finds all the social requests where userId = ?. 353 * 354 * @param userId the user id to search with 355 * @return the matching social requests 356 * @throws SystemException if a system exception occurred 357 */ 358 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId( 359 long userId) throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Finds a range of all the social requests where userId = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param userId the user id to search with 369 * @param start the lower bound of the range of social requests to return 370 * @param end the upper bound of the range of social requests to return (not inclusive) 371 * @return the range of matching social requests 372 * @throws SystemException if a system exception occurred 373 */ 374 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId( 375 long userId, int start, int end) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Finds an ordered range of all the social requests where userId = ?. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param userId the user id to search with 386 * @param start the lower bound of the range of social requests to return 387 * @param end the upper bound of the range of social requests to return (not inclusive) 388 * @param orderByComparator the comparator to order the results by 389 * @return the ordered range of matching social requests 390 * @throws SystemException if a system exception occurred 391 */ 392 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId( 393 long userId, int start, int end, 394 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 395 throws com.liferay.portal.kernel.exception.SystemException; 396 397 /** 398 * Finds the first social request in the ordered set where userId = ?. 399 * 400 * <p> 401 * 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. 402 * </p> 403 * 404 * @param userId the user id to search with 405 * @param orderByComparator the comparator to order the set by 406 * @return the first matching social request 407 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 408 * @throws SystemException if a system exception occurred 409 */ 410 public com.liferay.portlet.social.model.SocialRequest findByUserId_First( 411 long userId, 412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 413 throws com.liferay.portal.kernel.exception.SystemException, 414 com.liferay.portlet.social.NoSuchRequestException; 415 416 /** 417 * Finds the last social request in the ordered set where userId = ?. 418 * 419 * <p> 420 * 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. 421 * </p> 422 * 423 * @param userId the user id to search with 424 * @param orderByComparator the comparator to order the set by 425 * @return the last matching social request 426 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 427 * @throws SystemException if a system exception occurred 428 */ 429 public com.liferay.portlet.social.model.SocialRequest findByUserId_Last( 430 long userId, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException, 433 com.liferay.portlet.social.NoSuchRequestException; 434 435 /** 436 * Finds the social requests before and after the current social request in the ordered set where userId = ?. 437 * 438 * <p> 439 * 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. 440 * </p> 441 * 442 * @param requestId the primary key of the current social request 443 * @param userId the user id to search with 444 * @param orderByComparator the comparator to order the set by 445 * @return the previous, current, and next social request 446 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 447 * @throws SystemException if a system exception occurred 448 */ 449 public com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext( 450 long requestId, long userId, 451 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 452 throws com.liferay.portal.kernel.exception.SystemException, 453 com.liferay.portlet.social.NoSuchRequestException; 454 455 /** 456 * Finds all the social requests where receiverUserId = ?. 457 * 458 * @param receiverUserId the receiver user id to search with 459 * @return the matching social requests 460 * @throws SystemException if a system exception occurred 461 */ 462 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId( 463 long receiverUserId) 464 throws com.liferay.portal.kernel.exception.SystemException; 465 466 /** 467 * Finds a range of all the social requests where receiverUserId = ?. 468 * 469 * <p> 470 * 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. 471 * </p> 472 * 473 * @param receiverUserId the receiver user id to search with 474 * @param start the lower bound of the range of social requests to return 475 * @param end the upper bound of the range of social requests to return (not inclusive) 476 * @return the range of matching social requests 477 * @throws SystemException if a system exception occurred 478 */ 479 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId( 480 long receiverUserId, int start, int end) 481 throws com.liferay.portal.kernel.exception.SystemException; 482 483 /** 484 * Finds an ordered range of all the social requests where receiverUserId = ?. 485 * 486 * <p> 487 * 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. 488 * </p> 489 * 490 * @param receiverUserId the receiver user id to search with 491 * @param start the lower bound of the range of social requests to return 492 * @param end the upper bound of the range of social requests to return (not inclusive) 493 * @param orderByComparator the comparator to order the results by 494 * @return the ordered range of matching social requests 495 * @throws SystemException if a system exception occurred 496 */ 497 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId( 498 long receiverUserId, int start, int end, 499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 500 throws com.liferay.portal.kernel.exception.SystemException; 501 502 /** 503 * Finds the first social request in the ordered set where receiverUserId = ?. 504 * 505 * <p> 506 * 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. 507 * </p> 508 * 509 * @param receiverUserId the receiver user id to search with 510 * @param orderByComparator the comparator to order the set by 511 * @return the first matching social request 512 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 513 * @throws SystemException if a system exception occurred 514 */ 515 public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First( 516 long receiverUserId, 517 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 518 throws com.liferay.portal.kernel.exception.SystemException, 519 com.liferay.portlet.social.NoSuchRequestException; 520 521 /** 522 * Finds the last social request in the ordered set where receiverUserId = ?. 523 * 524 * <p> 525 * 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. 526 * </p> 527 * 528 * @param receiverUserId the receiver user id to search with 529 * @param orderByComparator the comparator to order the set by 530 * @return the last matching social request 531 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 532 * @throws SystemException if a system exception occurred 533 */ 534 public com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last( 535 long receiverUserId, 536 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 537 throws com.liferay.portal.kernel.exception.SystemException, 538 com.liferay.portlet.social.NoSuchRequestException; 539 540 /** 541 * Finds the social requests before and after the current social request in the ordered set where receiverUserId = ?. 542 * 543 * <p> 544 * 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. 545 * </p> 546 * 547 * @param requestId the primary key of the current social request 548 * @param receiverUserId the receiver user id to search with 549 * @param orderByComparator the comparator to order the set by 550 * @return the previous, current, and next social request 551 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 552 * @throws SystemException if a system exception occurred 553 */ 554 public com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext( 555 long requestId, long receiverUserId, 556 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 557 throws com.liferay.portal.kernel.exception.SystemException, 558 com.liferay.portlet.social.NoSuchRequestException; 559 560 /** 561 * Finds all the social requests where userId = ? and status = ?. 562 * 563 * @param userId the user id to search with 564 * @param status the status to search with 565 * @return the matching social requests 566 * @throws SystemException if a system exception occurred 567 */ 568 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S( 569 long userId, int status) 570 throws com.liferay.portal.kernel.exception.SystemException; 571 572 /** 573 * Finds a range of all the social requests where userId = ? and status = ?. 574 * 575 * <p> 576 * 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. 577 * </p> 578 * 579 * @param userId the user id to search with 580 * @param status the status to search with 581 * @param start the lower bound of the range of social requests to return 582 * @param end the upper bound of the range of social requests to return (not inclusive) 583 * @return the range of matching social requests 584 * @throws SystemException if a system exception occurred 585 */ 586 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S( 587 long userId, int status, int start, int end) 588 throws com.liferay.portal.kernel.exception.SystemException; 589 590 /** 591 * Finds an ordered range of all the social requests where userId = ? and status = ?. 592 * 593 * <p> 594 * 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. 595 * </p> 596 * 597 * @param userId the user id to search with 598 * @param status the status to search with 599 * @param start the lower bound of the range of social requests to return 600 * @param end the upper bound of the range of social requests to return (not inclusive) 601 * @param orderByComparator the comparator to order the results by 602 * @return the ordered range of matching social requests 603 * @throws SystemException if a system exception occurred 604 */ 605 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S( 606 long userId, int status, int start, int end, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.kernel.exception.SystemException; 609 610 /** 611 * Finds the first social request in the ordered set where userId = ? and status = ?. 612 * 613 * <p> 614 * 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. 615 * </p> 616 * 617 * @param userId the user id to search with 618 * @param status the status to search with 619 * @param orderByComparator the comparator to order the set by 620 * @return the first matching social request 621 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 622 * @throws SystemException if a system exception occurred 623 */ 624 public com.liferay.portlet.social.model.SocialRequest findByU_S_First( 625 long userId, int status, 626 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 627 throws com.liferay.portal.kernel.exception.SystemException, 628 com.liferay.portlet.social.NoSuchRequestException; 629 630 /** 631 * Finds the last social request in the ordered set where userId = ? and status = ?. 632 * 633 * <p> 634 * 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. 635 * </p> 636 * 637 * @param userId the user id to search with 638 * @param status the status to search with 639 * @param orderByComparator the comparator to order the set by 640 * @return the last matching social request 641 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 642 * @throws SystemException if a system exception occurred 643 */ 644 public com.liferay.portlet.social.model.SocialRequest findByU_S_Last( 645 long userId, int status, 646 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 647 throws com.liferay.portal.kernel.exception.SystemException, 648 com.liferay.portlet.social.NoSuchRequestException; 649 650 /** 651 * Finds the social requests before and after the current social request in the ordered set where userId = ? and status = ?. 652 * 653 * <p> 654 * 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. 655 * </p> 656 * 657 * @param requestId the primary key of the current social request 658 * @param userId the user id to search with 659 * @param status the status to search with 660 * @param orderByComparator the comparator to order the set by 661 * @return the previous, current, and next social request 662 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 663 * @throws SystemException if a system exception occurred 664 */ 665 public com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext( 666 long requestId, long userId, int status, 667 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 668 throws com.liferay.portal.kernel.exception.SystemException, 669 com.liferay.portlet.social.NoSuchRequestException; 670 671 /** 672 * Finds all the social requests where receiverUserId = ? and status = ?. 673 * 674 * @param receiverUserId the receiver user id to search with 675 * @param status the status to search with 676 * @return the matching social requests 677 * @throws SystemException if a system exception occurred 678 */ 679 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S( 680 long receiverUserId, int status) 681 throws com.liferay.portal.kernel.exception.SystemException; 682 683 /** 684 * Finds a range of all the social requests where receiverUserId = ? and status = ?. 685 * 686 * <p> 687 * 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. 688 * </p> 689 * 690 * @param receiverUserId the receiver user id to search with 691 * @param status the status to search with 692 * @param start the lower bound of the range of social requests to return 693 * @param end the upper bound of the range of social requests to return (not inclusive) 694 * @return the range of matching social requests 695 * @throws SystemException if a system exception occurred 696 */ 697 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S( 698 long receiverUserId, int status, int start, int end) 699 throws com.liferay.portal.kernel.exception.SystemException; 700 701 /** 702 * Finds an ordered range of all the social requests where receiverUserId = ? and status = ?. 703 * 704 * <p> 705 * 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. 706 * </p> 707 * 708 * @param receiverUserId the receiver user id to search with 709 * @param status the status to search with 710 * @param start the lower bound of the range of social requests to return 711 * @param end the upper bound of the range of social requests to return (not inclusive) 712 * @param orderByComparator the comparator to order the results by 713 * @return the ordered range of matching social requests 714 * @throws SystemException if a system exception occurred 715 */ 716 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S( 717 long receiverUserId, int status, int start, int end, 718 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 719 throws com.liferay.portal.kernel.exception.SystemException; 720 721 /** 722 * Finds the first social request in the ordered set where receiverUserId = ? and status = ?. 723 * 724 * <p> 725 * 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. 726 * </p> 727 * 728 * @param receiverUserId the receiver user id to search with 729 * @param status the status to search with 730 * @param orderByComparator the comparator to order the set by 731 * @return the first matching social request 732 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 733 * @throws SystemException if a system exception occurred 734 */ 735 public com.liferay.portlet.social.model.SocialRequest findByR_S_First( 736 long receiverUserId, int status, 737 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 738 throws com.liferay.portal.kernel.exception.SystemException, 739 com.liferay.portlet.social.NoSuchRequestException; 740 741 /** 742 * Finds the last social request in the ordered set where receiverUserId = ? and status = ?. 743 * 744 * <p> 745 * 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. 746 * </p> 747 * 748 * @param receiverUserId the receiver user id to search with 749 * @param status the status to search with 750 * @param orderByComparator the comparator to order the set by 751 * @return the last matching social request 752 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 753 * @throws SystemException if a system exception occurred 754 */ 755 public com.liferay.portlet.social.model.SocialRequest findByR_S_Last( 756 long receiverUserId, int status, 757 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 758 throws com.liferay.portal.kernel.exception.SystemException, 759 com.liferay.portlet.social.NoSuchRequestException; 760 761 /** 762 * Finds the social requests before and after the current social request in the ordered set where receiverUserId = ? and status = ?. 763 * 764 * <p> 765 * 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. 766 * </p> 767 * 768 * @param requestId the primary key of the current social request 769 * @param receiverUserId the receiver user id to search with 770 * @param status the status to search with 771 * @param orderByComparator the comparator to order the set by 772 * @return the previous, current, and next social request 773 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 774 * @throws SystemException if a system exception occurred 775 */ 776 public com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext( 777 long requestId, long receiverUserId, int status, 778 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 779 throws com.liferay.portal.kernel.exception.SystemException, 780 com.liferay.portlet.social.NoSuchRequestException; 781 782 /** 783 * Finds the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found. 784 * 785 * @param userId the user id to search with 786 * @param classNameId the class name id to search with 787 * @param classPK the class p k to search with 788 * @param type the type to search with 789 * @param receiverUserId the receiver user id to search with 790 * @return the matching social request 791 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 792 * @throws SystemException if a system exception occurred 793 */ 794 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R( 795 long userId, long classNameId, long classPK, int type, 796 long receiverUserId) 797 throws com.liferay.portal.kernel.exception.SystemException, 798 com.liferay.portlet.social.NoSuchRequestException; 799 800 /** 801 * Finds the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 802 * 803 * @param userId the user id to search with 804 * @param classNameId the class name id to search with 805 * @param classPK the class p k to search with 806 * @param type the type to search with 807 * @param receiverUserId the receiver user id to search with 808 * @return the matching social request, or <code>null</code> if a matching social request could not be found 809 * @throws SystemException if a system exception occurred 810 */ 811 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R( 812 long userId, long classNameId, long classPK, int type, 813 long receiverUserId) 814 throws com.liferay.portal.kernel.exception.SystemException; 815 816 /** 817 * Finds the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 818 * 819 * @param userId the user id to search with 820 * @param classNameId the class name id to search with 821 * @param classPK the class p k to search with 822 * @param type the type to search with 823 * @param receiverUserId the receiver user id to search with 824 * @return the matching social request, or <code>null</code> if a matching social request could not be found 825 * @throws SystemException if a system exception occurred 826 */ 827 public com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R( 828 long userId, long classNameId, long classPK, int type, 829 long receiverUserId, boolean retrieveFromCache) 830 throws com.liferay.portal.kernel.exception.SystemException; 831 832 /** 833 * Finds all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 834 * 835 * @param userId the user id to search with 836 * @param classNameId the class name id to search with 837 * @param classPK the class p k to search with 838 * @param type the type to search with 839 * @param status the status to search with 840 * @return the matching social requests 841 * @throws SystemException if a system exception occurred 842 */ 843 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 844 long userId, long classNameId, long classPK, int type, int status) 845 throws com.liferay.portal.kernel.exception.SystemException; 846 847 /** 848 * Finds a range of all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 849 * 850 * <p> 851 * 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. 852 * </p> 853 * 854 * @param userId the user id to search with 855 * @param classNameId the class name id to search with 856 * @param classPK the class p k to search with 857 * @param type the type to search with 858 * @param status the status to search with 859 * @param start the lower bound of the range of social requests to return 860 * @param end the upper bound of the range of social requests to return (not inclusive) 861 * @return the range of matching social requests 862 * @throws SystemException if a system exception occurred 863 */ 864 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 865 long userId, long classNameId, long classPK, int type, int status, 866 int start, int end) 867 throws com.liferay.portal.kernel.exception.SystemException; 868 869 /** 870 * Finds an ordered range of all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 871 * 872 * <p> 873 * 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. 874 * </p> 875 * 876 * @param userId the user id to search with 877 * @param classNameId the class name id to search with 878 * @param classPK the class p k to search with 879 * @param type the type to search with 880 * @param status the status to search with 881 * @param start the lower bound of the range of social requests to return 882 * @param end the upper bound of the range of social requests to return (not inclusive) 883 * @param orderByComparator the comparator to order the results by 884 * @return the ordered range of matching social requests 885 * @throws SystemException if a system exception occurred 886 */ 887 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 888 long userId, long classNameId, long classPK, int type, int status, 889 int start, int end, 890 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 891 throws com.liferay.portal.kernel.exception.SystemException; 892 893 /** 894 * Finds the first social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 895 * 896 * <p> 897 * 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. 898 * </p> 899 * 900 * @param userId the user id to search with 901 * @param classNameId the class name id to search with 902 * @param classPK the class p k to search with 903 * @param type the type to search with 904 * @param status the status to search with 905 * @param orderByComparator the comparator to order the set by 906 * @return the first matching social request 907 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 908 * @throws SystemException if a system exception occurred 909 */ 910 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First( 911 long userId, long classNameId, long classPK, int type, int status, 912 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 913 throws com.liferay.portal.kernel.exception.SystemException, 914 com.liferay.portlet.social.NoSuchRequestException; 915 916 /** 917 * Finds the last social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 918 * 919 * <p> 920 * 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. 921 * </p> 922 * 923 * @param userId the user id to search with 924 * @param classNameId the class name id to search with 925 * @param classPK the class p k to search with 926 * @param type the type to search with 927 * @param status the status to search with 928 * @param orderByComparator the comparator to order the set by 929 * @return the last matching social request 930 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 931 * @throws SystemException if a system exception occurred 932 */ 933 public com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last( 934 long userId, long classNameId, long classPK, int type, int status, 935 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 936 throws com.liferay.portal.kernel.exception.SystemException, 937 com.liferay.portlet.social.NoSuchRequestException; 938 939 /** 940 * Finds the social requests before and after the current social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 941 * 942 * <p> 943 * 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. 944 * </p> 945 * 946 * @param requestId the primary key of the current social request 947 * @param userId the user id to search with 948 * @param classNameId the class name id to search with 949 * @param classPK the class p k to search with 950 * @param type the type to search with 951 * @param status the status to search with 952 * @param orderByComparator the comparator to order the set by 953 * @return the previous, current, and next social request 954 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 955 * @throws SystemException if a system exception occurred 956 */ 957 public com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext( 958 long requestId, long userId, long classNameId, long classPK, int type, 959 int status, 960 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 961 throws com.liferay.portal.kernel.exception.SystemException, 962 com.liferay.portlet.social.NoSuchRequestException; 963 964 /** 965 * Finds all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 966 * 967 * @param classNameId the class name id to search with 968 * @param classPK the class p k to search with 969 * @param type the type to search with 970 * @param receiverUserId the receiver user id to search with 971 * @param status the status to search with 972 * @return the matching social requests 973 * @throws SystemException if a system exception occurred 974 */ 975 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 976 long classNameId, long classPK, int type, long receiverUserId, 977 int status) throws com.liferay.portal.kernel.exception.SystemException; 978 979 /** 980 * Finds a range of all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 981 * 982 * <p> 983 * 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. 984 * </p> 985 * 986 * @param classNameId the class name id to search with 987 * @param classPK the class p k to search with 988 * @param type the type to search with 989 * @param receiverUserId the receiver user id to search with 990 * @param status the status to search with 991 * @param start the lower bound of the range of social requests to return 992 * @param end the upper bound of the range of social requests to return (not inclusive) 993 * @return the range of matching social requests 994 * @throws SystemException if a system exception occurred 995 */ 996 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 997 long classNameId, long classPK, int type, long receiverUserId, 998 int status, int start, int end) 999 throws com.liferay.portal.kernel.exception.SystemException; 1000 1001 /** 1002 * Finds an ordered range of all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1003 * 1004 * <p> 1005 * 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. 1006 * </p> 1007 * 1008 * @param classNameId the class name id to search with 1009 * @param classPK the class p k to search with 1010 * @param type the type to search with 1011 * @param receiverUserId the receiver user id to search with 1012 * @param status the status to search with 1013 * @param start the lower bound of the range of social requests to return 1014 * @param end the upper bound of the range of social requests to return (not inclusive) 1015 * @param orderByComparator the comparator to order the results by 1016 * @return the ordered range of matching social requests 1017 * @throws SystemException if a system exception occurred 1018 */ 1019 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 1020 long classNameId, long classPK, int type, long receiverUserId, 1021 int status, int start, int end, 1022 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1023 throws com.liferay.portal.kernel.exception.SystemException; 1024 1025 /** 1026 * Finds the first social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1027 * 1028 * <p> 1029 * 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. 1030 * </p> 1031 * 1032 * @param classNameId the class name id to search with 1033 * @param classPK the class p k to search with 1034 * @param type the type to search with 1035 * @param receiverUserId the receiver user id to search with 1036 * @param status the status to search with 1037 * @param orderByComparator the comparator to order the set by 1038 * @return the first matching social request 1039 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1040 * @throws SystemException if a system exception occurred 1041 */ 1042 public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First( 1043 long classNameId, long classPK, int type, long receiverUserId, 1044 int status, 1045 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1046 throws com.liferay.portal.kernel.exception.SystemException, 1047 com.liferay.portlet.social.NoSuchRequestException; 1048 1049 /** 1050 * Finds the last social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1051 * 1052 * <p> 1053 * 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. 1054 * </p> 1055 * 1056 * @param classNameId the class name id to search with 1057 * @param classPK the class p k to search with 1058 * @param type the type to search with 1059 * @param receiverUserId the receiver user id to search with 1060 * @param status the status to search with 1061 * @param orderByComparator the comparator to order the set by 1062 * @return the last matching social request 1063 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1064 * @throws SystemException if a system exception occurred 1065 */ 1066 public com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last( 1067 long classNameId, long classPK, int type, long receiverUserId, 1068 int status, 1069 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1070 throws com.liferay.portal.kernel.exception.SystemException, 1071 com.liferay.portlet.social.NoSuchRequestException; 1072 1073 /** 1074 * Finds the social requests before and after the current social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1075 * 1076 * <p> 1077 * 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. 1078 * </p> 1079 * 1080 * @param requestId the primary key of the current social request 1081 * @param classNameId the class name id to search with 1082 * @param classPK the class p k to search with 1083 * @param type the type to search with 1084 * @param receiverUserId the receiver user id to search with 1085 * @param status the status to search with 1086 * @param orderByComparator the comparator to order the set by 1087 * @return the previous, current, and next social request 1088 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 1089 * @throws SystemException if a system exception occurred 1090 */ 1091 public com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext( 1092 long requestId, long classNameId, long classPK, int type, 1093 long receiverUserId, int status, 1094 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1095 throws com.liferay.portal.kernel.exception.SystemException, 1096 com.liferay.portlet.social.NoSuchRequestException; 1097 1098 /** 1099 * Finds all the social requests. 1100 * 1101 * @return the social requests 1102 * @throws SystemException if a system exception occurred 1103 */ 1104 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll() 1105 throws com.liferay.portal.kernel.exception.SystemException; 1106 1107 /** 1108 * Finds a range of all the social requests. 1109 * 1110 * <p> 1111 * 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. 1112 * </p> 1113 * 1114 * @param start the lower bound of the range of social requests to return 1115 * @param end the upper bound of the range of social requests to return (not inclusive) 1116 * @return the range of social requests 1117 * @throws SystemException if a system exception occurred 1118 */ 1119 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll( 1120 int start, int end) 1121 throws com.liferay.portal.kernel.exception.SystemException; 1122 1123 /** 1124 * Finds an ordered range of all the social requests. 1125 * 1126 * <p> 1127 * 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. 1128 * </p> 1129 * 1130 * @param start the lower bound of the range of social requests to return 1131 * @param end the upper bound of the range of social requests to return (not inclusive) 1132 * @param orderByComparator the comparator to order the results by 1133 * @return the ordered range of social requests 1134 * @throws SystemException if a system exception occurred 1135 */ 1136 public java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll( 1137 int start, int end, 1138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1139 throws com.liferay.portal.kernel.exception.SystemException; 1140 1141 /** 1142 * Removes all the social requests where uuid = ? from the database. 1143 * 1144 * @param uuid the uuid to search with 1145 * @throws SystemException if a system exception occurred 1146 */ 1147 public void removeByUuid(java.lang.String uuid) 1148 throws com.liferay.portal.kernel.exception.SystemException; 1149 1150 /** 1151 * Removes the social request where uuid = ? and groupId = ? from the database. 1152 * 1153 * @param uuid the uuid to search with 1154 * @param groupId the group id to search with 1155 * @throws SystemException if a system exception occurred 1156 */ 1157 public void removeByUUID_G(java.lang.String uuid, long groupId) 1158 throws com.liferay.portal.kernel.exception.SystemException, 1159 com.liferay.portlet.social.NoSuchRequestException; 1160 1161 /** 1162 * Removes all the social requests where companyId = ? from the database. 1163 * 1164 * @param companyId the company id to search with 1165 * @throws SystemException if a system exception occurred 1166 */ 1167 public void removeByCompanyId(long companyId) 1168 throws com.liferay.portal.kernel.exception.SystemException; 1169 1170 /** 1171 * Removes all the social requests where userId = ? from the database. 1172 * 1173 * @param userId the user id to search with 1174 * @throws SystemException if a system exception occurred 1175 */ 1176 public void removeByUserId(long userId) 1177 throws com.liferay.portal.kernel.exception.SystemException; 1178 1179 /** 1180 * Removes all the social requests where receiverUserId = ? from the database. 1181 * 1182 * @param receiverUserId the receiver user id to search with 1183 * @throws SystemException if a system exception occurred 1184 */ 1185 public void removeByReceiverUserId(long receiverUserId) 1186 throws com.liferay.portal.kernel.exception.SystemException; 1187 1188 /** 1189 * Removes all the social requests where userId = ? and status = ? from the database. 1190 * 1191 * @param userId the user id to search with 1192 * @param status the status to search with 1193 * @throws SystemException if a system exception occurred 1194 */ 1195 public void removeByU_S(long userId, int status) 1196 throws com.liferay.portal.kernel.exception.SystemException; 1197 1198 /** 1199 * Removes all the social requests where receiverUserId = ? and status = ? from the database. 1200 * 1201 * @param receiverUserId the receiver user id to search with 1202 * @param status the status to search with 1203 * @throws SystemException if a system exception occurred 1204 */ 1205 public void removeByR_S(long receiverUserId, int status) 1206 throws com.liferay.portal.kernel.exception.SystemException; 1207 1208 /** 1209 * Removes the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. 1210 * 1211 * @param userId the user id to search with 1212 * @param classNameId the class name id to search with 1213 * @param classPK the class p k to search with 1214 * @param type the type to search with 1215 * @param receiverUserId the receiver user id to search with 1216 * @throws SystemException if a system exception occurred 1217 */ 1218 public void removeByU_C_C_T_R(long userId, long classNameId, long classPK, 1219 int type, long receiverUserId) 1220 throws com.liferay.portal.kernel.exception.SystemException, 1221 com.liferay.portlet.social.NoSuchRequestException; 1222 1223 /** 1224 * Removes all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ? from the database. 1225 * 1226 * @param userId the user id to search with 1227 * @param classNameId the class name id to search with 1228 * @param classPK the class p k to search with 1229 * @param type the type to search with 1230 * @param status the status to search with 1231 * @throws SystemException if a system exception occurred 1232 */ 1233 public void removeByU_C_C_T_S(long userId, long classNameId, long classPK, 1234 int type, int status) 1235 throws com.liferay.portal.kernel.exception.SystemException; 1236 1237 /** 1238 * Removes all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ? from the database. 1239 * 1240 * @param classNameId the class name id to search with 1241 * @param classPK the class p k to search with 1242 * @param type the type to search with 1243 * @param receiverUserId the receiver user id to search with 1244 * @param status the status to search with 1245 * @throws SystemException if a system exception occurred 1246 */ 1247 public void removeByC_C_T_R_S(long classNameId, long classPK, int type, 1248 long receiverUserId, int status) 1249 throws com.liferay.portal.kernel.exception.SystemException; 1250 1251 /** 1252 * Removes all the social requests from the database. 1253 * 1254 * @throws SystemException if a system exception occurred 1255 */ 1256 public void removeAll() 1257 throws com.liferay.portal.kernel.exception.SystemException; 1258 1259 /** 1260 * Counts all the social requests where uuid = ?. 1261 * 1262 * @param uuid the uuid to search with 1263 * @return the number of matching social requests 1264 * @throws SystemException if a system exception occurred 1265 */ 1266 public int countByUuid(java.lang.String uuid) 1267 throws com.liferay.portal.kernel.exception.SystemException; 1268 1269 /** 1270 * Counts all the social requests where uuid = ? and groupId = ?. 1271 * 1272 * @param uuid the uuid to search with 1273 * @param groupId the group id to search with 1274 * @return the number of matching social requests 1275 * @throws SystemException if a system exception occurred 1276 */ 1277 public int countByUUID_G(java.lang.String uuid, long groupId) 1278 throws com.liferay.portal.kernel.exception.SystemException; 1279 1280 /** 1281 * Counts all the social requests where companyId = ?. 1282 * 1283 * @param companyId the company id to search with 1284 * @return the number of matching social requests 1285 * @throws SystemException if a system exception occurred 1286 */ 1287 public int countByCompanyId(long companyId) 1288 throws com.liferay.portal.kernel.exception.SystemException; 1289 1290 /** 1291 * Counts all the social requests where userId = ?. 1292 * 1293 * @param userId the user id to search with 1294 * @return the number of matching social requests 1295 * @throws SystemException if a system exception occurred 1296 */ 1297 public int countByUserId(long userId) 1298 throws com.liferay.portal.kernel.exception.SystemException; 1299 1300 /** 1301 * Counts all the social requests where receiverUserId = ?. 1302 * 1303 * @param receiverUserId the receiver user id to search with 1304 * @return the number of matching social requests 1305 * @throws SystemException if a system exception occurred 1306 */ 1307 public int countByReceiverUserId(long receiverUserId) 1308 throws com.liferay.portal.kernel.exception.SystemException; 1309 1310 /** 1311 * Counts all the social requests where userId = ? and status = ?. 1312 * 1313 * @param userId the user id to search with 1314 * @param status the status to search with 1315 * @return the number of matching social requests 1316 * @throws SystemException if a system exception occurred 1317 */ 1318 public int countByU_S(long userId, int status) 1319 throws com.liferay.portal.kernel.exception.SystemException; 1320 1321 /** 1322 * Counts all the social requests where receiverUserId = ? and status = ?. 1323 * 1324 * @param receiverUserId the receiver user id to search with 1325 * @param status the status to search with 1326 * @return the number of matching social requests 1327 * @throws SystemException if a system exception occurred 1328 */ 1329 public int countByR_S(long receiverUserId, int status) 1330 throws com.liferay.portal.kernel.exception.SystemException; 1331 1332 /** 1333 * Counts all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1334 * 1335 * @param userId the user id to search with 1336 * @param classNameId the class name id to search with 1337 * @param classPK the class p k to search with 1338 * @param type the type to search with 1339 * @param receiverUserId the receiver user id to search with 1340 * @return the number of matching social requests 1341 * @throws SystemException if a system exception occurred 1342 */ 1343 public int countByU_C_C_T_R(long userId, long classNameId, long classPK, 1344 int type, long receiverUserId) 1345 throws com.liferay.portal.kernel.exception.SystemException; 1346 1347 /** 1348 * Counts all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1349 * 1350 * @param userId the user id to search with 1351 * @param classNameId the class name id to search with 1352 * @param classPK the class p k to search with 1353 * @param type the type to search with 1354 * @param status the status to search with 1355 * @return the number of matching social requests 1356 * @throws SystemException if a system exception occurred 1357 */ 1358 public int countByU_C_C_T_S(long userId, long classNameId, long classPK, 1359 int type, int status) 1360 throws com.liferay.portal.kernel.exception.SystemException; 1361 1362 /** 1363 * Counts all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1364 * 1365 * @param classNameId the class name id to search with 1366 * @param classPK the class p k to search with 1367 * @param type the type to search with 1368 * @param receiverUserId the receiver user id to search with 1369 * @param status the status to search with 1370 * @return the number of matching social requests 1371 * @throws SystemException if a system exception occurred 1372 */ 1373 public int countByC_C_T_R_S(long classNameId, long classPK, int type, 1374 long receiverUserId, int status) 1375 throws com.liferay.portal.kernel.exception.SystemException; 1376 1377 /** 1378 * Counts all the social requests. 1379 * 1380 * @return the number of social requests 1381 * @throws SystemException if a system exception occurred 1382 */ 1383 public int countAll() 1384 throws com.liferay.portal.kernel.exception.SystemException; 1385 }