001 /** 002 * Copyright (c) 2000-present 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.portal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.model.MembershipRequest; 020 021 /** 022 * The persistence interface for the membership request service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see com.liferay.portal.service.persistence.impl.MembershipRequestPersistenceImpl 030 * @see MembershipRequestUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface MembershipRequestPersistence extends BasePersistence<MembershipRequest> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link MembershipRequestUtil} to access the membership request persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the membership requests where groupId = ?. 043 * 044 * @param groupId the group ID 045 * @return the matching membership requests 046 */ 047 public java.util.List<MembershipRequest> findByGroupId(long groupId); 048 049 /** 050 * Returns a range of all the membership requests where groupId = ?. 051 * 052 * <p> 053 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 054 * </p> 055 * 056 * @param groupId the group ID 057 * @param start the lower bound of the range of membership requests 058 * @param end the upper bound of the range of membership requests (not inclusive) 059 * @return the range of matching membership requests 060 */ 061 public java.util.List<MembershipRequest> findByGroupId(long groupId, 062 int start, int end); 063 064 /** 065 * Returns an ordered range of all the membership requests where groupId = ?. 066 * 067 * <p> 068 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 069 * </p> 070 * 071 * @param groupId the group ID 072 * @param start the lower bound of the range of membership requests 073 * @param end the upper bound of the range of membership requests (not inclusive) 074 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 075 * @return the ordered range of matching membership requests 076 */ 077 public java.util.List<MembershipRequest> findByGroupId(long groupId, 078 int start, int end, 079 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 080 081 /** 082 * Returns the first membership request in the ordered set where groupId = ?. 083 * 084 * @param groupId the group ID 085 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 086 * @return the first matching membership request 087 * @throws NoSuchMembershipRequestException if a matching membership request could not be found 088 */ 089 public MembershipRequest findByGroupId_First(long groupId, 090 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 091 throws com.liferay.portal.NoSuchMembershipRequestException; 092 093 /** 094 * Returns the first membership request in the ordered set where groupId = ?. 095 * 096 * @param groupId the group ID 097 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 098 * @return the first matching membership request, or <code>null</code> if a matching membership request could not be found 099 */ 100 public MembershipRequest fetchByGroupId_First(long groupId, 101 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 102 103 /** 104 * Returns the last membership request in the ordered set where groupId = ?. 105 * 106 * @param groupId the group ID 107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 108 * @return the last matching membership request 109 * @throws NoSuchMembershipRequestException if a matching membership request could not be found 110 */ 111 public MembershipRequest findByGroupId_Last(long groupId, 112 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 113 throws com.liferay.portal.NoSuchMembershipRequestException; 114 115 /** 116 * Returns the last membership request in the ordered set where groupId = ?. 117 * 118 * @param groupId the group ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching membership request, or <code>null</code> if a matching membership request could not be found 121 */ 122 public MembershipRequest fetchByGroupId_Last(long groupId, 123 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 124 125 /** 126 * Returns the membership requests before and after the current membership request in the ordered set where groupId = ?. 127 * 128 * @param membershipRequestId the primary key of the current membership request 129 * @param groupId the group ID 130 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 131 * @return the previous, current, and next membership request 132 * @throws NoSuchMembershipRequestException if a membership request with the primary key could not be found 133 */ 134 public MembershipRequest[] findByGroupId_PrevAndNext( 135 long membershipRequestId, long groupId, 136 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 137 throws com.liferay.portal.NoSuchMembershipRequestException; 138 139 /** 140 * Removes all the membership requests where groupId = ? from the database. 141 * 142 * @param groupId the group ID 143 */ 144 public void removeByGroupId(long groupId); 145 146 /** 147 * Returns the number of membership requests where groupId = ?. 148 * 149 * @param groupId the group ID 150 * @return the number of matching membership requests 151 */ 152 public int countByGroupId(long groupId); 153 154 /** 155 * Returns all the membership requests where userId = ?. 156 * 157 * @param userId the user ID 158 * @return the matching membership requests 159 */ 160 public java.util.List<MembershipRequest> findByUserId(long userId); 161 162 /** 163 * Returns a range of all the membership requests where userId = ?. 164 * 165 * <p> 166 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 167 * </p> 168 * 169 * @param userId the user ID 170 * @param start the lower bound of the range of membership requests 171 * @param end the upper bound of the range of membership requests (not inclusive) 172 * @return the range of matching membership requests 173 */ 174 public java.util.List<MembershipRequest> findByUserId(long userId, 175 int start, int end); 176 177 /** 178 * Returns an ordered range of all the membership requests where userId = ?. 179 * 180 * <p> 181 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 182 * </p> 183 * 184 * @param userId the user ID 185 * @param start the lower bound of the range of membership requests 186 * @param end the upper bound of the range of membership requests (not inclusive) 187 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 188 * @return the ordered range of matching membership requests 189 */ 190 public java.util.List<MembershipRequest> findByUserId(long userId, 191 int start, int end, 192 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 193 194 /** 195 * Returns the first membership request in the ordered set where userId = ?. 196 * 197 * @param userId the user ID 198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 199 * @return the first matching membership request 200 * @throws NoSuchMembershipRequestException if a matching membership request could not be found 201 */ 202 public MembershipRequest findByUserId_First(long userId, 203 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 204 throws com.liferay.portal.NoSuchMembershipRequestException; 205 206 /** 207 * Returns the first membership request in the ordered set where userId = ?. 208 * 209 * @param userId the user ID 210 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 211 * @return the first matching membership request, or <code>null</code> if a matching membership request could not be found 212 */ 213 public MembershipRequest fetchByUserId_First(long userId, 214 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 215 216 /** 217 * Returns the last membership request in the ordered set where userId = ?. 218 * 219 * @param userId the user ID 220 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 221 * @return the last matching membership request 222 * @throws NoSuchMembershipRequestException if a matching membership request could not be found 223 */ 224 public MembershipRequest findByUserId_Last(long userId, 225 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 226 throws com.liferay.portal.NoSuchMembershipRequestException; 227 228 /** 229 * Returns the last membership request in the ordered set where userId = ?. 230 * 231 * @param userId the user ID 232 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 233 * @return the last matching membership request, or <code>null</code> if a matching membership request could not be found 234 */ 235 public MembershipRequest fetchByUserId_Last(long userId, 236 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 237 238 /** 239 * Returns the membership requests before and after the current membership request in the ordered set where userId = ?. 240 * 241 * @param membershipRequestId the primary key of the current membership request 242 * @param userId the user ID 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the previous, current, and next membership request 245 * @throws NoSuchMembershipRequestException if a membership request with the primary key could not be found 246 */ 247 public MembershipRequest[] findByUserId_PrevAndNext( 248 long membershipRequestId, long userId, 249 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 250 throws com.liferay.portal.NoSuchMembershipRequestException; 251 252 /** 253 * Removes all the membership requests where userId = ? from the database. 254 * 255 * @param userId the user ID 256 */ 257 public void removeByUserId(long userId); 258 259 /** 260 * Returns the number of membership requests where userId = ?. 261 * 262 * @param userId the user ID 263 * @return the number of matching membership requests 264 */ 265 public int countByUserId(long userId); 266 267 /** 268 * Returns all the membership requests where groupId = ? and statusId = ?. 269 * 270 * @param groupId the group ID 271 * @param statusId the status ID 272 * @return the matching membership requests 273 */ 274 public java.util.List<MembershipRequest> findByG_S(long groupId, 275 long statusId); 276 277 /** 278 * Returns a range of all the membership requests where groupId = ? and statusId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 282 * </p> 283 * 284 * @param groupId the group ID 285 * @param statusId the status ID 286 * @param start the lower bound of the range of membership requests 287 * @param end the upper bound of the range of membership requests (not inclusive) 288 * @return the range of matching membership requests 289 */ 290 public java.util.List<MembershipRequest> findByG_S(long groupId, 291 long statusId, int start, int end); 292 293 /** 294 * Returns an ordered range of all the membership requests where groupId = ? and statusId = ?. 295 * 296 * <p> 297 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 298 * </p> 299 * 300 * @param groupId the group ID 301 * @param statusId the status ID 302 * @param start the lower bound of the range of membership requests 303 * @param end the upper bound of the range of membership requests (not inclusive) 304 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 305 * @return the ordered range of matching membership requests 306 */ 307 public java.util.List<MembershipRequest> findByG_S(long groupId, 308 long statusId, int start, int end, 309 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 310 311 /** 312 * Returns the first membership request in the ordered set where groupId = ? and statusId = ?. 313 * 314 * @param groupId the group ID 315 * @param statusId the status ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the first matching membership request 318 * @throws NoSuchMembershipRequestException if a matching membership request could not be found 319 */ 320 public MembershipRequest findByG_S_First(long groupId, long statusId, 321 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 322 throws com.liferay.portal.NoSuchMembershipRequestException; 323 324 /** 325 * Returns the first membership request in the ordered set where groupId = ? and statusId = ?. 326 * 327 * @param groupId the group ID 328 * @param statusId the status ID 329 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 330 * @return the first matching membership request, or <code>null</code> if a matching membership request could not be found 331 */ 332 public MembershipRequest fetchByG_S_First(long groupId, long statusId, 333 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 334 335 /** 336 * Returns the last membership request in the ordered set where groupId = ? and statusId = ?. 337 * 338 * @param groupId the group ID 339 * @param statusId the status ID 340 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 341 * @return the last matching membership request 342 * @throws NoSuchMembershipRequestException if a matching membership request could not be found 343 */ 344 public MembershipRequest findByG_S_Last(long groupId, long statusId, 345 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 346 throws com.liferay.portal.NoSuchMembershipRequestException; 347 348 /** 349 * Returns the last membership request in the ordered set where groupId = ? and statusId = ?. 350 * 351 * @param groupId the group ID 352 * @param statusId the status ID 353 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 354 * @return the last matching membership request, or <code>null</code> if a matching membership request could not be found 355 */ 356 public MembershipRequest fetchByG_S_Last(long groupId, long statusId, 357 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 358 359 /** 360 * Returns the membership requests before and after the current membership request in the ordered set where groupId = ? and statusId = ?. 361 * 362 * @param membershipRequestId the primary key of the current membership request 363 * @param groupId the group ID 364 * @param statusId the status ID 365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 366 * @return the previous, current, and next membership request 367 * @throws NoSuchMembershipRequestException if a membership request with the primary key could not be found 368 */ 369 public MembershipRequest[] findByG_S_PrevAndNext(long membershipRequestId, 370 long groupId, long statusId, 371 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 372 throws com.liferay.portal.NoSuchMembershipRequestException; 373 374 /** 375 * Removes all the membership requests where groupId = ? and statusId = ? from the database. 376 * 377 * @param groupId the group ID 378 * @param statusId the status ID 379 */ 380 public void removeByG_S(long groupId, long statusId); 381 382 /** 383 * Returns the number of membership requests where groupId = ? and statusId = ?. 384 * 385 * @param groupId the group ID 386 * @param statusId the status ID 387 * @return the number of matching membership requests 388 */ 389 public int countByG_S(long groupId, long statusId); 390 391 /** 392 * Returns all the membership requests where groupId = ? and userId = ? and statusId = ?. 393 * 394 * @param groupId the group ID 395 * @param userId the user ID 396 * @param statusId the status ID 397 * @return the matching membership requests 398 */ 399 public java.util.List<MembershipRequest> findByG_U_S(long groupId, 400 long userId, long statusId); 401 402 /** 403 * Returns a range of all the membership requests where groupId = ? and userId = ? and statusId = ?. 404 * 405 * <p> 406 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 407 * </p> 408 * 409 * @param groupId the group ID 410 * @param userId the user ID 411 * @param statusId the status ID 412 * @param start the lower bound of the range of membership requests 413 * @param end the upper bound of the range of membership requests (not inclusive) 414 * @return the range of matching membership requests 415 */ 416 public java.util.List<MembershipRequest> findByG_U_S(long groupId, 417 long userId, long statusId, int start, int end); 418 419 /** 420 * Returns an ordered range of all the membership requests where groupId = ? and userId = ? and statusId = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 424 * </p> 425 * 426 * @param groupId the group ID 427 * @param userId the user ID 428 * @param statusId the status ID 429 * @param start the lower bound of the range of membership requests 430 * @param end the upper bound of the range of membership requests (not inclusive) 431 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 432 * @return the ordered range of matching membership requests 433 */ 434 public java.util.List<MembershipRequest> findByG_U_S(long groupId, 435 long userId, long statusId, int start, int end, 436 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 437 438 /** 439 * Returns the first membership request in the ordered set where groupId = ? and userId = ? and statusId = ?. 440 * 441 * @param groupId the group ID 442 * @param userId the user ID 443 * @param statusId the status ID 444 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 445 * @return the first matching membership request 446 * @throws NoSuchMembershipRequestException if a matching membership request could not be found 447 */ 448 public MembershipRequest findByG_U_S_First(long groupId, long userId, 449 long statusId, 450 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 451 throws com.liferay.portal.NoSuchMembershipRequestException; 452 453 /** 454 * Returns the first membership request in the ordered set where groupId = ? and userId = ? and statusId = ?. 455 * 456 * @param groupId the group ID 457 * @param userId the user ID 458 * @param statusId the status ID 459 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 460 * @return the first matching membership request, or <code>null</code> if a matching membership request could not be found 461 */ 462 public MembershipRequest fetchByG_U_S_First(long groupId, long userId, 463 long statusId, 464 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 465 466 /** 467 * Returns the last membership request in the ordered set where groupId = ? and userId = ? and statusId = ?. 468 * 469 * @param groupId the group ID 470 * @param userId the user ID 471 * @param statusId the status ID 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the last matching membership request 474 * @throws NoSuchMembershipRequestException if a matching membership request could not be found 475 */ 476 public MembershipRequest findByG_U_S_Last(long groupId, long userId, 477 long statusId, 478 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 479 throws com.liferay.portal.NoSuchMembershipRequestException; 480 481 /** 482 * Returns the last membership request in the ordered set where groupId = ? and userId = ? and statusId = ?. 483 * 484 * @param groupId the group ID 485 * @param userId the user ID 486 * @param statusId the status ID 487 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 488 * @return the last matching membership request, or <code>null</code> if a matching membership request could not be found 489 */ 490 public MembershipRequest fetchByG_U_S_Last(long groupId, long userId, 491 long statusId, 492 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 493 494 /** 495 * Returns the membership requests before and after the current membership request in the ordered set where groupId = ? and userId = ? and statusId = ?. 496 * 497 * @param membershipRequestId the primary key of the current membership request 498 * @param groupId the group ID 499 * @param userId the user ID 500 * @param statusId the status ID 501 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 502 * @return the previous, current, and next membership request 503 * @throws NoSuchMembershipRequestException if a membership request with the primary key could not be found 504 */ 505 public MembershipRequest[] findByG_U_S_PrevAndNext( 506 long membershipRequestId, long groupId, long userId, long statusId, 507 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator) 508 throws com.liferay.portal.NoSuchMembershipRequestException; 509 510 /** 511 * Removes all the membership requests where groupId = ? and userId = ? and statusId = ? from the database. 512 * 513 * @param groupId the group ID 514 * @param userId the user ID 515 * @param statusId the status ID 516 */ 517 public void removeByG_U_S(long groupId, long userId, long statusId); 518 519 /** 520 * Returns the number of membership requests where groupId = ? and userId = ? and statusId = ?. 521 * 522 * @param groupId the group ID 523 * @param userId the user ID 524 * @param statusId the status ID 525 * @return the number of matching membership requests 526 */ 527 public int countByG_U_S(long groupId, long userId, long statusId); 528 529 /** 530 * Caches the membership request in the entity cache if it is enabled. 531 * 532 * @param membershipRequest the membership request 533 */ 534 public void cacheResult(MembershipRequest membershipRequest); 535 536 /** 537 * Caches the membership requests in the entity cache if it is enabled. 538 * 539 * @param membershipRequests the membership requests 540 */ 541 public void cacheResult( 542 java.util.List<MembershipRequest> membershipRequests); 543 544 /** 545 * Creates a new membership request with the primary key. Does not add the membership request to the database. 546 * 547 * @param membershipRequestId the primary key for the new membership request 548 * @return the new membership request 549 */ 550 public MembershipRequest create(long membershipRequestId); 551 552 /** 553 * Removes the membership request with the primary key from the database. Also notifies the appropriate model listeners. 554 * 555 * @param membershipRequestId the primary key of the membership request 556 * @return the membership request that was removed 557 * @throws NoSuchMembershipRequestException if a membership request with the primary key could not be found 558 */ 559 public MembershipRequest remove(long membershipRequestId) 560 throws com.liferay.portal.NoSuchMembershipRequestException; 561 562 public MembershipRequest updateImpl(MembershipRequest membershipRequest); 563 564 /** 565 * Returns the membership request with the primary key or throws a {@link NoSuchMembershipRequestException} if it could not be found. 566 * 567 * @param membershipRequestId the primary key of the membership request 568 * @return the membership request 569 * @throws NoSuchMembershipRequestException if a membership request with the primary key could not be found 570 */ 571 public MembershipRequest findByPrimaryKey(long membershipRequestId) 572 throws com.liferay.portal.NoSuchMembershipRequestException; 573 574 /** 575 * Returns the membership request with the primary key or returns <code>null</code> if it could not be found. 576 * 577 * @param membershipRequestId the primary key of the membership request 578 * @return the membership request, or <code>null</code> if a membership request with the primary key could not be found 579 */ 580 public MembershipRequest fetchByPrimaryKey(long membershipRequestId); 581 582 @Override 583 public java.util.Map<java.io.Serializable, MembershipRequest> fetchByPrimaryKeys( 584 java.util.Set<java.io.Serializable> primaryKeys); 585 586 /** 587 * Returns all the membership requests. 588 * 589 * @return the membership requests 590 */ 591 public java.util.List<MembershipRequest> findAll(); 592 593 /** 594 * Returns a range of all the membership requests. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 598 * </p> 599 * 600 * @param start the lower bound of the range of membership requests 601 * @param end the upper bound of the range of membership requests (not inclusive) 602 * @return the range of membership requests 603 */ 604 public java.util.List<MembershipRequest> findAll(int start, int end); 605 606 /** 607 * Returns an ordered range of all the membership requests. 608 * 609 * <p> 610 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MembershipRequestModelImpl}. 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. 611 * </p> 612 * 613 * @param start the lower bound of the range of membership requests 614 * @param end the upper bound of the range of membership requests (not inclusive) 615 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 616 * @return the ordered range of membership requests 617 */ 618 public java.util.List<MembershipRequest> findAll(int start, int end, 619 com.liferay.portal.kernel.util.OrderByComparator<MembershipRequest> orderByComparator); 620 621 /** 622 * Removes all the membership requests from the database. 623 */ 624 public void removeAll(); 625 626 /** 627 * Returns the number of membership requests. 628 * 629 * @return the number of membership requests 630 */ 631 public int countAll(); 632 }