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