001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.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 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 * Caches the social activity counter in the entity cache if it is enabled. 116 * 117 * @param socialActivityCounter the social activity counter 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter) { 121 getPersistence().cacheResult(socialActivityCounter); 122 } 123 124 /** 125 * Caches the social activity counters in the entity cache if it is enabled. 126 * 127 * @param socialActivityCounters the social activity counters 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> socialActivityCounters) { 131 getPersistence().cacheResult(socialActivityCounters); 132 } 133 134 /** 135 * Creates a new social activity counter with the primary key. Does not add the social activity counter to the database. 136 * 137 * @param activityCounterId the primary key for the new social activity counter 138 * @return the new social activity counter 139 */ 140 public static com.liferay.portlet.social.model.SocialActivityCounter create( 141 long activityCounterId) { 142 return getPersistence().create(activityCounterId); 143 } 144 145 /** 146 * Removes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param activityCounterId the primary key of the social activity counter 149 * @return the social activity counter that was removed 150 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.social.model.SocialActivityCounter remove( 154 long activityCounterId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.social.NoSuchActivityCounterException { 157 return getPersistence().remove(activityCounterId); 158 } 159 160 public static com.liferay.portlet.social.model.SocialActivityCounter updateImpl( 161 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(socialActivityCounter); 164 } 165 166 /** 167 * Returns the social activity counter with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found. 168 * 169 * @param activityCounterId the primary key of the social activity counter 170 * @return the social activity counter 171 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.social.model.SocialActivityCounter findByPrimaryKey( 175 long activityCounterId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.social.NoSuchActivityCounterException { 178 return getPersistence().findByPrimaryKey(activityCounterId); 179 } 180 181 /** 182 * Returns the social activity counter with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param activityCounterId the primary key of the social activity counter 185 * @return the social activity counter, or <code>null</code> if a social activity counter with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByPrimaryKey( 189 long activityCounterId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(activityCounterId); 192 } 193 194 /** 195 * Returns all the social activity counters where classNameId = ? and classPK = ?. 196 * 197 * @param classNameId the class name ID 198 * @param classPK the class p k 199 * @return the matching social activity counters 200 * @throws SystemException if a system exception occurred 201 */ 202 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 203 long classNameId, long classPK) 204 throws com.liferay.portal.kernel.exception.SystemException { 205 return getPersistence().findByC_C(classNameId, classPK); 206 } 207 208 /** 209 * Returns a range of all the social activity counters where classNameId = ? and classPK = ?. 210 * 211 * <p> 212 * 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. 213 * </p> 214 * 215 * @param classNameId the class name ID 216 * @param classPK the class p k 217 * @param start the lower bound of the range of social activity counters 218 * @param end the upper bound of the range of social activity counters (not inclusive) 219 * @return the range of matching social activity counters 220 * @throws SystemException if a system exception occurred 221 */ 222 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 223 long classNameId, long classPK, int start, int end) 224 throws com.liferay.portal.kernel.exception.SystemException { 225 return getPersistence().findByC_C(classNameId, classPK, start, end); 226 } 227 228 /** 229 * Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?. 230 * 231 * <p> 232 * 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. 233 * </p> 234 * 235 * @param classNameId the class name ID 236 * @param classPK the class p k 237 * @param start the lower bound of the range of social activity counters 238 * @param end the upper bound of the range of social activity counters (not inclusive) 239 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 240 * @return the ordered range of matching social activity counters 241 * @throws SystemException if a system exception occurred 242 */ 243 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 244 long classNameId, long classPK, int start, int end, 245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 246 throws com.liferay.portal.kernel.exception.SystemException { 247 return getPersistence() 248 .findByC_C(classNameId, classPK, start, end, 249 orderByComparator); 250 } 251 252 /** 253 * Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?. 254 * 255 * @param classNameId the class name ID 256 * @param classPK the class p k 257 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 258 * @return the first matching social activity counter 259 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 260 * @throws SystemException if a system exception occurred 261 */ 262 public static com.liferay.portlet.social.model.SocialActivityCounter findByC_C_First( 263 long classNameId, long classPK, 264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 265 throws com.liferay.portal.kernel.exception.SystemException, 266 com.liferay.portlet.social.NoSuchActivityCounterException { 267 return getPersistence() 268 .findByC_C_First(classNameId, classPK, orderByComparator); 269 } 270 271 /** 272 * Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?. 273 * 274 * @param classNameId the class name ID 275 * @param classPK the class p k 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_First( 281 long classNameId, long classPK, 282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 283 throws com.liferay.portal.kernel.exception.SystemException { 284 return getPersistence() 285 .fetchByC_C_First(classNameId, classPK, orderByComparator); 286 } 287 288 /** 289 * Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?. 290 * 291 * @param classNameId the class name ID 292 * @param classPK the class p k 293 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 294 * @return the last matching social activity counter 295 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 296 * @throws SystemException if a system exception occurred 297 */ 298 public static com.liferay.portlet.social.model.SocialActivityCounter findByC_C_Last( 299 long classNameId, long classPK, 300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 301 throws com.liferay.portal.kernel.exception.SystemException, 302 com.liferay.portlet.social.NoSuchActivityCounterException { 303 return getPersistence() 304 .findByC_C_Last(classNameId, classPK, orderByComparator); 305 } 306 307 /** 308 * Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?. 309 * 310 * @param classNameId the class name ID 311 * @param classPK the class p k 312 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 313 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 314 * @throws SystemException if a system exception occurred 315 */ 316 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_Last( 317 long classNameId, long classPK, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.kernel.exception.SystemException { 320 return getPersistence() 321 .fetchByC_C_Last(classNameId, classPK, orderByComparator); 322 } 323 324 /** 325 * Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = ? and classPK = ?. 326 * 327 * @param activityCounterId the primary key of the current social activity counter 328 * @param classNameId the class name ID 329 * @param classPK the class p k 330 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 331 * @return the previous, current, and next social activity counter 332 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public static com.liferay.portlet.social.model.SocialActivityCounter[] findByC_C_PrevAndNext( 336 long activityCounterId, long classNameId, long classPK, 337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 338 throws com.liferay.portal.kernel.exception.SystemException, 339 com.liferay.portlet.social.NoSuchActivityCounterException { 340 return getPersistence() 341 .findByC_C_PrevAndNext(activityCounterId, classNameId, 342 classPK, orderByComparator); 343 } 344 345 /** 346 * Returns all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 347 * 348 * @param groupId the group ID 349 * @param classNameId the class name ID 350 * @param classPK the class p k 351 * @param ownerType the owner type 352 * @return the matching social activity counters 353 * @throws SystemException if a system exception occurred 354 */ 355 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 356 long groupId, long classNameId, long classPK, int ownerType) 357 throws com.liferay.portal.kernel.exception.SystemException { 358 return getPersistence() 359 .findByG_C_C_O(groupId, classNameId, classPK, ownerType); 360 } 361 362 /** 363 * Returns a range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 364 * 365 * <p> 366 * 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. 367 * </p> 368 * 369 * @param groupId the group ID 370 * @param classNameId the class name ID 371 * @param classPK the class p k 372 * @param ownerType the owner type 373 * @param start the lower bound of the range of social activity counters 374 * @param end the upper bound of the range of social activity counters (not inclusive) 375 * @return the range of matching social activity counters 376 * @throws SystemException if a system exception occurred 377 */ 378 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 379 long groupId, long classNameId, long classPK, int ownerType, int start, 380 int end) throws com.liferay.portal.kernel.exception.SystemException { 381 return getPersistence() 382 .findByG_C_C_O(groupId, classNameId, classPK, ownerType, 383 start, end); 384 } 385 386 /** 387 * Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 388 * 389 * <p> 390 * 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. 391 * </p> 392 * 393 * @param groupId the group ID 394 * @param classNameId the class name ID 395 * @param classPK the class p k 396 * @param ownerType the owner type 397 * @param start the lower bound of the range of social activity counters 398 * @param end the upper bound of the range of social activity counters (not inclusive) 399 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 400 * @return the ordered range of matching social activity counters 401 * @throws SystemException if a system exception occurred 402 */ 403 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 404 long groupId, long classNameId, long classPK, int ownerType, int start, 405 int end, 406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 407 throws com.liferay.portal.kernel.exception.SystemException { 408 return getPersistence() 409 .findByG_C_C_O(groupId, classNameId, classPK, ownerType, 410 start, end, orderByComparator); 411 } 412 413 /** 414 * Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 415 * 416 * @param groupId the group ID 417 * @param classNameId the class name ID 418 * @param classPK the class p k 419 * @param ownerType the owner type 420 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 421 * @return the first matching social activity counter 422 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 423 * @throws SystemException if a system exception occurred 424 */ 425 public static com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_First( 426 long groupId, long classNameId, long classPK, int ownerType, 427 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 428 throws com.liferay.portal.kernel.exception.SystemException, 429 com.liferay.portlet.social.NoSuchActivityCounterException { 430 return getPersistence() 431 .findByG_C_C_O_First(groupId, classNameId, classPK, 432 ownerType, orderByComparator); 433 } 434 435 /** 436 * Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 437 * 438 * @param groupId the group ID 439 * @param classNameId the class name ID 440 * @param classPK the class p k 441 * @param ownerType the owner type 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_First( 447 long groupId, long classNameId, long classPK, int ownerType, 448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 449 throws com.liferay.portal.kernel.exception.SystemException { 450 return getPersistence() 451 .fetchByG_C_C_O_First(groupId, classNameId, classPK, 452 ownerType, orderByComparator); 453 } 454 455 /** 456 * Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 457 * 458 * @param groupId the group ID 459 * @param classNameId the class name ID 460 * @param classPK the class p k 461 * @param ownerType the owner type 462 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 463 * @return the last matching social activity counter 464 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 465 * @throws SystemException if a system exception occurred 466 */ 467 public static com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_Last( 468 long groupId, long classNameId, long classPK, int ownerType, 469 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 470 throws com.liferay.portal.kernel.exception.SystemException, 471 com.liferay.portlet.social.NoSuchActivityCounterException { 472 return getPersistence() 473 .findByG_C_C_O_Last(groupId, classNameId, classPK, 474 ownerType, orderByComparator); 475 } 476 477 /** 478 * Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 479 * 480 * @param groupId the group ID 481 * @param classNameId the class name ID 482 * @param classPK the class p k 483 * @param ownerType the owner type 484 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 485 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 486 * @throws SystemException if a system exception occurred 487 */ 488 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_Last( 489 long groupId, long classNameId, long classPK, int ownerType, 490 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 491 throws com.liferay.portal.kernel.exception.SystemException { 492 return getPersistence() 493 .fetchByG_C_C_O_Last(groupId, classNameId, classPK, 494 ownerType, orderByComparator); 495 } 496 497 /** 498 * 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 = ?. 499 * 500 * @param activityCounterId the primary key of the current social activity counter 501 * @param groupId the group ID 502 * @param classNameId the class name ID 503 * @param classPK the class p k 504 * @param ownerType the owner type 505 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 506 * @return the previous, current, and next social activity counter 507 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 508 * @throws SystemException if a system exception occurred 509 */ 510 public static com.liferay.portlet.social.model.SocialActivityCounter[] findByG_C_C_O_PrevAndNext( 511 long activityCounterId, long groupId, long classNameId, long classPK, 512 int ownerType, 513 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 514 throws com.liferay.portal.kernel.exception.SystemException, 515 com.liferay.portlet.social.NoSuchActivityCounterException { 516 return getPersistence() 517 .findByG_C_C_O_PrevAndNext(activityCounterId, groupId, 518 classNameId, classPK, ownerType, orderByComparator); 519 } 520 521 /** 522 * 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. 523 * 524 * @param groupId the group ID 525 * @param classNameId the class name ID 526 * @param classPK the class p k 527 * @param name the name 528 * @param ownerType the owner type 529 * @param startPeriod the start period 530 * @return the 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_N_O_S( 535 long groupId, long classNameId, long classPK, java.lang.String name, 536 int ownerType, int startPeriod) 537 throws com.liferay.portal.kernel.exception.SystemException, 538 com.liferay.portlet.social.NoSuchActivityCounterException { 539 return getPersistence() 540 .findByG_C_C_N_O_S(groupId, classNameId, classPK, name, 541 ownerType, startPeriod); 542 } 543 544 /** 545 * 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. 546 * 547 * @param groupId the group ID 548 * @param classNameId the class name ID 549 * @param classPK the class p k 550 * @param name the name 551 * @param ownerType the owner type 552 * @param startPeriod the start period 553 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 554 * @throws SystemException if a system exception occurred 555 */ 556 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S( 557 long groupId, long classNameId, long classPK, java.lang.String name, 558 int ownerType, int startPeriod) 559 throws com.liferay.portal.kernel.exception.SystemException { 560 return getPersistence() 561 .fetchByG_C_C_N_O_S(groupId, classNameId, classPK, name, 562 ownerType, startPeriod); 563 } 564 565 /** 566 * 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. 567 * 568 * @param groupId the group ID 569 * @param classNameId the class name ID 570 * @param classPK the class p k 571 * @param name the name 572 * @param ownerType the owner type 573 * @param startPeriod the start period 574 * @param retrieveFromCache whether to use the finder cache 575 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 576 * @throws SystemException if a system exception occurred 577 */ 578 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S( 579 long groupId, long classNameId, long classPK, java.lang.String name, 580 int ownerType, int startPeriod, boolean retrieveFromCache) 581 throws com.liferay.portal.kernel.exception.SystemException { 582 return getPersistence() 583 .fetchByG_C_C_N_O_S(groupId, classNameId, classPK, name, 584 ownerType, startPeriod, retrieveFromCache); 585 } 586 587 /** 588 * 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. 589 * 590 * @param groupId the group ID 591 * @param classNameId the class name ID 592 * @param classPK the class p k 593 * @param name the name 594 * @param ownerType the owner type 595 * @param endPeriod the end period 596 * @return the matching social activity counter 597 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 598 * @throws SystemException if a system exception occurred 599 */ 600 public static com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_E( 601 long groupId, long classNameId, long classPK, java.lang.String name, 602 int ownerType, int endPeriod) 603 throws com.liferay.portal.kernel.exception.SystemException, 604 com.liferay.portlet.social.NoSuchActivityCounterException { 605 return getPersistence() 606 .findByG_C_C_N_O_E(groupId, classNameId, classPK, name, 607 ownerType, endPeriod); 608 } 609 610 /** 611 * 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. 612 * 613 * @param groupId the group ID 614 * @param classNameId the class name ID 615 * @param classPK the class p k 616 * @param name the name 617 * @param ownerType the owner type 618 * @param endPeriod the end period 619 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 620 * @throws SystemException if a system exception occurred 621 */ 622 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E( 623 long groupId, long classNameId, long classPK, java.lang.String name, 624 int ownerType, int endPeriod) 625 throws com.liferay.portal.kernel.exception.SystemException { 626 return getPersistence() 627 .fetchByG_C_C_N_O_E(groupId, classNameId, classPK, name, 628 ownerType, endPeriod); 629 } 630 631 /** 632 * 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. 633 * 634 * @param groupId the group ID 635 * @param classNameId the class name ID 636 * @param classPK the class p k 637 * @param name the name 638 * @param ownerType the owner type 639 * @param endPeriod the end period 640 * @param retrieveFromCache whether to use the finder cache 641 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 642 * @throws SystemException if a system exception occurred 643 */ 644 public static com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E( 645 long groupId, long classNameId, long classPK, java.lang.String name, 646 int ownerType, int endPeriod, boolean retrieveFromCache) 647 throws com.liferay.portal.kernel.exception.SystemException { 648 return getPersistence() 649 .fetchByG_C_C_N_O_E(groupId, classNameId, classPK, name, 650 ownerType, endPeriod, retrieveFromCache); 651 } 652 653 /** 654 * Returns all the social activity counters. 655 * 656 * @return the social activity counters 657 * @throws SystemException if a system exception occurred 658 */ 659 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll() 660 throws com.liferay.portal.kernel.exception.SystemException { 661 return getPersistence().findAll(); 662 } 663 664 /** 665 * Returns a range of all the social activity counters. 666 * 667 * <p> 668 * 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. 669 * </p> 670 * 671 * @param start the lower bound of the range of social activity counters 672 * @param end the upper bound of the range of social activity counters (not inclusive) 673 * @return the range of social activity counters 674 * @throws SystemException if a system exception occurred 675 */ 676 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll( 677 int start, int end) 678 throws com.liferay.portal.kernel.exception.SystemException { 679 return getPersistence().findAll(start, end); 680 } 681 682 /** 683 * Returns an ordered range of all the social activity counters. 684 * 685 * <p> 686 * 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. 687 * </p> 688 * 689 * @param start the lower bound of the range of social activity counters 690 * @param end the upper bound of the range of social activity counters (not inclusive) 691 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 692 * @return the ordered range of social activity counters 693 * @throws SystemException if a system exception occurred 694 */ 695 public static java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll( 696 int start, int end, 697 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 698 throws com.liferay.portal.kernel.exception.SystemException { 699 return getPersistence().findAll(start, end, orderByComparator); 700 } 701 702 /** 703 * Removes all the social activity counters where classNameId = ? and classPK = ? from the database. 704 * 705 * @param classNameId the class name ID 706 * @param classPK the class p k 707 * @throws SystemException if a system exception occurred 708 */ 709 public static void removeByC_C(long classNameId, long classPK) 710 throws com.liferay.portal.kernel.exception.SystemException { 711 getPersistence().removeByC_C(classNameId, classPK); 712 } 713 714 /** 715 * Removes all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ? from the database. 716 * 717 * @param groupId the group ID 718 * @param classNameId the class name ID 719 * @param classPK the class p k 720 * @param ownerType the owner type 721 * @throws SystemException if a system exception occurred 722 */ 723 public static void removeByG_C_C_O(long groupId, long classNameId, 724 long classPK, int ownerType) 725 throws com.liferay.portal.kernel.exception.SystemException { 726 getPersistence() 727 .removeByG_C_C_O(groupId, classNameId, classPK, ownerType); 728 } 729 730 /** 731 * Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? from the database. 732 * 733 * @param groupId the group ID 734 * @param classNameId the class name ID 735 * @param classPK the class p k 736 * @param name the name 737 * @param ownerType the owner type 738 * @param startPeriod the start period 739 * @return the social activity counter that was removed 740 * @throws SystemException if a system exception occurred 741 */ 742 public static com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_S( 743 long groupId, long classNameId, long classPK, java.lang.String name, 744 int ownerType, int startPeriod) 745 throws com.liferay.portal.kernel.exception.SystemException, 746 com.liferay.portlet.social.NoSuchActivityCounterException { 747 return getPersistence() 748 .removeByG_C_C_N_O_S(groupId, classNameId, classPK, name, 749 ownerType, startPeriod); 750 } 751 752 /** 753 * Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? from the database. 754 * 755 * @param groupId the group ID 756 * @param classNameId the class name ID 757 * @param classPK the class p k 758 * @param name the name 759 * @param ownerType the owner type 760 * @param endPeriod the end period 761 * @return the social activity counter that was removed 762 * @throws SystemException if a system exception occurred 763 */ 764 public static com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_E( 765 long groupId, long classNameId, long classPK, java.lang.String name, 766 int ownerType, int endPeriod) 767 throws com.liferay.portal.kernel.exception.SystemException, 768 com.liferay.portlet.social.NoSuchActivityCounterException { 769 return getPersistence() 770 .removeByG_C_C_N_O_E(groupId, classNameId, classPK, name, 771 ownerType, endPeriod); 772 } 773 774 /** 775 * Removes all the social activity counters from the database. 776 * 777 * @throws SystemException if a system exception occurred 778 */ 779 public static void removeAll() 780 throws com.liferay.portal.kernel.exception.SystemException { 781 getPersistence().removeAll(); 782 } 783 784 /** 785 * Returns the number of social activity counters where classNameId = ? and classPK = ?. 786 * 787 * @param classNameId the class name ID 788 * @param classPK the class p k 789 * @return the number of matching social activity counters 790 * @throws SystemException if a system exception occurred 791 */ 792 public static int countByC_C(long classNameId, long classPK) 793 throws com.liferay.portal.kernel.exception.SystemException { 794 return getPersistence().countByC_C(classNameId, classPK); 795 } 796 797 /** 798 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 799 * 800 * @param groupId the group ID 801 * @param classNameId the class name ID 802 * @param classPK the class p k 803 * @param ownerType the owner type 804 * @return the number of matching social activity counters 805 * @throws SystemException if a system exception occurred 806 */ 807 public static int countByG_C_C_O(long groupId, long classNameId, 808 long classPK, int ownerType) 809 throws com.liferay.portal.kernel.exception.SystemException { 810 return getPersistence() 811 .countByG_C_C_O(groupId, classNameId, classPK, ownerType); 812 } 813 814 /** 815 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ?. 816 * 817 * @param groupId the group ID 818 * @param classNameId the class name ID 819 * @param classPK the class p k 820 * @param name the name 821 * @param ownerType the owner type 822 * @param startPeriod the start period 823 * @return the number of matching social activity counters 824 * @throws SystemException if a system exception occurred 825 */ 826 public static int countByG_C_C_N_O_S(long groupId, long classNameId, 827 long classPK, java.lang.String name, int ownerType, int startPeriod) 828 throws com.liferay.portal.kernel.exception.SystemException { 829 return getPersistence() 830 .countByG_C_C_N_O_S(groupId, classNameId, classPK, name, 831 ownerType, startPeriod); 832 } 833 834 /** 835 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ?. 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 number of matching social activity counters 844 * @throws SystemException if a system exception occurred 845 */ 846 public static int countByG_C_C_N_O_E(long groupId, long classNameId, 847 long classPK, java.lang.String name, int ownerType, int endPeriod) 848 throws com.liferay.portal.kernel.exception.SystemException { 849 return getPersistence() 850 .countByG_C_C_N_O_E(groupId, classNameId, classPK, name, 851 ownerType, endPeriod); 852 } 853 854 /** 855 * Returns the number of social activity counters. 856 * 857 * @return the number of social activity counters 858 * @throws SystemException if a system exception occurred 859 */ 860 public static int countAll() 861 throws com.liferay.portal.kernel.exception.SystemException { 862 return getPersistence().countAll(); 863 } 864 865 public static SocialActivityCounterPersistence getPersistence() { 866 if (_persistence == null) { 867 _persistence = (SocialActivityCounterPersistence)PortalBeanLocatorUtil.locate(SocialActivityCounterPersistence.class.getName()); 868 869 ReferenceRegistry.registerReference(SocialActivityCounterUtil.class, 870 "_persistence"); 871 } 872 873 return _persistence; 874 } 875 876 /** 877 * @deprecated 878 */ 879 public void setPersistence(SocialActivityCounterPersistence persistence) { 880 } 881 882 private static SocialActivityCounterPersistence _persistence; 883 }