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