001 /** 002 * Copyright (c) 2000-2012 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.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.social.model.SocialRequest; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the social request service. This utility wraps {@link SocialRequestPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see SocialRequestPersistence 037 * @see SocialRequestPersistenceImpl 038 * @generated 039 */ 040 public class SocialRequestUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(SocialRequest socialRequest) { 058 getPersistence().clearCache(socialRequest); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<SocialRequest> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<SocialRequest> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<SocialRequest> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static SocialRequest update(SocialRequest socialRequest) 101 throws SystemException { 102 return getPersistence().update(socialRequest); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static SocialRequest update(SocialRequest socialRequest, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(socialRequest, serviceContext); 111 } 112 113 /** 114 * Caches the social request in the entity cache if it is enabled. 115 * 116 * @param socialRequest the social request 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.social.model.SocialRequest socialRequest) { 120 getPersistence().cacheResult(socialRequest); 121 } 122 123 /** 124 * Caches the social requests in the entity cache if it is enabled. 125 * 126 * @param socialRequests the social requests 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.social.model.SocialRequest> socialRequests) { 130 getPersistence().cacheResult(socialRequests); 131 } 132 133 /** 134 * Creates a new social request with the primary key. Does not add the social request to the database. 135 * 136 * @param requestId the primary key for the new social request 137 * @return the new social request 138 */ 139 public static com.liferay.portlet.social.model.SocialRequest create( 140 long requestId) { 141 return getPersistence().create(requestId); 142 } 143 144 /** 145 * Removes the social request with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param requestId the primary key of the social request 148 * @return the social request that was removed 149 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.social.model.SocialRequest remove( 153 long requestId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.social.NoSuchRequestException { 156 return getPersistence().remove(requestId); 157 } 158 159 public static com.liferay.portlet.social.model.SocialRequest updateImpl( 160 com.liferay.portlet.social.model.SocialRequest socialRequest) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(socialRequest); 163 } 164 165 /** 166 * Returns the social request with the primary key or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found. 167 * 168 * @param requestId the primary key of the social request 169 * @return the social request 170 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.social.model.SocialRequest findByPrimaryKey( 174 long requestId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.social.NoSuchRequestException { 177 return getPersistence().findByPrimaryKey(requestId); 178 } 179 180 /** 181 * Returns the social request with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param requestId the primary key of the social request 184 * @return the social request, or <code>null</code> if a social request with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.social.model.SocialRequest fetchByPrimaryKey( 188 long requestId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(requestId); 191 } 192 193 /** 194 * Returns all the social requests where uuid = ?. 195 * 196 * @param uuid the uuid 197 * @return the matching social requests 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid( 201 java.lang.String uuid) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByUuid(uuid); 204 } 205 206 /** 207 * Returns a range of all the social requests where uuid = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param uuid the uuid 214 * @param start the lower bound of the range of social requests 215 * @param end the upper bound of the range of social requests (not inclusive) 216 * @return the range of matching social requests 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid( 220 java.lang.String uuid, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByUuid(uuid, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the social requests where uuid = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param uuid the uuid 233 * @param start the lower bound of the range of social requests 234 * @param end the upper bound of the range of social requests (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching social requests 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid( 240 java.lang.String uuid, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 244 } 245 246 /** 247 * Returns the first social request in the ordered set where uuid = ?. 248 * 249 * @param uuid the uuid 250 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 251 * @return the first matching social request 252 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 253 * @throws SystemException if a system exception occurred 254 */ 255 public static com.liferay.portlet.social.model.SocialRequest findByUuid_First( 256 java.lang.String uuid, 257 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 258 throws com.liferay.portal.kernel.exception.SystemException, 259 com.liferay.portlet.social.NoSuchRequestException { 260 return getPersistence().findByUuid_First(uuid, orderByComparator); 261 } 262 263 /** 264 * Returns the first social request in the ordered set where uuid = ?. 265 * 266 * @param uuid the uuid 267 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 268 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public static com.liferay.portlet.social.model.SocialRequest fetchByUuid_First( 272 java.lang.String uuid, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.kernel.exception.SystemException { 275 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 276 } 277 278 /** 279 * Returns the last social request in the ordered set where uuid = ?. 280 * 281 * @param uuid the uuid 282 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 283 * @return the last matching social request 284 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 285 * @throws SystemException if a system exception occurred 286 */ 287 public static com.liferay.portlet.social.model.SocialRequest findByUuid_Last( 288 java.lang.String uuid, 289 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 290 throws com.liferay.portal.kernel.exception.SystemException, 291 com.liferay.portlet.social.NoSuchRequestException { 292 return getPersistence().findByUuid_Last(uuid, orderByComparator); 293 } 294 295 /** 296 * Returns the last social request in the ordered set where uuid = ?. 297 * 298 * @param uuid the uuid 299 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 300 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.social.model.SocialRequest fetchByUuid_Last( 304 java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException { 307 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 308 } 309 310 /** 311 * Returns the social requests before and after the current social request in the ordered set where uuid = ?. 312 * 313 * @param requestId the primary key of the current social request 314 * @param uuid the uuid 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the previous, current, and next social request 317 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext( 321 long requestId, java.lang.String uuid, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.social.NoSuchRequestException { 325 return getPersistence() 326 .findByUuid_PrevAndNext(requestId, uuid, orderByComparator); 327 } 328 329 /** 330 * Returns the social request where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found. 331 * 332 * @param uuid the uuid 333 * @param groupId the group ID 334 * @return the matching social request 335 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public static com.liferay.portlet.social.model.SocialRequest findByUUID_G( 339 java.lang.String uuid, long groupId) 340 throws com.liferay.portal.kernel.exception.SystemException, 341 com.liferay.portlet.social.NoSuchRequestException { 342 return getPersistence().findByUUID_G(uuid, groupId); 343 } 344 345 /** 346 * Returns the social request where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 347 * 348 * @param uuid the uuid 349 * @param groupId the group ID 350 * @return the matching social request, or <code>null</code> if a matching social request could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G( 354 java.lang.String uuid, long groupId) 355 throws com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().fetchByUUID_G(uuid, groupId); 357 } 358 359 /** 360 * Returns the social request where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 361 * 362 * @param uuid the uuid 363 * @param groupId the group ID 364 * @param retrieveFromCache whether to use the finder cache 365 * @return the matching social request, or <code>null</code> if a matching social request could not be found 366 * @throws SystemException if a system exception occurred 367 */ 368 public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G( 369 java.lang.String uuid, long groupId, boolean retrieveFromCache) 370 throws com.liferay.portal.kernel.exception.SystemException { 371 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 372 } 373 374 /** 375 * Returns all the social requests where uuid = ? and companyId = ?. 376 * 377 * @param uuid the uuid 378 * @param companyId the company ID 379 * @return the matching social requests 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid_C( 383 java.lang.String uuid, long companyId) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByUuid_C(uuid, companyId); 386 } 387 388 /** 389 * Returns a range of all the social requests where uuid = ? and companyId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param uuid the uuid 396 * @param companyId the company ID 397 * @param start the lower bound of the range of social requests 398 * @param end the upper bound of the range of social requests (not inclusive) 399 * @return the range of matching social requests 400 * @throws SystemException if a system exception occurred 401 */ 402 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid_C( 403 java.lang.String uuid, long companyId, int start, int end) 404 throws com.liferay.portal.kernel.exception.SystemException { 405 return getPersistence().findByUuid_C(uuid, companyId, start, end); 406 } 407 408 /** 409 * Returns an ordered range of all the social requests where uuid = ? and companyId = ?. 410 * 411 * <p> 412 * 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. 413 * </p> 414 * 415 * @param uuid the uuid 416 * @param companyId the company ID 417 * @param start the lower bound of the range of social requests 418 * @param end the upper bound of the range of social requests (not inclusive) 419 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 420 * @return the ordered range of matching social requests 421 * @throws SystemException if a system exception occurred 422 */ 423 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUuid_C( 424 java.lang.String uuid, long companyId, int start, int end, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.kernel.exception.SystemException { 427 return getPersistence() 428 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 429 } 430 431 /** 432 * Returns the first social request in the ordered set where uuid = ? and companyId = ?. 433 * 434 * @param uuid the uuid 435 * @param companyId the company ID 436 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 437 * @return the first matching social request 438 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public static com.liferay.portlet.social.model.SocialRequest findByUuid_C_First( 442 java.lang.String uuid, long companyId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.social.NoSuchRequestException { 446 return getPersistence() 447 .findByUuid_C_First(uuid, companyId, orderByComparator); 448 } 449 450 /** 451 * Returns the first social request in the ordered set where uuid = ? and companyId = ?. 452 * 453 * @param uuid the uuid 454 * @param companyId the company ID 455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 456 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public static com.liferay.portlet.social.model.SocialRequest fetchByUuid_C_First( 460 java.lang.String uuid, long companyId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException { 463 return getPersistence() 464 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 465 } 466 467 /** 468 * Returns the last social request in the ordered set where uuid = ? and companyId = ?. 469 * 470 * @param uuid the uuid 471 * @param companyId the company ID 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the last matching social request 474 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 475 * @throws SystemException if a system exception occurred 476 */ 477 public static com.liferay.portlet.social.model.SocialRequest findByUuid_C_Last( 478 java.lang.String uuid, long companyId, 479 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 480 throws com.liferay.portal.kernel.exception.SystemException, 481 com.liferay.portlet.social.NoSuchRequestException { 482 return getPersistence() 483 .findByUuid_C_Last(uuid, companyId, orderByComparator); 484 } 485 486 /** 487 * Returns the last social request in the ordered set where uuid = ? and companyId = ?. 488 * 489 * @param uuid the uuid 490 * @param companyId the company ID 491 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 492 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 public static com.liferay.portlet.social.model.SocialRequest fetchByUuid_C_Last( 496 java.lang.String uuid, long companyId, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.kernel.exception.SystemException { 499 return getPersistence() 500 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 501 } 502 503 /** 504 * Returns the social requests before and after the current social request in the ordered set where uuid = ? and companyId = ?. 505 * 506 * @param requestId the primary key of the current social request 507 * @param uuid the uuid 508 * @param companyId the company ID 509 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 510 * @return the previous, current, and next social request 511 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 512 * @throws SystemException if a system exception occurred 513 */ 514 public static com.liferay.portlet.social.model.SocialRequest[] findByUuid_C_PrevAndNext( 515 long requestId, java.lang.String uuid, long companyId, 516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 517 throws com.liferay.portal.kernel.exception.SystemException, 518 com.liferay.portlet.social.NoSuchRequestException { 519 return getPersistence() 520 .findByUuid_C_PrevAndNext(requestId, uuid, companyId, 521 orderByComparator); 522 } 523 524 /** 525 * Returns all the social requests where companyId = ?. 526 * 527 * @param companyId the company ID 528 * @return the matching social requests 529 * @throws SystemException if a system exception occurred 530 */ 531 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId( 532 long companyId) 533 throws com.liferay.portal.kernel.exception.SystemException { 534 return getPersistence().findByCompanyId(companyId); 535 } 536 537 /** 538 * Returns a range of all the social requests where companyId = ?. 539 * 540 * <p> 541 * 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. 542 * </p> 543 * 544 * @param companyId the company ID 545 * @param start the lower bound of the range of social requests 546 * @param end the upper bound of the range of social requests (not inclusive) 547 * @return the range of matching social requests 548 * @throws SystemException if a system exception occurred 549 */ 550 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId( 551 long companyId, int start, int end) 552 throws com.liferay.portal.kernel.exception.SystemException { 553 return getPersistence().findByCompanyId(companyId, start, end); 554 } 555 556 /** 557 * Returns an ordered range of all the social requests where companyId = ?. 558 * 559 * <p> 560 * 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. 561 * </p> 562 * 563 * @param companyId the company ID 564 * @param start the lower bound of the range of social requests 565 * @param end the upper bound of the range of social requests (not inclusive) 566 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 567 * @return the ordered range of matching social requests 568 * @throws SystemException if a system exception occurred 569 */ 570 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByCompanyId( 571 long companyId, int start, int end, 572 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 573 throws com.liferay.portal.kernel.exception.SystemException { 574 return getPersistence() 575 .findByCompanyId(companyId, start, end, orderByComparator); 576 } 577 578 /** 579 * Returns the first social request in the ordered set where companyId = ?. 580 * 581 * @param companyId the company ID 582 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 583 * @return the first matching social request 584 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 585 * @throws SystemException if a system exception occurred 586 */ 587 public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_First( 588 long companyId, 589 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 590 throws com.liferay.portal.kernel.exception.SystemException, 591 com.liferay.portlet.social.NoSuchRequestException { 592 return getPersistence() 593 .findByCompanyId_First(companyId, orderByComparator); 594 } 595 596 /** 597 * Returns the first social request in the ordered set where companyId = ?. 598 * 599 * @param companyId the company ID 600 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 601 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 602 * @throws SystemException if a system exception occurred 603 */ 604 public static com.liferay.portlet.social.model.SocialRequest fetchByCompanyId_First( 605 long companyId, 606 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 607 throws com.liferay.portal.kernel.exception.SystemException { 608 return getPersistence() 609 .fetchByCompanyId_First(companyId, orderByComparator); 610 } 611 612 /** 613 * Returns the last social request in the ordered set where companyId = ?. 614 * 615 * @param companyId the company ID 616 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 617 * @return the last matching social request 618 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 619 * @throws SystemException if a system exception occurred 620 */ 621 public static com.liferay.portlet.social.model.SocialRequest findByCompanyId_Last( 622 long companyId, 623 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 624 throws com.liferay.portal.kernel.exception.SystemException, 625 com.liferay.portlet.social.NoSuchRequestException { 626 return getPersistence() 627 .findByCompanyId_Last(companyId, orderByComparator); 628 } 629 630 /** 631 * Returns the last social request in the ordered set where companyId = ?. 632 * 633 * @param companyId the company ID 634 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 635 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 636 * @throws SystemException if a system exception occurred 637 */ 638 public static com.liferay.portlet.social.model.SocialRequest fetchByCompanyId_Last( 639 long companyId, 640 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 641 throws com.liferay.portal.kernel.exception.SystemException { 642 return getPersistence() 643 .fetchByCompanyId_Last(companyId, orderByComparator); 644 } 645 646 /** 647 * Returns the social requests before and after the current social request in the ordered set where companyId = ?. 648 * 649 * @param requestId the primary key of the current social request 650 * @param companyId the company ID 651 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 652 * @return the previous, current, and next social request 653 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 654 * @throws SystemException if a system exception occurred 655 */ 656 public static com.liferay.portlet.social.model.SocialRequest[] findByCompanyId_PrevAndNext( 657 long requestId, long companyId, 658 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 659 throws com.liferay.portal.kernel.exception.SystemException, 660 com.liferay.portlet.social.NoSuchRequestException { 661 return getPersistence() 662 .findByCompanyId_PrevAndNext(requestId, companyId, 663 orderByComparator); 664 } 665 666 /** 667 * Returns all the social requests where userId = ?. 668 * 669 * @param userId the user ID 670 * @return the matching social requests 671 * @throws SystemException if a system exception occurred 672 */ 673 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId( 674 long userId) throws com.liferay.portal.kernel.exception.SystemException { 675 return getPersistence().findByUserId(userId); 676 } 677 678 /** 679 * Returns a range of all the social requests where userId = ?. 680 * 681 * <p> 682 * 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. 683 * </p> 684 * 685 * @param userId the user ID 686 * @param start the lower bound of the range of social requests 687 * @param end the upper bound of the range of social requests (not inclusive) 688 * @return the range of matching social requests 689 * @throws SystemException if a system exception occurred 690 */ 691 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId( 692 long userId, int start, int end) 693 throws com.liferay.portal.kernel.exception.SystemException { 694 return getPersistence().findByUserId(userId, start, end); 695 } 696 697 /** 698 * Returns an ordered range of all the social requests where userId = ?. 699 * 700 * <p> 701 * 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. 702 * </p> 703 * 704 * @param userId the user ID 705 * @param start the lower bound of the range of social requests 706 * @param end the upper bound of the range of social requests (not inclusive) 707 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 708 * @return the ordered range of matching social requests 709 * @throws SystemException if a system exception occurred 710 */ 711 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByUserId( 712 long userId, int start, int end, 713 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 714 throws com.liferay.portal.kernel.exception.SystemException { 715 return getPersistence() 716 .findByUserId(userId, start, end, orderByComparator); 717 } 718 719 /** 720 * Returns the first social request in the ordered set where userId = ?. 721 * 722 * @param userId the user ID 723 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 724 * @return the first matching social request 725 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 726 * @throws SystemException if a system exception occurred 727 */ 728 public static com.liferay.portlet.social.model.SocialRequest findByUserId_First( 729 long userId, 730 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 731 throws com.liferay.portal.kernel.exception.SystemException, 732 com.liferay.portlet.social.NoSuchRequestException { 733 return getPersistence().findByUserId_First(userId, orderByComparator); 734 } 735 736 /** 737 * Returns the first social request in the ordered set where userId = ?. 738 * 739 * @param userId the user ID 740 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 741 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 742 * @throws SystemException if a system exception occurred 743 */ 744 public static com.liferay.portlet.social.model.SocialRequest fetchByUserId_First( 745 long userId, 746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 747 throws com.liferay.portal.kernel.exception.SystemException { 748 return getPersistence().fetchByUserId_First(userId, orderByComparator); 749 } 750 751 /** 752 * Returns the last social request in the ordered set where userId = ?. 753 * 754 * @param userId the user ID 755 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 756 * @return the last matching social request 757 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 758 * @throws SystemException if a system exception occurred 759 */ 760 public static com.liferay.portlet.social.model.SocialRequest findByUserId_Last( 761 long userId, 762 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 763 throws com.liferay.portal.kernel.exception.SystemException, 764 com.liferay.portlet.social.NoSuchRequestException { 765 return getPersistence().findByUserId_Last(userId, orderByComparator); 766 } 767 768 /** 769 * Returns the last social request in the ordered set where userId = ?. 770 * 771 * @param userId the user ID 772 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 773 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 774 * @throws SystemException if a system exception occurred 775 */ 776 public static com.liferay.portlet.social.model.SocialRequest fetchByUserId_Last( 777 long userId, 778 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 779 throws com.liferay.portal.kernel.exception.SystemException { 780 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 781 } 782 783 /** 784 * Returns the social requests before and after the current social request in the ordered set where userId = ?. 785 * 786 * @param requestId the primary key of the current social request 787 * @param userId the user ID 788 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 789 * @return the previous, current, and next social request 790 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 791 * @throws SystemException if a system exception occurred 792 */ 793 public static com.liferay.portlet.social.model.SocialRequest[] findByUserId_PrevAndNext( 794 long requestId, long userId, 795 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 796 throws com.liferay.portal.kernel.exception.SystemException, 797 com.liferay.portlet.social.NoSuchRequestException { 798 return getPersistence() 799 .findByUserId_PrevAndNext(requestId, userId, 800 orderByComparator); 801 } 802 803 /** 804 * Returns all the social requests where receiverUserId = ?. 805 * 806 * @param receiverUserId the receiver user ID 807 * @return the matching social requests 808 * @throws SystemException if a system exception occurred 809 */ 810 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId( 811 long receiverUserId) 812 throws com.liferay.portal.kernel.exception.SystemException { 813 return getPersistence().findByReceiverUserId(receiverUserId); 814 } 815 816 /** 817 * Returns a range of all the social requests where receiverUserId = ?. 818 * 819 * <p> 820 * 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. 821 * </p> 822 * 823 * @param receiverUserId the receiver user ID 824 * @param start the lower bound of the range of social requests 825 * @param end the upper bound of the range of social requests (not inclusive) 826 * @return the range of matching social requests 827 * @throws SystemException if a system exception occurred 828 */ 829 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId( 830 long receiverUserId, int start, int end) 831 throws com.liferay.portal.kernel.exception.SystemException { 832 return getPersistence().findByReceiverUserId(receiverUserId, start, end); 833 } 834 835 /** 836 * Returns an ordered range of all the social requests where receiverUserId = ?. 837 * 838 * <p> 839 * 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. 840 * </p> 841 * 842 * @param receiverUserId the receiver user ID 843 * @param start the lower bound of the range of social requests 844 * @param end the upper bound of the range of social requests (not inclusive) 845 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 846 * @return the ordered range of matching social requests 847 * @throws SystemException if a system exception occurred 848 */ 849 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByReceiverUserId( 850 long receiverUserId, int start, int end, 851 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 852 throws com.liferay.portal.kernel.exception.SystemException { 853 return getPersistence() 854 .findByReceiverUserId(receiverUserId, start, end, 855 orderByComparator); 856 } 857 858 /** 859 * Returns the first social request in the ordered set where receiverUserId = ?. 860 * 861 * @param receiverUserId the receiver user ID 862 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 863 * @return the first matching social request 864 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 865 * @throws SystemException if a system exception occurred 866 */ 867 public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_First( 868 long receiverUserId, 869 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 870 throws com.liferay.portal.kernel.exception.SystemException, 871 com.liferay.portlet.social.NoSuchRequestException { 872 return getPersistence() 873 .findByReceiverUserId_First(receiverUserId, orderByComparator); 874 } 875 876 /** 877 * Returns the first social request in the ordered set where receiverUserId = ?. 878 * 879 * @param receiverUserId the receiver user ID 880 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 881 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 882 * @throws SystemException if a system exception occurred 883 */ 884 public static com.liferay.portlet.social.model.SocialRequest fetchByReceiverUserId_First( 885 long receiverUserId, 886 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 887 throws com.liferay.portal.kernel.exception.SystemException { 888 return getPersistence() 889 .fetchByReceiverUserId_First(receiverUserId, 890 orderByComparator); 891 } 892 893 /** 894 * Returns the last social request in the ordered set where receiverUserId = ?. 895 * 896 * @param receiverUserId the receiver user ID 897 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 898 * @return the last matching social request 899 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 900 * @throws SystemException if a system exception occurred 901 */ 902 public static com.liferay.portlet.social.model.SocialRequest findByReceiverUserId_Last( 903 long receiverUserId, 904 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 905 throws com.liferay.portal.kernel.exception.SystemException, 906 com.liferay.portlet.social.NoSuchRequestException { 907 return getPersistence() 908 .findByReceiverUserId_Last(receiverUserId, orderByComparator); 909 } 910 911 /** 912 * Returns the last social request in the ordered set where receiverUserId = ?. 913 * 914 * @param receiverUserId the receiver user ID 915 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 916 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 917 * @throws SystemException if a system exception occurred 918 */ 919 public static com.liferay.portlet.social.model.SocialRequest fetchByReceiverUserId_Last( 920 long receiverUserId, 921 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 922 throws com.liferay.portal.kernel.exception.SystemException { 923 return getPersistence() 924 .fetchByReceiverUserId_Last(receiverUserId, orderByComparator); 925 } 926 927 /** 928 * Returns the social requests before and after the current social request in the ordered set where receiverUserId = ?. 929 * 930 * @param requestId the primary key of the current social request 931 * @param receiverUserId the receiver user ID 932 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 933 * @return the previous, current, and next social request 934 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 935 * @throws SystemException if a system exception occurred 936 */ 937 public static com.liferay.portlet.social.model.SocialRequest[] findByReceiverUserId_PrevAndNext( 938 long requestId, long receiverUserId, 939 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 940 throws com.liferay.portal.kernel.exception.SystemException, 941 com.liferay.portlet.social.NoSuchRequestException { 942 return getPersistence() 943 .findByReceiverUserId_PrevAndNext(requestId, receiverUserId, 944 orderByComparator); 945 } 946 947 /** 948 * Returns all the social requests where userId = ? and status = ?. 949 * 950 * @param userId the user ID 951 * @param status the status 952 * @return the matching social requests 953 * @throws SystemException if a system exception occurred 954 */ 955 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S( 956 long userId, int status) 957 throws com.liferay.portal.kernel.exception.SystemException { 958 return getPersistence().findByU_S(userId, status); 959 } 960 961 /** 962 * Returns a range of all the social requests where userId = ? and status = ?. 963 * 964 * <p> 965 * 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. 966 * </p> 967 * 968 * @param userId the user ID 969 * @param status the status 970 * @param start the lower bound of the range of social requests 971 * @param end the upper bound of the range of social requests (not inclusive) 972 * @return the range of matching social requests 973 * @throws SystemException if a system exception occurred 974 */ 975 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S( 976 long userId, int status, int start, int end) 977 throws com.liferay.portal.kernel.exception.SystemException { 978 return getPersistence().findByU_S(userId, status, start, end); 979 } 980 981 /** 982 * Returns an ordered range of all the social requests where userId = ? and status = ?. 983 * 984 * <p> 985 * 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. 986 * </p> 987 * 988 * @param userId the user ID 989 * @param status the status 990 * @param start the lower bound of the range of social requests 991 * @param end the upper bound of the range of social requests (not inclusive) 992 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 993 * @return the ordered range of matching social requests 994 * @throws SystemException if a system exception occurred 995 */ 996 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_S( 997 long userId, int status, int start, int end, 998 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 999 throws com.liferay.portal.kernel.exception.SystemException { 1000 return getPersistence() 1001 .findByU_S(userId, status, start, end, orderByComparator); 1002 } 1003 1004 /** 1005 * Returns the first social request in the ordered set where userId = ? and status = ?. 1006 * 1007 * @param userId the user ID 1008 * @param status the status 1009 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1010 * @return the first matching social request 1011 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public static com.liferay.portlet.social.model.SocialRequest findByU_S_First( 1015 long userId, int status, 1016 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1017 throws com.liferay.portal.kernel.exception.SystemException, 1018 com.liferay.portlet.social.NoSuchRequestException { 1019 return getPersistence() 1020 .findByU_S_First(userId, status, orderByComparator); 1021 } 1022 1023 /** 1024 * Returns the first social request in the ordered set where userId = ? and status = ?. 1025 * 1026 * @param userId the user ID 1027 * @param status the status 1028 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1029 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 1030 * @throws SystemException if a system exception occurred 1031 */ 1032 public static com.liferay.portlet.social.model.SocialRequest fetchByU_S_First( 1033 long userId, int status, 1034 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1035 throws com.liferay.portal.kernel.exception.SystemException { 1036 return getPersistence() 1037 .fetchByU_S_First(userId, status, orderByComparator); 1038 } 1039 1040 /** 1041 * Returns the last social request in the ordered set where userId = ? and status = ?. 1042 * 1043 * @param userId the user ID 1044 * @param status the status 1045 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1046 * @return the last matching social request 1047 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1048 * @throws SystemException if a system exception occurred 1049 */ 1050 public static com.liferay.portlet.social.model.SocialRequest findByU_S_Last( 1051 long userId, int status, 1052 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1053 throws com.liferay.portal.kernel.exception.SystemException, 1054 com.liferay.portlet.social.NoSuchRequestException { 1055 return getPersistence().findByU_S_Last(userId, status, orderByComparator); 1056 } 1057 1058 /** 1059 * Returns the last social request in the ordered set where userId = ? and status = ?. 1060 * 1061 * @param userId the user ID 1062 * @param status the status 1063 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1064 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 1065 * @throws SystemException if a system exception occurred 1066 */ 1067 public static com.liferay.portlet.social.model.SocialRequest fetchByU_S_Last( 1068 long userId, int status, 1069 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1070 throws com.liferay.portal.kernel.exception.SystemException { 1071 return getPersistence() 1072 .fetchByU_S_Last(userId, status, orderByComparator); 1073 } 1074 1075 /** 1076 * Returns the social requests before and after the current social request in the ordered set where userId = ? and status = ?. 1077 * 1078 * @param requestId the primary key of the current social request 1079 * @param userId the user ID 1080 * @param status the status 1081 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1082 * @return the previous, current, and next social request 1083 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 1084 * @throws SystemException if a system exception occurred 1085 */ 1086 public static com.liferay.portlet.social.model.SocialRequest[] findByU_S_PrevAndNext( 1087 long requestId, long userId, int status, 1088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1089 throws com.liferay.portal.kernel.exception.SystemException, 1090 com.liferay.portlet.social.NoSuchRequestException { 1091 return getPersistence() 1092 .findByU_S_PrevAndNext(requestId, userId, status, 1093 orderByComparator); 1094 } 1095 1096 /** 1097 * Returns all the social requests where receiverUserId = ? and status = ?. 1098 * 1099 * @param receiverUserId the receiver user ID 1100 * @param status the status 1101 * @return the matching social requests 1102 * @throws SystemException if a system exception occurred 1103 */ 1104 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S( 1105 long receiverUserId, int status) 1106 throws com.liferay.portal.kernel.exception.SystemException { 1107 return getPersistence().findByR_S(receiverUserId, status); 1108 } 1109 1110 /** 1111 * Returns a range of all the social requests where receiverUserId = ? and status = ?. 1112 * 1113 * <p> 1114 * 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. 1115 * </p> 1116 * 1117 * @param receiverUserId the receiver user ID 1118 * @param status the status 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 matching social requests 1122 * @throws SystemException if a system exception occurred 1123 */ 1124 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S( 1125 long receiverUserId, int status, int start, int end) 1126 throws com.liferay.portal.kernel.exception.SystemException { 1127 return getPersistence().findByR_S(receiverUserId, status, start, end); 1128 } 1129 1130 /** 1131 * Returns an ordered range of all the social requests where receiverUserId = ? and status = ?. 1132 * 1133 * <p> 1134 * 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. 1135 * </p> 1136 * 1137 * @param receiverUserId the receiver user ID 1138 * @param status the status 1139 * @param start the lower bound of the range of social requests 1140 * @param end the upper bound of the range of social requests (not inclusive) 1141 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1142 * @return the ordered range of matching social requests 1143 * @throws SystemException if a system exception occurred 1144 */ 1145 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByR_S( 1146 long receiverUserId, int status, int start, int end, 1147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1148 throws com.liferay.portal.kernel.exception.SystemException { 1149 return getPersistence() 1150 .findByR_S(receiverUserId, status, start, end, 1151 orderByComparator); 1152 } 1153 1154 /** 1155 * Returns the first social request in the ordered set where receiverUserId = ? and status = ?. 1156 * 1157 * @param receiverUserId the receiver user ID 1158 * @param status the status 1159 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1160 * @return the first matching social request 1161 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1162 * @throws SystemException if a system exception occurred 1163 */ 1164 public static com.liferay.portlet.social.model.SocialRequest findByR_S_First( 1165 long receiverUserId, int status, 1166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1167 throws com.liferay.portal.kernel.exception.SystemException, 1168 com.liferay.portlet.social.NoSuchRequestException { 1169 return getPersistence() 1170 .findByR_S_First(receiverUserId, status, orderByComparator); 1171 } 1172 1173 /** 1174 * Returns the first social request in the ordered set where receiverUserId = ? and status = ?. 1175 * 1176 * @param receiverUserId the receiver user ID 1177 * @param status the status 1178 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1179 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 1180 * @throws SystemException if a system exception occurred 1181 */ 1182 public static com.liferay.portlet.social.model.SocialRequest fetchByR_S_First( 1183 long receiverUserId, int status, 1184 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1185 throws com.liferay.portal.kernel.exception.SystemException { 1186 return getPersistence() 1187 .fetchByR_S_First(receiverUserId, status, orderByComparator); 1188 } 1189 1190 /** 1191 * Returns the last social request in the ordered set where receiverUserId = ? and status = ?. 1192 * 1193 * @param receiverUserId the receiver user ID 1194 * @param status the status 1195 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1196 * @return the last matching social request 1197 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1198 * @throws SystemException if a system exception occurred 1199 */ 1200 public static com.liferay.portlet.social.model.SocialRequest findByR_S_Last( 1201 long receiverUserId, int status, 1202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1203 throws com.liferay.portal.kernel.exception.SystemException, 1204 com.liferay.portlet.social.NoSuchRequestException { 1205 return getPersistence() 1206 .findByR_S_Last(receiverUserId, status, orderByComparator); 1207 } 1208 1209 /** 1210 * Returns the last social request in the ordered set where receiverUserId = ? and status = ?. 1211 * 1212 * @param receiverUserId the receiver user ID 1213 * @param status the status 1214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1215 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 1216 * @throws SystemException if a system exception occurred 1217 */ 1218 public static com.liferay.portlet.social.model.SocialRequest fetchByR_S_Last( 1219 long receiverUserId, int status, 1220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1221 throws com.liferay.portal.kernel.exception.SystemException { 1222 return getPersistence() 1223 .fetchByR_S_Last(receiverUserId, status, orderByComparator); 1224 } 1225 1226 /** 1227 * Returns the social requests before and after the current social request in the ordered set where receiverUserId = ? and status = ?. 1228 * 1229 * @param requestId the primary key of the current social request 1230 * @param receiverUserId the receiver user ID 1231 * @param status the status 1232 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1233 * @return the previous, current, and next social request 1234 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 1235 * @throws SystemException if a system exception occurred 1236 */ 1237 public static com.liferay.portlet.social.model.SocialRequest[] findByR_S_PrevAndNext( 1238 long requestId, long receiverUserId, int status, 1239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1240 throws com.liferay.portal.kernel.exception.SystemException, 1241 com.liferay.portlet.social.NoSuchRequestException { 1242 return getPersistence() 1243 .findByR_S_PrevAndNext(requestId, receiverUserId, status, 1244 orderByComparator); 1245 } 1246 1247 /** 1248 * 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. 1249 * 1250 * @param userId the user ID 1251 * @param classNameId the class name ID 1252 * @param classPK the class p k 1253 * @param type the type 1254 * @param receiverUserId the receiver user ID 1255 * @return the matching social request 1256 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1257 * @throws SystemException if a system exception occurred 1258 */ 1259 public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_R( 1260 long userId, long classNameId, long classPK, int type, 1261 long receiverUserId) 1262 throws com.liferay.portal.kernel.exception.SystemException, 1263 com.liferay.portlet.social.NoSuchRequestException { 1264 return getPersistence() 1265 .findByU_C_C_T_R(userId, classNameId, classPK, type, 1266 receiverUserId); 1267 } 1268 1269 /** 1270 * 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. 1271 * 1272 * @param userId the user ID 1273 * @param classNameId the class name ID 1274 * @param classPK the class p k 1275 * @param type the type 1276 * @param receiverUserId the receiver user ID 1277 * @return the matching social request, or <code>null</code> if a matching social request could not be found 1278 * @throws SystemException if a system exception occurred 1279 */ 1280 public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R( 1281 long userId, long classNameId, long classPK, int type, 1282 long receiverUserId) 1283 throws com.liferay.portal.kernel.exception.SystemException { 1284 return getPersistence() 1285 .fetchByU_C_C_T_R(userId, classNameId, classPK, type, 1286 receiverUserId); 1287 } 1288 1289 /** 1290 * 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. 1291 * 1292 * @param userId the user ID 1293 * @param classNameId the class name ID 1294 * @param classPK the class p k 1295 * @param type the type 1296 * @param receiverUserId the receiver user ID 1297 * @param retrieveFromCache whether to use the finder cache 1298 * @return the matching social request, or <code>null</code> if a matching social request could not be found 1299 * @throws SystemException if a system exception occurred 1300 */ 1301 public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R( 1302 long userId, long classNameId, long classPK, int type, 1303 long receiverUserId, boolean retrieveFromCache) 1304 throws com.liferay.portal.kernel.exception.SystemException { 1305 return getPersistence() 1306 .fetchByU_C_C_T_R(userId, classNameId, classPK, type, 1307 receiverUserId, retrieveFromCache); 1308 } 1309 1310 /** 1311 * Returns all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1312 * 1313 * @param userId the user ID 1314 * @param classNameId the class name ID 1315 * @param classPK the class p k 1316 * @param type the type 1317 * @param status the status 1318 * @return the matching social requests 1319 * @throws SystemException if a system exception occurred 1320 */ 1321 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 1322 long userId, long classNameId, long classPK, int type, int status) 1323 throws com.liferay.portal.kernel.exception.SystemException { 1324 return getPersistence() 1325 .findByU_C_C_T_S(userId, classNameId, classPK, type, status); 1326 } 1327 1328 /** 1329 * Returns a range of all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1330 * 1331 * <p> 1332 * 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. 1333 * </p> 1334 * 1335 * @param userId the user ID 1336 * @param classNameId the class name ID 1337 * @param classPK the class p k 1338 * @param type the type 1339 * @param status the status 1340 * @param start the lower bound of the range of social requests 1341 * @param end the upper bound of the range of social requests (not inclusive) 1342 * @return the range of matching social requests 1343 * @throws SystemException if a system exception occurred 1344 */ 1345 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 1346 long userId, long classNameId, long classPK, int type, int status, 1347 int start, int end) 1348 throws com.liferay.portal.kernel.exception.SystemException { 1349 return getPersistence() 1350 .findByU_C_C_T_S(userId, classNameId, classPK, type, status, 1351 start, end); 1352 } 1353 1354 /** 1355 * Returns an ordered range of all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1356 * 1357 * <p> 1358 * 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. 1359 * </p> 1360 * 1361 * @param userId the user ID 1362 * @param classNameId the class name ID 1363 * @param classPK the class p k 1364 * @param type the type 1365 * @param status the status 1366 * @param start the lower bound of the range of social requests 1367 * @param end the upper bound of the range of social requests (not inclusive) 1368 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1369 * @return the ordered range of matching social requests 1370 * @throws SystemException if a system exception occurred 1371 */ 1372 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 1373 long userId, long classNameId, long classPK, int type, int status, 1374 int start, int end, 1375 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1376 throws com.liferay.portal.kernel.exception.SystemException { 1377 return getPersistence() 1378 .findByU_C_C_T_S(userId, classNameId, classPK, type, status, 1379 start, end, orderByComparator); 1380 } 1381 1382 /** 1383 * Returns the first social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1384 * 1385 * @param userId the user ID 1386 * @param classNameId the class name ID 1387 * @param classPK the class p k 1388 * @param type the type 1389 * @param status the status 1390 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1391 * @return the first matching social request 1392 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1393 * @throws SystemException if a system exception occurred 1394 */ 1395 public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First( 1396 long userId, long classNameId, long classPK, int type, int status, 1397 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1398 throws com.liferay.portal.kernel.exception.SystemException, 1399 com.liferay.portlet.social.NoSuchRequestException { 1400 return getPersistence() 1401 .findByU_C_C_T_S_First(userId, classNameId, classPK, type, 1402 status, orderByComparator); 1403 } 1404 1405 /** 1406 * Returns the first social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1407 * 1408 * @param userId the user ID 1409 * @param classNameId the class name ID 1410 * @param classPK the class p k 1411 * @param type the type 1412 * @param status the status 1413 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1414 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 1415 * @throws SystemException if a system exception occurred 1416 */ 1417 public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_S_First( 1418 long userId, long classNameId, long classPK, int type, int status, 1419 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1420 throws com.liferay.portal.kernel.exception.SystemException { 1421 return getPersistence() 1422 .fetchByU_C_C_T_S_First(userId, classNameId, classPK, type, 1423 status, orderByComparator); 1424 } 1425 1426 /** 1427 * Returns the last social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1428 * 1429 * @param userId the user ID 1430 * @param classNameId the class name ID 1431 * @param classPK the class p k 1432 * @param type the type 1433 * @param status the status 1434 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1435 * @return the last matching social request 1436 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1437 * @throws SystemException if a system exception occurred 1438 */ 1439 public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last( 1440 long userId, long classNameId, long classPK, int type, int status, 1441 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1442 throws com.liferay.portal.kernel.exception.SystemException, 1443 com.liferay.portlet.social.NoSuchRequestException { 1444 return getPersistence() 1445 .findByU_C_C_T_S_Last(userId, classNameId, classPK, type, 1446 status, orderByComparator); 1447 } 1448 1449 /** 1450 * Returns the last social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1451 * 1452 * @param userId the user ID 1453 * @param classNameId the class name ID 1454 * @param classPK the class p k 1455 * @param type the type 1456 * @param status the status 1457 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1458 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 1459 * @throws SystemException if a system exception occurred 1460 */ 1461 public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_S_Last( 1462 long userId, long classNameId, long classPK, int type, int status, 1463 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1464 throws com.liferay.portal.kernel.exception.SystemException { 1465 return getPersistence() 1466 .fetchByU_C_C_T_S_Last(userId, classNameId, classPK, type, 1467 status, orderByComparator); 1468 } 1469 1470 /** 1471 * 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 = ?. 1472 * 1473 * @param requestId the primary key of the current social request 1474 * @param userId the user ID 1475 * @param classNameId the class name ID 1476 * @param classPK the class p k 1477 * @param type the type 1478 * @param status the status 1479 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1480 * @return the previous, current, and next social request 1481 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 1482 * @throws SystemException if a system exception occurred 1483 */ 1484 public static com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext( 1485 long requestId, long userId, long classNameId, long classPK, int type, 1486 int status, 1487 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1488 throws com.liferay.portal.kernel.exception.SystemException, 1489 com.liferay.portlet.social.NoSuchRequestException { 1490 return getPersistence() 1491 .findByU_C_C_T_S_PrevAndNext(requestId, userId, classNameId, 1492 classPK, type, status, orderByComparator); 1493 } 1494 1495 /** 1496 * Returns all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1497 * 1498 * @param classNameId the class name ID 1499 * @param classPK the class p k 1500 * @param type the type 1501 * @param receiverUserId the receiver user ID 1502 * @param status the status 1503 * @return the matching social requests 1504 * @throws SystemException if a system exception occurred 1505 */ 1506 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 1507 long classNameId, long classPK, int type, long receiverUserId, 1508 int status) throws com.liferay.portal.kernel.exception.SystemException { 1509 return getPersistence() 1510 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId, 1511 status); 1512 } 1513 1514 /** 1515 * Returns a range of all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1516 * 1517 * <p> 1518 * 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. 1519 * </p> 1520 * 1521 * @param classNameId the class name ID 1522 * @param classPK the class p k 1523 * @param type the type 1524 * @param receiverUserId the receiver user ID 1525 * @param status the status 1526 * @param start the lower bound of the range of social requests 1527 * @param end the upper bound of the range of social requests (not inclusive) 1528 * @return the range of matching social requests 1529 * @throws SystemException if a system exception occurred 1530 */ 1531 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 1532 long classNameId, long classPK, int type, long receiverUserId, 1533 int status, int start, int end) 1534 throws com.liferay.portal.kernel.exception.SystemException { 1535 return getPersistence() 1536 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId, 1537 status, start, end); 1538 } 1539 1540 /** 1541 * Returns an ordered range of all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1542 * 1543 * <p> 1544 * 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. 1545 * </p> 1546 * 1547 * @param classNameId the class name ID 1548 * @param classPK the class p k 1549 * @param type the type 1550 * @param receiverUserId the receiver user ID 1551 * @param status the status 1552 * @param start the lower bound of the range of social requests 1553 * @param end the upper bound of the range of social requests (not inclusive) 1554 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1555 * @return the ordered range of matching social requests 1556 * @throws SystemException if a system exception occurred 1557 */ 1558 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 1559 long classNameId, long classPK, int type, long receiverUserId, 1560 int status, int start, int end, 1561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1562 throws com.liferay.portal.kernel.exception.SystemException { 1563 return getPersistence() 1564 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId, 1565 status, start, end, orderByComparator); 1566 } 1567 1568 /** 1569 * Returns the first social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1570 * 1571 * @param classNameId the class name ID 1572 * @param classPK the class p k 1573 * @param type the type 1574 * @param receiverUserId the receiver user ID 1575 * @param status the status 1576 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1577 * @return the first matching social request 1578 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1579 * @throws SystemException if a system exception occurred 1580 */ 1581 public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First( 1582 long classNameId, long classPK, int type, long receiverUserId, 1583 int status, 1584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1585 throws com.liferay.portal.kernel.exception.SystemException, 1586 com.liferay.portlet.social.NoSuchRequestException { 1587 return getPersistence() 1588 .findByC_C_T_R_S_First(classNameId, classPK, type, 1589 receiverUserId, status, orderByComparator); 1590 } 1591 1592 /** 1593 * Returns the first social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1594 * 1595 * @param classNameId the class name ID 1596 * @param classPK the class p k 1597 * @param type the type 1598 * @param receiverUserId the receiver user ID 1599 * @param status the status 1600 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1601 * @return the first matching social request, or <code>null</code> if a matching social request could not be found 1602 * @throws SystemException if a system exception occurred 1603 */ 1604 public static com.liferay.portlet.social.model.SocialRequest fetchByC_C_T_R_S_First( 1605 long classNameId, long classPK, int type, long receiverUserId, 1606 int status, 1607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1608 throws com.liferay.portal.kernel.exception.SystemException { 1609 return getPersistence() 1610 .fetchByC_C_T_R_S_First(classNameId, classPK, type, 1611 receiverUserId, status, orderByComparator); 1612 } 1613 1614 /** 1615 * Returns the last social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1616 * 1617 * @param classNameId the class name ID 1618 * @param classPK the class p k 1619 * @param type the type 1620 * @param receiverUserId the receiver user ID 1621 * @param status the status 1622 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1623 * @return the last matching social request 1624 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1625 * @throws SystemException if a system exception occurred 1626 */ 1627 public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last( 1628 long classNameId, long classPK, int type, long receiverUserId, 1629 int status, 1630 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1631 throws com.liferay.portal.kernel.exception.SystemException, 1632 com.liferay.portlet.social.NoSuchRequestException { 1633 return getPersistence() 1634 .findByC_C_T_R_S_Last(classNameId, classPK, type, 1635 receiverUserId, status, orderByComparator); 1636 } 1637 1638 /** 1639 * Returns the last social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1640 * 1641 * @param classNameId the class name ID 1642 * @param classPK the class p k 1643 * @param type the type 1644 * @param receiverUserId the receiver user ID 1645 * @param status the status 1646 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1647 * @return the last matching social request, or <code>null</code> if a matching social request could not be found 1648 * @throws SystemException if a system exception occurred 1649 */ 1650 public static com.liferay.portlet.social.model.SocialRequest fetchByC_C_T_R_S_Last( 1651 long classNameId, long classPK, int type, long receiverUserId, 1652 int status, 1653 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1654 throws com.liferay.portal.kernel.exception.SystemException { 1655 return getPersistence() 1656 .fetchByC_C_T_R_S_Last(classNameId, classPK, type, 1657 receiverUserId, status, orderByComparator); 1658 } 1659 1660 /** 1661 * 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 = ?. 1662 * 1663 * @param requestId the primary key of the current social request 1664 * @param classNameId the class name ID 1665 * @param classPK the class p k 1666 * @param type the type 1667 * @param receiverUserId the receiver user ID 1668 * @param status the status 1669 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1670 * @return the previous, current, and next social request 1671 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 1672 * @throws SystemException if a system exception occurred 1673 */ 1674 public static com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext( 1675 long requestId, long classNameId, long classPK, int type, 1676 long receiverUserId, int status, 1677 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1678 throws com.liferay.portal.kernel.exception.SystemException, 1679 com.liferay.portlet.social.NoSuchRequestException { 1680 return getPersistence() 1681 .findByC_C_T_R_S_PrevAndNext(requestId, classNameId, 1682 classPK, type, receiverUserId, status, orderByComparator); 1683 } 1684 1685 /** 1686 * Returns all the social requests. 1687 * 1688 * @return the social requests 1689 * @throws SystemException if a system exception occurred 1690 */ 1691 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll() 1692 throws com.liferay.portal.kernel.exception.SystemException { 1693 return getPersistence().findAll(); 1694 } 1695 1696 /** 1697 * Returns a range of all the social requests. 1698 * 1699 * <p> 1700 * 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. 1701 * </p> 1702 * 1703 * @param start the lower bound of the range of social requests 1704 * @param end the upper bound of the range of social requests (not inclusive) 1705 * @return the range of social requests 1706 * @throws SystemException if a system exception occurred 1707 */ 1708 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll( 1709 int start, int end) 1710 throws com.liferay.portal.kernel.exception.SystemException { 1711 return getPersistence().findAll(start, end); 1712 } 1713 1714 /** 1715 * Returns an ordered range of all the social requests. 1716 * 1717 * <p> 1718 * 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. 1719 * </p> 1720 * 1721 * @param start the lower bound of the range of social requests 1722 * @param end the upper bound of the range of social requests (not inclusive) 1723 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1724 * @return the ordered range of social requests 1725 * @throws SystemException if a system exception occurred 1726 */ 1727 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll( 1728 int start, int end, 1729 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1730 throws com.liferay.portal.kernel.exception.SystemException { 1731 return getPersistence().findAll(start, end, orderByComparator); 1732 } 1733 1734 /** 1735 * Removes all the social requests where uuid = ? from the database. 1736 * 1737 * @param uuid the uuid 1738 * @throws SystemException if a system exception occurred 1739 */ 1740 public static void removeByUuid(java.lang.String uuid) 1741 throws com.liferay.portal.kernel.exception.SystemException { 1742 getPersistence().removeByUuid(uuid); 1743 } 1744 1745 /** 1746 * Removes the social request where uuid = ? and groupId = ? from the database. 1747 * 1748 * @param uuid the uuid 1749 * @param groupId the group ID 1750 * @return the social request that was removed 1751 * @throws SystemException if a system exception occurred 1752 */ 1753 public static com.liferay.portlet.social.model.SocialRequest removeByUUID_G( 1754 java.lang.String uuid, long groupId) 1755 throws com.liferay.portal.kernel.exception.SystemException, 1756 com.liferay.portlet.social.NoSuchRequestException { 1757 return getPersistence().removeByUUID_G(uuid, groupId); 1758 } 1759 1760 /** 1761 * Removes all the social requests where uuid = ? and companyId = ? from the database. 1762 * 1763 * @param uuid the uuid 1764 * @param companyId the company ID 1765 * @throws SystemException if a system exception occurred 1766 */ 1767 public static void removeByUuid_C(java.lang.String uuid, long companyId) 1768 throws com.liferay.portal.kernel.exception.SystemException { 1769 getPersistence().removeByUuid_C(uuid, companyId); 1770 } 1771 1772 /** 1773 * Removes all the social requests where companyId = ? from the database. 1774 * 1775 * @param companyId the company ID 1776 * @throws SystemException if a system exception occurred 1777 */ 1778 public static void removeByCompanyId(long companyId) 1779 throws com.liferay.portal.kernel.exception.SystemException { 1780 getPersistence().removeByCompanyId(companyId); 1781 } 1782 1783 /** 1784 * Removes all the social requests where userId = ? from the database. 1785 * 1786 * @param userId the user ID 1787 * @throws SystemException if a system exception occurred 1788 */ 1789 public static void removeByUserId(long userId) 1790 throws com.liferay.portal.kernel.exception.SystemException { 1791 getPersistence().removeByUserId(userId); 1792 } 1793 1794 /** 1795 * Removes all the social requests where receiverUserId = ? from the database. 1796 * 1797 * @param receiverUserId the receiver user ID 1798 * @throws SystemException if a system exception occurred 1799 */ 1800 public static void removeByReceiverUserId(long receiverUserId) 1801 throws com.liferay.portal.kernel.exception.SystemException { 1802 getPersistence().removeByReceiverUserId(receiverUserId); 1803 } 1804 1805 /** 1806 * Removes all the social requests where userId = ? and status = ? from the database. 1807 * 1808 * @param userId the user ID 1809 * @param status the status 1810 * @throws SystemException if a system exception occurred 1811 */ 1812 public static void removeByU_S(long userId, int status) 1813 throws com.liferay.portal.kernel.exception.SystemException { 1814 getPersistence().removeByU_S(userId, status); 1815 } 1816 1817 /** 1818 * Removes all the social requests where receiverUserId = ? and status = ? from the database. 1819 * 1820 * @param receiverUserId the receiver user ID 1821 * @param status the status 1822 * @throws SystemException if a system exception occurred 1823 */ 1824 public static void removeByR_S(long receiverUserId, int status) 1825 throws com.liferay.portal.kernel.exception.SystemException { 1826 getPersistence().removeByR_S(receiverUserId, status); 1827 } 1828 1829 /** 1830 * Removes the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. 1831 * 1832 * @param userId the user ID 1833 * @param classNameId the class name ID 1834 * @param classPK the class p k 1835 * @param type the type 1836 * @param receiverUserId the receiver user ID 1837 * @return the social request that was removed 1838 * @throws SystemException if a system exception occurred 1839 */ 1840 public static com.liferay.portlet.social.model.SocialRequest removeByU_C_C_T_R( 1841 long userId, long classNameId, long classPK, int type, 1842 long receiverUserId) 1843 throws com.liferay.portal.kernel.exception.SystemException, 1844 com.liferay.portlet.social.NoSuchRequestException { 1845 return getPersistence() 1846 .removeByU_C_C_T_R(userId, classNameId, classPK, type, 1847 receiverUserId); 1848 } 1849 1850 /** 1851 * Removes all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ? from the database. 1852 * 1853 * @param userId the user ID 1854 * @param classNameId the class name ID 1855 * @param classPK the class p k 1856 * @param type the type 1857 * @param status the status 1858 * @throws SystemException if a system exception occurred 1859 */ 1860 public static void removeByU_C_C_T_S(long userId, long classNameId, 1861 long classPK, int type, int status) 1862 throws com.liferay.portal.kernel.exception.SystemException { 1863 getPersistence() 1864 .removeByU_C_C_T_S(userId, classNameId, classPK, type, status); 1865 } 1866 1867 /** 1868 * Removes all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ? from the database. 1869 * 1870 * @param classNameId the class name ID 1871 * @param classPK the class p k 1872 * @param type the type 1873 * @param receiverUserId the receiver user ID 1874 * @param status the status 1875 * @throws SystemException if a system exception occurred 1876 */ 1877 public static void removeByC_C_T_R_S(long classNameId, long classPK, 1878 int type, long receiverUserId, int status) 1879 throws com.liferay.portal.kernel.exception.SystemException { 1880 getPersistence() 1881 .removeByC_C_T_R_S(classNameId, classPK, type, receiverUserId, 1882 status); 1883 } 1884 1885 /** 1886 * Removes all the social requests from the database. 1887 * 1888 * @throws SystemException if a system exception occurred 1889 */ 1890 public static void removeAll() 1891 throws com.liferay.portal.kernel.exception.SystemException { 1892 getPersistence().removeAll(); 1893 } 1894 1895 /** 1896 * Returns the number of social requests where uuid = ?. 1897 * 1898 * @param uuid the uuid 1899 * @return the number of matching social requests 1900 * @throws SystemException if a system exception occurred 1901 */ 1902 public static int countByUuid(java.lang.String uuid) 1903 throws com.liferay.portal.kernel.exception.SystemException { 1904 return getPersistence().countByUuid(uuid); 1905 } 1906 1907 /** 1908 * Returns the number of social requests where uuid = ? and groupId = ?. 1909 * 1910 * @param uuid the uuid 1911 * @param groupId the group ID 1912 * @return the number of matching social requests 1913 * @throws SystemException if a system exception occurred 1914 */ 1915 public static int countByUUID_G(java.lang.String uuid, long groupId) 1916 throws com.liferay.portal.kernel.exception.SystemException { 1917 return getPersistence().countByUUID_G(uuid, groupId); 1918 } 1919 1920 /** 1921 * Returns the number of social requests where uuid = ? and companyId = ?. 1922 * 1923 * @param uuid the uuid 1924 * @param companyId the company ID 1925 * @return the number of matching social requests 1926 * @throws SystemException if a system exception occurred 1927 */ 1928 public static int countByUuid_C(java.lang.String uuid, long companyId) 1929 throws com.liferay.portal.kernel.exception.SystemException { 1930 return getPersistence().countByUuid_C(uuid, companyId); 1931 } 1932 1933 /** 1934 * Returns the number of social requests where companyId = ?. 1935 * 1936 * @param companyId the company ID 1937 * @return the number of matching social requests 1938 * @throws SystemException if a system exception occurred 1939 */ 1940 public static int countByCompanyId(long companyId) 1941 throws com.liferay.portal.kernel.exception.SystemException { 1942 return getPersistence().countByCompanyId(companyId); 1943 } 1944 1945 /** 1946 * Returns the number of social requests where userId = ?. 1947 * 1948 * @param userId the user ID 1949 * @return the number of matching social requests 1950 * @throws SystemException if a system exception occurred 1951 */ 1952 public static int countByUserId(long userId) 1953 throws com.liferay.portal.kernel.exception.SystemException { 1954 return getPersistence().countByUserId(userId); 1955 } 1956 1957 /** 1958 * Returns the number of social requests where receiverUserId = ?. 1959 * 1960 * @param receiverUserId the receiver user ID 1961 * @return the number of matching social requests 1962 * @throws SystemException if a system exception occurred 1963 */ 1964 public static int countByReceiverUserId(long receiverUserId) 1965 throws com.liferay.portal.kernel.exception.SystemException { 1966 return getPersistence().countByReceiverUserId(receiverUserId); 1967 } 1968 1969 /** 1970 * Returns the number of social requests where userId = ? and status = ?. 1971 * 1972 * @param userId the user ID 1973 * @param status the status 1974 * @return the number of matching social requests 1975 * @throws SystemException if a system exception occurred 1976 */ 1977 public static int countByU_S(long userId, int status) 1978 throws com.liferay.portal.kernel.exception.SystemException { 1979 return getPersistence().countByU_S(userId, status); 1980 } 1981 1982 /** 1983 * Returns the number of social requests where receiverUserId = ? and status = ?. 1984 * 1985 * @param receiverUserId the receiver user ID 1986 * @param status the status 1987 * @return the number of matching social requests 1988 * @throws SystemException if a system exception occurred 1989 */ 1990 public static int countByR_S(long receiverUserId, int status) 1991 throws com.liferay.portal.kernel.exception.SystemException { 1992 return getPersistence().countByR_S(receiverUserId, status); 1993 } 1994 1995 /** 1996 * Returns the number of social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1997 * 1998 * @param userId the user ID 1999 * @param classNameId the class name ID 2000 * @param classPK the class p k 2001 * @param type the type 2002 * @param receiverUserId the receiver user ID 2003 * @return the number of matching social requests 2004 * @throws SystemException if a system exception occurred 2005 */ 2006 public static int countByU_C_C_T_R(long userId, long classNameId, 2007 long classPK, int type, long receiverUserId) 2008 throws com.liferay.portal.kernel.exception.SystemException { 2009 return getPersistence() 2010 .countByU_C_C_T_R(userId, classNameId, classPK, type, 2011 receiverUserId); 2012 } 2013 2014 /** 2015 * Returns the number of social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 2016 * 2017 * @param userId the user ID 2018 * @param classNameId the class name ID 2019 * @param classPK the class p k 2020 * @param type the type 2021 * @param status the status 2022 * @return the number of matching social requests 2023 * @throws SystemException if a system exception occurred 2024 */ 2025 public static int countByU_C_C_T_S(long userId, long classNameId, 2026 long classPK, int type, int status) 2027 throws com.liferay.portal.kernel.exception.SystemException { 2028 return getPersistence() 2029 .countByU_C_C_T_S(userId, classNameId, classPK, type, status); 2030 } 2031 2032 /** 2033 * Returns the number of social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 2034 * 2035 * @param classNameId the class name ID 2036 * @param classPK the class p k 2037 * @param type the type 2038 * @param receiverUserId the receiver user ID 2039 * @param status the status 2040 * @return the number of matching social requests 2041 * @throws SystemException if a system exception occurred 2042 */ 2043 public static int countByC_C_T_R_S(long classNameId, long classPK, 2044 int type, long receiverUserId, int status) 2045 throws com.liferay.portal.kernel.exception.SystemException { 2046 return getPersistence() 2047 .countByC_C_T_R_S(classNameId, classPK, type, 2048 receiverUserId, status); 2049 } 2050 2051 /** 2052 * Returns the number of social requests. 2053 * 2054 * @return the number of social requests 2055 * @throws SystemException if a system exception occurred 2056 */ 2057 public static int countAll() 2058 throws com.liferay.portal.kernel.exception.SystemException { 2059 return getPersistence().countAll(); 2060 } 2061 2062 public static SocialRequestPersistence getPersistence() { 2063 if (_persistence == null) { 2064 _persistence = (SocialRequestPersistence)PortalBeanLocatorUtil.locate(SocialRequestPersistence.class.getName()); 2065 2066 ReferenceRegistry.registerReference(SocialRequestUtil.class, 2067 "_persistence"); 2068 } 2069 2070 return _persistence; 2071 } 2072 2073 /** 2074 * @deprecated 2075 */ 2076 public void setPersistence(SocialRequestPersistence persistence) { 2077 } 2078 2079 private static SocialRequestPersistence _persistence; 2080 }