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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.social.model.SocialActivityCounter; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the social activity counter service. This utility wraps {@link SocialActivityCounterPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see SocialActivityCounterPersistence 037 * @see SocialActivityCounterPersistenceImpl 038 * @generated 039 */ 040 public class SocialActivityCounterUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(SocialActivityCounter socialActivityCounter) { 058 getPersistence().clearCache(socialActivityCounter); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<SocialActivityCounter> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<SocialActivityCounter> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<SocialActivityCounter> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static SocialActivityCounter update( 101 SocialActivityCounter socialActivityCounter) throws SystemException { 102 return getPersistence().update(socialActivityCounter); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static SocialActivityCounter update( 109 SocialActivityCounter socialActivityCounter, 110 ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(socialActivityCounter, serviceContext); 112 } 113 114 /** 115 * Returns all the social activity counters where groupId = ?. 116 * 117 * @param groupId the group ID 118 * @return the matching social activity counters 119 * @throws SystemException if a system exception occurred 120 */ 121 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByGroupId( 122 long groupId) 123 throws com.liferay.portal.kernel.exception.SystemException { 124 return getPersistence().findByGroupId(groupId); 125 } 126 127 /** 128 * Returns a range of all the social activity counters where groupId = ?. 129 * 130 * <p> 131 * 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. 132 * </p> 133 * 134 * @param groupId the group ID 135 * @param start the lower bound of the range of social activity counters 136 * @param end the upper bound of the range of social activity counters (not inclusive) 137 * @return the range of matching social activity counters 138 * @throws SystemException if a system exception occurred 139 */ 140 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByGroupId( 141 long groupId, int start, int end) 142 throws com.liferay.portal.kernel.exception.SystemException { 143 return getPersistence().findByGroupId(groupId, start, end); 144 } 145 146 /** 147 * Returns an ordered range of all the social activity counters where groupId = ?. 148 * 149 * <p> 150 * 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. 151 * </p> 152 * 153 * @param groupId the group ID 154 * @param start the lower bound of the range of social activity counters 155 * @param end the upper bound of the range of social activity counters (not inclusive) 156 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 157 * @return the ordered range of matching social activity counters 158 * @throws SystemException if a system exception occurred 159 */ 160 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByGroupId( 161 long groupId, int start, int end, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence() 165 .findByGroupId(groupId, start, end, orderByComparator); 166 } 167 168 /** 169 * Returns the first social activity counter in the ordered set where groupId = ?. 170 * 171 * @param groupId the group ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching social activity counter 174 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public static com.liferay.portlet.social.model.SocialActivityCounter findByGroupId_First( 178 long groupId, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException, 181 com.liferay.portlet.social.NoSuchActivityCounterException { 182 return getPersistence().findByGroupId_First(groupId, orderByComparator); 183 } 184 185 /** 186 * Returns the first social activity counter in the ordered set where groupId = ?. 187 * 188 * @param groupId the group ID 189 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 190 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 191 * @throws SystemException if a system exception occurred 192 */ 193 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByGroupId_First( 194 long groupId, 195 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 196 throws com.liferay.portal.kernel.exception.SystemException { 197 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 198 } 199 200 /** 201 * Returns the last social activity counter in the ordered set where groupId = ?. 202 * 203 * @param groupId the group ID 204 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 205 * @return the last matching social activity counter 206 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 207 * @throws SystemException if a system exception occurred 208 */ 209 public static com.liferay.portlet.social.model.SocialActivityCounter findByGroupId_Last( 210 long groupId, 211 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 212 throws com.liferay.portal.kernel.exception.SystemException, 213 com.liferay.portlet.social.NoSuchActivityCounterException { 214 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 215 } 216 217 /** 218 * Returns the last social activity counter in the ordered set where groupId = ?. 219 * 220 * @param groupId the group ID 221 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 222 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 223 * @throws SystemException if a system exception occurred 224 */ 225 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByGroupId_Last( 226 long groupId, 227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 228 throws com.liferay.portal.kernel.exception.SystemException { 229 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 230 } 231 232 /** 233 * Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ?. 234 * 235 * @param activityCounterId the primary key of the current social activity counter 236 * @param groupId the group ID 237 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 238 * @return the previous, current, and next social activity counter 239 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 240 * @throws SystemException if a system exception occurred 241 */ 242 public static com.liferay.portlet.social.model.SocialActivityCounter[] findByGroupId_PrevAndNext( 243 long activityCounterId, long groupId, 244 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 245 throws com.liferay.portal.kernel.exception.SystemException, 246 com.liferay.portlet.social.NoSuchActivityCounterException { 247 return getPersistence() 248 .findByGroupId_PrevAndNext(activityCounterId, groupId, 249 orderByComparator); 250 } 251 252 /** 253 * Removes all the social activity counters where groupId = ? from the database. 254 * 255 * @param groupId the group ID 256 * @throws SystemException if a system exception occurred 257 */ 258 public static void removeByGroupId(long groupId) 259 throws com.liferay.portal.kernel.exception.SystemException { 260 getPersistence().removeByGroupId(groupId); 261 } 262 263 /** 264 * Returns the number of social activity counters where groupId = ?. 265 * 266 * @param groupId the group ID 267 * @return the number of matching social activity counters 268 * @throws SystemException if a system exception occurred 269 */ 270 public static int countByGroupId(long groupId) 271 throws com.liferay.portal.kernel.exception.SystemException { 272 return getPersistence().countByGroupId(groupId); 273 } 274 275 /** 276 * Returns all the social activity counters where classNameId = ? and classPK = ?. 277 * 278 * @param classNameId the class name ID 279 * @param classPK the class p k 280 * @return the matching social activity counters 281 * @throws SystemException if a system exception occurred 282 */ 283 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 284 long classNameId, long classPK) 285 throws com.liferay.portal.kernel.exception.SystemException { 286 return getPersistence().findByC_C(classNameId, classPK); 287 } 288 289 /** 290 * Returns a range of all the social activity counters where classNameId = ? and classPK = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param classNameId the class name ID 297 * @param classPK the class p k 298 * @param start the lower bound of the range of social activity counters 299 * @param end the upper bound of the range of social activity counters (not inclusive) 300 * @return the range of matching social activity counters 301 * @throws SystemException if a system exception occurred 302 */ 303 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 304 long classNameId, long classPK, int start, int end) 305 throws com.liferay.portal.kernel.exception.SystemException { 306 return getPersistence().findByC_C(classNameId, classPK, start, end); 307 } 308 309 /** 310 * Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?. 311 * 312 * <p> 313 * 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. 314 * </p> 315 * 316 * @param classNameId the class name ID 317 * @param classPK the class p k 318 * @param start the lower bound of the range of social activity counters 319 * @param end the upper bound of the range of social activity counters (not inclusive) 320 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 321 * @return the ordered range of matching social activity counters 322 * @throws SystemException if a system exception occurred 323 */ 324 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 325 long classNameId, long classPK, int start, int end, 326 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 327 throws com.liferay.portal.kernel.exception.SystemException { 328 return getPersistence() 329 .findByC_C(classNameId, classPK, start, end, 330 orderByComparator); 331 } 332 333 /** 334 * Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?. 335 * 336 * @param classNameId the class name ID 337 * @param classPK the class p k 338 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 339 * @return the first matching social activity counter 340 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 341 * @throws SystemException if a system exception occurred 342 */ 343 public static com.liferay.portlet.social.model.SocialActivityCounter findByC_C_First( 344 long classNameId, long classPK, 345 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 346 throws com.liferay.portal.kernel.exception.SystemException, 347 com.liferay.portlet.social.NoSuchActivityCounterException { 348 return getPersistence() 349 .findByC_C_First(classNameId, classPK, orderByComparator); 350 } 351 352 /** 353 * Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?. 354 * 355 * @param classNameId the class name ID 356 * @param classPK the class p k 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 359 * @throws SystemException if a system exception occurred 360 */ 361 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_First( 362 long classNameId, long classPK, 363 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 364 throws com.liferay.portal.kernel.exception.SystemException { 365 return getPersistence() 366 .fetchByC_C_First(classNameId, classPK, orderByComparator); 367 } 368 369 /** 370 * Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?. 371 * 372 * @param classNameId the class name ID 373 * @param classPK the class p k 374 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 375 * @return the last matching social activity counter 376 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 377 * @throws SystemException if a system exception occurred 378 */ 379 public static com.liferay.portlet.social.model.SocialActivityCounter findByC_C_Last( 380 long classNameId, long classPK, 381 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 382 throws com.liferay.portal.kernel.exception.SystemException, 383 com.liferay.portlet.social.NoSuchActivityCounterException { 384 return getPersistence() 385 .findByC_C_Last(classNameId, classPK, orderByComparator); 386 } 387 388 /** 389 * Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?. 390 * 391 * @param classNameId the class name ID 392 * @param classPK the class p k 393 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 394 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 395 * @throws SystemException if a system exception occurred 396 */ 397 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_Last( 398 long classNameId, long classPK, 399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 400 throws com.liferay.portal.kernel.exception.SystemException { 401 return getPersistence() 402 .fetchByC_C_Last(classNameId, classPK, orderByComparator); 403 } 404 405 /** 406 * Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = ? and classPK = ?. 407 * 408 * @param activityCounterId the primary key of the current social activity counter 409 * @param classNameId the class name ID 410 * @param classPK the class p k 411 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 412 * @return the previous, current, and next social activity counter 413 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 414 * @throws SystemException if a system exception occurred 415 */ 416 public static com.liferay.portlet.social.model.SocialActivityCounter[] findByC_C_PrevAndNext( 417 long activityCounterId, long classNameId, long classPK, 418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 419 throws com.liferay.portal.kernel.exception.SystemException, 420 com.liferay.portlet.social.NoSuchActivityCounterException { 421 return getPersistence() 422 .findByC_C_PrevAndNext(activityCounterId, classNameId, 423 classPK, orderByComparator); 424 } 425 426 /** 427 * Removes all the social activity counters where classNameId = ? and classPK = ? from the database. 428 * 429 * @param classNameId the class name ID 430 * @param classPK the class p k 431 * @throws SystemException if a system exception occurred 432 */ 433 public static void removeByC_C(long classNameId, long classPK) 434 throws com.liferay.portal.kernel.exception.SystemException { 435 getPersistence().removeByC_C(classNameId, classPK); 436 } 437 438 /** 439 * Returns the number of social activity counters where classNameId = ? and classPK = ?. 440 * 441 * @param classNameId the class name ID 442 * @param classPK the class p k 443 * @return the number of matching social activity counters 444 * @throws SystemException if a system exception occurred 445 */ 446 public static int countByC_C(long classNameId, long classPK) 447 throws com.liferay.portal.kernel.exception.SystemException { 448 return getPersistence().countByC_C(classNameId, classPK); 449 } 450 451 /** 452 * Returns all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 453 * 454 * @param groupId the group ID 455 * @param classNameId the class name ID 456 * @param classPK the class p k 457 * @param ownerType the owner type 458 * @return the matching social activity counters 459 * @throws SystemException if a system exception occurred 460 */ 461 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 462 long groupId, long classNameId, long classPK, int ownerType) 463 throws com.liferay.portal.kernel.exception.SystemException { 464 return getPersistence() 465 .findByG_C_C_O(groupId, classNameId, classPK, ownerType); 466 } 467 468 /** 469 * Returns a range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 470 * 471 * <p> 472 * 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. 473 * </p> 474 * 475 * @param groupId the group ID 476 * @param classNameId the class name ID 477 * @param classPK the class p k 478 * @param ownerType the owner type 479 * @param start the lower bound of the range of social activity counters 480 * @param end the upper bound of the range of social activity counters (not inclusive) 481 * @return the range of matching social activity counters 482 * @throws SystemException if a system exception occurred 483 */ 484 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 485 long groupId, long classNameId, long classPK, int ownerType, int start, 486 int end) throws com.liferay.portal.kernel.exception.SystemException { 487 return getPersistence() 488 .findByG_C_C_O(groupId, classNameId, classPK, ownerType, 489 start, end); 490 } 491 492 /** 493 * Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 494 * 495 * <p> 496 * 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. 497 * </p> 498 * 499 * @param groupId the group ID 500 * @param classNameId the class name ID 501 * @param classPK the class p k 502 * @param ownerType the owner type 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 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 506 * @return the ordered range of matching social activity counters 507 * @throws SystemException if a system exception occurred 508 */ 509 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 510 long groupId, long classNameId, long classPK, int ownerType, int start, 511 int end, 512 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 513 throws com.liferay.portal.kernel.exception.SystemException { 514 return getPersistence() 515 .findByG_C_C_O(groupId, classNameId, classPK, ownerType, 516 start, end, orderByComparator); 517 } 518 519 /** 520 * Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 521 * 522 * @param groupId the group ID 523 * @param classNameId the class name ID 524 * @param classPK the class p k 525 * @param ownerType the owner type 526 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 527 * @return the first matching social activity counter 528 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 529 * @throws SystemException if a system exception occurred 530 */ 531 public static com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_First( 532 long groupId, long classNameId, long classPK, int ownerType, 533 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 534 throws com.liferay.portal.kernel.exception.SystemException, 535 com.liferay.portlet.social.NoSuchActivityCounterException { 536 return getPersistence() 537 .findByG_C_C_O_First(groupId, classNameId, classPK, 538 ownerType, orderByComparator); 539 } 540 541 /** 542 * Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 543 * 544 * @param groupId the group ID 545 * @param classNameId the class name ID 546 * @param classPK the class p k 547 * @param ownerType the owner type 548 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 549 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 550 * @throws SystemException if a system exception occurred 551 */ 552 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_First( 553 long groupId, long classNameId, long classPK, int ownerType, 554 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 555 throws com.liferay.portal.kernel.exception.SystemException { 556 return getPersistence() 557 .fetchByG_C_C_O_First(groupId, classNameId, classPK, 558 ownerType, orderByComparator); 559 } 560 561 /** 562 * Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 563 * 564 * @param groupId the group ID 565 * @param classNameId the class name ID 566 * @param classPK the class p k 567 * @param ownerType the owner type 568 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 569 * @return the last matching social activity counter 570 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 571 * @throws SystemException if a system exception occurred 572 */ 573 public static com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_Last( 574 long groupId, long classNameId, long classPK, int ownerType, 575 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 576 throws com.liferay.portal.kernel.exception.SystemException, 577 com.liferay.portlet.social.NoSuchActivityCounterException { 578 return getPersistence() 579 .findByG_C_C_O_Last(groupId, classNameId, classPK, 580 ownerType, orderByComparator); 581 } 582 583 /** 584 * Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 585 * 586 * @param groupId the group ID 587 * @param classNameId the class name ID 588 * @param classPK the class p k 589 * @param ownerType the owner type 590 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 591 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 592 * @throws SystemException if a system exception occurred 593 */ 594 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_Last( 595 long groupId, long classNameId, long classPK, int ownerType, 596 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 597 throws com.liferay.portal.kernel.exception.SystemException { 598 return getPersistence() 599 .fetchByG_C_C_O_Last(groupId, classNameId, classPK, 600 ownerType, orderByComparator); 601 } 602 603 /** 604 * 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 = ?. 605 * 606 * @param activityCounterId the primary key of the current social activity counter 607 * @param groupId the group ID 608 * @param classNameId the class name ID 609 * @param classPK the class p k 610 * @param ownerType the owner type 611 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 612 * @return the previous, current, and next social activity counter 613 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 614 * @throws SystemException if a system exception occurred 615 */ 616 public static com.liferay.portlet.social.model.SocialActivityCounter[] findByG_C_C_O_PrevAndNext( 617 long activityCounterId, long groupId, long classNameId, long classPK, 618 int ownerType, 619 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 620 throws com.liferay.portal.kernel.exception.SystemException, 621 com.liferay.portlet.social.NoSuchActivityCounterException { 622 return getPersistence() 623 .findByG_C_C_O_PrevAndNext(activityCounterId, groupId, 624 classNameId, classPK, ownerType, orderByComparator); 625 } 626 627 /** 628 * Removes all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ? from the database. 629 * 630 * @param groupId the group ID 631 * @param classNameId the class name ID 632 * @param classPK the class p k 633 * @param ownerType the owner type 634 * @throws SystemException if a system exception occurred 635 */ 636 public static void removeByG_C_C_O(long groupId, long classNameId, 637 long classPK, int ownerType) 638 throws com.liferay.portal.kernel.exception.SystemException { 639 getPersistence() 640 .removeByG_C_C_O(groupId, classNameId, classPK, ownerType); 641 } 642 643 /** 644 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 645 * 646 * @param groupId the group ID 647 * @param classNameId the class name ID 648 * @param classPK the class p k 649 * @param ownerType the owner type 650 * @return the number of matching social activity counters 651 * @throws SystemException if a system exception occurred 652 */ 653 public static int countByG_C_C_O(long groupId, long classNameId, 654 long classPK, int ownerType) 655 throws com.liferay.portal.kernel.exception.SystemException { 656 return getPersistence() 657 .countByG_C_C_O(groupId, classNameId, classPK, ownerType); 658 } 659 660 /** 661 * 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. 662 * 663 * @param groupId the group ID 664 * @param classNameId the class name ID 665 * @param classPK the class p k 666 * @param name the name 667 * @param ownerType the owner type 668 * @param startPeriod the start period 669 * @return the matching social activity counter 670 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 671 * @throws SystemException if a system exception occurred 672 */ 673 public static com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_S( 674 long groupId, long classNameId, long classPK, java.lang.String name, 675 int ownerType, int startPeriod) 676 throws com.liferay.portal.kernel.exception.SystemException, 677 com.liferay.portlet.social.NoSuchActivityCounterException { 678 return getPersistence() 679 .findByG_C_C_N_O_S(groupId, classNameId, classPK, name, 680 ownerType, startPeriod); 681 } 682 683 /** 684 * 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. 685 * 686 * @param groupId the group ID 687 * @param classNameId the class name ID 688 * @param classPK the class p k 689 * @param name the name 690 * @param ownerType the owner type 691 * @param startPeriod the start period 692 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 693 * @throws SystemException if a system exception occurred 694 */ 695 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S( 696 long groupId, long classNameId, long classPK, java.lang.String name, 697 int ownerType, int startPeriod) 698 throws com.liferay.portal.kernel.exception.SystemException { 699 return getPersistence() 700 .fetchByG_C_C_N_O_S(groupId, classNameId, classPK, name, 701 ownerType, startPeriod); 702 } 703 704 /** 705 * 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. 706 * 707 * @param groupId the group ID 708 * @param classNameId the class name ID 709 * @param classPK the class p k 710 * @param name the name 711 * @param ownerType the owner type 712 * @param startPeriod the start period 713 * @param retrieveFromCache whether to use the finder cache 714 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 715 * @throws SystemException if a system exception occurred 716 */ 717 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S( 718 long groupId, long classNameId, long classPK, java.lang.String name, 719 int ownerType, int startPeriod, boolean retrieveFromCache) 720 throws com.liferay.portal.kernel.exception.SystemException { 721 return getPersistence() 722 .fetchByG_C_C_N_O_S(groupId, classNameId, classPK, name, 723 ownerType, startPeriod, retrieveFromCache); 724 } 725 726 /** 727 * Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? from the database. 728 * 729 * @param groupId the group ID 730 * @param classNameId the class name ID 731 * @param classPK the class p k 732 * @param name the name 733 * @param ownerType the owner type 734 * @param startPeriod the start period 735 * @return the social activity counter that was removed 736 * @throws SystemException if a system exception occurred 737 */ 738 public static com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_S( 739 long groupId, long classNameId, long classPK, java.lang.String name, 740 int ownerType, int startPeriod) 741 throws com.liferay.portal.kernel.exception.SystemException, 742 com.liferay.portlet.social.NoSuchActivityCounterException { 743 return getPersistence() 744 .removeByG_C_C_N_O_S(groupId, classNameId, classPK, name, 745 ownerType, startPeriod); 746 } 747 748 /** 749 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ?. 750 * 751 * @param groupId the group ID 752 * @param classNameId the class name ID 753 * @param classPK the class p k 754 * @param name the name 755 * @param ownerType the owner type 756 * @param startPeriod the start period 757 * @return the number of matching social activity counters 758 * @throws SystemException if a system exception occurred 759 */ 760 public static int countByG_C_C_N_O_S(long groupId, long classNameId, 761 long classPK, java.lang.String name, int ownerType, int startPeriod) 762 throws com.liferay.portal.kernel.exception.SystemException { 763 return getPersistence() 764 .countByG_C_C_N_O_S(groupId, classNameId, classPK, name, 765 ownerType, startPeriod); 766 } 767 768 /** 769 * 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. 770 * 771 * @param groupId the group ID 772 * @param classNameId the class name ID 773 * @param classPK the class p k 774 * @param name the name 775 * @param ownerType the owner type 776 * @param endPeriod the end period 777 * @return the matching social activity counter 778 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 779 * @throws SystemException if a system exception occurred 780 */ 781 public static com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_E( 782 long groupId, long classNameId, long classPK, java.lang.String name, 783 int ownerType, int endPeriod) 784 throws com.liferay.portal.kernel.exception.SystemException, 785 com.liferay.portlet.social.NoSuchActivityCounterException { 786 return getPersistence() 787 .findByG_C_C_N_O_E(groupId, classNameId, classPK, name, 788 ownerType, endPeriod); 789 } 790 791 /** 792 * 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. 793 * 794 * @param groupId the group ID 795 * @param classNameId the class name ID 796 * @param classPK the class p k 797 * @param name the name 798 * @param ownerType the owner type 799 * @param endPeriod the end period 800 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 801 * @throws SystemException if a system exception occurred 802 */ 803 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E( 804 long groupId, long classNameId, long classPK, java.lang.String name, 805 int ownerType, int endPeriod) 806 throws com.liferay.portal.kernel.exception.SystemException { 807 return getPersistence() 808 .fetchByG_C_C_N_O_E(groupId, classNameId, classPK, name, 809 ownerType, endPeriod); 810 } 811 812 /** 813 * 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. 814 * 815 * @param groupId the group ID 816 * @param classNameId the class name ID 817 * @param classPK the class p k 818 * @param name the name 819 * @param ownerType the owner type 820 * @param endPeriod the end period 821 * @param retrieveFromCache whether to use the finder cache 822 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 823 * @throws SystemException if a system exception occurred 824 */ 825 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E( 826 long groupId, long classNameId, long classPK, java.lang.String name, 827 int ownerType, int endPeriod, boolean retrieveFromCache) 828 throws com.liferay.portal.kernel.exception.SystemException { 829 return getPersistence() 830 .fetchByG_C_C_N_O_E(groupId, classNameId, classPK, name, 831 ownerType, endPeriod, retrieveFromCache); 832 } 833 834 /** 835 * Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? from the database. 836 * 837 * @param groupId the group ID 838 * @param classNameId the class name ID 839 * @param classPK the class p k 840 * @param name the name 841 * @param ownerType the owner type 842 * @param endPeriod the end period 843 * @return the social activity counter that was removed 844 * @throws SystemException if a system exception occurred 845 */ 846 public static com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_E( 847 long groupId, long classNameId, long classPK, java.lang.String name, 848 int ownerType, int endPeriod) 849 throws com.liferay.portal.kernel.exception.SystemException, 850 com.liferay.portlet.social.NoSuchActivityCounterException { 851 return getPersistence() 852 .removeByG_C_C_N_O_E(groupId, classNameId, classPK, name, 853 ownerType, endPeriod); 854 } 855 856 /** 857 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ?. 858 * 859 * @param groupId the group ID 860 * @param classNameId the class name ID 861 * @param classPK the class p k 862 * @param name the name 863 * @param ownerType the owner type 864 * @param endPeriod the end period 865 * @return the number of matching social activity counters 866 * @throws SystemException if a system exception occurred 867 */ 868 public static int countByG_C_C_N_O_E(long groupId, long classNameId, 869 long classPK, java.lang.String name, int ownerType, int endPeriod) 870 throws com.liferay.portal.kernel.exception.SystemException { 871 return getPersistence() 872 .countByG_C_C_N_O_E(groupId, classNameId, classPK, name, 873 ownerType, endPeriod); 874 } 875 876 /** 877 * Caches the social activity counter in the entity cache if it is enabled. 878 * 879 * @param socialActivityCounter the social activity counter 880 */ 881 public static void cacheResult( 882 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter) { 883 getPersistence().cacheResult(socialActivityCounter); 884 } 885 886 /** 887 * Caches the social activity counters in the entity cache if it is enabled. 888 * 889 * @param socialActivityCounters the social activity counters 890 */ 891 public static void cacheResult( 892 java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> socialActivityCounters) { 893 getPersistence().cacheResult(socialActivityCounters); 894 } 895 896 /** 897 * Creates a new social activity counter with the primary key. Does not add the social activity counter to the database. 898 * 899 * @param activityCounterId the primary key for the new social activity counter 900 * @return the new social activity counter 901 */ 902 public static com.liferay.portlet.social.model.SocialActivityCounter create( 903 long activityCounterId) { 904 return getPersistence().create(activityCounterId); 905 } 906 907 /** 908 * Removes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners. 909 * 910 * @param activityCounterId the primary key of the social activity counter 911 * @return the social activity counter that was removed 912 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 913 * @throws SystemException if a system exception occurred 914 */ 915 public static com.liferay.portlet.social.model.SocialActivityCounter remove( 916 long activityCounterId) 917 throws com.liferay.portal.kernel.exception.SystemException, 918 com.liferay.portlet.social.NoSuchActivityCounterException { 919 return getPersistence().remove(activityCounterId); 920 } 921 922 public static com.liferay.portlet.social.model.SocialActivityCounter updateImpl( 923 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter) 924 throws com.liferay.portal.kernel.exception.SystemException { 925 return getPersistence().updateImpl(socialActivityCounter); 926 } 927 928 /** 929 * Returns the social activity counter with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found. 930 * 931 * @param activityCounterId the primary key of the social activity counter 932 * @return the social activity counter 933 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 934 * @throws SystemException if a system exception occurred 935 */ 936 public static com.liferay.portlet.social.model.SocialActivityCounter findByPrimaryKey( 937 long activityCounterId) 938 throws com.liferay.portal.kernel.exception.SystemException, 939 com.liferay.portlet.social.NoSuchActivityCounterException { 940 return getPersistence().findByPrimaryKey(activityCounterId); 941 } 942 943 /** 944 * Returns the social activity counter with the primary key or returns <code>null</code> if it could not be found. 945 * 946 * @param activityCounterId the primary key of the social activity counter 947 * @return the social activity counter, or <code>null</code> if a social activity counter with the primary key could not be found 948 * @throws SystemException if a system exception occurred 949 */ 950 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByPrimaryKey( 951 long activityCounterId) 952 throws com.liferay.portal.kernel.exception.SystemException { 953 return getPersistence().fetchByPrimaryKey(activityCounterId); 954 } 955 956 /** 957 * Returns all the social activity counters. 958 * 959 * @return the social activity counters 960 * @throws SystemException if a system exception occurred 961 */ 962 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll() 963 throws com.liferay.portal.kernel.exception.SystemException { 964 return getPersistence().findAll(); 965 } 966 967 /** 968 * Returns a range of all the social activity counters. 969 * 970 * <p> 971 * 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. 972 * </p> 973 * 974 * @param start the lower bound of the range of social activity counters 975 * @param end the upper bound of the range of social activity counters (not inclusive) 976 * @return the range of social activity counters 977 * @throws SystemException if a system exception occurred 978 */ 979 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll( 980 int start, int end) 981 throws com.liferay.portal.kernel.exception.SystemException { 982 return getPersistence().findAll(start, end); 983 } 984 985 /** 986 * Returns an ordered range of all the social activity counters. 987 * 988 * <p> 989 * 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. 990 * </p> 991 * 992 * @param start the lower bound of the range of social activity counters 993 * @param end the upper bound of the range of social activity counters (not inclusive) 994 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 995 * @return the ordered range of social activity counters 996 * @throws SystemException if a system exception occurred 997 */ 998 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll( 999 int start, int end, 1000 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1001 throws com.liferay.portal.kernel.exception.SystemException { 1002 return getPersistence().findAll(start, end, orderByComparator); 1003 } 1004 1005 /** 1006 * Removes all the social activity counters from the database. 1007 * 1008 * @throws SystemException if a system exception occurred 1009 */ 1010 public static void removeAll() 1011 throws com.liferay.portal.kernel.exception.SystemException { 1012 getPersistence().removeAll(); 1013 } 1014 1015 /** 1016 * Returns the number of social activity counters. 1017 * 1018 * @return the number of social activity counters 1019 * @throws SystemException if a system exception occurred 1020 */ 1021 public static int countAll() 1022 throws com.liferay.portal.kernel.exception.SystemException { 1023 return getPersistence().countAll(); 1024 } 1025 1026 public static SocialActivityCounterPersistence getPersistence() { 1027 if (_persistence == null) { 1028 _persistence = (SocialActivityCounterPersistence)PortalBeanLocatorUtil.locate(SocialActivityCounterPersistence.class.getName()); 1029 1030 ReferenceRegistry.registerReference(SocialActivityCounterUtil.class, 1031 "_persistence"); 1032 } 1033 1034 return _persistence; 1035 } 1036 1037 /** 1038 * @deprecated As of 6.2.0 1039 */ 1040 public void setPersistence(SocialActivityCounterPersistence persistence) { 1041 } 1042 1043 private static SocialActivityCounterPersistence _persistence; 1044 }