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