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