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