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