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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.social.model.SocialActivityAchievement; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the social activity achievement service. This utility wraps {@link SocialActivityAchievementPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see SocialActivityAchievementPersistence 037 * @see SocialActivityAchievementPersistenceImpl 038 * @generated 039 */ 040 public class SocialActivityAchievementUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache( 058 SocialActivityAchievement socialActivityAchievement) { 059 getPersistence().clearCache(socialActivityAchievement); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 064 */ 065 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 066 throws SystemException { 067 return getPersistence().countWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 072 */ 073 public static List<SocialActivityAchievement> findWithDynamicQuery( 074 DynamicQuery dynamicQuery) throws SystemException { 075 return getPersistence().findWithDynamicQuery(dynamicQuery); 076 } 077 078 /** 079 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 080 */ 081 public static List<SocialActivityAchievement> findWithDynamicQuery( 082 DynamicQuery dynamicQuery, int start, int end) 083 throws SystemException { 084 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 085 } 086 087 /** 088 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 089 */ 090 public static List<SocialActivityAchievement> findWithDynamicQuery( 091 DynamicQuery dynamicQuery, int start, int end, 092 OrderByComparator orderByComparator) throws SystemException { 093 return getPersistence() 094 .findWithDynamicQuery(dynamicQuery, start, end, 095 orderByComparator); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 100 */ 101 public static SocialActivityAchievement update( 102 SocialActivityAchievement socialActivityAchievement) 103 throws SystemException { 104 return getPersistence().update(socialActivityAchievement); 105 } 106 107 /** 108 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 109 */ 110 public static SocialActivityAchievement update( 111 SocialActivityAchievement socialActivityAchievement, 112 ServiceContext serviceContext) throws SystemException { 113 return getPersistence().update(socialActivityAchievement, serviceContext); 114 } 115 116 /** 117 * Caches the social activity achievement in the entity cache if it is enabled. 118 * 119 * @param socialActivityAchievement the social activity achievement 120 */ 121 public static void cacheResult( 122 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement) { 123 getPersistence().cacheResult(socialActivityAchievement); 124 } 125 126 /** 127 * Caches the social activity achievements in the entity cache if it is enabled. 128 * 129 * @param socialActivityAchievements the social activity achievements 130 */ 131 public static void cacheResult( 132 java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> socialActivityAchievements) { 133 getPersistence().cacheResult(socialActivityAchievements); 134 } 135 136 /** 137 * Creates a new social activity achievement with the primary key. Does not add the social activity achievement to the database. 138 * 139 * @param activityAchievementId the primary key for the new social activity achievement 140 * @return the new social activity achievement 141 */ 142 public static com.liferay.portlet.social.model.SocialActivityAchievement create( 143 long activityAchievementId) { 144 return getPersistence().create(activityAchievementId); 145 } 146 147 /** 148 * Removes the social activity achievement with the primary key from the database. Also notifies the appropriate model listeners. 149 * 150 * @param activityAchievementId the primary key of the social activity achievement 151 * @return the social activity achievement that was removed 152 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 153 * @throws SystemException if a system exception occurred 154 */ 155 public static com.liferay.portlet.social.model.SocialActivityAchievement remove( 156 long activityAchievementId) 157 throws com.liferay.portal.kernel.exception.SystemException, 158 com.liferay.portlet.social.NoSuchActivityAchievementException { 159 return getPersistence().remove(activityAchievementId); 160 } 161 162 public static com.liferay.portlet.social.model.SocialActivityAchievement updateImpl( 163 com.liferay.portlet.social.model.SocialActivityAchievement socialActivityAchievement) 164 throws com.liferay.portal.kernel.exception.SystemException { 165 return getPersistence().updateImpl(socialActivityAchievement); 166 } 167 168 /** 169 * Returns the social activity achievement with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityAchievementException} if it could not be found. 170 * 171 * @param activityAchievementId the primary key of the social activity achievement 172 * @return the social activity achievement 173 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public static com.liferay.portlet.social.model.SocialActivityAchievement findByPrimaryKey( 177 long activityAchievementId) 178 throws com.liferay.portal.kernel.exception.SystemException, 179 com.liferay.portlet.social.NoSuchActivityAchievementException { 180 return getPersistence().findByPrimaryKey(activityAchievementId); 181 } 182 183 /** 184 * Returns the social activity achievement with the primary key or returns <code>null</code> if it could not be found. 185 * 186 * @param activityAchievementId the primary key of the social activity achievement 187 * @return the social activity achievement, or <code>null</code> if a social activity achievement with the primary key could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByPrimaryKey( 191 long activityAchievementId) 192 throws com.liferay.portal.kernel.exception.SystemException { 193 return getPersistence().fetchByPrimaryKey(activityAchievementId); 194 } 195 196 /** 197 * Returns all the social activity achievements where groupId = ?. 198 * 199 * @param groupId the group ID 200 * @return the matching social activity achievements 201 * @throws SystemException if a system exception occurred 202 */ 203 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId( 204 long groupId) 205 throws com.liferay.portal.kernel.exception.SystemException { 206 return getPersistence().findByGroupId(groupId); 207 } 208 209 /** 210 * Returns a range of all the social activity achievements where groupId = ?. 211 * 212 * <p> 213 * 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. 214 * </p> 215 * 216 * @param groupId the group ID 217 * @param start the lower bound of the range of social activity achievements 218 * @param end the upper bound of the range of social activity achievements (not inclusive) 219 * @return the range of matching social activity achievements 220 * @throws SystemException if a system exception occurred 221 */ 222 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId( 223 long groupId, int start, int end) 224 throws com.liferay.portal.kernel.exception.SystemException { 225 return getPersistence().findByGroupId(groupId, start, end); 226 } 227 228 /** 229 * Returns an ordered range of all the social activity achievements where groupId = ?. 230 * 231 * <p> 232 * 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. 233 * </p> 234 * 235 * @param groupId the group ID 236 * @param start the lower bound of the range of social activity achievements 237 * @param end the upper bound of the range of social activity achievements (not inclusive) 238 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 239 * @return the ordered range of matching social activity achievements 240 * @throws SystemException if a system exception occurred 241 */ 242 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByGroupId( 243 long groupId, int start, int end, 244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 245 throws com.liferay.portal.kernel.exception.SystemException { 246 return getPersistence() 247 .findByGroupId(groupId, start, end, orderByComparator); 248 } 249 250 /** 251 * Returns the first social activity achievement in the ordered set where groupId = ?. 252 * 253 * @param groupId the group ID 254 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 255 * @return the first matching social activity achievement 256 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 257 * @throws SystemException if a system exception occurred 258 */ 259 public static com.liferay.portlet.social.model.SocialActivityAchievement findByGroupId_First( 260 long groupId, 261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 262 throws com.liferay.portal.kernel.exception.SystemException, 263 com.liferay.portlet.social.NoSuchActivityAchievementException { 264 return getPersistence().findByGroupId_First(groupId, orderByComparator); 265 } 266 267 /** 268 * Returns the first social activity achievement in the ordered set where groupId = ?. 269 * 270 * @param groupId the group ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 273 * @throws SystemException if a system exception occurred 274 */ 275 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByGroupId_First( 276 long groupId, 277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 278 throws com.liferay.portal.kernel.exception.SystemException { 279 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 280 } 281 282 /** 283 * Returns the last social activity achievement in the ordered set where groupId = ?. 284 * 285 * @param groupId the group ID 286 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 287 * @return the last matching social activity achievement 288 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public static com.liferay.portlet.social.model.SocialActivityAchievement findByGroupId_Last( 292 long groupId, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.social.NoSuchActivityAchievementException { 296 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 297 } 298 299 /** 300 * Returns the last social activity achievement in the ordered set where groupId = ?. 301 * 302 * @param groupId the group ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 305 * @throws SystemException if a system exception occurred 306 */ 307 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByGroupId_Last( 308 long groupId, 309 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 310 throws com.liferay.portal.kernel.exception.SystemException { 311 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 312 } 313 314 /** 315 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ?. 316 * 317 * @param activityAchievementId the primary key of the current social activity achievement 318 * @param groupId the group ID 319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 320 * @return the previous, current, and next social activity achievement 321 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public static com.liferay.portlet.social.model.SocialActivityAchievement[] findByGroupId_PrevAndNext( 325 long activityAchievementId, long groupId, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.social.NoSuchActivityAchievementException { 329 return getPersistence() 330 .findByGroupId_PrevAndNext(activityAchievementId, groupId, 331 orderByComparator); 332 } 333 334 /** 335 * Returns all the social activity achievements where groupId = ? and userId = ?. 336 * 337 * @param groupId the group ID 338 * @param userId the user ID 339 * @return the matching social activity achievements 340 * @throws SystemException if a system exception occurred 341 */ 342 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U( 343 long groupId, long userId) 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return getPersistence().findByG_U(groupId, userId); 346 } 347 348 /** 349 * Returns a range of all the social activity achievements where groupId = ? and userId = ?. 350 * 351 * <p> 352 * 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. 353 * </p> 354 * 355 * @param groupId the group ID 356 * @param userId the user ID 357 * @param start the lower bound of the range of social activity achievements 358 * @param end the upper bound of the range of social activity achievements (not inclusive) 359 * @return the range of matching social activity achievements 360 * @throws SystemException if a system exception occurred 361 */ 362 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U( 363 long groupId, long userId, int start, int end) 364 throws com.liferay.portal.kernel.exception.SystemException { 365 return getPersistence().findByG_U(groupId, userId, start, end); 366 } 367 368 /** 369 * Returns an ordered range of all the social activity achievements where groupId = ? and userId = ?. 370 * 371 * <p> 372 * 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. 373 * </p> 374 * 375 * @param groupId the group ID 376 * @param userId the user ID 377 * @param start the lower bound of the range of social activity achievements 378 * @param end the upper bound of the range of social activity achievements (not inclusive) 379 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 380 * @return the ordered range of matching social activity achievements 381 * @throws SystemException if a system exception occurred 382 */ 383 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U( 384 long groupId, long userId, int start, int end, 385 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 386 throws com.liferay.portal.kernel.exception.SystemException { 387 return getPersistence() 388 .findByG_U(groupId, userId, start, end, orderByComparator); 389 } 390 391 /** 392 * Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?. 393 * 394 * @param groupId the group ID 395 * @param userId the user ID 396 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 397 * @return the first matching social activity achievement 398 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_First( 402 long groupId, long userId, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException, 405 com.liferay.portlet.social.NoSuchActivityAchievementException { 406 return getPersistence() 407 .findByG_U_First(groupId, userId, orderByComparator); 408 } 409 410 /** 411 * Returns the first social activity achievement in the ordered set where groupId = ? and userId = ?. 412 * 413 * @param groupId the group ID 414 * @param userId the user ID 415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 416 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 417 * @throws SystemException if a system exception occurred 418 */ 419 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_First( 420 long groupId, long userId, 421 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 422 throws com.liferay.portal.kernel.exception.SystemException { 423 return getPersistence() 424 .fetchByG_U_First(groupId, userId, orderByComparator); 425 } 426 427 /** 428 * Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?. 429 * 430 * @param groupId the group ID 431 * @param userId the user ID 432 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 433 * @return the last matching social activity achievement 434 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 435 * @throws SystemException if a system exception occurred 436 */ 437 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_Last( 438 long groupId, long userId, 439 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 440 throws com.liferay.portal.kernel.exception.SystemException, 441 com.liferay.portlet.social.NoSuchActivityAchievementException { 442 return getPersistence() 443 .findByG_U_Last(groupId, userId, orderByComparator); 444 } 445 446 /** 447 * Returns the last social activity achievement in the ordered set where groupId = ? and userId = ?. 448 * 449 * @param groupId the group ID 450 * @param userId the user ID 451 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 452 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 453 * @throws SystemException if a system exception occurred 454 */ 455 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_Last( 456 long groupId, long userId, 457 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 458 throws com.liferay.portal.kernel.exception.SystemException { 459 return getPersistence() 460 .fetchByG_U_Last(groupId, userId, orderByComparator); 461 } 462 463 /** 464 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ?. 465 * 466 * @param activityAchievementId the primary key of the current social activity achievement 467 * @param groupId the group ID 468 * @param userId the user ID 469 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 470 * @return the previous, current, and next social activity achievement 471 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 472 * @throws SystemException if a system exception occurred 473 */ 474 public static com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_U_PrevAndNext( 475 long activityAchievementId, long groupId, long userId, 476 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 477 throws com.liferay.portal.kernel.exception.SystemException, 478 com.liferay.portlet.social.NoSuchActivityAchievementException { 479 return getPersistence() 480 .findByG_U_PrevAndNext(activityAchievementId, groupId, 481 userId, orderByComparator); 482 } 483 484 /** 485 * Returns all the social activity achievements where groupId = ? and name = ?. 486 * 487 * @param groupId the group ID 488 * @param name the name 489 * @return the matching social activity achievements 490 * @throws SystemException if a system exception occurred 491 */ 492 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N( 493 long groupId, java.lang.String name) 494 throws com.liferay.portal.kernel.exception.SystemException { 495 return getPersistence().findByG_N(groupId, name); 496 } 497 498 /** 499 * Returns a range of all the social activity achievements where groupId = ? and name = ?. 500 * 501 * <p> 502 * 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. 503 * </p> 504 * 505 * @param groupId the group ID 506 * @param name the name 507 * @param start the lower bound of the range of social activity achievements 508 * @param end the upper bound of the range of social activity achievements (not inclusive) 509 * @return the range of matching social activity achievements 510 * @throws SystemException if a system exception occurred 511 */ 512 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N( 513 long groupId, java.lang.String name, int start, int end) 514 throws com.liferay.portal.kernel.exception.SystemException { 515 return getPersistence().findByG_N(groupId, name, start, end); 516 } 517 518 /** 519 * Returns an ordered range of all the social activity achievements where groupId = ? and name = ?. 520 * 521 * <p> 522 * 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. 523 * </p> 524 * 525 * @param groupId the group ID 526 * @param name the name 527 * @param start the lower bound of the range of social activity achievements 528 * @param end the upper bound of the range of social activity achievements (not inclusive) 529 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 530 * @return the ordered range of matching social activity achievements 531 * @throws SystemException if a system exception occurred 532 */ 533 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_N( 534 long groupId, java.lang.String name, int start, int end, 535 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 536 throws com.liferay.portal.kernel.exception.SystemException { 537 return getPersistence() 538 .findByG_N(groupId, name, start, end, orderByComparator); 539 } 540 541 /** 542 * Returns the first social activity achievement in the ordered set where groupId = ? and name = ?. 543 * 544 * @param groupId the group ID 545 * @param name the name 546 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 547 * @return the first matching social activity achievement 548 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 549 * @throws SystemException if a system exception occurred 550 */ 551 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_N_First( 552 long groupId, java.lang.String name, 553 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 554 throws com.liferay.portal.kernel.exception.SystemException, 555 com.liferay.portlet.social.NoSuchActivityAchievementException { 556 return getPersistence().findByG_N_First(groupId, name, orderByComparator); 557 } 558 559 /** 560 * Returns the first social activity achievement in the ordered set where groupId = ? and name = ?. 561 * 562 * @param groupId the group ID 563 * @param name the name 564 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 565 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 566 * @throws SystemException if a system exception occurred 567 */ 568 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_N_First( 569 long groupId, java.lang.String name, 570 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 571 throws com.liferay.portal.kernel.exception.SystemException { 572 return getPersistence() 573 .fetchByG_N_First(groupId, name, orderByComparator); 574 } 575 576 /** 577 * Returns the last social activity achievement in the ordered set where groupId = ? and name = ?. 578 * 579 * @param groupId the group ID 580 * @param name the name 581 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 582 * @return the last matching social activity achievement 583 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 584 * @throws SystemException if a system exception occurred 585 */ 586 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_N_Last( 587 long groupId, java.lang.String name, 588 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 589 throws com.liferay.portal.kernel.exception.SystemException, 590 com.liferay.portlet.social.NoSuchActivityAchievementException { 591 return getPersistence().findByG_N_Last(groupId, name, orderByComparator); 592 } 593 594 /** 595 * Returns the last social activity achievement in the ordered set where groupId = ? and name = ?. 596 * 597 * @param groupId the group ID 598 * @param name the name 599 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 600 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 601 * @throws SystemException if a system exception occurred 602 */ 603 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_N_Last( 604 long groupId, java.lang.String name, 605 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 606 throws com.liferay.portal.kernel.exception.SystemException { 607 return getPersistence().fetchByG_N_Last(groupId, name, orderByComparator); 608 } 609 610 /** 611 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and name = ?. 612 * 613 * @param activityAchievementId the primary key of the current social activity achievement 614 * @param groupId the group ID 615 * @param name the name 616 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 617 * @return the previous, current, and next social activity achievement 618 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 619 * @throws SystemException if a system exception occurred 620 */ 621 public static com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_N_PrevAndNext( 622 long activityAchievementId, long groupId, java.lang.String name, 623 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 624 throws com.liferay.portal.kernel.exception.SystemException, 625 com.liferay.portlet.social.NoSuchActivityAchievementException { 626 return getPersistence() 627 .findByG_N_PrevAndNext(activityAchievementId, groupId, name, 628 orderByComparator); 629 } 630 631 /** 632 * Returns all the social activity achievements where groupId = ? and firstInGroup = ?. 633 * 634 * @param groupId the group ID 635 * @param firstInGroup the first in group 636 * @return the matching social activity achievements 637 * @throws SystemException if a system exception occurred 638 */ 639 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F( 640 long groupId, boolean firstInGroup) 641 throws com.liferay.portal.kernel.exception.SystemException { 642 return getPersistence().findByG_F(groupId, firstInGroup); 643 } 644 645 /** 646 * Returns a range of all the social activity achievements where groupId = ? and firstInGroup = ?. 647 * 648 * <p> 649 * 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. 650 * </p> 651 * 652 * @param groupId the group ID 653 * @param firstInGroup the first in group 654 * @param start the lower bound of the range of social activity achievements 655 * @param end the upper bound of the range of social activity achievements (not inclusive) 656 * @return the range of matching social activity achievements 657 * @throws SystemException if a system exception occurred 658 */ 659 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F( 660 long groupId, boolean firstInGroup, int start, int end) 661 throws com.liferay.portal.kernel.exception.SystemException { 662 return getPersistence().findByG_F(groupId, firstInGroup, start, end); 663 } 664 665 /** 666 * Returns an ordered range of all the social activity achievements where groupId = ? and firstInGroup = ?. 667 * 668 * <p> 669 * 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. 670 * </p> 671 * 672 * @param groupId the group ID 673 * @param firstInGroup the first in group 674 * @param start the lower bound of the range of social activity achievements 675 * @param end the upper bound of the range of social activity achievements (not inclusive) 676 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 677 * @return the ordered range of matching social activity achievements 678 * @throws SystemException if a system exception occurred 679 */ 680 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_F( 681 long groupId, boolean firstInGroup, int start, int end, 682 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 683 throws com.liferay.portal.kernel.exception.SystemException { 684 return getPersistence() 685 .findByG_F(groupId, firstInGroup, start, end, 686 orderByComparator); 687 } 688 689 /** 690 * Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 691 * 692 * @param groupId the group ID 693 * @param firstInGroup the first in group 694 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 695 * @return the first matching social activity achievement 696 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 697 * @throws SystemException if a system exception occurred 698 */ 699 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_F_First( 700 long groupId, boolean firstInGroup, 701 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 702 throws com.liferay.portal.kernel.exception.SystemException, 703 com.liferay.portlet.social.NoSuchActivityAchievementException { 704 return getPersistence() 705 .findByG_F_First(groupId, firstInGroup, orderByComparator); 706 } 707 708 /** 709 * Returns the first social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 710 * 711 * @param groupId the group ID 712 * @param firstInGroup the first in group 713 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 714 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 715 * @throws SystemException if a system exception occurred 716 */ 717 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_F_First( 718 long groupId, boolean firstInGroup, 719 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 720 throws com.liferay.portal.kernel.exception.SystemException { 721 return getPersistence() 722 .fetchByG_F_First(groupId, firstInGroup, orderByComparator); 723 } 724 725 /** 726 * Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 727 * 728 * @param groupId the group ID 729 * @param firstInGroup the first in group 730 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 731 * @return the last matching social activity achievement 732 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 733 * @throws SystemException if a system exception occurred 734 */ 735 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_F_Last( 736 long groupId, boolean firstInGroup, 737 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 738 throws com.liferay.portal.kernel.exception.SystemException, 739 com.liferay.portlet.social.NoSuchActivityAchievementException { 740 return getPersistence() 741 .findByG_F_Last(groupId, firstInGroup, orderByComparator); 742 } 743 744 /** 745 * Returns the last social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 746 * 747 * @param groupId the group ID 748 * @param firstInGroup the first in group 749 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 750 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 751 * @throws SystemException if a system exception occurred 752 */ 753 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_F_Last( 754 long groupId, boolean firstInGroup, 755 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 756 throws com.liferay.portal.kernel.exception.SystemException { 757 return getPersistence() 758 .fetchByG_F_Last(groupId, firstInGroup, orderByComparator); 759 } 760 761 /** 762 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and firstInGroup = ?. 763 * 764 * @param activityAchievementId the primary key of the current social activity achievement 765 * @param groupId the group ID 766 * @param firstInGroup the first in group 767 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 768 * @return the previous, current, and next social activity achievement 769 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 770 * @throws SystemException if a system exception occurred 771 */ 772 public static com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_F_PrevAndNext( 773 long activityAchievementId, long groupId, boolean firstInGroup, 774 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 775 throws com.liferay.portal.kernel.exception.SystemException, 776 com.liferay.portlet.social.NoSuchActivityAchievementException { 777 return getPersistence() 778 .findByG_F_PrevAndNext(activityAchievementId, groupId, 779 firstInGroup, orderByComparator); 780 } 781 782 /** 783 * 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. 784 * 785 * @param groupId the group ID 786 * @param userId the user ID 787 * @param name the name 788 * @return the matching social activity achievement 789 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 790 * @throws SystemException if a system exception occurred 791 */ 792 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_N( 793 long groupId, long userId, java.lang.String name) 794 throws com.liferay.portal.kernel.exception.SystemException, 795 com.liferay.portlet.social.NoSuchActivityAchievementException { 796 return getPersistence().findByG_U_N(groupId, userId, name); 797 } 798 799 /** 800 * 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. 801 * 802 * @param groupId the group ID 803 * @param userId the user ID 804 * @param name the name 805 * @return the matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 806 * @throws SystemException if a system exception occurred 807 */ 808 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_N( 809 long groupId, long userId, java.lang.String name) 810 throws com.liferay.portal.kernel.exception.SystemException { 811 return getPersistence().fetchByG_U_N(groupId, userId, name); 812 } 813 814 /** 815 * 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. 816 * 817 * @param groupId the group ID 818 * @param userId the user ID 819 * @param name the name 820 * @param retrieveFromCache whether to use the finder cache 821 * @return the matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 822 * @throws SystemException if a system exception occurred 823 */ 824 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_N( 825 long groupId, long userId, java.lang.String name, 826 boolean retrieveFromCache) 827 throws com.liferay.portal.kernel.exception.SystemException { 828 return getPersistence() 829 .fetchByG_U_N(groupId, userId, name, retrieveFromCache); 830 } 831 832 /** 833 * Returns all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. 834 * 835 * @param groupId the group ID 836 * @param userId the user ID 837 * @param firstInGroup the first in group 838 * @return the matching social activity achievements 839 * @throws SystemException if a system exception occurred 840 */ 841 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U_F( 842 long groupId, long userId, boolean firstInGroup) 843 throws com.liferay.portal.kernel.exception.SystemException { 844 return getPersistence().findByG_U_F(groupId, userId, firstInGroup); 845 } 846 847 /** 848 * Returns a range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. 849 * 850 * <p> 851 * 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. 852 * </p> 853 * 854 * @param groupId the group ID 855 * @param userId the user ID 856 * @param firstInGroup the first in group 857 * @param start the lower bound of the range of social activity achievements 858 * @param end the upper bound of the range of social activity achievements (not inclusive) 859 * @return the range of matching social activity achievements 860 * @throws SystemException if a system exception occurred 861 */ 862 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U_F( 863 long groupId, long userId, boolean firstInGroup, int start, int end) 864 throws com.liferay.portal.kernel.exception.SystemException { 865 return getPersistence() 866 .findByG_U_F(groupId, userId, firstInGroup, start, end); 867 } 868 869 /** 870 * Returns an ordered range of all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. 871 * 872 * <p> 873 * 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. 874 * </p> 875 * 876 * @param groupId the group ID 877 * @param userId the user ID 878 * @param firstInGroup the first in group 879 * @param start the lower bound of the range of social activity achievements 880 * @param end the upper bound of the range of social activity achievements (not inclusive) 881 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 882 * @return the ordered range of matching social activity achievements 883 * @throws SystemException if a system exception occurred 884 */ 885 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findByG_U_F( 886 long groupId, long userId, boolean firstInGroup, int start, int end, 887 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 888 throws com.liferay.portal.kernel.exception.SystemException { 889 return getPersistence() 890 .findByG_U_F(groupId, userId, firstInGroup, start, end, 891 orderByComparator); 892 } 893 894 /** 895 * Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 896 * 897 * @param groupId the group ID 898 * @param userId the user ID 899 * @param firstInGroup the first in group 900 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 901 * @return the first matching social activity achievement 902 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 903 * @throws SystemException if a system exception occurred 904 */ 905 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_F_First( 906 long groupId, long userId, boolean firstInGroup, 907 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 908 throws com.liferay.portal.kernel.exception.SystemException, 909 com.liferay.portlet.social.NoSuchActivityAchievementException { 910 return getPersistence() 911 .findByG_U_F_First(groupId, userId, firstInGroup, 912 orderByComparator); 913 } 914 915 /** 916 * Returns the first social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 917 * 918 * @param groupId the group ID 919 * @param userId the user ID 920 * @param firstInGroup the first in group 921 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 922 * @return the first matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 923 * @throws SystemException if a system exception occurred 924 */ 925 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_F_First( 926 long groupId, long userId, boolean firstInGroup, 927 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 928 throws com.liferay.portal.kernel.exception.SystemException { 929 return getPersistence() 930 .fetchByG_U_F_First(groupId, userId, firstInGroup, 931 orderByComparator); 932 } 933 934 /** 935 * Returns the last social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 936 * 937 * @param groupId the group ID 938 * @param userId the user ID 939 * @param firstInGroup the first in group 940 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 941 * @return the last matching social activity achievement 942 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a matching social activity achievement could not be found 943 * @throws SystemException if a system exception occurred 944 */ 945 public static com.liferay.portlet.social.model.SocialActivityAchievement findByG_U_F_Last( 946 long groupId, long userId, boolean firstInGroup, 947 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 948 throws com.liferay.portal.kernel.exception.SystemException, 949 com.liferay.portlet.social.NoSuchActivityAchievementException { 950 return getPersistence() 951 .findByG_U_F_Last(groupId, userId, firstInGroup, 952 orderByComparator); 953 } 954 955 /** 956 * Returns the last social activity achievement in the ordered set 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 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 962 * @return the last matching social activity achievement, or <code>null</code> if a matching social activity achievement could not be found 963 * @throws SystemException if a system exception occurred 964 */ 965 public static com.liferay.portlet.social.model.SocialActivityAchievement fetchByG_U_F_Last( 966 long groupId, long userId, boolean firstInGroup, 967 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 968 throws com.liferay.portal.kernel.exception.SystemException { 969 return getPersistence() 970 .fetchByG_U_F_Last(groupId, userId, firstInGroup, 971 orderByComparator); 972 } 973 974 /** 975 * Returns the social activity achievements before and after the current social activity achievement in the ordered set where groupId = ? and userId = ? and firstInGroup = ?. 976 * 977 * @param activityAchievementId the primary key of the current social activity achievement 978 * @param groupId the group ID 979 * @param userId the user ID 980 * @param firstInGroup the first in group 981 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 982 * @return the previous, current, and next social activity achievement 983 * @throws com.liferay.portlet.social.NoSuchActivityAchievementException if a social activity achievement with the primary key could not be found 984 * @throws SystemException if a system exception occurred 985 */ 986 public static com.liferay.portlet.social.model.SocialActivityAchievement[] findByG_U_F_PrevAndNext( 987 long activityAchievementId, long groupId, long userId, 988 boolean firstInGroup, 989 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 990 throws com.liferay.portal.kernel.exception.SystemException, 991 com.liferay.portlet.social.NoSuchActivityAchievementException { 992 return getPersistence() 993 .findByG_U_F_PrevAndNext(activityAchievementId, groupId, 994 userId, firstInGroup, orderByComparator); 995 } 996 997 /** 998 * Returns all the social activity achievements. 999 * 1000 * @return the social activity achievements 1001 * @throws SystemException if a system exception occurred 1002 */ 1003 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll() 1004 throws com.liferay.portal.kernel.exception.SystemException { 1005 return getPersistence().findAll(); 1006 } 1007 1008 /** 1009 * Returns a range of all the social activity achievements. 1010 * 1011 * <p> 1012 * 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. 1013 * </p> 1014 * 1015 * @param start the lower bound of the range of social activity achievements 1016 * @param end the upper bound of the range of social activity achievements (not inclusive) 1017 * @return the range of social activity achievements 1018 * @throws SystemException if a system exception occurred 1019 */ 1020 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll( 1021 int start, int end) 1022 throws com.liferay.portal.kernel.exception.SystemException { 1023 return getPersistence().findAll(start, end); 1024 } 1025 1026 /** 1027 * Returns an ordered range of all the social activity achievements. 1028 * 1029 * <p> 1030 * 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. 1031 * </p> 1032 * 1033 * @param start the lower bound of the range of social activity achievements 1034 * @param end the upper bound of the range of social activity achievements (not inclusive) 1035 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1036 * @return the ordered range of social activity achievements 1037 * @throws SystemException if a system exception occurred 1038 */ 1039 public static java.util.List<com.liferay.portlet.social.model.SocialActivityAchievement> findAll( 1040 int start, int end, 1041 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1042 throws com.liferay.portal.kernel.exception.SystemException { 1043 return getPersistence().findAll(start, end, orderByComparator); 1044 } 1045 1046 /** 1047 * Removes all the social activity achievements where groupId = ? from the database. 1048 * 1049 * @param groupId the group ID 1050 * @throws SystemException if a system exception occurred 1051 */ 1052 public static void removeByGroupId(long groupId) 1053 throws com.liferay.portal.kernel.exception.SystemException { 1054 getPersistence().removeByGroupId(groupId); 1055 } 1056 1057 /** 1058 * Removes all the social activity achievements where groupId = ? and userId = ? from the database. 1059 * 1060 * @param groupId the group ID 1061 * @param userId the user ID 1062 * @throws SystemException if a system exception occurred 1063 */ 1064 public static void removeByG_U(long groupId, long userId) 1065 throws com.liferay.portal.kernel.exception.SystemException { 1066 getPersistence().removeByG_U(groupId, userId); 1067 } 1068 1069 /** 1070 * Removes all the social activity achievements where groupId = ? and name = ? from the database. 1071 * 1072 * @param groupId the group ID 1073 * @param name the name 1074 * @throws SystemException if a system exception occurred 1075 */ 1076 public static void removeByG_N(long groupId, java.lang.String name) 1077 throws com.liferay.portal.kernel.exception.SystemException { 1078 getPersistence().removeByG_N(groupId, name); 1079 } 1080 1081 /** 1082 * Removes all the social activity achievements where groupId = ? and firstInGroup = ? from the database. 1083 * 1084 * @param groupId the group ID 1085 * @param firstInGroup the first in group 1086 * @throws SystemException if a system exception occurred 1087 */ 1088 public static void removeByG_F(long groupId, boolean firstInGroup) 1089 throws com.liferay.portal.kernel.exception.SystemException { 1090 getPersistence().removeByG_F(groupId, firstInGroup); 1091 } 1092 1093 /** 1094 * Removes the social activity achievement where groupId = ? and userId = ? and name = ? from the database. 1095 * 1096 * @param groupId the group ID 1097 * @param userId the user ID 1098 * @param name the name 1099 * @return the social activity achievement that was removed 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public static com.liferay.portlet.social.model.SocialActivityAchievement removeByG_U_N( 1103 long groupId, long userId, java.lang.String name) 1104 throws com.liferay.portal.kernel.exception.SystemException, 1105 com.liferay.portlet.social.NoSuchActivityAchievementException { 1106 return getPersistence().removeByG_U_N(groupId, userId, name); 1107 } 1108 1109 /** 1110 * Removes all the social activity achievements where groupId = ? and userId = ? and firstInGroup = ? from the database. 1111 * 1112 * @param groupId the group ID 1113 * @param userId the user ID 1114 * @param firstInGroup the first in group 1115 * @throws SystemException if a system exception occurred 1116 */ 1117 public static void removeByG_U_F(long groupId, long userId, 1118 boolean firstInGroup) 1119 throws com.liferay.portal.kernel.exception.SystemException { 1120 getPersistence().removeByG_U_F(groupId, userId, firstInGroup); 1121 } 1122 1123 /** 1124 * Removes all the social activity achievements from the database. 1125 * 1126 * @throws SystemException if a system exception occurred 1127 */ 1128 public static void removeAll() 1129 throws com.liferay.portal.kernel.exception.SystemException { 1130 getPersistence().removeAll(); 1131 } 1132 1133 /** 1134 * Returns the number of social activity achievements where groupId = ?. 1135 * 1136 * @param groupId the group ID 1137 * @return the number of matching social activity achievements 1138 * @throws SystemException if a system exception occurred 1139 */ 1140 public static int countByGroupId(long groupId) 1141 throws com.liferay.portal.kernel.exception.SystemException { 1142 return getPersistence().countByGroupId(groupId); 1143 } 1144 1145 /** 1146 * Returns the number of social activity achievements where groupId = ? and userId = ?. 1147 * 1148 * @param groupId the group ID 1149 * @param userId the user ID 1150 * @return the number of matching social activity achievements 1151 * @throws SystemException if a system exception occurred 1152 */ 1153 public static int countByG_U(long groupId, long userId) 1154 throws com.liferay.portal.kernel.exception.SystemException { 1155 return getPersistence().countByG_U(groupId, userId); 1156 } 1157 1158 /** 1159 * Returns the number of social activity achievements where groupId = ? and name = ?. 1160 * 1161 * @param groupId the group ID 1162 * @param name the name 1163 * @return the number of matching social activity achievements 1164 * @throws SystemException if a system exception occurred 1165 */ 1166 public static int countByG_N(long groupId, java.lang.String name) 1167 throws com.liferay.portal.kernel.exception.SystemException { 1168 return getPersistence().countByG_N(groupId, name); 1169 } 1170 1171 /** 1172 * Returns the number of social activity achievements where groupId = ? and firstInGroup = ?. 1173 * 1174 * @param groupId the group ID 1175 * @param firstInGroup the first in group 1176 * @return the number of matching social activity achievements 1177 * @throws SystemException if a system exception occurred 1178 */ 1179 public static int countByG_F(long groupId, boolean firstInGroup) 1180 throws com.liferay.portal.kernel.exception.SystemException { 1181 return getPersistence().countByG_F(groupId, firstInGroup); 1182 } 1183 1184 /** 1185 * Returns the number of social activity achievements where groupId = ? and userId = ? and name = ?. 1186 * 1187 * @param groupId the group ID 1188 * @param userId the user ID 1189 * @param name the name 1190 * @return the number of matching social activity achievements 1191 * @throws SystemException if a system exception occurred 1192 */ 1193 public static int countByG_U_N(long groupId, long userId, 1194 java.lang.String name) 1195 throws com.liferay.portal.kernel.exception.SystemException { 1196 return getPersistence().countByG_U_N(groupId, userId, name); 1197 } 1198 1199 /** 1200 * Returns the number of social activity achievements where groupId = ? and userId = ? and firstInGroup = ?. 1201 * 1202 * @param groupId the group ID 1203 * @param userId the user ID 1204 * @param firstInGroup the first in group 1205 * @return the number of matching social activity achievements 1206 * @throws SystemException if a system exception occurred 1207 */ 1208 public static int countByG_U_F(long groupId, long userId, 1209 boolean firstInGroup) 1210 throws com.liferay.portal.kernel.exception.SystemException { 1211 return getPersistence().countByG_U_F(groupId, userId, firstInGroup); 1212 } 1213 1214 /** 1215 * Returns the number of social activity achievements. 1216 * 1217 * @return the number of social activity achievements 1218 * @throws SystemException if a system exception occurred 1219 */ 1220 public static int countAll() 1221 throws com.liferay.portal.kernel.exception.SystemException { 1222 return getPersistence().countAll(); 1223 } 1224 1225 public static SocialActivityAchievementPersistence getPersistence() { 1226 if (_persistence == null) { 1227 _persistence = (SocialActivityAchievementPersistence)PortalBeanLocatorUtil.locate(SocialActivityAchievementPersistence.class.getName()); 1228 1229 ReferenceRegistry.registerReference(SocialActivityAchievementUtil.class, 1230 "_persistence"); 1231 } 1232 1233 return _persistence; 1234 } 1235 1236 /** 1237 * @deprecated 1238 */ 1239 public void setPersistence(SocialActivityAchievementPersistence persistence) { 1240 } 1241 1242 private static SocialActivityAchievementPersistence _persistence; 1243 }