001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.social.model.SocialActivityLimit; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the social activity limit service. This utility wraps {@link SocialActivityLimitPersistenceImpl} 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 SocialActivityLimitPersistence 037 * @see SocialActivityLimitPersistenceImpl 038 * @generated 039 */ 040 public class SocialActivityLimitUtil { 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(SocialActivityLimit socialActivityLimit) { 058 getPersistence().clearCache(socialActivityLimit); 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<SocialActivityLimit> 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<SocialActivityLimit> 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<SocialActivityLimit> 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 SocialActivityLimit update( 101 SocialActivityLimit socialActivityLimit) throws SystemException { 102 return getPersistence().update(socialActivityLimit); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static SocialActivityLimit update( 109 SocialActivityLimit socialActivityLimit, ServiceContext serviceContext) 110 throws SystemException { 111 return getPersistence().update(socialActivityLimit, serviceContext); 112 } 113 114 /** 115 * Returns all the social activity limits where userId = ?. 116 * 117 * @param userId the user ID 118 * @return the matching social activity limits 119 * @throws SystemException if a system exception occurred 120 */ 121 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 122 long userId) throws com.liferay.portal.kernel.exception.SystemException { 123 return getPersistence().findByUserId(userId); 124 } 125 126 /** 127 * Returns a range of all the social activity limits where userId = ?. 128 * 129 * <p> 130 * 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.SocialActivityLimitModelImpl}. 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. 131 * </p> 132 * 133 * @param userId the user ID 134 * @param start the lower bound of the range of social activity limits 135 * @param end the upper bound of the range of social activity limits (not inclusive) 136 * @return the range of matching social activity limits 137 * @throws SystemException if a system exception occurred 138 */ 139 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 140 long userId, int start, int end) 141 throws com.liferay.portal.kernel.exception.SystemException { 142 return getPersistence().findByUserId(userId, start, end); 143 } 144 145 /** 146 * Returns an ordered range of all the social activity limits where userId = ?. 147 * 148 * <p> 149 * 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.SocialActivityLimitModelImpl}. 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. 150 * </p> 151 * 152 * @param userId the user ID 153 * @param start the lower bound of the range of social activity limits 154 * @param end the upper bound of the range of social activity limits (not inclusive) 155 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 156 * @return the ordered range of matching social activity limits 157 * @throws SystemException if a system exception occurred 158 */ 159 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 160 long userId, int start, int end, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence() 164 .findByUserId(userId, start, end, orderByComparator); 165 } 166 167 /** 168 * Returns the first social activity limit in the ordered set where userId = ?. 169 * 170 * @param userId the user ID 171 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 172 * @return the first matching social activity limit 173 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public static com.liferay.portlet.social.model.SocialActivityLimit findByUserId_First( 177 long userId, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException, 180 com.liferay.portlet.social.NoSuchActivityLimitException { 181 return getPersistence().findByUserId_First(userId, orderByComparator); 182 } 183 184 /** 185 * Returns the first social activity limit in the ordered set where userId = ?. 186 * 187 * @param userId the user ID 188 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 189 * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 190 * @throws SystemException if a system exception occurred 191 */ 192 public static com.liferay.portlet.social.model.SocialActivityLimit fetchByUserId_First( 193 long userId, 194 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 195 throws com.liferay.portal.kernel.exception.SystemException { 196 return getPersistence().fetchByUserId_First(userId, orderByComparator); 197 } 198 199 /** 200 * Returns the last social activity limit in the ordered set where userId = ?. 201 * 202 * @param userId the user ID 203 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 204 * @return the last matching social activity limit 205 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 206 * @throws SystemException if a system exception occurred 207 */ 208 public static com.liferay.portlet.social.model.SocialActivityLimit findByUserId_Last( 209 long userId, 210 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 211 throws com.liferay.portal.kernel.exception.SystemException, 212 com.liferay.portlet.social.NoSuchActivityLimitException { 213 return getPersistence().findByUserId_Last(userId, orderByComparator); 214 } 215 216 /** 217 * Returns the last social activity limit in the ordered set where userId = ?. 218 * 219 * @param userId the user ID 220 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 221 * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 222 * @throws SystemException if a system exception occurred 223 */ 224 public static com.liferay.portlet.social.model.SocialActivityLimit fetchByUserId_Last( 225 long userId, 226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 227 throws com.liferay.portal.kernel.exception.SystemException { 228 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 229 } 230 231 /** 232 * Returns the social activity limits before and after the current social activity limit in the ordered set where userId = ?. 233 * 234 * @param activityLimitId the primary key of the current social activity limit 235 * @param userId the user ID 236 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 237 * @return the previous, current, and next social activity limit 238 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 239 * @throws SystemException if a system exception occurred 240 */ 241 public static com.liferay.portlet.social.model.SocialActivityLimit[] findByUserId_PrevAndNext( 242 long activityLimitId, long userId, 243 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 244 throws com.liferay.portal.kernel.exception.SystemException, 245 com.liferay.portlet.social.NoSuchActivityLimitException { 246 return getPersistence() 247 .findByUserId_PrevAndNext(activityLimitId, userId, 248 orderByComparator); 249 } 250 251 /** 252 * Removes all the social activity limits where userId = ? from the database. 253 * 254 * @param userId the user ID 255 * @throws SystemException if a system exception occurred 256 */ 257 public static void removeByUserId(long userId) 258 throws com.liferay.portal.kernel.exception.SystemException { 259 getPersistence().removeByUserId(userId); 260 } 261 262 /** 263 * Returns the number of social activity limits where userId = ?. 264 * 265 * @param userId the user ID 266 * @return the number of matching social activity limits 267 * @throws SystemException if a system exception occurred 268 */ 269 public static int countByUserId(long userId) 270 throws com.liferay.portal.kernel.exception.SystemException { 271 return getPersistence().countByUserId(userId); 272 } 273 274 /** 275 * Returns all the social activity limits where classNameId = ? and classPK = ?. 276 * 277 * @param classNameId the class name ID 278 * @param classPK the class p k 279 * @return the matching social activity limits 280 * @throws SystemException if a system exception occurred 281 */ 282 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 283 long classNameId, long classPK) 284 throws com.liferay.portal.kernel.exception.SystemException { 285 return getPersistence().findByC_C(classNameId, classPK); 286 } 287 288 /** 289 * Returns a range of all the social activity limits where classNameId = ? and classPK = ?. 290 * 291 * <p> 292 * 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.SocialActivityLimitModelImpl}. 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. 293 * </p> 294 * 295 * @param classNameId the class name ID 296 * @param classPK the class p k 297 * @param start the lower bound of the range of social activity limits 298 * @param end the upper bound of the range of social activity limits (not inclusive) 299 * @return the range of matching social activity limits 300 * @throws SystemException if a system exception occurred 301 */ 302 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 303 long classNameId, long classPK, int start, int end) 304 throws com.liferay.portal.kernel.exception.SystemException { 305 return getPersistence().findByC_C(classNameId, classPK, start, end); 306 } 307 308 /** 309 * Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?. 310 * 311 * <p> 312 * 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.SocialActivityLimitModelImpl}. 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. 313 * </p> 314 * 315 * @param classNameId the class name ID 316 * @param classPK the class p k 317 * @param start the lower bound of the range of social activity limits 318 * @param end the upper bound of the range of social activity limits (not inclusive) 319 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 320 * @return the ordered range of matching social activity limits 321 * @throws SystemException if a system exception occurred 322 */ 323 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 324 long classNameId, long classPK, int start, int end, 325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 326 throws com.liferay.portal.kernel.exception.SystemException { 327 return getPersistence() 328 .findByC_C(classNameId, classPK, start, end, 329 orderByComparator); 330 } 331 332 /** 333 * Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. 334 * 335 * @param classNameId the class name ID 336 * @param classPK the class p k 337 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 338 * @return the first matching social activity limit 339 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 340 * @throws SystemException if a system exception occurred 341 */ 342 public static com.liferay.portlet.social.model.SocialActivityLimit findByC_C_First( 343 long classNameId, long classPK, 344 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 345 throws com.liferay.portal.kernel.exception.SystemException, 346 com.liferay.portlet.social.NoSuchActivityLimitException { 347 return getPersistence() 348 .findByC_C_First(classNameId, classPK, orderByComparator); 349 } 350 351 /** 352 * Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. 353 * 354 * @param classNameId the class name ID 355 * @param classPK the class p k 356 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 357 * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 358 * @throws SystemException if a system exception occurred 359 */ 360 public static com.liferay.portlet.social.model.SocialActivityLimit fetchByC_C_First( 361 long classNameId, long classPK, 362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 363 throws com.liferay.portal.kernel.exception.SystemException { 364 return getPersistence() 365 .fetchByC_C_First(classNameId, classPK, orderByComparator); 366 } 367 368 /** 369 * Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. 370 * 371 * @param classNameId the class name ID 372 * @param classPK the class p k 373 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 374 * @return the last matching social activity limit 375 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 376 * @throws SystemException if a system exception occurred 377 */ 378 public static com.liferay.portlet.social.model.SocialActivityLimit findByC_C_Last( 379 long classNameId, long classPK, 380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 381 throws com.liferay.portal.kernel.exception.SystemException, 382 com.liferay.portlet.social.NoSuchActivityLimitException { 383 return getPersistence() 384 .findByC_C_Last(classNameId, classPK, orderByComparator); 385 } 386 387 /** 388 * Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. 389 * 390 * @param classNameId the class name ID 391 * @param classPK the class p k 392 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 393 * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 394 * @throws SystemException if a system exception occurred 395 */ 396 public static com.liferay.portlet.social.model.SocialActivityLimit fetchByC_C_Last( 397 long classNameId, long classPK, 398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 399 throws com.liferay.portal.kernel.exception.SystemException { 400 return getPersistence() 401 .fetchByC_C_Last(classNameId, classPK, orderByComparator); 402 } 403 404 /** 405 * Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = ? and classPK = ?. 406 * 407 * @param activityLimitId the primary key of the current social activity limit 408 * @param classNameId the class name ID 409 * @param classPK the class p k 410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 411 * @return the previous, current, and next social activity limit 412 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 413 * @throws SystemException if a system exception occurred 414 */ 415 public static com.liferay.portlet.social.model.SocialActivityLimit[] findByC_C_PrevAndNext( 416 long activityLimitId, long classNameId, long classPK, 417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 418 throws com.liferay.portal.kernel.exception.SystemException, 419 com.liferay.portlet.social.NoSuchActivityLimitException { 420 return getPersistence() 421 .findByC_C_PrevAndNext(activityLimitId, classNameId, 422 classPK, orderByComparator); 423 } 424 425 /** 426 * Removes all the social activity limits where classNameId = ? and classPK = ? from the database. 427 * 428 * @param classNameId the class name ID 429 * @param classPK the class p k 430 * @throws SystemException if a system exception occurred 431 */ 432 public static void removeByC_C(long classNameId, long classPK) 433 throws com.liferay.portal.kernel.exception.SystemException { 434 getPersistence().removeByC_C(classNameId, classPK); 435 } 436 437 /** 438 * Returns the number of social activity limits where classNameId = ? and classPK = ?. 439 * 440 * @param classNameId the class name ID 441 * @param classPK the class p k 442 * @return the number of matching social activity limits 443 * @throws SystemException if a system exception occurred 444 */ 445 public static int countByC_C(long classNameId, long classPK) 446 throws com.liferay.portal.kernel.exception.SystemException { 447 return getPersistence().countByC_C(classNameId, classPK); 448 } 449 450 /** 451 * Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityLimitException} if it could not be found. 452 * 453 * @param groupId the group ID 454 * @param userId the user ID 455 * @param classNameId the class name ID 456 * @param classPK the class p k 457 * @param activityType the activity type 458 * @param activityCounterName the activity counter name 459 * @return the matching social activity limit 460 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portlet.social.model.SocialActivityLimit findByG_U_C_C_A_A( 464 long groupId, long userId, long classNameId, long classPK, 465 int activityType, java.lang.String activityCounterName) 466 throws com.liferay.portal.kernel.exception.SystemException, 467 com.liferay.portlet.social.NoSuchActivityLimitException { 468 return getPersistence() 469 .findByG_U_C_C_A_A(groupId, userId, classNameId, classPK, 470 activityType, activityCounterName); 471 } 472 473 /** 474 * Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 475 * 476 * @param groupId the group ID 477 * @param userId the user ID 478 * @param classNameId the class name ID 479 * @param classPK the class p k 480 * @param activityType the activity type 481 * @param activityCounterName the activity counter name 482 * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 483 * @throws SystemException if a system exception occurred 484 */ 485 public static com.liferay.portlet.social.model.SocialActivityLimit fetchByG_U_C_C_A_A( 486 long groupId, long userId, long classNameId, long classPK, 487 int activityType, java.lang.String activityCounterName) 488 throws com.liferay.portal.kernel.exception.SystemException { 489 return getPersistence() 490 .fetchByG_U_C_C_A_A(groupId, userId, classNameId, classPK, 491 activityType, activityCounterName); 492 } 493 494 /** 495 * Returns the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 496 * 497 * @param groupId the group ID 498 * @param userId the user ID 499 * @param classNameId the class name ID 500 * @param classPK the class p k 501 * @param activityType the activity type 502 * @param activityCounterName the activity counter name 503 * @param retrieveFromCache whether to use the finder cache 504 * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 505 * @throws SystemException if a system exception occurred 506 */ 507 public static com.liferay.portlet.social.model.SocialActivityLimit fetchByG_U_C_C_A_A( 508 long groupId, long userId, long classNameId, long classPK, 509 int activityType, java.lang.String activityCounterName, 510 boolean retrieveFromCache) 511 throws com.liferay.portal.kernel.exception.SystemException { 512 return getPersistence() 513 .fetchByG_U_C_C_A_A(groupId, userId, classNameId, classPK, 514 activityType, activityCounterName, retrieveFromCache); 515 } 516 517 /** 518 * Removes the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? from the database. 519 * 520 * @param groupId the group ID 521 * @param userId the user ID 522 * @param classNameId the class name ID 523 * @param classPK the class p k 524 * @param activityType the activity type 525 * @param activityCounterName the activity counter name 526 * @return the social activity limit that was removed 527 * @throws SystemException if a system exception occurred 528 */ 529 public static com.liferay.portlet.social.model.SocialActivityLimit removeByG_U_C_C_A_A( 530 long groupId, long userId, long classNameId, long classPK, 531 int activityType, java.lang.String activityCounterName) 532 throws com.liferay.portal.kernel.exception.SystemException, 533 com.liferay.portlet.social.NoSuchActivityLimitException { 534 return getPersistence() 535 .removeByG_U_C_C_A_A(groupId, userId, classNameId, classPK, 536 activityType, activityCounterName); 537 } 538 539 /** 540 * Returns the number of social activity limits where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ?. 541 * 542 * @param groupId the group ID 543 * @param userId the user ID 544 * @param classNameId the class name ID 545 * @param classPK the class p k 546 * @param activityType the activity type 547 * @param activityCounterName the activity counter name 548 * @return the number of matching social activity limits 549 * @throws SystemException if a system exception occurred 550 */ 551 public static int countByG_U_C_C_A_A(long groupId, long userId, 552 long classNameId, long classPK, int activityType, 553 java.lang.String activityCounterName) 554 throws com.liferay.portal.kernel.exception.SystemException { 555 return getPersistence() 556 .countByG_U_C_C_A_A(groupId, userId, classNameId, classPK, 557 activityType, activityCounterName); 558 } 559 560 /** 561 * Caches the social activity limit in the entity cache if it is enabled. 562 * 563 * @param socialActivityLimit the social activity limit 564 */ 565 public static void cacheResult( 566 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) { 567 getPersistence().cacheResult(socialActivityLimit); 568 } 569 570 /** 571 * Caches the social activity limits in the entity cache if it is enabled. 572 * 573 * @param socialActivityLimits the social activity limits 574 */ 575 public static void cacheResult( 576 java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> socialActivityLimits) { 577 getPersistence().cacheResult(socialActivityLimits); 578 } 579 580 /** 581 * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database. 582 * 583 * @param activityLimitId the primary key for the new social activity limit 584 * @return the new social activity limit 585 */ 586 public static com.liferay.portlet.social.model.SocialActivityLimit create( 587 long activityLimitId) { 588 return getPersistence().create(activityLimitId); 589 } 590 591 /** 592 * Removes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners. 593 * 594 * @param activityLimitId the primary key of the social activity limit 595 * @return the social activity limit that was removed 596 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 597 * @throws SystemException if a system exception occurred 598 */ 599 public static com.liferay.portlet.social.model.SocialActivityLimit remove( 600 long activityLimitId) 601 throws com.liferay.portal.kernel.exception.SystemException, 602 com.liferay.portlet.social.NoSuchActivityLimitException { 603 return getPersistence().remove(activityLimitId); 604 } 605 606 public static com.liferay.portlet.social.model.SocialActivityLimit updateImpl( 607 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return getPersistence().updateImpl(socialActivityLimit); 610 } 611 612 /** 613 * Returns the social activity limit with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityLimitException} if it could not be found. 614 * 615 * @param activityLimitId the primary key of the social activity limit 616 * @return the social activity limit 617 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 618 * @throws SystemException if a system exception occurred 619 */ 620 public static com.liferay.portlet.social.model.SocialActivityLimit findByPrimaryKey( 621 long activityLimitId) 622 throws com.liferay.portal.kernel.exception.SystemException, 623 com.liferay.portlet.social.NoSuchActivityLimitException { 624 return getPersistence().findByPrimaryKey(activityLimitId); 625 } 626 627 /** 628 * Returns the social activity limit with the primary key or returns <code>null</code> if it could not be found. 629 * 630 * @param activityLimitId the primary key of the social activity limit 631 * @return the social activity limit, or <code>null</code> if a social activity limit with the primary key could not be found 632 * @throws SystemException if a system exception occurred 633 */ 634 public static com.liferay.portlet.social.model.SocialActivityLimit fetchByPrimaryKey( 635 long activityLimitId) 636 throws com.liferay.portal.kernel.exception.SystemException { 637 return getPersistence().fetchByPrimaryKey(activityLimitId); 638 } 639 640 /** 641 * Returns all the social activity limits. 642 * 643 * @return the social activity limits 644 * @throws SystemException if a system exception occurred 645 */ 646 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll() 647 throws com.liferay.portal.kernel.exception.SystemException { 648 return getPersistence().findAll(); 649 } 650 651 /** 652 * Returns a range of all the social activity limits. 653 * 654 * <p> 655 * 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.SocialActivityLimitModelImpl}. 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. 656 * </p> 657 * 658 * @param start the lower bound of the range of social activity limits 659 * @param end the upper bound of the range of social activity limits (not inclusive) 660 * @return the range of social activity limits 661 * @throws SystemException if a system exception occurred 662 */ 663 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll( 664 int start, int end) 665 throws com.liferay.portal.kernel.exception.SystemException { 666 return getPersistence().findAll(start, end); 667 } 668 669 /** 670 * Returns an ordered range of all the social activity limits. 671 * 672 * <p> 673 * 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.SocialActivityLimitModelImpl}. 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. 674 * </p> 675 * 676 * @param start the lower bound of the range of social activity limits 677 * @param end the upper bound of the range of social activity limits (not inclusive) 678 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 679 * @return the ordered range of social activity limits 680 * @throws SystemException if a system exception occurred 681 */ 682 public static java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll( 683 int start, int end, 684 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 685 throws com.liferay.portal.kernel.exception.SystemException { 686 return getPersistence().findAll(start, end, orderByComparator); 687 } 688 689 /** 690 * Removes all the social activity limits from the database. 691 * 692 * @throws SystemException if a system exception occurred 693 */ 694 public static void removeAll() 695 throws com.liferay.portal.kernel.exception.SystemException { 696 getPersistence().removeAll(); 697 } 698 699 /** 700 * Returns the number of social activity limits. 701 * 702 * @return the number of social activity limits 703 * @throws SystemException if a system exception occurred 704 */ 705 public static int countAll() 706 throws com.liferay.portal.kernel.exception.SystemException { 707 return getPersistence().countAll(); 708 } 709 710 public static SocialActivityLimitPersistence getPersistence() { 711 if (_persistence == null) { 712 _persistence = (SocialActivityLimitPersistence)PortalBeanLocatorUtil.locate(SocialActivityLimitPersistence.class.getName()); 713 714 ReferenceRegistry.registerReference(SocialActivityLimitUtil.class, 715 "_persistence"); 716 } 717 718 return _persistence; 719 } 720 721 /** 722 * @deprecated As of 6.2.0 723 */ 724 public void setPersistence(SocialActivityLimitPersistence persistence) { 725 } 726 727 private static SocialActivityLimitPersistence _persistence; 728 }