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