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 the first social activity achievement in the ordered set where groupId = ?. 085 * 086 * @param groupId the group ID 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching social activity achievement 089 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 090 */ 091 public SocialActivityAchievement findByGroupId_First(long groupId, 092 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 093 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 094 095 /** 096 * Returns the first social activity achievement in the ordered set where groupId = ?. 097 * 098 * @param groupId the group ID 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 101 */ 102 public SocialActivityAchievement fetchByGroupId_First(long groupId, 103 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 104 105 /** 106 * Returns the last social activity achievement in the ordered set where groupId = ?. 107 * 108 * @param groupId the group ID 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the last matching social activity achievement 111 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 112 */ 113 public SocialActivityAchievement findByGroupId_Last(long groupId, 114 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 115 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 116 117 /** 118 * Returns the last social activity achievement in the ordered set where groupId = ?. 119 * 120 * @param groupId the group ID 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 123 */ 124 public SocialActivityAchievement fetchByGroupId_Last(long groupId, 125 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 126 127 /** 128 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?. 129 * 130 * @param activityAchievementId the primary key of the current social activity achievement 131 * @param groupId the group ID 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next social activity achievement 134 * @throws NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 135 */ 136 public SocialActivityAchievement[] findByGroupId_PrevAndNext( 137 long activityAchievementId, long groupId, 138 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 139 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 140 141 /** 142 * Removes all the social activity achievements where groupId = ? from the database. 143 * 144 * @param groupId the group ID 145 */ 146 public void removeByGroupId(long groupId); 147 148 /** 149 * Returns the number of social activity achievements where groupId = ?. 150 * 151 * @param groupId the group ID 152 * @return the number of matching social activity achievements 153 */ 154 public int countByGroupId(long groupId); 155 156 /** 157 * Returns all the social activity achievements where groupId = ? and userId = ?. 158 * 159 * @param groupId the group ID 160 * @param userId the user ID 161 * @return the matching social activity achievements 162 */ 163 public java.util.List<SocialActivityAchievement> findByG_U(long groupId, 164 long userId); 165 166 /** 167 * Returns a range of all the social activity achievements where groupId = ? and userId = ?. 168 * 169 * <p> 170 * 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. 171 * </p> 172 * 173 * @param groupId the group ID 174 * @param userId the user ID 175 * @param start the lower bound of the range of social activity achievements 176 * @param end the upper bound of the range of social activity achievements (not inclusive) 177 * @return the range of matching social activity achievements 178 */ 179 public java.util.List<SocialActivityAchievement> findByG_U(long groupId, 180 long userId, int start, int end); 181 182 /** 183 * Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?. 184 * 185 * <p> 186 * 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. 187 * </p> 188 * 189 * @param groupId the group ID 190 * @param userId the user ID 191 * @param start the lower bound of the range of social activity achievements 192 * @param end the upper bound of the range of social activity achievements (not inclusive) 193 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 194 * @return the ordered range of matching social activity achievements 195 */ 196 public java.util.List<SocialActivityAchievement> findByG_U(long groupId, 197 long userId, int start, int end, 198 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 199 200 /** 201 * Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?. 202 * 203 * @param groupId the group ID 204 * @param userId the user ID 205 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 206 * @return the first matching social activity achievement 207 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 208 */ 209 public SocialActivityAchievement findByG_U_First(long groupId, long userId, 210 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 211 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 212 213 /** 214 * Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?. 215 * 216 * @param groupId the group ID 217 * @param userId the user ID 218 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 219 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 220 */ 221 public SocialActivityAchievement fetchByG_U_First(long groupId, 222 long userId, 223 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 224 225 /** 226 * Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?. 227 * 228 * @param groupId the group ID 229 * @param userId the user ID 230 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 231 * @return the last matching social activity achievement 232 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 233 */ 234 public SocialActivityAchievement findByG_U_Last(long groupId, long userId, 235 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 236 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 237 238 /** 239 * Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?. 240 * 241 * @param groupId the group ID 242 * @param userId the user ID 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 245 */ 246 public SocialActivityAchievement fetchByG_U_Last(long groupId, long userId, 247 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 248 249 /** 250 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?. 251 * 252 * @param activityAchievementId the primary key of the current social activity achievement 253 * @param groupId the group ID 254 * @param userId the user ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the previous, current, and next social activity achievement 257 * @throws NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 258 */ 259 public SocialActivityAchievement[] findByG_U_PrevAndNext( 260 long activityAchievementId, long groupId, long userId, 261 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 262 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 263 264 /** 265 * Removes all the social activity achievements where groupId = ? and userId = ? from the database. 266 * 267 * @param groupId the group ID 268 * @param userId the user ID 269 */ 270 public void removeByG_U(long groupId, long userId); 271 272 /** 273 * Returns the number of social activity achievements where groupId = ? and userId = ?. 274 * 275 * @param groupId the group ID 276 * @param userId the user ID 277 * @return the number of matching social activity achievements 278 */ 279 public int countByG_U(long groupId, long userId); 280 281 /** 282 * Returns all the social activity achievements where groupId = ? and name = ?. 283 * 284 * @param groupId the group ID 285 * @param name the name 286 * @return the matching social activity achievements 287 */ 288 public java.util.List<SocialActivityAchievement> findByG_N(long groupId, 289 java.lang.String name); 290 291 /** 292 * Returns a range of all the social activity achievements where groupId = ? and name = ?. 293 * 294 * <p> 295 * 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. 296 * </p> 297 * 298 * @param groupId the group ID 299 * @param name the name 300 * @param start the lower bound of the range of social activity achievements 301 * @param end the upper bound of the range of social activity achievements (not inclusive) 302 * @return the range of matching social activity achievements 303 */ 304 public java.util.List<SocialActivityAchievement> findByG_N(long groupId, 305 java.lang.String name, int start, int end); 306 307 /** 308 * Returns an ordered range of all the social activity achievements where groupId = ? and name = ?. 309 * 310 * <p> 311 * 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. 312 * </p> 313 * 314 * @param groupId the group ID 315 * @param name the name 316 * @param start the lower bound of the range of social activity achievements 317 * @param end the upper bound of the range of social activity achievements (not inclusive) 318 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 319 * @return the ordered range of matching social activity achievements 320 */ 321 public java.util.List<SocialActivityAchievement> findByG_N(long groupId, 322 java.lang.String name, int start, int end, 323 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 324 325 /** 326 * Returns the first social activity achievement in the ordered set where groupId = ? and name = ?. 327 * 328 * @param groupId the group ID 329 * @param name the name 330 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 331 * @return the first matching social activity achievement 332 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 333 */ 334 public SocialActivityAchievement findByG_N_First(long groupId, 335 java.lang.String name, 336 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 337 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 338 339 /** 340 * Returns the first social activity achievement in the ordered set where groupId = ? and name = ?. 341 * 342 * @param groupId the group ID 343 * @param name the name 344 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 345 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 346 */ 347 public SocialActivityAchievement fetchByG_N_First(long groupId, 348 java.lang.String name, 349 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 350 351 /** 352 * Returns the last social activity achievement in the ordered set where groupId = ? and name = ?. 353 * 354 * @param groupId the group ID 355 * @param name the name 356 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 357 * @return the last matching social activity achievement 358 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 359 */ 360 public SocialActivityAchievement findByG_N_Last(long groupId, 361 java.lang.String name, 362 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 363 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 364 365 /** 366 * Returns the last social activity achievement in the ordered set where groupId = ? and name = ?. 367 * 368 * @param groupId the group ID 369 * @param name the name 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 372 */ 373 public SocialActivityAchievement fetchByG_N_Last(long groupId, 374 java.lang.String name, 375 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 376 377 /** 378 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?. 379 * 380 * @param activityAchievementId the primary key of the current social activity achievement 381 * @param groupId the group ID 382 * @param name the name 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the previous, current, and next social activity achievement 385 * @throws NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 386 */ 387 public SocialActivityAchievement[] findByG_N_PrevAndNext( 388 long activityAchievementId, long groupId, java.lang.String name, 389 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 390 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 391 392 /** 393 * Removes all the social activity achievements where groupId = ? and name = ? from the database. 394 * 395 * @param groupId the group ID 396 * @param name the name 397 */ 398 public void removeByG_N(long groupId, java.lang.String name); 399 400 /** 401 * Returns the number of social activity achievements where groupId = ? and name = ?. 402 * 403 * @param groupId the group ID 404 * @param name the name 405 * @return the number of matching social activity achievements 406 */ 407 public int countByG_N(long groupId, java.lang.String name); 408 409 /** 410 * Returns all the social activity achievements where groupId = ? and firstInGroup = ?. 411 * 412 * @param groupId the group ID 413 * @param firstInGroup the first in group 414 * @return the matching social activity achievements 415 */ 416 public java.util.List<SocialActivityAchievement> findByG_F(long groupId, 417 boolean firstInGroup); 418 419 /** 420 * Returns a range of all the social activity achievements where groupId = ? and firstInGroup = ?. 421 * 422 * <p> 423 * 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. 424 * </p> 425 * 426 * @param groupId the group ID 427 * @param firstInGroup the first in group 428 * @param start the lower bound of the range of social activity achievements 429 * @param end the upper bound of the range of social activity achievements (not inclusive) 430 * @return the range of matching social activity achievements 431 */ 432 public java.util.List<SocialActivityAchievement> findByG_F(long groupId, 433 boolean firstInGroup, int start, int end); 434 435 /** 436 * Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?. 437 * 438 * <p> 439 * 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. 440 * </p> 441 * 442 * @param groupId the group ID 443 * @param firstInGroup the first in group 444 * @param start the lower bound of the range of social activity achievements 445 * @param end the upper bound of the range of social activity achievements (not inclusive) 446 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 447 * @return the ordered range of matching social activity achievements 448 */ 449 public java.util.List<SocialActivityAchievement> findByG_F(long groupId, 450 boolean firstInGroup, int start, int end, 451 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 452 453 /** 454 * Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 455 * 456 * @param groupId the group ID 457 * @param firstInGroup the first in group 458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 459 * @return the first matching social activity achievement 460 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 461 */ 462 public SocialActivityAchievement findByG_F_First(long groupId, 463 boolean firstInGroup, 464 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 465 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 466 467 /** 468 * Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 469 * 470 * @param groupId the group ID 471 * @param firstInGroup the first in group 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 474 */ 475 public SocialActivityAchievement fetchByG_F_First(long groupId, 476 boolean firstInGroup, 477 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 478 479 /** 480 * Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 481 * 482 * @param groupId the group ID 483 * @param firstInGroup the first in group 484 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 485 * @return the last matching social activity achievement 486 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 487 */ 488 public SocialActivityAchievement findByG_F_Last(long groupId, 489 boolean firstInGroup, 490 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 491 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 492 493 /** 494 * Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 495 * 496 * @param groupId the group ID 497 * @param firstInGroup the first in group 498 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 499 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 500 */ 501 public SocialActivityAchievement fetchByG_F_Last(long groupId, 502 boolean firstInGroup, 503 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 504 505 /** 506 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 507 * 508 * @param activityAchievementId the primary key of the current social activity achievement 509 * @param groupId the group ID 510 * @param firstInGroup the first in group 511 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 512 * @return the previous, current, and next social activity achievement 513 * @throws NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 514 */ 515 public SocialActivityAchievement[] findByG_F_PrevAndNext( 516 long activityAchievementId, long groupId, boolean firstInGroup, 517 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 518 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 519 520 /** 521 * Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database. 522 * 523 * @param groupId the group ID 524 * @param firstInGroup the first in group 525 */ 526 public void removeByG_F(long groupId, boolean firstInGroup); 527 528 /** 529 * Returns the number of social activity achievements where groupId = ? and firstInGroup = ?. 530 * 531 * @param groupId the group ID 532 * @param firstInGroup the first in group 533 * @return the number of matching social activity achievements 534 */ 535 public int countByG_F(long groupId, boolean firstInGroup); 536 537 /** 538 * Returns the social activity achievement where groupId = ? and userId = ? and name = ? or throws a {@link NoSuchActivityAchievementException} if it could not be found. 539 * 540 * @param groupId the group ID 541 * @param userId the user ID 542 * @param name the name 543 * @return the matching social activity achievement 544 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 545 */ 546 public SocialActivityAchievement findByG_U_N(long groupId, long userId, 547 java.lang.String name) 548 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 549 550 /** 551 * 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. 552 * 553 * @param groupId the group ID 554 * @param userId the user ID 555 * @param name the name 556 * @return the matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 557 */ 558 public SocialActivityAchievement fetchByG_U_N(long groupId, long userId, 559 java.lang.String name); 560 561 /** 562 * 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. 563 * 564 * @param groupId the group ID 565 * @param userId the user ID 566 * @param name the name 567 * @param retrieveFromCache whether to use the finder cache 568 * @return the matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 569 */ 570 public SocialActivityAchievement fetchByG_U_N(long groupId, long userId, 571 java.lang.String name, boolean retrieveFromCache); 572 573 /** 574 * Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database. 575 * 576 * @param groupId the group ID 577 * @param userId the user ID 578 * @param name the name 579 * @return the social activity achievement that was removed 580 */ 581 public SocialActivityAchievement removeByG_U_N(long groupId, long userId, 582 java.lang.String name) 583 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 584 585 /** 586 * Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?. 587 * 588 * @param groupId the group ID 589 * @param userId the user ID 590 * @param name the name 591 * @return the number of matching social activity achievements 592 */ 593 public int countByG_U_N(long groupId, long userId, java.lang.String name); 594 595 /** 596 * Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. 597 * 598 * @param groupId the group ID 599 * @param userId the user ID 600 * @param firstInGroup the first in group 601 * @return the matching social activity achievements 602 */ 603 public java.util.List<SocialActivityAchievement> findByG_U_F(long groupId, 604 long userId, boolean firstInGroup); 605 606 /** 607 * Returns a range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. 608 * 609 * <p> 610 * 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. 611 * </p> 612 * 613 * @param groupId the group ID 614 * @param userId the user ID 615 * @param firstInGroup the first in group 616 * @param start the lower bound of the range of social activity achievements 617 * @param end the upper bound of the range of social activity achievements (not inclusive) 618 * @return the range of matching social activity achievements 619 */ 620 public java.util.List<SocialActivityAchievement> findByG_U_F(long groupId, 621 long userId, boolean firstInGroup, int start, int end); 622 623 /** 624 * Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. 625 * 626 * <p> 627 * 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. 628 * </p> 629 * 630 * @param groupId the group ID 631 * @param userId the user ID 632 * @param firstInGroup the first in group 633 * @param start the lower bound of the range of social activity achievements 634 * @param end the upper bound of the range of social activity achievements (not inclusive) 635 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 636 * @return the ordered range of matching social activity achievements 637 */ 638 public java.util.List<SocialActivityAchievement> findByG_U_F(long groupId, 639 long userId, boolean firstInGroup, int start, int end, 640 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 641 642 /** 643 * Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 644 * 645 * @param groupId the group ID 646 * @param userId the user ID 647 * @param firstInGroup the first in group 648 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 649 * @return the first matching social activity achievement 650 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 651 */ 652 public SocialActivityAchievement findByG_U_F_First(long groupId, 653 long userId, boolean firstInGroup, 654 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 655 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 656 657 /** 658 * Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 659 * 660 * @param groupId the group ID 661 * @param userId the user ID 662 * @param firstInGroup the first in group 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 665 */ 666 public SocialActivityAchievement fetchByG_U_F_First(long groupId, 667 long userId, boolean firstInGroup, 668 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 669 670 /** 671 * Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 672 * 673 * @param groupId the group ID 674 * @param userId the user ID 675 * @param firstInGroup the first in group 676 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 677 * @return the last matching social activity achievement 678 * @throws NoSuchActivityAchievementException if a matching social activity achievement could not be found 679 */ 680 public SocialActivityAchievement findByG_U_F_Last(long groupId, 681 long userId, boolean firstInGroup, 682 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 683 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 684 685 /** 686 * Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 687 * 688 * @param groupId the group ID 689 * @param userId the user ID 690 * @param firstInGroup the first in group 691 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 692 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 693 */ 694 public SocialActivityAchievement fetchByG_U_F_Last(long groupId, 695 long userId, boolean firstInGroup, 696 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 697 698 /** 699 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 700 * 701 * @param activityAchievementId the primary key of the current social activity achievement 702 * @param groupId the group ID 703 * @param userId the user ID 704 * @param firstInGroup the first in group 705 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 706 * @return the previous, current, and next social activity achievement 707 * @throws NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 708 */ 709 public SocialActivityAchievement[] findByG_U_F_PrevAndNext( 710 long activityAchievementId, long groupId, long userId, 711 boolean firstInGroup, 712 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator) 713 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 714 715 /** 716 * Removes all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ? from the database. 717 * 718 * @param groupId the group ID 719 * @param userId the user ID 720 * @param firstInGroup the first in group 721 */ 722 public void removeByG_U_F(long groupId, long userId, boolean firstInGroup); 723 724 /** 725 * Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. 726 * 727 * @param groupId the group ID 728 * @param userId the user ID 729 * @param firstInGroup the first in group 730 * @return the number of matching social activity achievements 731 */ 732 public int countByG_U_F(long groupId, long userId, boolean firstInGroup); 733 734 /** 735 * Caches the social activity achievement in the entity cache if it is enabled. 736 * 737 * @param socialActivityAchievement the social activity achievement 738 */ 739 public void cacheResult(SocialActivityAchievement socialActivityAchievement); 740 741 /** 742 * Caches the social activity achievements in the entity cache if it is enabled. 743 * 744 * @param socialActivityAchievements the social activity achievements 745 */ 746 public void cacheResult( 747 java.util.List<SocialActivityAchievement> socialActivityAchievements); 748 749 /** 750 * Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database. 751 * 752 * @param activityAchievementId the primary key for the new social activity achievement 753 * @return the new social activity achievement 754 */ 755 public SocialActivityAchievement create(long activityAchievementId); 756 757 /** 758 * Removes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners. 759 * 760 * @param activityAchievementId the primary key of the social activity achievement 761 * @return the social activity achievement that was removed 762 * @throws NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 763 */ 764 public SocialActivityAchievement remove(long activityAchievementId) 765 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 766 767 public SocialActivityAchievement updateImpl( 768 SocialActivityAchievement socialActivityAchievement); 769 770 /** 771 * Returns the social activity achievement with the primary key or throws a {@link NoSuchActivityAchievementException} if it could not be found. 772 * 773 * @param activityAchievementId the primary key of the social activity achievement 774 * @return the social activity achievement 775 * @throws NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 776 */ 777 public SocialActivityAchievement findByPrimaryKey( 778 long activityAchievementId) 779 throws com.liferay.portlet.social.NoSuchActivityAchievementException; 780 781 /** 782 * Returns the social activity achievement with the primary key or returns <code>null</code> if it could not be found. 783 * 784 * @param activityAchievementId the primary key of the social activity achievement 785 * @return the social activity achievement, or <code>null</code> if a social activity achievement with the primary key could not be found 786 */ 787 public SocialActivityAchievement fetchByPrimaryKey( 788 long activityAchievementId); 789 790 @Override 791 public java.util.Map<java.io.Serializable, SocialActivityAchievement> fetchByPrimaryKeys( 792 java.util.Set<java.io.Serializable> primaryKeys); 793 794 /** 795 * Returns all the social activity achievements. 796 * 797 * @return the social activity achievements 798 */ 799 public java.util.List<SocialActivityAchievement> findAll(); 800 801 /** 802 * Returns a range of all the social activity achievements. 803 * 804 * <p> 805 * 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. 806 * </p> 807 * 808 * @param start the lower bound of the range of social activity achievements 809 * @param end the upper bound of the range of social activity achievements (not inclusive) 810 * @return the range of social activity achievements 811 */ 812 public java.util.List<SocialActivityAchievement> findAll(int start, int end); 813 814 /** 815 * Returns an ordered range of all the social activity achievements. 816 * 817 * <p> 818 * 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. 819 * </p> 820 * 821 * @param start the lower bound of the range of social activity achievements 822 * @param end the upper bound of the range of social activity achievements (not inclusive) 823 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 824 * @return the ordered range of social activity achievements 825 */ 826 public java.util.List<SocialActivityAchievement> findAll(int start, 827 int end, 828 com.liferay.portal.kernel.util.OrderByComparator<SocialActivityAchievement> orderByComparator); 829 830 /** 831 * Removes all the social activity achievements from the database. 832 */ 833 public void removeAll(); 834 835 /** 836 * Returns the number of social activity achievements. 837 * 838 * @return the number of social activity achievements 839 */ 840 public int countAll(); 841 }