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