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