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