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