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.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.social.model.SocialActivityLimit; 020 021 /** 022 * The persistence interface for the social activity limit service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see SocialActivityLimitPersistenceImpl 030 * @see SocialActivityLimitUtil 031 * @generated 032 */ 033 public interface SocialActivityLimitPersistence extends BasePersistence<SocialActivityLimit> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link SocialActivityLimitUtil} to access the social activity limit persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the social activity limits where groupId = ?. 042 * 043 * @param groupId the group ID 044 * @return the matching social activity limits 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByGroupId( 048 long groupId) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the social activity limits where groupId = ?. 053 * 054 * <p> 055 * 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. 056 * </p> 057 * 058 * @param groupId the group ID 059 * @param start the lower bound of the range of social activity limits 060 * @param end the upper bound of the range of social activity limits (not inclusive) 061 * @return the range of matching social activity limits 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByGroupId( 065 long groupId, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the social activity limits where groupId = ?. 070 * 071 * <p> 072 * 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. 073 * </p> 074 * 075 * @param groupId the group ID 076 * @param start the lower bound of the range of social activity limits 077 * @param end the upper bound of the range of social activity limits (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching social activity limits 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByGroupId( 083 long groupId, int start, int end, 084 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 085 throws com.liferay.portal.kernel.exception.SystemException; 086 087 /** 088 * Returns the first social activity limit in the ordered set where groupId = ?. 089 * 090 * @param groupId the group ID 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching social activity limit 093 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.social.model.SocialActivityLimit findByGroupId_First( 097 long groupId, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.social.NoSuchActivityLimitException; 101 102 /** 103 * Returns the first social activity limit in the ordered set where groupId = ?. 104 * 105 * @param groupId the group ID 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.social.model.SocialActivityLimit fetchByGroupId_First( 111 long groupId, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last social activity limit in the ordered set where groupId = ?. 117 * 118 * @param groupId the group ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching social activity limit 121 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.social.model.SocialActivityLimit findByGroupId_Last( 125 long groupId, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.social.NoSuchActivityLimitException; 129 130 /** 131 * Returns the last social activity limit in the ordered set where groupId = ?. 132 * 133 * @param groupId the group ID 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.social.model.SocialActivityLimit fetchByGroupId_Last( 139 long groupId, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the social activity limits before and after the current social activity limit in the ordered set where groupId = ?. 145 * 146 * @param activityLimitId the primary key of the current social activity limit 147 * @param groupId the group ID 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next social activity limit 150 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.social.model.SocialActivityLimit[] findByGroupId_PrevAndNext( 154 long activityLimitId, long groupId, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.social.NoSuchActivityLimitException; 158 159 /** 160 * Removes all the social activity limits where groupId = ? from the database. 161 * 162 * @param groupId the group ID 163 * @throws SystemException if a system exception occurred 164 */ 165 public void removeByGroupId(long groupId) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns the number of social activity limits where groupId = ?. 170 * 171 * @param groupId the group ID 172 * @return the number of matching social activity limits 173 * @throws SystemException if a system exception occurred 174 */ 175 public int countByGroupId(long groupId) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns all the social activity limits where userId = ?. 180 * 181 * @param userId the user ID 182 * @return the matching social activity limits 183 * @throws SystemException if a system exception occurred 184 */ 185 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 186 long userId) throws com.liferay.portal.kernel.exception.SystemException; 187 188 /** 189 * Returns a range of all the social activity limits where userId = ?. 190 * 191 * <p> 192 * 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. 193 * </p> 194 * 195 * @param userId the user ID 196 * @param start the lower bound of the range of social activity limits 197 * @param end the upper bound of the range of social activity limits (not inclusive) 198 * @return the range of matching social activity limits 199 * @throws SystemException if a system exception occurred 200 */ 201 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 202 long userId, int start, int end) 203 throws com.liferay.portal.kernel.exception.SystemException; 204 205 /** 206 * Returns an ordered range of all the social activity limits where userId = ?. 207 * 208 * <p> 209 * 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. 210 * </p> 211 * 212 * @param userId the user ID 213 * @param start the lower bound of the range of social activity limits 214 * @param end the upper bound of the range of social activity limits (not inclusive) 215 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 216 * @return the ordered range of matching social activity limits 217 * @throws SystemException if a system exception occurred 218 */ 219 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByUserId( 220 long userId, int start, int end, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException; 223 224 /** 225 * Returns the first social activity limit in the ordered set where userId = ?. 226 * 227 * @param userId the user ID 228 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 229 * @return the first matching social activity limit 230 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 231 * @throws SystemException if a system exception occurred 232 */ 233 public com.liferay.portlet.social.model.SocialActivityLimit findByUserId_First( 234 long userId, 235 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 236 throws com.liferay.portal.kernel.exception.SystemException, 237 com.liferay.portlet.social.NoSuchActivityLimitException; 238 239 /** 240 * Returns the first social activity limit in the ordered set where userId = ?. 241 * 242 * @param userId the user ID 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.social.model.SocialActivityLimit fetchByUserId_First( 248 long userId, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns the last social activity limit in the ordered set where userId = ?. 254 * 255 * @param userId the user ID 256 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 257 * @return the last matching social activity limit 258 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public com.liferay.portlet.social.model.SocialActivityLimit findByUserId_Last( 262 long userId, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.social.NoSuchActivityLimitException; 266 267 /** 268 * Returns the last social activity limit in the ordered set where userId = ?. 269 * 270 * @param userId the user ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 273 * @throws SystemException if a system exception occurred 274 */ 275 public com.liferay.portlet.social.model.SocialActivityLimit fetchByUserId_Last( 276 long userId, 277 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 278 throws com.liferay.portal.kernel.exception.SystemException; 279 280 /** 281 * Returns the social activity limits before and after the current social activity limit in the ordered set where userId = ?. 282 * 283 * @param activityLimitId the primary key of the current social activity limit 284 * @param userId the user ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the previous, current, and next social activity limit 287 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public com.liferay.portlet.social.model.SocialActivityLimit[] findByUserId_PrevAndNext( 291 long activityLimitId, long userId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.social.NoSuchActivityLimitException; 295 296 /** 297 * Removes all the social activity limits where userId = ? from the database. 298 * 299 * @param userId the user ID 300 * @throws SystemException if a system exception occurred 301 */ 302 public void removeByUserId(long userId) 303 throws com.liferay.portal.kernel.exception.SystemException; 304 305 /** 306 * Returns the number of social activity limits where userId = ?. 307 * 308 * @param userId the user ID 309 * @return the number of matching social activity limits 310 * @throws SystemException if a system exception occurred 311 */ 312 public int countByUserId(long userId) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Returns all the social activity limits where classNameId = ? and classPK = ?. 317 * 318 * @param classNameId the class name ID 319 * @param classPK the class p k 320 * @return the matching social activity limits 321 * @throws SystemException if a system exception occurred 322 */ 323 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 324 long classNameId, long classPK) 325 throws com.liferay.portal.kernel.exception.SystemException; 326 327 /** 328 * Returns a range of all the social activity limits where classNameId = ? and classPK = ?. 329 * 330 * <p> 331 * 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. 332 * </p> 333 * 334 * @param classNameId the class name ID 335 * @param classPK the class p k 336 * @param start the lower bound of the range of social activity limits 337 * @param end the upper bound of the range of social activity limits (not inclusive) 338 * @return the range of matching social activity limits 339 * @throws SystemException if a system exception occurred 340 */ 341 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 342 long classNameId, long classPK, int start, int end) 343 throws com.liferay.portal.kernel.exception.SystemException; 344 345 /** 346 * Returns an ordered range of all the social activity limits where classNameId = ? and classPK = ?. 347 * 348 * <p> 349 * 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. 350 * </p> 351 * 352 * @param classNameId the class name ID 353 * @param classPK the class p k 354 * @param start the lower bound of the range of social activity limits 355 * @param end the upper bound of the range of social activity limits (not inclusive) 356 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 357 * @return the ordered range of matching social activity limits 358 * @throws SystemException if a system exception occurred 359 */ 360 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findByC_C( 361 long classNameId, long classPK, int start, int end, 362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 363 throws com.liferay.portal.kernel.exception.SystemException; 364 365 /** 366 * Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. 367 * 368 * @param classNameId the class name ID 369 * @param classPK the class p k 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the first matching social activity limit 372 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 373 * @throws SystemException if a system exception occurred 374 */ 375 public com.liferay.portlet.social.model.SocialActivityLimit findByC_C_First( 376 long classNameId, long classPK, 377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 378 throws com.liferay.portal.kernel.exception.SystemException, 379 com.liferay.portlet.social.NoSuchActivityLimitException; 380 381 /** 382 * Returns the first social activity limit in the ordered set where classNameId = ? and classPK = ?. 383 * 384 * @param classNameId the class name ID 385 * @param classPK the class p k 386 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 387 * @return the first matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 388 * @throws SystemException if a system exception occurred 389 */ 390 public com.liferay.portlet.social.model.SocialActivityLimit fetchByC_C_First( 391 long classNameId, long classPK, 392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 393 throws com.liferay.portal.kernel.exception.SystemException; 394 395 /** 396 * Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. 397 * 398 * @param classNameId the class name ID 399 * @param classPK the class p k 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the last matching social activity limit 402 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 403 * @throws SystemException if a system exception occurred 404 */ 405 public com.liferay.portlet.social.model.SocialActivityLimit findByC_C_Last( 406 long classNameId, long classPK, 407 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 408 throws com.liferay.portal.kernel.exception.SystemException, 409 com.liferay.portlet.social.NoSuchActivityLimitException; 410 411 /** 412 * Returns the last social activity limit in the ordered set where classNameId = ? and classPK = ?. 413 * 414 * @param classNameId the class name ID 415 * @param classPK the class p k 416 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 417 * @return the last matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 418 * @throws SystemException if a system exception occurred 419 */ 420 public com.liferay.portlet.social.model.SocialActivityLimit fetchByC_C_Last( 421 long classNameId, long classPK, 422 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 423 throws com.liferay.portal.kernel.exception.SystemException; 424 425 /** 426 * Returns the social activity limits before and after the current social activity limit in the ordered set where classNameId = ? and classPK = ?. 427 * 428 * @param activityLimitId the primary key of the current social activity limit 429 * @param classNameId the class name ID 430 * @param classPK the class p k 431 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 432 * @return the previous, current, and next social activity limit 433 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 434 * @throws SystemException if a system exception occurred 435 */ 436 public com.liferay.portlet.social.model.SocialActivityLimit[] findByC_C_PrevAndNext( 437 long activityLimitId, long classNameId, long classPK, 438 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 439 throws com.liferay.portal.kernel.exception.SystemException, 440 com.liferay.portlet.social.NoSuchActivityLimitException; 441 442 /** 443 * Removes all the social activity limits where classNameId = ? and classPK = ? from the database. 444 * 445 * @param classNameId the class name ID 446 * @param classPK the class p k 447 * @throws SystemException if a system exception occurred 448 */ 449 public void removeByC_C(long classNameId, long classPK) 450 throws com.liferay.portal.kernel.exception.SystemException; 451 452 /** 453 * Returns the number of social activity limits where classNameId = ? and classPK = ?. 454 * 455 * @param classNameId the class name ID 456 * @param classPK the class p k 457 * @return the number of matching social activity limits 458 * @throws SystemException if a system exception occurred 459 */ 460 public int countByC_C(long classNameId, long classPK) 461 throws com.liferay.portal.kernel.exception.SystemException; 462 463 /** 464 * 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. 465 * 466 * @param groupId the group ID 467 * @param userId the user ID 468 * @param classNameId the class name ID 469 * @param classPK the class p k 470 * @param activityType the activity type 471 * @param activityCounterName the activity counter name 472 * @return the matching social activity limit 473 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a matching social activity limit could not be found 474 * @throws SystemException if a system exception occurred 475 */ 476 public com.liferay.portlet.social.model.SocialActivityLimit findByG_U_C_C_A_A( 477 long groupId, long userId, long classNameId, long classPK, 478 int activityType, java.lang.String activityCounterName) 479 throws com.liferay.portal.kernel.exception.SystemException, 480 com.liferay.portlet.social.NoSuchActivityLimitException; 481 482 /** 483 * 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. 484 * 485 * @param groupId the group ID 486 * @param userId the user ID 487 * @param classNameId the class name ID 488 * @param classPK the class p k 489 * @param activityType the activity type 490 * @param activityCounterName the activity counter name 491 * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 492 * @throws SystemException if a system exception occurred 493 */ 494 public com.liferay.portlet.social.model.SocialActivityLimit fetchByG_U_C_C_A_A( 495 long groupId, long userId, long classNameId, long classPK, 496 int activityType, java.lang.String activityCounterName) 497 throws com.liferay.portal.kernel.exception.SystemException; 498 499 /** 500 * 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. 501 * 502 * @param groupId the group ID 503 * @param userId the user ID 504 * @param classNameId the class name ID 505 * @param classPK the class p k 506 * @param activityType the activity type 507 * @param activityCounterName the activity counter name 508 * @param retrieveFromCache whether to use the finder cache 509 * @return the matching social activity limit, or <code>null</code> if a matching social activity limit could not be found 510 * @throws SystemException if a system exception occurred 511 */ 512 public com.liferay.portlet.social.model.SocialActivityLimit fetchByG_U_C_C_A_A( 513 long groupId, long userId, long classNameId, long classPK, 514 int activityType, java.lang.String activityCounterName, 515 boolean retrieveFromCache) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Removes the social activity limit where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ? from the database. 520 * 521 * @param groupId the group ID 522 * @param userId the user ID 523 * @param classNameId the class name ID 524 * @param classPK the class p k 525 * @param activityType the activity type 526 * @param activityCounterName the activity counter name 527 * @return the social activity limit that was removed 528 * @throws SystemException if a system exception occurred 529 */ 530 public com.liferay.portlet.social.model.SocialActivityLimit removeByG_U_C_C_A_A( 531 long groupId, long userId, long classNameId, long classPK, 532 int activityType, java.lang.String activityCounterName) 533 throws com.liferay.portal.kernel.exception.SystemException, 534 com.liferay.portlet.social.NoSuchActivityLimitException; 535 536 /** 537 * Returns the number of social activity limits where groupId = ? and userId = ? and classNameId = ? and classPK = ? and activityType = ? and activityCounterName = ?. 538 * 539 * @param groupId the group ID 540 * @param userId the user ID 541 * @param classNameId the class name ID 542 * @param classPK the class p k 543 * @param activityType the activity type 544 * @param activityCounterName the activity counter name 545 * @return the number of matching social activity limits 546 * @throws SystemException if a system exception occurred 547 */ 548 public int countByG_U_C_C_A_A(long groupId, long userId, long classNameId, 549 long classPK, int activityType, java.lang.String activityCounterName) 550 throws com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Caches the social activity limit in the entity cache if it is enabled. 554 * 555 * @param socialActivityLimit the social activity limit 556 */ 557 public void cacheResult( 558 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit); 559 560 /** 561 * Caches the social activity limits in the entity cache if it is enabled. 562 * 563 * @param socialActivityLimits the social activity limits 564 */ 565 public void cacheResult( 566 java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> socialActivityLimits); 567 568 /** 569 * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database. 570 * 571 * @param activityLimitId the primary key for the new social activity limit 572 * @return the new social activity limit 573 */ 574 public com.liferay.portlet.social.model.SocialActivityLimit create( 575 long activityLimitId); 576 577 /** 578 * Removes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners. 579 * 580 * @param activityLimitId the primary key of the social activity limit 581 * @return the social activity limit that was removed 582 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 583 * @throws SystemException if a system exception occurred 584 */ 585 public com.liferay.portlet.social.model.SocialActivityLimit remove( 586 long activityLimitId) 587 throws com.liferay.portal.kernel.exception.SystemException, 588 com.liferay.portlet.social.NoSuchActivityLimitException; 589 590 public com.liferay.portlet.social.model.SocialActivityLimit updateImpl( 591 com.liferay.portlet.social.model.SocialActivityLimit socialActivityLimit) 592 throws com.liferay.portal.kernel.exception.SystemException; 593 594 /** 595 * Returns the social activity limit with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityLimitException} if it could not be found. 596 * 597 * @param activityLimitId the primary key of the social activity limit 598 * @return the social activity limit 599 * @throws com.liferay.portlet.social.NoSuchActivityLimitException if a social activity limit with the primary key could not be found 600 * @throws SystemException if a system exception occurred 601 */ 602 public com.liferay.portlet.social.model.SocialActivityLimit findByPrimaryKey( 603 long activityLimitId) 604 throws com.liferay.portal.kernel.exception.SystemException, 605 com.liferay.portlet.social.NoSuchActivityLimitException; 606 607 /** 608 * Returns the social activity limit with the primary key or returns <code>null</code> if it could not be found. 609 * 610 * @param activityLimitId the primary key of the social activity limit 611 * @return the social activity limit, or <code>null</code> if a social activity limit with the primary key could not be found 612 * @throws SystemException if a system exception occurred 613 */ 614 public com.liferay.portlet.social.model.SocialActivityLimit fetchByPrimaryKey( 615 long activityLimitId) 616 throws com.liferay.portal.kernel.exception.SystemException; 617 618 /** 619 * Returns all the social activity limits. 620 * 621 * @return the social activity limits 622 * @throws SystemException if a system exception occurred 623 */ 624 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll() 625 throws com.liferay.portal.kernel.exception.SystemException; 626 627 /** 628 * Returns a range of all the social activity limits. 629 * 630 * <p> 631 * 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. 632 * </p> 633 * 634 * @param start the lower bound of the range of social activity limits 635 * @param end the upper bound of the range of social activity limits (not inclusive) 636 * @return the range of social activity limits 637 * @throws SystemException if a system exception occurred 638 */ 639 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll( 640 int start, int end) 641 throws com.liferay.portal.kernel.exception.SystemException; 642 643 /** 644 * Returns an ordered range of all the social activity limits. 645 * 646 * <p> 647 * 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. 648 * </p> 649 * 650 * @param start the lower bound of the range of social activity limits 651 * @param end the upper bound of the range of social activity limits (not inclusive) 652 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 653 * @return the ordered range of social activity limits 654 * @throws SystemException if a system exception occurred 655 */ 656 public java.util.List<com.liferay.portlet.social.model.SocialActivityLimit> findAll( 657 int start, int end, 658 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 659 throws com.liferay.portal.kernel.exception.SystemException; 660 661 /** 662 * Removes all the social activity limits from the database. 663 * 664 * @throws SystemException if a system exception occurred 665 */ 666 public void removeAll() 667 throws com.liferay.portal.kernel.exception.SystemException; 668 669 /** 670 * Returns the number of social activity limits. 671 * 672 * @return the number of social activity limits 673 * @throws SystemException if a system exception occurred 674 */ 675 public int countAll() 676 throws com.liferay.portal.kernel.exception.SystemException; 677 }