001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.social.model.SocialActivityCounter; 020 021 /** 022 * The persistence interface for the social activity counter 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 SocialActivityCounterPersistenceImpl 030 * @see SocialActivityCounterUtil 031 * @generated 032 */ 033 public interface SocialActivityCounterPersistence extends BasePersistence<SocialActivityCounter> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link SocialActivityCounterUtil} to access the social activity counter persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the social activity counter in the entity cache if it is enabled. 042 * 043 * @param socialActivityCounter the social activity counter 044 */ 045 public void cacheResult( 046 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter); 047 048 /** 049 * Caches the social activity counters in the entity cache if it is enabled. 050 * 051 * @param socialActivityCounters the social activity counters 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> socialActivityCounters); 055 056 /** 057 * Creates a new social activity counter with the primary key. Does not add the social activity counter to the database. 058 * 059 * @param activityCounterId the primary key for the new social activity counter 060 * @return the new social activity counter 061 */ 062 public com.liferay.portlet.social.model.SocialActivityCounter create( 063 long activityCounterId); 064 065 /** 066 * Removes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param activityCounterId the primary key of the social activity counter 069 * @return the social activity counter that was removed 070 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.social.model.SocialActivityCounter remove( 074 long activityCounterId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.social.NoSuchActivityCounterException; 077 078 public com.liferay.portlet.social.model.SocialActivityCounter updateImpl( 079 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the social activity counter with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found. 084 * 085 * @param activityCounterId the primary key of the social activity counter 086 * @return the social activity counter 087 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.social.model.SocialActivityCounter findByPrimaryKey( 091 long activityCounterId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.social.NoSuchActivityCounterException; 094 095 /** 096 * Returns the social activity counter with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param activityCounterId the primary key of the social activity counter 099 * @return the social activity counter, or <code>null</code> if a social activity counter with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.social.model.SocialActivityCounter fetchByPrimaryKey( 103 long activityCounterId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the social activity counters where classNameId = ? and classPK = ?. 108 * 109 * @param classNameId the class name ID 110 * @param classPK the class p k 111 * @return the matching social activity counters 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 115 long classNameId, long classPK) 116 throws com.liferay.portal.kernel.exception.SystemException; 117 118 /** 119 * Returns a range of all the social activity counters where classNameId = ? and classPK = ?. 120 * 121 * <p> 122 * 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. 123 * </p> 124 * 125 * @param classNameId the class name ID 126 * @param classPK the class p k 127 * @param start the lower bound of the range of social activity counters 128 * @param end the upper bound of the range of social activity counters (not inclusive) 129 * @return the range of matching social activity counters 130 * @throws SystemException if a system exception occurred 131 */ 132 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 133 long classNameId, long classPK, int start, int end) 134 throws com.liferay.portal.kernel.exception.SystemException; 135 136 /** 137 * Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?. 138 * 139 * <p> 140 * 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. 141 * </p> 142 * 143 * @param classNameId the class name ID 144 * @param classPK the class p k 145 * @param start the lower bound of the range of social activity counters 146 * @param end the upper bound of the range of social activity counters (not inclusive) 147 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 148 * @return the ordered range of matching social activity counters 149 * @throws SystemException if a system exception occurred 150 */ 151 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 152 long classNameId, long classPK, int start, int end, 153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 154 throws com.liferay.portal.kernel.exception.SystemException; 155 156 /** 157 * Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?. 158 * 159 * @param classNameId the class name ID 160 * @param classPK the class p k 161 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 162 * @return the first matching social activity counter 163 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 164 * @throws SystemException if a system exception occurred 165 */ 166 public com.liferay.portlet.social.model.SocialActivityCounter findByC_C_First( 167 long classNameId, long classPK, 168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 169 throws com.liferay.portal.kernel.exception.SystemException, 170 com.liferay.portlet.social.NoSuchActivityCounterException; 171 172 /** 173 * Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?. 174 * 175 * @param classNameId the class name ID 176 * @param classPK the class p k 177 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 178 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 179 * @throws SystemException if a system exception occurred 180 */ 181 public com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_First( 182 long classNameId, long classPK, 183 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 184 throws com.liferay.portal.kernel.exception.SystemException; 185 186 /** 187 * Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?. 188 * 189 * @param classNameId the class name ID 190 * @param classPK the class p k 191 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 192 * @return the last matching social activity counter 193 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 194 * @throws SystemException if a system exception occurred 195 */ 196 public com.liferay.portlet.social.model.SocialActivityCounter findByC_C_Last( 197 long classNameId, long classPK, 198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 199 throws com.liferay.portal.kernel.exception.SystemException, 200 com.liferay.portlet.social.NoSuchActivityCounterException; 201 202 /** 203 * Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?. 204 * 205 * @param classNameId the class name ID 206 * @param classPK the class p k 207 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 208 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 209 * @throws SystemException if a system exception occurred 210 */ 211 public com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_Last( 212 long classNameId, long classPK, 213 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 214 throws com.liferay.portal.kernel.exception.SystemException; 215 216 /** 217 * Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = ? and classPK = ?. 218 * 219 * @param activityCounterId the primary key of the current social activity counter 220 * @param classNameId the class name ID 221 * @param classPK the class p k 222 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 223 * @return the previous, current, and next social activity counter 224 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 225 * @throws SystemException if a system exception occurred 226 */ 227 public com.liferay.portlet.social.model.SocialActivityCounter[] findByC_C_PrevAndNext( 228 long activityCounterId, long classNameId, long classPK, 229 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 230 throws com.liferay.portal.kernel.exception.SystemException, 231 com.liferay.portlet.social.NoSuchActivityCounterException; 232 233 /** 234 * Returns all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 235 * 236 * @param groupId the group ID 237 * @param classNameId the class name ID 238 * @param classPK the class p k 239 * @param ownerType the owner type 240 * @return the matching social activity counters 241 * @throws SystemException if a system exception occurred 242 */ 243 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 244 long groupId, long classNameId, long classPK, int ownerType) 245 throws com.liferay.portal.kernel.exception.SystemException; 246 247 /** 248 * Returns a range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param groupId the group ID 255 * @param classNameId the class name ID 256 * @param classPK the class p k 257 * @param ownerType the owner type 258 * @param start the lower bound of the range of social activity counters 259 * @param end the upper bound of the range of social activity counters (not inclusive) 260 * @return the range of matching social activity counters 261 * @throws SystemException if a system exception occurred 262 */ 263 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 264 long groupId, long classNameId, long classPK, int ownerType, int start, 265 int end) throws com.liferay.portal.kernel.exception.SystemException; 266 267 /** 268 * Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 269 * 270 * <p> 271 * 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. 272 * </p> 273 * 274 * @param groupId the group ID 275 * @param classNameId the class name ID 276 * @param classPK the class p k 277 * @param ownerType the owner type 278 * @param start the lower bound of the range of social activity counters 279 * @param end the upper bound of the range of social activity counters (not inclusive) 280 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 281 * @return the ordered range of matching social activity counters 282 * @throws SystemException if a system exception occurred 283 */ 284 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 285 long groupId, long classNameId, long classPK, int ownerType, int start, 286 int end, 287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 288 throws com.liferay.portal.kernel.exception.SystemException; 289 290 /** 291 * Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 292 * 293 * @param groupId the group ID 294 * @param classNameId the class name ID 295 * @param classPK the class p k 296 * @param ownerType the owner type 297 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 298 * @return the first matching social activity counter 299 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 300 * @throws SystemException if a system exception occurred 301 */ 302 public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_First( 303 long groupId, long classNameId, long classPK, int ownerType, 304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 305 throws com.liferay.portal.kernel.exception.SystemException, 306 com.liferay.portlet.social.NoSuchActivityCounterException; 307 308 /** 309 * Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 310 * 311 * @param groupId the group ID 312 * @param classNameId the class name ID 313 * @param classPK the class p k 314 * @param ownerType the owner type 315 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 316 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_First( 320 long groupId, long classNameId, long classPK, int ownerType, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.kernel.exception.SystemException; 323 324 /** 325 * Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 326 * 327 * @param groupId the group ID 328 * @param classNameId the class name ID 329 * @param classPK the class p k 330 * @param ownerType the owner type 331 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 332 * @return the last matching social activity counter 333 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 334 * @throws SystemException if a system exception occurred 335 */ 336 public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_Last( 337 long groupId, long classNameId, long classPK, int ownerType, 338 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 339 throws com.liferay.portal.kernel.exception.SystemException, 340 com.liferay.portlet.social.NoSuchActivityCounterException; 341 342 /** 343 * Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 344 * 345 * @param groupId the group ID 346 * @param classNameId the class name ID 347 * @param classPK the class p k 348 * @param ownerType the owner type 349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 350 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_Last( 354 long groupId, long classNameId, long classPK, int ownerType, 355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 356 throws com.liferay.portal.kernel.exception.SystemException; 357 358 /** 359 * Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 360 * 361 * @param activityCounterId the primary key of the current social activity counter 362 * @param groupId the group ID 363 * @param classNameId the class name ID 364 * @param classPK the class p k 365 * @param ownerType the owner type 366 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 367 * @return the previous, current, and next social activity counter 368 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 369 * @throws SystemException if a system exception occurred 370 */ 371 public com.liferay.portlet.social.model.SocialActivityCounter[] findByG_C_C_O_PrevAndNext( 372 long activityCounterId, long groupId, long classNameId, long classPK, 373 int ownerType, 374 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 375 throws com.liferay.portal.kernel.exception.SystemException, 376 com.liferay.portlet.social.NoSuchActivityCounterException; 377 378 /** 379 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found. 380 * 381 * @param groupId the group ID 382 * @param classNameId the class name ID 383 * @param classPK the class p k 384 * @param name the name 385 * @param ownerType the owner type 386 * @param startPeriod the start period 387 * @return the matching social activity counter 388 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 389 * @throws SystemException if a system exception occurred 390 */ 391 public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_S( 392 long groupId, long classNameId, long classPK, java.lang.String name, 393 int ownerType, int startPeriod) 394 throws com.liferay.portal.kernel.exception.SystemException, 395 com.liferay.portlet.social.NoSuchActivityCounterException; 396 397 /** 398 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 399 * 400 * @param groupId the group ID 401 * @param classNameId the class name ID 402 * @param classPK the class p k 403 * @param name the name 404 * @param ownerType the owner type 405 * @param startPeriod the start period 406 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 407 * @throws SystemException if a system exception occurred 408 */ 409 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S( 410 long groupId, long classNameId, long classPK, java.lang.String name, 411 int ownerType, int startPeriod) 412 throws com.liferay.portal.kernel.exception.SystemException; 413 414 /** 415 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 416 * 417 * @param groupId the group ID 418 * @param classNameId the class name ID 419 * @param classPK the class p k 420 * @param name the name 421 * @param ownerType the owner type 422 * @param startPeriod the start period 423 * @param retrieveFromCache whether to use the finder cache 424 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S( 428 long groupId, long classNameId, long classPK, java.lang.String name, 429 int ownerType, int startPeriod, boolean retrieveFromCache) 430 throws com.liferay.portal.kernel.exception.SystemException; 431 432 /** 433 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found. 434 * 435 * @param groupId the group ID 436 * @param classNameId the class name ID 437 * @param classPK the class p k 438 * @param name the name 439 * @param ownerType the owner type 440 * @param endPeriod the end period 441 * @return the matching social activity counter 442 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_E( 446 long groupId, long classNameId, long classPK, java.lang.String name, 447 int ownerType, int endPeriod) 448 throws com.liferay.portal.kernel.exception.SystemException, 449 com.liferay.portlet.social.NoSuchActivityCounterException; 450 451 /** 452 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 453 * 454 * @param groupId the group ID 455 * @param classNameId the class name ID 456 * @param classPK the class p k 457 * @param name the name 458 * @param ownerType the owner type 459 * @param endPeriod the end period 460 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E( 464 long groupId, long classNameId, long classPK, java.lang.String name, 465 int ownerType, int endPeriod) 466 throws com.liferay.portal.kernel.exception.SystemException; 467 468 /** 469 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 470 * 471 * @param groupId the group ID 472 * @param classNameId the class name ID 473 * @param classPK the class p k 474 * @param name the name 475 * @param ownerType the owner type 476 * @param endPeriod the end period 477 * @param retrieveFromCache whether to use the finder cache 478 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 479 * @throws SystemException if a system exception occurred 480 */ 481 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E( 482 long groupId, long classNameId, long classPK, java.lang.String name, 483 int ownerType, int endPeriod, boolean retrieveFromCache) 484 throws com.liferay.portal.kernel.exception.SystemException; 485 486 /** 487 * Returns all the social activity counters. 488 * 489 * @return the social activity counters 490 * @throws SystemException if a system exception occurred 491 */ 492 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll() 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Returns a range of all the social activity counters. 497 * 498 * <p> 499 * 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. 500 * </p> 501 * 502 * @param start the lower bound of the range of social activity counters 503 * @param end the upper bound of the range of social activity counters (not inclusive) 504 * @return the range of social activity counters 505 * @throws SystemException if a system exception occurred 506 */ 507 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll( 508 int start, int end) 509 throws com.liferay.portal.kernel.exception.SystemException; 510 511 /** 512 * Returns an ordered range of all the social activity counters. 513 * 514 * <p> 515 * 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. 516 * </p> 517 * 518 * @param start the lower bound of the range of social activity counters 519 * @param end the upper bound of the range of social activity counters (not inclusive) 520 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 521 * @return the ordered range of social activity counters 522 * @throws SystemException if a system exception occurred 523 */ 524 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll( 525 int start, int end, 526 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 527 throws com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Removes all the social activity counters where classNameId = ? and classPK = ? from the database. 531 * 532 * @param classNameId the class name ID 533 * @param classPK the class p k 534 * @throws SystemException if a system exception occurred 535 */ 536 public void removeByC_C(long classNameId, long classPK) 537 throws com.liferay.portal.kernel.exception.SystemException; 538 539 /** 540 * Removes all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ? from the database. 541 * 542 * @param groupId the group ID 543 * @param classNameId the class name ID 544 * @param classPK the class p k 545 * @param ownerType the owner type 546 * @throws SystemException if a system exception occurred 547 */ 548 public void removeByG_C_C_O(long groupId, long classNameId, long classPK, 549 int ownerType) 550 throws com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? from the database. 554 * 555 * @param groupId the group ID 556 * @param classNameId the class name ID 557 * @param classPK the class p k 558 * @param name the name 559 * @param ownerType the owner type 560 * @param startPeriod the start period 561 * @return the social activity counter that was removed 562 * @throws SystemException if a system exception occurred 563 */ 564 public com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_S( 565 long groupId, long classNameId, long classPK, java.lang.String name, 566 int ownerType, int startPeriod) 567 throws com.liferay.portal.kernel.exception.SystemException, 568 com.liferay.portlet.social.NoSuchActivityCounterException; 569 570 /** 571 * Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? from the database. 572 * 573 * @param groupId the group ID 574 * @param classNameId the class name ID 575 * @param classPK the class p k 576 * @param name the name 577 * @param ownerType the owner type 578 * @param endPeriod the end period 579 * @return the social activity counter that was removed 580 * @throws SystemException if a system exception occurred 581 */ 582 public com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_E( 583 long groupId, long classNameId, long classPK, java.lang.String name, 584 int ownerType, int endPeriod) 585 throws com.liferay.portal.kernel.exception.SystemException, 586 com.liferay.portlet.social.NoSuchActivityCounterException; 587 588 /** 589 * Removes all the social activity counters from the database. 590 * 591 * @throws SystemException if a system exception occurred 592 */ 593 public void removeAll() 594 throws com.liferay.portal.kernel.exception.SystemException; 595 596 /** 597 * Returns the number of social activity counters where classNameId = ? and classPK = ?. 598 * 599 * @param classNameId the class name ID 600 * @param classPK the class p k 601 * @return the number of matching social activity counters 602 * @throws SystemException if a system exception occurred 603 */ 604 public int countByC_C(long classNameId, long classPK) 605 throws com.liferay.portal.kernel.exception.SystemException; 606 607 /** 608 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 609 * 610 * @param groupId the group ID 611 * @param classNameId the class name ID 612 * @param classPK the class p k 613 * @param ownerType the owner type 614 * @return the number of matching social activity counters 615 * @throws SystemException if a system exception occurred 616 */ 617 public int countByG_C_C_O(long groupId, long classNameId, long classPK, 618 int ownerType) 619 throws com.liferay.portal.kernel.exception.SystemException; 620 621 /** 622 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ?. 623 * 624 * @param groupId the group ID 625 * @param classNameId the class name ID 626 * @param classPK the class p k 627 * @param name the name 628 * @param ownerType the owner type 629 * @param startPeriod the start period 630 * @return the number of matching social activity counters 631 * @throws SystemException if a system exception occurred 632 */ 633 public int countByG_C_C_N_O_S(long groupId, long classNameId, long classPK, 634 java.lang.String name, int ownerType, int startPeriod) 635 throws com.liferay.portal.kernel.exception.SystemException; 636 637 /** 638 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ?. 639 * 640 * @param groupId the group ID 641 * @param classNameId the class name ID 642 * @param classPK the class p k 643 * @param name the name 644 * @param ownerType the owner type 645 * @param endPeriod the end period 646 * @return the number of matching social activity counters 647 * @throws SystemException if a system exception occurred 648 */ 649 public int countByG_C_C_N_O_E(long groupId, long classNameId, long classPK, 650 java.lang.String name, int ownerType, int endPeriod) 651 throws com.liferay.portal.kernel.exception.SystemException; 652 653 /** 654 * Returns the number of social activity counters. 655 * 656 * @return the number of social activity counters 657 * @throws SystemException if a system exception occurred 658 */ 659 public int countAll() 660 throws com.liferay.portal.kernel.exception.SystemException; 661 }