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