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