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