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