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