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