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