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