001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.social.model.SocialRequest; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the social request service. This utility wraps {@link SocialRequestPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see SocialRequestPersistence 037 * @see SocialRequestPersistenceImpl 038 * @generated 039 */ 040 public class SocialRequestUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(SocialRequest socialRequest) { 058 getPersistence().clearCache(socialRequest); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<SocialRequest> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<SocialRequest> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<SocialRequest> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, 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 * <p> 251 * 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. 252 * </p> 253 * 254 * @param uuid the uuid 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the first matching social request 257 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public static com.liferay.portlet.social.model.SocialRequest findByUuid_First( 261 java.lang.String uuid, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.kernel.exception.SystemException, 264 com.liferay.portlet.social.NoSuchRequestException { 265 return getPersistence().findByUuid_First(uuid, orderByComparator); 266 } 267 268 /** 269 * Returns the last social request in the ordered set where uuid = ?. 270 * 271 * <p> 272 * 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. 273 * </p> 274 * 275 * @param uuid the uuid 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the last matching social request 278 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public static com.liferay.portlet.social.model.SocialRequest findByUuid_Last( 282 java.lang.String uuid, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.social.NoSuchRequestException { 286 return getPersistence().findByUuid_Last(uuid, orderByComparator); 287 } 288 289 /** 290 * Returns the social requests before and after the current social request in the ordered set where uuid = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param requestId the primary key of the current social request 297 * @param uuid the uuid 298 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 299 * @return the previous, current, and next social request 300 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.social.model.SocialRequest[] findByUuid_PrevAndNext( 304 long requestId, java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException, 307 com.liferay.portlet.social.NoSuchRequestException { 308 return getPersistence() 309 .findByUuid_PrevAndNext(requestId, uuid, orderByComparator); 310 } 311 312 /** 313 * Returns the social request where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.social.NoSuchRequestException} if it could not be found. 314 * 315 * @param uuid the uuid 316 * @param groupId the group ID 317 * @return the matching social request 318 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.social.model.SocialRequest findByUUID_G( 322 java.lang.String uuid, long groupId) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.social.NoSuchRequestException { 325 return getPersistence().findByUUID_G(uuid, groupId); 326 } 327 328 /** 329 * Returns the social request where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 330 * 331 * @param uuid the uuid 332 * @param groupId the group ID 333 * @return the matching social request, or <code>null</code> if a matching social request could not be found 334 * @throws SystemException if a system exception occurred 335 */ 336 public static com.liferay.portlet.social.model.SocialRequest fetchByUUID_G( 337 java.lang.String uuid, long groupId) 338 throws com.liferay.portal.kernel.exception.SystemException { 339 return getPersistence().fetchByUUID_G(uuid, groupId); 340 } 341 342 /** 343 * Returns the social request where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 344 * 345 * @param uuid the uuid 346 * @param groupId the group ID 347 * @param retrieveFromCache whether to use the finder cache 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 * Returns all the social requests where companyId = ?. 359 * 360 * @param companyId the company ID 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 * Returns 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 378 * @param start the lower bound of the range of social requests 379 * @param end the upper bound of the range of social requests (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 * Returns 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 397 * @param start the lower bound of the range of social requests 398 * @param end the upper bound of the range of social requests (not inclusive) 399 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 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 * Returns 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 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 441 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 464 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns all the social requests where userId = ?. 481 * 482 * @param userId the user ID 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 * Returns 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 499 * @param start the lower bound of the range of social requests 500 * @param end the upper bound of the range of social requests (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 * Returns 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 518 * @param start the lower bound of the range of social requests 519 * @param end the upper bound of the range of social requests (not inclusive) 520 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 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 * Returns 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 540 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 561 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 583 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns all the social requests where receiverUserId = ?. 600 * 601 * @param receiverUserId the receiver user ID 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 * Returns 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 619 * @param start the lower bound of the range of social requests 620 * @param end the upper bound of the range of social requests (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 * Returns 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 638 * @param start the lower bound of the range of social requests 639 * @param end the upper bound of the range of social requests (not inclusive) 640 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 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 * Returns 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 661 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 683 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 706 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns all the social requests where userId = ? and status = ?. 723 * 724 * @param userId the user ID 725 * @param status the status 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 * Returns 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 743 * @param status the status 744 * @param start the lower bound of the range of social requests 745 * @param end the upper bound of the range of social requests (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 * Returns 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 763 * @param status the status 764 * @param start the lower bound of the range of social requests 765 * @param end the upper bound of the range of social requests (not inclusive) 766 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 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 * Returns 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 786 * @param status the status 787 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 809 * @param status the status 810 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 832 * @param status the status 833 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns all the social requests where receiverUserId = ? and status = ?. 850 * 851 * @param receiverUserId the receiver user ID 852 * @param status the status 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 * Returns 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 870 * @param status the status 871 * @param start the lower bound of the range of social requests 872 * @param end the upper bound of the range of social requests (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 * Returns 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 890 * @param status the status 891 * @param start the lower bound of the range of social requests 892 * @param end the upper bound of the range of social requests (not inclusive) 893 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 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 * Returns 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 914 * @param status the status 915 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 937 * @param status the status 938 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * Returns 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 961 * @param status the status 962 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 * 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. 979 * 980 * @param userId the user ID 981 * @param classNameId the class name ID 982 * @param classPK the class p k 983 * @param type the type 984 * @param receiverUserId the receiver user ID 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 * 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. 1001 * 1002 * @param userId the user ID 1003 * @param classNameId the class name ID 1004 * @param classPK the class p k 1005 * @param type the type 1006 * @param receiverUserId the receiver user ID 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 * 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. 1021 * 1022 * @param userId the user ID 1023 * @param classNameId the class name ID 1024 * @param classPK the class p k 1025 * @param type the type 1026 * @param receiverUserId the receiver user ID 1027 * @param retrieveFromCache whether to use the finder cache 1028 * @return the matching social request, or <code>null</code> if a matching social request could not be found 1029 * @throws SystemException if a system exception occurred 1030 */ 1031 public static com.liferay.portlet.social.model.SocialRequest fetchByU_C_C_T_R( 1032 long userId, long classNameId, long classPK, int type, 1033 long receiverUserId, boolean retrieveFromCache) 1034 throws com.liferay.portal.kernel.exception.SystemException { 1035 return getPersistence() 1036 .fetchByU_C_C_T_R(userId, classNameId, classPK, type, 1037 receiverUserId, retrieveFromCache); 1038 } 1039 1040 /** 1041 * Returns all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1042 * 1043 * @param userId the user ID 1044 * @param classNameId the class name ID 1045 * @param classPK the class p k 1046 * @param type the type 1047 * @param status the status 1048 * @return the matching social requests 1049 * @throws SystemException if a system exception occurred 1050 */ 1051 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 1052 long userId, long classNameId, long classPK, int type, int status) 1053 throws com.liferay.portal.kernel.exception.SystemException { 1054 return getPersistence() 1055 .findByU_C_C_T_S(userId, classNameId, classPK, type, status); 1056 } 1057 1058 /** 1059 * Returns a range of all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1060 * 1061 * <p> 1062 * 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. 1063 * </p> 1064 * 1065 * @param userId the user ID 1066 * @param classNameId the class name ID 1067 * @param classPK the class p k 1068 * @param type the type 1069 * @param status the status 1070 * @param start the lower bound of the range of social requests 1071 * @param end the upper bound of the range of social requests (not inclusive) 1072 * @return the range of matching social requests 1073 * @throws SystemException if a system exception occurred 1074 */ 1075 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 1076 long userId, long classNameId, long classPK, int type, int status, 1077 int start, int end) 1078 throws com.liferay.portal.kernel.exception.SystemException { 1079 return getPersistence() 1080 .findByU_C_C_T_S(userId, classNameId, classPK, type, status, 1081 start, end); 1082 } 1083 1084 /** 1085 * Returns an ordered range of all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1086 * 1087 * <p> 1088 * 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. 1089 * </p> 1090 * 1091 * @param userId the user ID 1092 * @param classNameId the class name ID 1093 * @param classPK the class p k 1094 * @param type the type 1095 * @param status the status 1096 * @param start the lower bound of the range of social requests 1097 * @param end the upper bound of the range of social requests (not inclusive) 1098 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1099 * @return the ordered range of matching social requests 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByU_C_C_T_S( 1103 long userId, long classNameId, long classPK, int type, int status, 1104 int start, int end, 1105 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1106 throws com.liferay.portal.kernel.exception.SystemException { 1107 return getPersistence() 1108 .findByU_C_C_T_S(userId, classNameId, classPK, type, status, 1109 start, end, orderByComparator); 1110 } 1111 1112 /** 1113 * Returns the first social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1114 * 1115 * <p> 1116 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 1117 * </p> 1118 * 1119 * @param userId the user ID 1120 * @param classNameId the class name ID 1121 * @param classPK the class p k 1122 * @param type the type 1123 * @param status the status 1124 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1125 * @return the first matching social request 1126 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1127 * @throws SystemException if a system exception occurred 1128 */ 1129 public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_First( 1130 long userId, long classNameId, long classPK, int type, int status, 1131 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1132 throws com.liferay.portal.kernel.exception.SystemException, 1133 com.liferay.portlet.social.NoSuchRequestException { 1134 return getPersistence() 1135 .findByU_C_C_T_S_First(userId, classNameId, classPK, type, 1136 status, orderByComparator); 1137 } 1138 1139 /** 1140 * Returns the last social request in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1141 * 1142 * <p> 1143 * 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. 1144 * </p> 1145 * 1146 * @param userId the user ID 1147 * @param classNameId the class name ID 1148 * @param classPK the class p k 1149 * @param type the type 1150 * @param status the status 1151 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1152 * @return the last matching social request 1153 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1154 * @throws SystemException if a system exception occurred 1155 */ 1156 public static com.liferay.portlet.social.model.SocialRequest findByU_C_C_T_S_Last( 1157 long userId, long classNameId, long classPK, int type, int status, 1158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1159 throws com.liferay.portal.kernel.exception.SystemException, 1160 com.liferay.portlet.social.NoSuchRequestException { 1161 return getPersistence() 1162 .findByU_C_C_T_S_Last(userId, classNameId, classPK, type, 1163 status, orderByComparator); 1164 } 1165 1166 /** 1167 * 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 = ?. 1168 * 1169 * <p> 1170 * 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. 1171 * </p> 1172 * 1173 * @param requestId the primary key of the current social request 1174 * @param userId the user ID 1175 * @param classNameId the class name ID 1176 * @param classPK the class p k 1177 * @param type the type 1178 * @param status the status 1179 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1180 * @return the previous, current, and next social request 1181 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 1182 * @throws SystemException if a system exception occurred 1183 */ 1184 public static com.liferay.portlet.social.model.SocialRequest[] findByU_C_C_T_S_PrevAndNext( 1185 long requestId, long userId, long classNameId, long classPK, int type, 1186 int status, 1187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1188 throws com.liferay.portal.kernel.exception.SystemException, 1189 com.liferay.portlet.social.NoSuchRequestException { 1190 return getPersistence() 1191 .findByU_C_C_T_S_PrevAndNext(requestId, userId, classNameId, 1192 classPK, type, status, orderByComparator); 1193 } 1194 1195 /** 1196 * Returns all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1197 * 1198 * @param classNameId the class name ID 1199 * @param classPK the class p k 1200 * @param type the type 1201 * @param receiverUserId the receiver user ID 1202 * @param status the status 1203 * @return the matching social requests 1204 * @throws SystemException if a system exception occurred 1205 */ 1206 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 1207 long classNameId, long classPK, int type, long receiverUserId, 1208 int status) throws com.liferay.portal.kernel.exception.SystemException { 1209 return getPersistence() 1210 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId, 1211 status); 1212 } 1213 1214 /** 1215 * Returns a range of all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1216 * 1217 * <p> 1218 * 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. 1219 * </p> 1220 * 1221 * @param classNameId the class name ID 1222 * @param classPK the class p k 1223 * @param type the type 1224 * @param receiverUserId the receiver user ID 1225 * @param status the status 1226 * @param start the lower bound of the range of social requests 1227 * @param end the upper bound of the range of social requests (not inclusive) 1228 * @return the range of matching social requests 1229 * @throws SystemException if a system exception occurred 1230 */ 1231 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 1232 long classNameId, long classPK, int type, long receiverUserId, 1233 int status, int start, int end) 1234 throws com.liferay.portal.kernel.exception.SystemException { 1235 return getPersistence() 1236 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId, 1237 status, start, end); 1238 } 1239 1240 /** 1241 * Returns an ordered range of all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1242 * 1243 * <p> 1244 * 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. 1245 * </p> 1246 * 1247 * @param classNameId the class name ID 1248 * @param classPK the class p k 1249 * @param type the type 1250 * @param receiverUserId the receiver user ID 1251 * @param status the status 1252 * @param start the lower bound of the range of social requests 1253 * @param end the upper bound of the range of social requests (not inclusive) 1254 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1255 * @return the ordered range of matching social requests 1256 * @throws SystemException if a system exception occurred 1257 */ 1258 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findByC_C_T_R_S( 1259 long classNameId, long classPK, int type, long receiverUserId, 1260 int status, int start, int end, 1261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1262 throws com.liferay.portal.kernel.exception.SystemException { 1263 return getPersistence() 1264 .findByC_C_T_R_S(classNameId, classPK, type, receiverUserId, 1265 status, start, end, orderByComparator); 1266 } 1267 1268 /** 1269 * Returns the first social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1270 * 1271 * <p> 1272 * 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. 1273 * </p> 1274 * 1275 * @param classNameId the class name ID 1276 * @param classPK the class p k 1277 * @param type the type 1278 * @param receiverUserId the receiver user ID 1279 * @param status the status 1280 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1281 * @return the first matching social request 1282 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1283 * @throws SystemException if a system exception occurred 1284 */ 1285 public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_First( 1286 long classNameId, long classPK, int type, long receiverUserId, 1287 int status, 1288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1289 throws com.liferay.portal.kernel.exception.SystemException, 1290 com.liferay.portlet.social.NoSuchRequestException { 1291 return getPersistence() 1292 .findByC_C_T_R_S_First(classNameId, classPK, type, 1293 receiverUserId, status, orderByComparator); 1294 } 1295 1296 /** 1297 * Returns the last social request in the ordered set where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1298 * 1299 * <p> 1300 * 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. 1301 * </p> 1302 * 1303 * @param classNameId the class name ID 1304 * @param classPK the class p k 1305 * @param type the type 1306 * @param receiverUserId the receiver user ID 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 1310 * @throws com.liferay.portlet.social.NoSuchRequestException if a matching social request could not be found 1311 * @throws SystemException if a system exception occurred 1312 */ 1313 public static com.liferay.portlet.social.model.SocialRequest findByC_C_T_R_S_Last( 1314 long classNameId, long classPK, int type, long receiverUserId, 1315 int status, 1316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1317 throws com.liferay.portal.kernel.exception.SystemException, 1318 com.liferay.portlet.social.NoSuchRequestException { 1319 return getPersistence() 1320 .findByC_C_T_R_S_Last(classNameId, classPK, type, 1321 receiverUserId, status, orderByComparator); 1322 } 1323 1324 /** 1325 * 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 = ?. 1326 * 1327 * <p> 1328 * 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. 1329 * </p> 1330 * 1331 * @param requestId the primary key of the current social request 1332 * @param classNameId the class name ID 1333 * @param classPK the class p k 1334 * @param type the type 1335 * @param receiverUserId the receiver user ID 1336 * @param status the status 1337 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1338 * @return the previous, current, and next social request 1339 * @throws com.liferay.portlet.social.NoSuchRequestException if a social request with the primary key could not be found 1340 * @throws SystemException if a system exception occurred 1341 */ 1342 public static com.liferay.portlet.social.model.SocialRequest[] findByC_C_T_R_S_PrevAndNext( 1343 long requestId, long classNameId, long classPK, int type, 1344 long receiverUserId, int status, 1345 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1346 throws com.liferay.portal.kernel.exception.SystemException, 1347 com.liferay.portlet.social.NoSuchRequestException { 1348 return getPersistence() 1349 .findByC_C_T_R_S_PrevAndNext(requestId, classNameId, 1350 classPK, type, receiverUserId, status, orderByComparator); 1351 } 1352 1353 /** 1354 * Returns all the social requests. 1355 * 1356 * @return the social requests 1357 * @throws SystemException if a system exception occurred 1358 */ 1359 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll() 1360 throws com.liferay.portal.kernel.exception.SystemException { 1361 return getPersistence().findAll(); 1362 } 1363 1364 /** 1365 * Returns a range of all the social requests. 1366 * 1367 * <p> 1368 * 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. 1369 * </p> 1370 * 1371 * @param start the lower bound of the range of social requests 1372 * @param end the upper bound of the range of social requests (not inclusive) 1373 * @return the range of social requests 1374 * @throws SystemException if a system exception occurred 1375 */ 1376 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll( 1377 int start, int end) 1378 throws com.liferay.portal.kernel.exception.SystemException { 1379 return getPersistence().findAll(start, end); 1380 } 1381 1382 /** 1383 * Returns an ordered range of all the social requests. 1384 * 1385 * <p> 1386 * 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. 1387 * </p> 1388 * 1389 * @param start the lower bound of the range of social requests 1390 * @param end the upper bound of the range of social requests (not inclusive) 1391 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1392 * @return the ordered range of social requests 1393 * @throws SystemException if a system exception occurred 1394 */ 1395 public static java.util.List<com.liferay.portlet.social.model.SocialRequest> findAll( 1396 int start, int end, 1397 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1398 throws com.liferay.portal.kernel.exception.SystemException { 1399 return getPersistence().findAll(start, end, orderByComparator); 1400 } 1401 1402 /** 1403 * Removes all the social requests where uuid = ? from the database. 1404 * 1405 * @param uuid the uuid 1406 * @throws SystemException if a system exception occurred 1407 */ 1408 public static void removeByUuid(java.lang.String uuid) 1409 throws com.liferay.portal.kernel.exception.SystemException { 1410 getPersistence().removeByUuid(uuid); 1411 } 1412 1413 /** 1414 * Removes the social request where uuid = ? and groupId = ? from the database. 1415 * 1416 * @param uuid the uuid 1417 * @param groupId the group ID 1418 * @throws SystemException if a system exception occurred 1419 */ 1420 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1421 throws com.liferay.portal.kernel.exception.SystemException, 1422 com.liferay.portlet.social.NoSuchRequestException { 1423 getPersistence().removeByUUID_G(uuid, groupId); 1424 } 1425 1426 /** 1427 * Removes all the social requests where companyId = ? from the database. 1428 * 1429 * @param companyId the company ID 1430 * @throws SystemException if a system exception occurred 1431 */ 1432 public static void removeByCompanyId(long companyId) 1433 throws com.liferay.portal.kernel.exception.SystemException { 1434 getPersistence().removeByCompanyId(companyId); 1435 } 1436 1437 /** 1438 * Removes all the social requests where userId = ? from the database. 1439 * 1440 * @param userId the user ID 1441 * @throws SystemException if a system exception occurred 1442 */ 1443 public static void removeByUserId(long userId) 1444 throws com.liferay.portal.kernel.exception.SystemException { 1445 getPersistence().removeByUserId(userId); 1446 } 1447 1448 /** 1449 * Removes all the social requests where receiverUserId = ? from the database. 1450 * 1451 * @param receiverUserId the receiver user ID 1452 * @throws SystemException if a system exception occurred 1453 */ 1454 public static void removeByReceiverUserId(long receiverUserId) 1455 throws com.liferay.portal.kernel.exception.SystemException { 1456 getPersistence().removeByReceiverUserId(receiverUserId); 1457 } 1458 1459 /** 1460 * Removes all the social requests where userId = ? and status = ? from the database. 1461 * 1462 * @param userId the user ID 1463 * @param status the status 1464 * @throws SystemException if a system exception occurred 1465 */ 1466 public static void removeByU_S(long userId, int status) 1467 throws com.liferay.portal.kernel.exception.SystemException { 1468 getPersistence().removeByU_S(userId, status); 1469 } 1470 1471 /** 1472 * Removes all the social requests where receiverUserId = ? and status = ? from the database. 1473 * 1474 * @param receiverUserId the receiver user ID 1475 * @param status the status 1476 * @throws SystemException if a system exception occurred 1477 */ 1478 public static void removeByR_S(long receiverUserId, int status) 1479 throws com.liferay.portal.kernel.exception.SystemException { 1480 getPersistence().removeByR_S(receiverUserId, status); 1481 } 1482 1483 /** 1484 * Removes the social request where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. 1485 * 1486 * @param userId the user ID 1487 * @param classNameId the class name ID 1488 * @param classPK the class p k 1489 * @param type the type 1490 * @param receiverUserId the receiver user ID 1491 * @throws SystemException if a system exception occurred 1492 */ 1493 public static void removeByU_C_C_T_R(long userId, long classNameId, 1494 long classPK, int type, long receiverUserId) 1495 throws com.liferay.portal.kernel.exception.SystemException, 1496 com.liferay.portlet.social.NoSuchRequestException { 1497 getPersistence() 1498 .removeByU_C_C_T_R(userId, classNameId, classPK, type, 1499 receiverUserId); 1500 } 1501 1502 /** 1503 * Removes all the social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ? from the database. 1504 * 1505 * @param userId the user ID 1506 * @param classNameId the class name ID 1507 * @param classPK the class p k 1508 * @param type the type 1509 * @param status the status 1510 * @throws SystemException if a system exception occurred 1511 */ 1512 public static void removeByU_C_C_T_S(long userId, long classNameId, 1513 long classPK, int type, int status) 1514 throws com.liferay.portal.kernel.exception.SystemException { 1515 getPersistence() 1516 .removeByU_C_C_T_S(userId, classNameId, classPK, type, status); 1517 } 1518 1519 /** 1520 * Removes all the social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ? from the database. 1521 * 1522 * @param classNameId the class name ID 1523 * @param classPK the class p k 1524 * @param type the type 1525 * @param receiverUserId the receiver user ID 1526 * @param status the status 1527 * @throws SystemException if a system exception occurred 1528 */ 1529 public static void removeByC_C_T_R_S(long classNameId, long classPK, 1530 int type, long receiverUserId, int status) 1531 throws com.liferay.portal.kernel.exception.SystemException { 1532 getPersistence() 1533 .removeByC_C_T_R_S(classNameId, classPK, type, receiverUserId, 1534 status); 1535 } 1536 1537 /** 1538 * Removes all the social requests from the database. 1539 * 1540 * @throws SystemException if a system exception occurred 1541 */ 1542 public static void removeAll() 1543 throws com.liferay.portal.kernel.exception.SystemException { 1544 getPersistence().removeAll(); 1545 } 1546 1547 /** 1548 * Returns the number of social requests where uuid = ?. 1549 * 1550 * @param uuid the uuid 1551 * @return the number of matching social requests 1552 * @throws SystemException if a system exception occurred 1553 */ 1554 public static int countByUuid(java.lang.String uuid) 1555 throws com.liferay.portal.kernel.exception.SystemException { 1556 return getPersistence().countByUuid(uuid); 1557 } 1558 1559 /** 1560 * Returns the number of social requests where uuid = ? and groupId = ?. 1561 * 1562 * @param uuid the uuid 1563 * @param groupId the group ID 1564 * @return the number of matching social requests 1565 * @throws SystemException if a system exception occurred 1566 */ 1567 public static int countByUUID_G(java.lang.String uuid, long groupId) 1568 throws com.liferay.portal.kernel.exception.SystemException { 1569 return getPersistence().countByUUID_G(uuid, groupId); 1570 } 1571 1572 /** 1573 * Returns the number of social requests where companyId = ?. 1574 * 1575 * @param companyId the company ID 1576 * @return the number of matching social requests 1577 * @throws SystemException if a system exception occurred 1578 */ 1579 public static int countByCompanyId(long companyId) 1580 throws com.liferay.portal.kernel.exception.SystemException { 1581 return getPersistence().countByCompanyId(companyId); 1582 } 1583 1584 /** 1585 * Returns the number of social requests where userId = ?. 1586 * 1587 * @param userId the user ID 1588 * @return the number of matching social requests 1589 * @throws SystemException if a system exception occurred 1590 */ 1591 public static int countByUserId(long userId) 1592 throws com.liferay.portal.kernel.exception.SystemException { 1593 return getPersistence().countByUserId(userId); 1594 } 1595 1596 /** 1597 * Returns the number of social requests where receiverUserId = ?. 1598 * 1599 * @param receiverUserId the receiver user ID 1600 * @return the number of matching social requests 1601 * @throws SystemException if a system exception occurred 1602 */ 1603 public static int countByReceiverUserId(long receiverUserId) 1604 throws com.liferay.portal.kernel.exception.SystemException { 1605 return getPersistence().countByReceiverUserId(receiverUserId); 1606 } 1607 1608 /** 1609 * Returns the number of social requests where userId = ? and status = ?. 1610 * 1611 * @param userId the user ID 1612 * @param status the status 1613 * @return the number of matching social requests 1614 * @throws SystemException if a system exception occurred 1615 */ 1616 public static int countByU_S(long userId, int status) 1617 throws com.liferay.portal.kernel.exception.SystemException { 1618 return getPersistence().countByU_S(userId, status); 1619 } 1620 1621 /** 1622 * Returns the number of social requests where receiverUserId = ? and status = ?. 1623 * 1624 * @param receiverUserId the receiver user ID 1625 * @param status the status 1626 * @return the number of matching social requests 1627 * @throws SystemException if a system exception occurred 1628 */ 1629 public static int countByR_S(long receiverUserId, int status) 1630 throws com.liferay.portal.kernel.exception.SystemException { 1631 return getPersistence().countByR_S(receiverUserId, status); 1632 } 1633 1634 /** 1635 * Returns the number of social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1636 * 1637 * @param userId the user ID 1638 * @param classNameId the class name ID 1639 * @param classPK the class p k 1640 * @param type the type 1641 * @param receiverUserId the receiver user ID 1642 * @return the number of matching social requests 1643 * @throws SystemException if a system exception occurred 1644 */ 1645 public static int countByU_C_C_T_R(long userId, long classNameId, 1646 long classPK, int type, long receiverUserId) 1647 throws com.liferay.portal.kernel.exception.SystemException { 1648 return getPersistence() 1649 .countByU_C_C_T_R(userId, classNameId, classPK, type, 1650 receiverUserId); 1651 } 1652 1653 /** 1654 * Returns the number of social requests where userId = ? and classNameId = ? and classPK = ? and type = ? and status = ?. 1655 * 1656 * @param userId the user ID 1657 * @param classNameId the class name ID 1658 * @param classPK the class p k 1659 * @param type the type 1660 * @param status the status 1661 * @return the number of matching social requests 1662 * @throws SystemException if a system exception occurred 1663 */ 1664 public static int countByU_C_C_T_S(long userId, long classNameId, 1665 long classPK, int type, int status) 1666 throws com.liferay.portal.kernel.exception.SystemException { 1667 return getPersistence() 1668 .countByU_C_C_T_S(userId, classNameId, classPK, type, status); 1669 } 1670 1671 /** 1672 * Returns the number of social requests where classNameId = ? and classPK = ? and type = ? and receiverUserId = ? and status = ?. 1673 * 1674 * @param classNameId the class name ID 1675 * @param classPK the class p k 1676 * @param type the type 1677 * @param receiverUserId the receiver user ID 1678 * @param status the status 1679 * @return the number of matching social requests 1680 * @throws SystemException if a system exception occurred 1681 */ 1682 public static int countByC_C_T_R_S(long classNameId, long classPK, 1683 int type, long receiverUserId, int status) 1684 throws com.liferay.portal.kernel.exception.SystemException { 1685 return getPersistence() 1686 .countByC_C_T_R_S(classNameId, classPK, type, 1687 receiverUserId, status); 1688 } 1689 1690 /** 1691 * Returns the number of social requests. 1692 * 1693 * @return the number of social requests 1694 * @throws SystemException if a system exception occurred 1695 */ 1696 public static int countAll() 1697 throws com.liferay.portal.kernel.exception.SystemException { 1698 return getPersistence().countAll(); 1699 } 1700 1701 public static SocialRequestPersistence getPersistence() { 1702 if (_persistence == null) { 1703 _persistence = (SocialRequestPersistence)PortalBeanLocatorUtil.locate(SocialRequestPersistence.class.getName()); 1704 1705 ReferenceRegistry.registerReference(SocialRequestUtil.class, 1706 "_persistence"); 1707 } 1708 1709 return _persistence; 1710 } 1711 1712 public void setPersistence(SocialRequestPersistence persistence) { 1713 _persistence = persistence; 1714 1715 ReferenceRegistry.registerReference(SocialRequestUtil.class, 1716 "_persistence"); 1717 } 1718 1719 private static SocialRequestPersistence _persistence; 1720 }