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