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