001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.social.model.SocialActivityLimit; 020 021 /** 022 * The persistence interface for the social activity limit service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see SocialActivityLimitPersistenceImpl 030 * @see SocialActivityLimitUtil 031 * @generated 032 */ 033 public interface SocialActivityLimitPersistence extends BasePersistence<SocialActivityLimit> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link SocialActivityLimitUtil} to access the social activity limit persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the social activity limits where userId = ?. 042 * 043 * @param userId the user ID 044 * @return the matching social activity limits 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 048 long userId) throws com.liferay.portal.kernel.exception.SystemException; 049 050 /** 051 * Returns a range of all the social activity limits where userId = ?. 052 * 053 * <p> 054 * 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.SocialActivityLimitModelImpl}. 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. 055 * </p> 056 * 057 * @param userId the user ID 058 * @param start the lower bound of the range of social activity limits 059 * @param end the upper bound of the range of social activity limits (not inclusive) 060 * @return the range of matching social activity limits 061 * @throws SystemException if a system exception occurred 062 */ 063 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 064 long userId, int start, int end) 065 throws com.liferay.portal.kernel.exception.SystemException; 066 067 /** 068 * Returns an ordered range of all the social activity limits where userId = ?. 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.SocialActivityLimitModelImpl}. 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 userId the user ID 075 * @param start the lower bound of the range of social activity limits 076 * @param end the upper bound of the range of social activity limits (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 limits 079 * @throws SystemException if a system exception occurred 080 */ 081 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 082 long userId, int start, int end, 083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 084 throws com.liferay.portal.kernel.exception.SystemException; 085 086 /** 087 * Returns the first social activity limit in the ordered set where userId = ?. 088 * 089 * @param userId the user ID 090 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 091 * @return the first matching social activity limit 092 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portlet.social.model.SocialActivityLimit findByUserId_First( 096 long userId, 097 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 098 throws com.liferay.portal.kernel.exception.SystemException, 099 com.liferay.portlet.social.NoSuchActivityLimitException; 100 101 /** 102 * Returns the first social activity limit in the ordered set where userId = ?. 103 * 104 * @param userId the user ID 105 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 106 * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 107 * @throws SystemException if a system exception occurred 108 */ 109 public com.liferay.portlet.social.model.SocialActivityLimit fetchByUserId_First( 110 long userId, 111 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 112 throws com.liferay.portal.kernel.exception.SystemException; 113 114 /** 115 * Returns the last social activity limit in the ordered set where userId = ?. 116 * 117 * @param userId the user ID 118 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 119 * @return the last matching social activity limit 120 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 121 * @throws SystemException if a system exception occurred 122 */ 123 public com.liferay.portlet.social.model.SocialActivityLimit findByUserId_Last( 124 long userId, 125 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 126 throws com.liferay.portal.kernel.exception.SystemException, 127 com.liferay.portlet.social.NoSuchActivityLimitException; 128 129 /** 130 * Returns the last social activity limit in the ordered set where userId = ?. 131 * 132 * @param userId the user ID 133 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 134 * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 135 * @throws SystemException if a system exception occurred 136 */ 137 public com.liferay.portlet.social.model.SocialActivityLimit fetchByUserId_Last( 138 long userId, 139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 140 throws com.liferay.portal.kernel.exception.SystemException; 141 142 /** 143 * Returns the social activity limits before and after the current social activity limit in the ordered set where userId = ?. 144 * 145 * @param activityLimitId the primary key of the current social activity limit 146 * @param userId the user ID 147 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 148 * @return the previous, current, and next social activity limit 149 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public com.liferay.portlet.social.model.SocialActivityLimit[] findByUserId_PrevAndNext( 153 long activityLimitId, long userId, 154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.social.NoSuchActivityLimitException; 157 158 /** 159 * Removes all the social activity limits where userId = ? from the database. 160 * 161 * @param userId the user ID 162 * @throws SystemException if a system exception occurred 163 */ 164 public void removeByUserId(long userId) 165 throws com.liferay.portal.kernel.exception.SystemException; 166 167 /** 168 * Returns the number of social activity limits where userId = ?. 169 * 170 * @param userId the user ID 171 * @return the number of matching social activity limits 172 * @throws SystemException if a system exception occurred 173 */ 174 public int countByUserId(long userId) 175 throws com.liferay.portal.kernel.exception.SystemException; 176 177 /** 178 * Returns all the social activity limits where classNameId = ? and classPK = ?. 179 * 180 * @param classNameId the class name ID 181 * @param classPK the class p k 182 * @return the matching social activity limits 183 * @throws SystemException if a system exception occurred 184 */ 185 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 186 long classNameId, long classPK) 187 throws com.liferay.portal.kernel.exception.SystemException; 188 189 /** 190 * Returns a range of all the social activity limits where classNameId = ? and classPK = ?. 191 * 192 * <p> 193 * 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.SocialActivityLimitModelImpl}. 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. 194 * </p> 195 * 196 * @param classNameId the class name ID 197 * @param classPK the class p k 198 * @param start the lower bound of the range of social activity limits 199 * @param end the upper bound of the range of social activity limits (not inclusive) 200 * @return the range of matching social activity limits 201 * @throws SystemException if a system exception occurred 202 */ 203 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 204 long classNameId, long classPK, int start, int end) 205 throws com.liferay.portal.kernel.exception.SystemException; 206 207 /** 208 * Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?. 209 * 210 * <p> 211 * 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.SocialActivityLimitModelImpl}. 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. 212 * </p> 213 * 214 * @param classNameId the class name ID 215 * @param classPK the class p k 216 * @param start the lower bound of the range of social activity limits 217 * @param end the upper bound of the range of social activity limits (not inclusive) 218 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 219 * @return the ordered range of matching social activity limits 220 * @throws SystemException if a system exception occurred 221 */ 222 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 223 long classNameId, long classPK, int start, int end, 224 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 225 throws com.liferay.portal.kernel.exception.SystemException; 226 227 /** 228 * Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. 229 * 230 * @param classNameId the class name ID 231 * @param classPK the class p k 232 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 233 * @return the first matching social activity limit 234 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 235 * @throws SystemException if a system exception occurred 236 */ 237 public com.liferay.portlet.social.model.SocialActivityLimit findByC_C_First( 238 long classNameId, long classPK, 239 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 240 throws com.liferay.portal.kernel.exception.SystemException, 241 com.liferay.portlet.social.NoSuchActivityLimitException; 242 243 /** 244 * Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. 245 * 246 * @param classNameId the class name ID 247 * @param classPK the class p k 248 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 249 * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 250 * @throws SystemException if a system exception occurred 251 */ 252 public com.liferay.portlet.social.model.SocialActivityLimit fetchByC_C_First( 253 long classNameId, long classPK, 254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 255 throws com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. 259 * 260 * @param classNameId the class name ID 261 * @param classPK the class p k 262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 263 * @return the last matching social activity limit 264 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 265 * @throws SystemException if a system exception occurred 266 */ 267 public com.liferay.portlet.social.model.SocialActivityLimit findByC_C_Last( 268 long classNameId, long classPK, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.kernel.exception.SystemException, 271 com.liferay.portlet.social.NoSuchActivityLimitException; 272 273 /** 274 * Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. 275 * 276 * @param classNameId the class name ID 277 * @param classPK the class p k 278 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 279 * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public com.liferay.portlet.social.model.SocialActivityLimit fetchByC_C_Last( 283 long classNameId, long classPK, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.kernel.exception.SystemException; 286 287 /** 288 * Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = ? and classPK = ?. 289 * 290 * @param activityLimitId the primary key of the current social activity limit 291 * @param classNameId the class name ID 292 * @param classPK the class p k 293 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 294 * @return the previous, current, and next social activity limit 295 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 296 * @throws SystemException if a system exception occurred 297 */ 298 public com.liferay.portlet.social.model.SocialActivityLimit[] findByC_C_PrevAndNext( 299 long activityLimitId, long classNameId, long classPK, 300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 301 throws com.liferay.portal.kernel.exception.SystemException, 302 com.liferay.portlet.social.NoSuchActivityLimitException; 303 304 /** 305 * Removes all the social activity limits where classNameId = ? and classPK = ? from the database. 306 * 307 * @param classNameId the class name ID 308 * @param classPK the class p k 309 * @throws SystemException if a system exception occurred 310 */ 311 public void removeByC_C(long classNameId, long classPK) 312 throws com.liferay.portal.kernel.exception.SystemException; 313 314 /** 315 * Returns the number of social activity limits where classNameId = ? and classPK = ?. 316 * 317 * @param classNameId the class name ID 318 * @param classPK the class p k 319 * @return the number of matching social activity limits 320 * @throws SystemException if a system exception occurred 321 */ 322 public int countByC_C(long classNameId, long classPK) 323 throws com.liferay.portal.kernel.exception.SystemException; 324 325 /** 326 * Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityLimitException} if it could not be found. 327 * 328 * @param groupId the group ID 329 * @param userId the user ID 330 * @param classNameId the class name ID 331 * @param classPK the class p k 332 * @param activityType the activity type 333 * @param activityCounterName the activity counter name 334 * @return the matching social activity limit 335 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portlet.social.model.SocialActivityLimit findByG_U_C_C_A_A( 339 long groupId, long userId, long classNameId, long classPK, 340 int activityType, java.lang.String activityCounterName) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.social.NoSuchActivityLimitException; 343 344 /** 345 * Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 346 * 347 * @param groupId the group ID 348 * @param userId the user ID 349 * @param classNameId the class name ID 350 * @param classPK the class p k 351 * @param activityType the activity type 352 * @param activityCounterName the activity counter name 353 * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 354 * @throws SystemException if a system exception occurred 355 */ 356 public com.liferay.portlet.social.model.SocialActivityLimit fetchByG_U_C_C_A_A( 357 long groupId, long userId, long classNameId, long classPK, 358 int activityType, java.lang.String activityCounterName) 359 throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 363 * 364 * @param groupId the group ID 365 * @param userId the user ID 366 * @param classNameId the class name ID 367 * @param classPK the class p k 368 * @param activityType the activity type 369 * @param activityCounterName the activity counter name 370 * @param retrieveFromCache whether to use the finder cache 371 * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 372 * @throws SystemException if a system exception occurred 373 */ 374 public com.liferay.portlet.social.model.SocialActivityLimit fetchByG_U_C_C_A_A( 375 long groupId, long userId, long classNameId, long classPK, 376 int activityType, java.lang.String activityCounterName, 377 boolean retrieveFromCache) 378 throws com.liferay.portal.kernel.exception.SystemException; 379 380 /** 381 * Removes the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? from the database. 382 * 383 * @param groupId the group ID 384 * @param userId the user ID 385 * @param classNameId the class name ID 386 * @param classPK the class p k 387 * @param activityType the activity type 388 * @param activityCounterName the activity counter name 389 * @return the social activity limit that was removed 390 * @throws SystemException if a system exception occurred 391 */ 392 public com.liferay.portlet.social.model.SocialActivityLimit removeByG_U_C_C_A_A( 393 long groupId, long userId, long classNameId, long classPK, 394 int activityType, java.lang.String activityCounterName) 395 throws com.liferay.portal.kernel.exception.SystemException, 396 com.liferay.portlet.social.NoSuchActivityLimitException; 397 398 /** 399 * Returns the number of social activity limits where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ?. 400 * 401 * @param groupId the group ID 402 * @param userId the user ID 403 * @param classNameId the class name ID 404 * @param classPK the class p k 405 * @param activityType the activity type 406 * @param activityCounterName the activity counter name 407 * @return the number of matching social activity limits 408 * @throws SystemException if a system exception occurred 409 */ 410 public int countByG_U_C_C_A_A(long groupId, long userId, long classNameId, 411 long classPK, int activityType, java.lang.String activityCounterName) 412 throws com.liferay.portal.kernel.exception.SystemException; 413 414 /** 415 * Caches the social activity limit in the entity cache if it is enabled. 416 * 417 * @param socialActivityLimit the social activity limit 418 */ 419 public void cacheResult( 420 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit); 421 422 /** 423 * Caches the social activity limits in the entity cache if it is enabled. 424 * 425 * @param socialActivityLimits the social activity limits 426 */ 427 public void cacheResult( 428 java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> socialActivityLimits); 429 430 /** 431 * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database. 432 * 433 * @param activityLimitId the primary key for the new social activity limit 434 * @return the new social activity limit 435 */ 436 public com.liferay.portlet.social.model.SocialActivityLimit create( 437 long activityLimitId); 438 439 /** 440 * Removes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners. 441 * 442 * @param activityLimitId the primary key of the social activity limit 443 * @return the social activity limit that was removed 444 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public com.liferay.portlet.social.model.SocialActivityLimit remove( 448 long activityLimitId) 449 throws com.liferay.portal.kernel.exception.SystemException, 450 com.liferay.portlet.social.NoSuchActivityLimitException; 451 452 public com.liferay.portlet.social.model.SocialActivityLimit updateImpl( 453 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) 454 throws com.liferay.portal.kernel.exception.SystemException; 455 456 /** 457 * Returns the social activity limit with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityLimitException} if it could not be found. 458 * 459 * @param activityLimitId the primary key of the social activity limit 460 * @return the social activity limit 461 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 462 * @throws SystemException if a system exception occurred 463 */ 464 public com.liferay.portlet.social.model.SocialActivityLimit findByPrimaryKey( 465 long activityLimitId) 466 throws com.liferay.portal.kernel.exception.SystemException, 467 com.liferay.portlet.social.NoSuchActivityLimitException; 468 469 /** 470 * Returns the social activity limit with the primary key or returns <code>null</code> if it could not be found. 471 * 472 * @param activityLimitId the primary key of the social activity limit 473 * @return the social activity limit, or <code>null</code> if a social activity limit with the primary key could not be found 474 * @throws SystemException if a system exception occurred 475 */ 476 public com.liferay.portlet.social.model.SocialActivityLimit fetchByPrimaryKey( 477 long activityLimitId) 478 throws com.liferay.portal.kernel.exception.SystemException; 479 480 /** 481 * Returns all the social activity limits. 482 * 483 * @return the social activity limits 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll() 487 throws com.liferay.portal.kernel.exception.SystemException; 488 489 /** 490 * Returns a range of all the social activity limits. 491 * 492 * <p> 493 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityLimitModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 494 * </p> 495 * 496 * @param start the lower bound of the range of social activity limits 497 * @param end the upper bound of the range of social activity limits (not inclusive) 498 * @return the range of social activity limits 499 * @throws SystemException if a system exception occurred 500 */ 501 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll( 502 int start, int end) 503 throws com.liferay.portal.kernel.exception.SystemException; 504 505 /** 506 * Returns an ordered range of all the social activity limits. 507 * 508 * <p> 509 * 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.SocialActivityLimitModelImpl}. 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. 510 * </p> 511 * 512 * @param start the lower bound of the range of social activity limits 513 * @param end the upper bound of the range of social activity limits (not inclusive) 514 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 515 * @return the ordered range of social activity limits 516 * @throws SystemException if a system exception occurred 517 */ 518 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll( 519 int start, int end, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException; 522 523 /** 524 * Removes all the social activity limits from the database. 525 * 526 * @throws SystemException if a system exception occurred 527 */ 528 public void removeAll() 529 throws com.liferay.portal.kernel.exception.SystemException; 530 531 /** 532 * Returns the number of social activity limits. 533 * 534 * @return the number of social activity limits 535 * @throws SystemException if a system exception occurred 536 */ 537 public int countAll() 538 throws com.liferay.portal.kernel.exception.SystemException; 539 }