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