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