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