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