001 /** 002 * Copyright (c) 2000-2010 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.model.MembershipRequest; 018 019 /** 020 * The persistence interface for the membership request service. 021 * 022 * <p> 023 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see MembershipRequestPersistenceImpl 028 * @see MembershipRequestUtil 029 * @generated 030 */ 031 public interface MembershipRequestPersistence extends BasePersistence<MembershipRequest> { 032 /** 033 * Caches the membership request in the entity cache if it is enabled. 034 * 035 * @param membershipRequest the membership request to cache 036 */ 037 public void cacheResult( 038 com.liferay.portal.model.MembershipRequest membershipRequest); 039 040 /** 041 * Caches the membership requests in the entity cache if it is enabled. 042 * 043 * @param membershipRequests the membership requests to cache 044 */ 045 public void cacheResult( 046 java.util.List<com.liferay.portal.model.MembershipRequest> membershipRequests); 047 048 /** 049 * Creates a new membership request with the primary key. 050 * 051 * @param membershipRequestId the primary key for the new membership request 052 * @return the new membership request 053 */ 054 public com.liferay.portal.model.MembershipRequest create( 055 long membershipRequestId); 056 057 /** 058 * Removes the membership request with the primary key from the database. Also notifies the appropriate model listeners. 059 * 060 * @param membershipRequestId the primary key of the membership request to remove 061 * @return the membership request that was removed 062 * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found 063 * @throws SystemException if a system exception occurred 064 */ 065 public com.liferay.portal.model.MembershipRequest remove( 066 long membershipRequestId) 067 throws com.liferay.portal.NoSuchMembershipRequestException, 068 com.liferay.portal.kernel.exception.SystemException; 069 070 public com.liferay.portal.model.MembershipRequest updateImpl( 071 com.liferay.portal.model.MembershipRequest membershipRequest, 072 boolean merge) 073 throws com.liferay.portal.kernel.exception.SystemException; 074 075 /** 076 * Finds the membership request with the primary key or throws a {@link com.liferay.portal.NoSuchMembershipRequestException} if it could not be found. 077 * 078 * @param membershipRequestId the primary key of the membership request to find 079 * @return the membership request 080 * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found 081 * @throws SystemException if a system exception occurred 082 */ 083 public com.liferay.portal.model.MembershipRequest findByPrimaryKey( 084 long membershipRequestId) 085 throws com.liferay.portal.NoSuchMembershipRequestException, 086 com.liferay.portal.kernel.exception.SystemException; 087 088 /** 089 * Finds the membership request with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param membershipRequestId the primary key of the membership request to find 092 * @return the membership request, or <code>null</code> if a membership request with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portal.model.MembershipRequest fetchByPrimaryKey( 096 long membershipRequestId) 097 throws com.liferay.portal.kernel.exception.SystemException; 098 099 /** 100 * Finds all the membership requests where groupId = ?. 101 * 102 * @param groupId the group id to search with 103 * @return the matching membership requests 104 * @throws SystemException if a system exception occurred 105 */ 106 public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId( 107 long groupId) 108 throws com.liferay.portal.kernel.exception.SystemException; 109 110 /** 111 * Finds a range of all the membership requests where groupId = ?. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param groupId the group id to search with 118 * @param start the lower bound of the range of membership requests to return 119 * @param end the upper bound of the range of membership requests to return (not inclusive) 120 * @return the range of matching membership requests 121 * @throws SystemException if a system exception occurred 122 */ 123 public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId( 124 long groupId, int start, int end) 125 throws com.liferay.portal.kernel.exception.SystemException; 126 127 /** 128 * Finds an ordered range of all the membership requests where groupId = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param groupId the group id to search with 135 * @param start the lower bound of the range of membership requests to return 136 * @param end the upper bound of the range of membership requests to return (not inclusive) 137 * @param orderByComparator the comparator to order the results by 138 * @return the ordered range of matching membership requests 139 * @throws SystemException if a system exception occurred 140 */ 141 public java.util.List<com.liferay.portal.model.MembershipRequest> findByGroupId( 142 long groupId, int start, int end, 143 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 144 throws com.liferay.portal.kernel.exception.SystemException; 145 146 /** 147 * Finds the first membership request in the ordered set where groupId = ?. 148 * 149 * <p> 150 * 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. 151 * </p> 152 * 153 * @param groupId the group id to search with 154 * @param orderByComparator the comparator to order the set by 155 * @return the first matching membership request 156 * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portal.model.MembershipRequest findByGroupId_First( 160 long groupId, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.NoSuchMembershipRequestException, 163 com.liferay.portal.kernel.exception.SystemException; 164 165 /** 166 * Finds the last membership request in the ordered set where groupId = ?. 167 * 168 * <p> 169 * 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. 170 * </p> 171 * 172 * @param groupId the group id to search with 173 * @param orderByComparator the comparator to order the set by 174 * @return the last matching membership request 175 * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public com.liferay.portal.model.MembershipRequest findByGroupId_Last( 179 long groupId, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.NoSuchMembershipRequestException, 182 com.liferay.portal.kernel.exception.SystemException; 183 184 /** 185 * Finds the membership requests before and after the current membership request in the ordered set where groupId = ?. 186 * 187 * <p> 188 * 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. 189 * </p> 190 * 191 * @param membershipRequestId the primary key of the current membership request 192 * @param groupId the group id to search with 193 * @param orderByComparator the comparator to order the set by 194 * @return the previous, current, and next membership request 195 * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found 196 * @throws SystemException if a system exception occurred 197 */ 198 public com.liferay.portal.model.MembershipRequest[] findByGroupId_PrevAndNext( 199 long membershipRequestId, long groupId, 200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 201 throws com.liferay.portal.NoSuchMembershipRequestException, 202 com.liferay.portal.kernel.exception.SystemException; 203 204 /** 205 * Finds all the membership requests where userId = ?. 206 * 207 * @param userId the user id to search with 208 * @return the matching membership requests 209 * @throws SystemException if a system exception occurred 210 */ 211 public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId( 212 long userId) throws com.liferay.portal.kernel.exception.SystemException; 213 214 /** 215 * Finds a range of all the membership requests where userId = ?. 216 * 217 * <p> 218 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 219 * </p> 220 * 221 * @param userId the user id to search with 222 * @param start the lower bound of the range of membership requests to return 223 * @param end the upper bound of the range of membership requests to return (not inclusive) 224 * @return the range of matching membership requests 225 * @throws SystemException if a system exception occurred 226 */ 227 public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId( 228 long userId, int start, int end) 229 throws com.liferay.portal.kernel.exception.SystemException; 230 231 /** 232 * Finds an ordered range of all the membership requests where userId = ?. 233 * 234 * <p> 235 * 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. 236 * </p> 237 * 238 * @param userId the user id to search with 239 * @param start the lower bound of the range of membership requests to return 240 * @param end the upper bound of the range of membership requests to return (not inclusive) 241 * @param orderByComparator the comparator to order the results by 242 * @return the ordered range of matching membership requests 243 * @throws SystemException if a system exception occurred 244 */ 245 public java.util.List<com.liferay.portal.model.MembershipRequest> findByUserId( 246 long userId, int start, int end, 247 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 248 throws com.liferay.portal.kernel.exception.SystemException; 249 250 /** 251 * Finds the first membership request in the ordered set where userId = ?. 252 * 253 * <p> 254 * 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. 255 * </p> 256 * 257 * @param userId the user id to search with 258 * @param orderByComparator the comparator to order the set by 259 * @return the first matching membership request 260 * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found 261 * @throws SystemException if a system exception occurred 262 */ 263 public com.liferay.portal.model.MembershipRequest findByUserId_First( 264 long userId, 265 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 266 throws com.liferay.portal.NoSuchMembershipRequestException, 267 com.liferay.portal.kernel.exception.SystemException; 268 269 /** 270 * Finds the last membership request in the ordered set where userId = ?. 271 * 272 * <p> 273 * 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. 274 * </p> 275 * 276 * @param userId the user id to search with 277 * @param orderByComparator the comparator to order the set by 278 * @return the last matching membership request 279 * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public com.liferay.portal.model.MembershipRequest findByUserId_Last( 283 long userId, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.NoSuchMembershipRequestException, 286 com.liferay.portal.kernel.exception.SystemException; 287 288 /** 289 * Finds the membership requests before and after the current membership request in the ordered set where userId = ?. 290 * 291 * <p> 292 * 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. 293 * </p> 294 * 295 * @param membershipRequestId the primary key of the current membership request 296 * @param userId the user id to search with 297 * @param orderByComparator the comparator to order the set by 298 * @return the previous, current, and next membership request 299 * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found 300 * @throws SystemException if a system exception occurred 301 */ 302 public com.liferay.portal.model.MembershipRequest[] findByUserId_PrevAndNext( 303 long membershipRequestId, long userId, 304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 305 throws com.liferay.portal.NoSuchMembershipRequestException, 306 com.liferay.portal.kernel.exception.SystemException; 307 308 /** 309 * Finds all the membership requests where groupId = ? and statusId = ?. 310 * 311 * @param groupId the group id to search with 312 * @param statusId the status id to search with 313 * @return the matching membership requests 314 * @throws SystemException if a system exception occurred 315 */ 316 public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S( 317 long groupId, int statusId) 318 throws com.liferay.portal.kernel.exception.SystemException; 319 320 /** 321 * Finds a range of all the membership requests where groupId = ? and statusId = ?. 322 * 323 * <p> 324 * 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. 325 * </p> 326 * 327 * @param groupId the group id to search with 328 * @param statusId the status id to search with 329 * @param start the lower bound of the range of membership requests to return 330 * @param end the upper bound of the range of membership requests to return (not inclusive) 331 * @return the range of matching membership requests 332 * @throws SystemException if a system exception occurred 333 */ 334 public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S( 335 long groupId, int statusId, int start, int end) 336 throws com.liferay.portal.kernel.exception.SystemException; 337 338 /** 339 * Finds an ordered range of all the membership requests where groupId = ? and statusId = ?. 340 * 341 * <p> 342 * 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. 343 * </p> 344 * 345 * @param groupId the group id to search with 346 * @param statusId the status id to search with 347 * @param start the lower bound of the range of membership requests to return 348 * @param end the upper bound of the range of membership requests to return (not inclusive) 349 * @param orderByComparator the comparator to order the results by 350 * @return the ordered range of matching membership requests 351 * @throws SystemException if a system exception occurred 352 */ 353 public java.util.List<com.liferay.portal.model.MembershipRequest> findByG_S( 354 long groupId, int statusId, int start, int end, 355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 356 throws com.liferay.portal.kernel.exception.SystemException; 357 358 /** 359 * Finds the first membership request in the ordered set where groupId = ? and statusId = ?. 360 * 361 * <p> 362 * 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. 363 * </p> 364 * 365 * @param groupId the group id to search with 366 * @param statusId the status id to search with 367 * @param orderByComparator the comparator to order the set by 368 * @return the first matching membership request 369 * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found 370 * @throws SystemException if a system exception occurred 371 */ 372 public com.liferay.portal.model.MembershipRequest findByG_S_First( 373 long groupId, int statusId, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.NoSuchMembershipRequestException, 376 com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Finds the last membership request in the ordered set where groupId = ? and statusId = ?. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param groupId the group id to search with 386 * @param statusId the status id to search with 387 * @param orderByComparator the comparator to order the set by 388 * @return the last matching membership request 389 * @throws com.liferay.portal.NoSuchMembershipRequestException if a matching membership request could not be found 390 * @throws SystemException if a system exception occurred 391 */ 392 public com.liferay.portal.model.MembershipRequest findByG_S_Last( 393 long groupId, int statusId, 394 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 395 throws com.liferay.portal.NoSuchMembershipRequestException, 396 com.liferay.portal.kernel.exception.SystemException; 397 398 /** 399 * Finds the membership requests before and after the current membership request in the ordered set where groupId = ? and statusId = ?. 400 * 401 * <p> 402 * 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. 403 * </p> 404 * 405 * @param membershipRequestId the primary key of the current membership request 406 * @param groupId the group id to search with 407 * @param statusId the status id to search with 408 * @param orderByComparator the comparator to order the set by 409 * @return the previous, current, and next membership request 410 * @throws com.liferay.portal.NoSuchMembershipRequestException if a membership request with the primary key could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public com.liferay.portal.model.MembershipRequest[] findByG_S_PrevAndNext( 414 long membershipRequestId, long groupId, int statusId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.NoSuchMembershipRequestException, 417 com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Finds all the membership requests. 421 * 422 * @return the membership requests 423 * @throws SystemException if a system exception occurred 424 */ 425 public java.util.List<com.liferay.portal.model.MembershipRequest> findAll() 426 throws com.liferay.portal.kernel.exception.SystemException; 427 428 /** 429 * Finds a range of all the membership requests. 430 * 431 * <p> 432 * 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. 433 * </p> 434 * 435 * @param start the lower bound of the range of membership requests to return 436 * @param end the upper bound of the range of membership requests to return (not inclusive) 437 * @return the range of membership requests 438 * @throws SystemException if a system exception occurred 439 */ 440 public java.util.List<com.liferay.portal.model.MembershipRequest> findAll( 441 int start, int end) 442 throws com.liferay.portal.kernel.exception.SystemException; 443 444 /** 445 * Finds an ordered range of all the membership requests. 446 * 447 * <p> 448 * 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. 449 * </p> 450 * 451 * @param start the lower bound of the range of membership requests to return 452 * @param end the upper bound of the range of membership requests to return (not inclusive) 453 * @param orderByComparator the comparator to order the results by 454 * @return the ordered range of membership requests 455 * @throws SystemException if a system exception occurred 456 */ 457 public java.util.List<com.liferay.portal.model.MembershipRequest> findAll( 458 int start, int end, 459 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 460 throws com.liferay.portal.kernel.exception.SystemException; 461 462 /** 463 * Removes all the membership requests where groupId = ? from the database. 464 * 465 * @param groupId the group id to search with 466 * @throws SystemException if a system exception occurred 467 */ 468 public void removeByGroupId(long groupId) 469 throws com.liferay.portal.kernel.exception.SystemException; 470 471 /** 472 * Removes all the membership requests where userId = ? from the database. 473 * 474 * @param userId the user id to search with 475 * @throws SystemException if a system exception occurred 476 */ 477 public void removeByUserId(long userId) 478 throws com.liferay.portal.kernel.exception.SystemException; 479 480 /** 481 * Removes all the membership requests where groupId = ? and statusId = ? from the database. 482 * 483 * @param groupId the group id to search with 484 * @param statusId the status id to search with 485 * @throws SystemException if a system exception occurred 486 */ 487 public void removeByG_S(long groupId, int statusId) 488 throws com.liferay.portal.kernel.exception.SystemException; 489 490 /** 491 * Removes all the membership requests from the database. 492 * 493 * @throws SystemException if a system exception occurred 494 */ 495 public void removeAll() 496 throws com.liferay.portal.kernel.exception.SystemException; 497 498 /** 499 * Counts all the membership requests where groupId = ?. 500 * 501 * @param groupId the group id to search with 502 * @return the number of matching membership requests 503 * @throws SystemException if a system exception occurred 504 */ 505 public int countByGroupId(long groupId) 506 throws com.liferay.portal.kernel.exception.SystemException; 507 508 /** 509 * Counts all the membership requests where userId = ?. 510 * 511 * @param userId the user id to search with 512 * @return the number of matching membership requests 513 * @throws SystemException if a system exception occurred 514 */ 515 public int countByUserId(long userId) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Counts all the membership requests where groupId = ? and statusId = ?. 520 * 521 * @param groupId the group id to search with 522 * @param statusId the status id to search with 523 * @return the number of matching membership requests 524 * @throws SystemException if a system exception occurred 525 */ 526 public int countByG_S(long groupId, int statusId) 527 throws com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Counts all the membership requests. 531 * 532 * @return the number of membership requests 533 * @throws SystemException if a system exception occurred 534 */ 535 public int countAll() 536 throws com.liferay.portal.kernel.exception.SystemException; 537 }