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