001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.social.model.SocialActivity; 020 021 /** 022 * The persistence interface for the social activity 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 SocialActivityPersistenceImpl 030 * @see SocialActivityUtil 031 * @generated 032 */ 033 public interface SocialActivityPersistence extends BasePersistence<SocialActivity> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link SocialActivityUtil} to access the social activity persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the social activity in the entity cache if it is enabled. 042 * 043 * @param socialActivity the social activity 044 */ 045 public void cacheResult( 046 com.liferay.portlet.social.model.SocialActivity socialActivity); 047 048 /** 049 * Caches the social activities in the entity cache if it is enabled. 050 * 051 * @param socialActivities the social activities 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities); 055 056 /** 057 * Creates a new social activity with the primary key. Does not add the social activity to the database. 058 * 059 * @param activityId the primary key for the new social activity 060 * @return the new social activity 061 */ 062 public com.liferay.portlet.social.model.SocialActivity create( 063 long activityId); 064 065 /** 066 * Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param activityId the primary key of the social activity 069 * @return the social activity that was removed 070 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.social.model.SocialActivity remove( 074 long activityId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.social.NoSuchActivityException; 077 078 public com.liferay.portlet.social.model.SocialActivity updateImpl( 079 com.liferay.portlet.social.model.SocialActivity socialActivity) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the social activity with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found. 084 * 085 * @param activityId the primary key of the social activity 086 * @return the social activity 087 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey( 091 long activityId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.social.NoSuchActivityException; 094 095 /** 096 * Returns the social activity with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param activityId the primary key of the social activity 099 * @return the social activity, or <code>null</code> if a social activity with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey( 103 long activityId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the social activities where groupId = ?. 108 * 109 * @param groupId the group ID 110 * @return the matching social activities 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 114 long groupId) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the social activities where groupId = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param groupId the group ID 125 * @param start the lower bound of the range of social activities 126 * @param end the upper bound of the range of social activities (not inclusive) 127 * @return the range of matching social activities 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 131 long groupId, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the social activities where groupId = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param groupId the group ID 142 * @param start the lower bound of the range of social activities 143 * @param end the upper bound of the range of social activities (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching social activities 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 149 long groupId, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first social activity in the ordered set where groupId = ?. 155 * 156 * @param groupId the group ID 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching social activity 159 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.social.model.SocialActivity findByGroupId_First( 163 long groupId, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.social.NoSuchActivityException; 167 168 /** 169 * Returns the first social activity 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, or <code>null</code> if a matching social activity could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.social.model.SocialActivity fetchByGroupId_First( 177 long groupId, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last social activity in the ordered set where groupId = ?. 183 * 184 * @param groupId the group ID 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching social activity 187 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last( 191 long groupId, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.social.NoSuchActivityException; 195 196 /** 197 * Returns the last social activity in the ordered set where groupId = ?. 198 * 199 * @param groupId the group ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.social.model.SocialActivity fetchByGroupId_Last( 205 long groupId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the social activities before and after the current social activity in the ordered set where groupId = ?. 211 * 212 * @param activityId the primary key of the current social activity 213 * @param groupId the group ID 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next social activity 216 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext( 220 long activityId, long groupId, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.social.NoSuchActivityException; 224 225 /** 226 * Returns all the social activities where companyId = ?. 227 * 228 * @param companyId the company ID 229 * @return the matching social activities 230 * @throws SystemException if a system exception occurred 231 */ 232 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 233 long companyId) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Returns a range of all the social activities where companyId = ?. 238 * 239 * <p> 240 * 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. 241 * </p> 242 * 243 * @param companyId the company ID 244 * @param start the lower bound of the range of social activities 245 * @param end the upper bound of the range of social activities (not inclusive) 246 * @return the range of matching social activities 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 250 long companyId, int start, int end) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns an ordered range of all the social activities where companyId = ?. 255 * 256 * <p> 257 * 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. 258 * </p> 259 * 260 * @param companyId the company ID 261 * @param start the lower bound of the range of social activities 262 * @param end the upper bound of the range of social activities (not inclusive) 263 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 264 * @return the ordered range of matching social activities 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 268 long companyId, int start, int end, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * Returns the first social activity in the ordered set where companyId = ?. 274 * 275 * @param companyId the company ID 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the first matching social activity 278 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First( 282 long companyId, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.social.NoSuchActivityException; 286 287 /** 288 * Returns the first social activity in the ordered set where companyId = ?. 289 * 290 * @param companyId the company ID 291 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 292 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public com.liferay.portlet.social.model.SocialActivity fetchByCompanyId_First( 296 long companyId, 297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 298 throws com.liferay.portal.kernel.exception.SystemException; 299 300 /** 301 * Returns the last social activity in the ordered set where companyId = ?. 302 * 303 * @param companyId the company ID 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the last matching social activity 306 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 307 * @throws SystemException if a system exception occurred 308 */ 309 public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last( 310 long companyId, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException, 313 com.liferay.portlet.social.NoSuchActivityException; 314 315 /** 316 * Returns the last social activity in the ordered set where companyId = ?. 317 * 318 * @param companyId the company ID 319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 320 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public com.liferay.portlet.social.model.SocialActivity fetchByCompanyId_Last( 324 long companyId, 325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 326 throws com.liferay.portal.kernel.exception.SystemException; 327 328 /** 329 * Returns the social activities before and after the current social activity in the ordered set where companyId = ?. 330 * 331 * @param activityId the primary key of the current social activity 332 * @param companyId the company ID 333 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 334 * @return the previous, current, and next social activity 335 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext( 339 long activityId, long companyId, 340 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.social.NoSuchActivityException; 343 344 /** 345 * Returns all the social activities where userId = ?. 346 * 347 * @param userId the user ID 348 * @return the matching social activities 349 * @throws SystemException if a system exception occurred 350 */ 351 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 352 long userId) throws com.liferay.portal.kernel.exception.SystemException; 353 354 /** 355 * Returns a range of all the social activities where userId = ?. 356 * 357 * <p> 358 * 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. 359 * </p> 360 * 361 * @param userId the user ID 362 * @param start the lower bound of the range of social activities 363 * @param end the upper bound of the range of social activities (not inclusive) 364 * @return the range of matching social activities 365 * @throws SystemException if a system exception occurred 366 */ 367 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 368 long userId, int start, int end) 369 throws com.liferay.portal.kernel.exception.SystemException; 370 371 /** 372 * Returns an ordered range of all the social activities where userId = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param userId the user ID 379 * @param start the lower bound of the range of social activities 380 * @param end the upper bound of the range of social activities (not inclusive) 381 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 382 * @return the ordered range of matching social activities 383 * @throws SystemException if a system exception occurred 384 */ 385 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 386 long userId, int start, int end, 387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 388 throws com.liferay.portal.kernel.exception.SystemException; 389 390 /** 391 * Returns the first social activity in the ordered set where userId = ?. 392 * 393 * @param userId the user ID 394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 395 * @return the first matching social activity 396 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 397 * @throws SystemException if a system exception occurred 398 */ 399 public com.liferay.portlet.social.model.SocialActivity findByUserId_First( 400 long userId, 401 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 402 throws com.liferay.portal.kernel.exception.SystemException, 403 com.liferay.portlet.social.NoSuchActivityException; 404 405 /** 406 * Returns the first social activity in the ordered set where userId = ?. 407 * 408 * @param userId the user ID 409 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 410 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public com.liferay.portlet.social.model.SocialActivity fetchByUserId_First( 414 long userId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException; 417 418 /** 419 * Returns the last social activity in the ordered set where userId = ?. 420 * 421 * @param userId the user ID 422 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 423 * @return the last matching social activity 424 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public com.liferay.portlet.social.model.SocialActivity findByUserId_Last( 428 long userId, 429 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 430 throws com.liferay.portal.kernel.exception.SystemException, 431 com.liferay.portlet.social.NoSuchActivityException; 432 433 /** 434 * Returns the last social activity in the ordered set where userId = ?. 435 * 436 * @param userId the user ID 437 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 438 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 439 * @throws SystemException if a system exception occurred 440 */ 441 public com.liferay.portlet.social.model.SocialActivity fetchByUserId_Last( 442 long userId, 443 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 444 throws com.liferay.portal.kernel.exception.SystemException; 445 446 /** 447 * Returns the social activities before and after the current social activity in the ordered set where userId = ?. 448 * 449 * @param activityId the primary key of the current social activity 450 * @param userId the user ID 451 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 452 * @return the previous, current, and next social activity 453 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 454 * @throws SystemException if a system exception occurred 455 */ 456 public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext( 457 long activityId, long userId, 458 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 459 throws com.liferay.portal.kernel.exception.SystemException, 460 com.liferay.portlet.social.NoSuchActivityException; 461 462 /** 463 * Returns the social activity where mirrorActivityId = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found. 464 * 465 * @param mirrorActivityId the mirror activity ID 466 * @return the matching social activity 467 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId( 471 long mirrorActivityId) 472 throws com.liferay.portal.kernel.exception.SystemException, 473 com.liferay.portlet.social.NoSuchActivityException; 474 475 /** 476 * Returns the social activity where mirrorActivityId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 477 * 478 * @param mirrorActivityId the mirror activity ID 479 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 480 * @throws SystemException if a system exception occurred 481 */ 482 public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId( 483 long mirrorActivityId) 484 throws com.liferay.portal.kernel.exception.SystemException; 485 486 /** 487 * Returns the social activity where mirrorActivityId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 488 * 489 * @param mirrorActivityId the mirror activity ID 490 * @param retrieveFromCache whether to use the finder cache 491 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 492 * @throws SystemException if a system exception occurred 493 */ 494 public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId( 495 long mirrorActivityId, boolean retrieveFromCache) 496 throws com.liferay.portal.kernel.exception.SystemException; 497 498 /** 499 * Returns all the social activities where classNameId = ?. 500 * 501 * @param classNameId the class name ID 502 * @return the matching social activities 503 * @throws SystemException if a system exception occurred 504 */ 505 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 506 long classNameId) 507 throws com.liferay.portal.kernel.exception.SystemException; 508 509 /** 510 * Returns a range of all the social activities where classNameId = ?. 511 * 512 * <p> 513 * 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. 514 * </p> 515 * 516 * @param classNameId the class name ID 517 * @param start the lower bound of the range of social activities 518 * @param end the upper bound of the range of social activities (not inclusive) 519 * @return the range of matching social activities 520 * @throws SystemException if a system exception occurred 521 */ 522 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 523 long classNameId, int start, int end) 524 throws com.liferay.portal.kernel.exception.SystemException; 525 526 /** 527 * Returns an ordered range of all the social activities where classNameId = ?. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 533 * @param classNameId the class name ID 534 * @param start the lower bound of the range of social activities 535 * @param end the upper bound of the range of social activities (not inclusive) 536 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 537 * @return the ordered range of matching social activities 538 * @throws SystemException if a system exception occurred 539 */ 540 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 541 long classNameId, int start, int end, 542 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 543 throws com.liferay.portal.kernel.exception.SystemException; 544 545 /** 546 * Returns the first social activity in the ordered set where classNameId = ?. 547 * 548 * @param classNameId the class name ID 549 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 550 * @return the first matching social activity 551 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 552 * @throws SystemException if a system exception occurred 553 */ 554 public com.liferay.portlet.social.model.SocialActivity findByClassNameId_First( 555 long classNameId, 556 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 557 throws com.liferay.portal.kernel.exception.SystemException, 558 com.liferay.portlet.social.NoSuchActivityException; 559 560 /** 561 * Returns the first social activity in the ordered set where classNameId = ?. 562 * 563 * @param classNameId the class name ID 564 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 565 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 566 * @throws SystemException if a system exception occurred 567 */ 568 public com.liferay.portlet.social.model.SocialActivity fetchByClassNameId_First( 569 long classNameId, 570 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 571 throws com.liferay.portal.kernel.exception.SystemException; 572 573 /** 574 * Returns the last social activity in the ordered set where classNameId = ?. 575 * 576 * @param classNameId the class name ID 577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 578 * @return the last matching social activity 579 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last( 583 long classNameId, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.kernel.exception.SystemException, 586 com.liferay.portlet.social.NoSuchActivityException; 587 588 /** 589 * Returns the last social activity in the ordered set where classNameId = ?. 590 * 591 * @param classNameId the class name ID 592 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 593 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 594 * @throws SystemException if a system exception occurred 595 */ 596 public com.liferay.portlet.social.model.SocialActivity fetchByClassNameId_Last( 597 long classNameId, 598 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 599 throws com.liferay.portal.kernel.exception.SystemException; 600 601 /** 602 * Returns the social activities before and after the current social activity in the ordered set where classNameId = ?. 603 * 604 * @param activityId the primary key of the current social activity 605 * @param classNameId the class name ID 606 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 607 * @return the previous, current, and next social activity 608 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 609 * @throws SystemException if a system exception occurred 610 */ 611 public com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext( 612 long activityId, long classNameId, 613 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 614 throws com.liferay.portal.kernel.exception.SystemException, 615 com.liferay.portlet.social.NoSuchActivityException; 616 617 /** 618 * Returns all the social activities where receiverUserId = ?. 619 * 620 * @param receiverUserId the receiver user ID 621 * @return the matching social activities 622 * @throws SystemException if a system exception occurred 623 */ 624 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 625 long receiverUserId) 626 throws com.liferay.portal.kernel.exception.SystemException; 627 628 /** 629 * Returns a range of all the social activities where receiverUserId = ?. 630 * 631 * <p> 632 * 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. 633 * </p> 634 * 635 * @param receiverUserId the receiver user ID 636 * @param start the lower bound of the range of social activities 637 * @param end the upper bound of the range of social activities (not inclusive) 638 * @return the range of matching social activities 639 * @throws SystemException if a system exception occurred 640 */ 641 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 642 long receiverUserId, int start, int end) 643 throws com.liferay.portal.kernel.exception.SystemException; 644 645 /** 646 * Returns an ordered range of all the social activities where receiverUserId = ?. 647 * 648 * <p> 649 * 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. 650 * </p> 651 * 652 * @param receiverUserId the receiver user ID 653 * @param start the lower bound of the range of social activities 654 * @param end the upper bound of the range of social activities (not inclusive) 655 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 656 * @return the ordered range of matching social activities 657 * @throws SystemException if a system exception occurred 658 */ 659 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 660 long receiverUserId, int start, int end, 661 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 662 throws com.liferay.portal.kernel.exception.SystemException; 663 664 /** 665 * Returns the first social activity in the ordered set where receiverUserId = ?. 666 * 667 * @param receiverUserId the receiver user ID 668 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 669 * @return the first matching social activity 670 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 671 * @throws SystemException if a system exception occurred 672 */ 673 public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First( 674 long receiverUserId, 675 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 676 throws com.liferay.portal.kernel.exception.SystemException, 677 com.liferay.portlet.social.NoSuchActivityException; 678 679 /** 680 * Returns the first social activity in the ordered set where receiverUserId = ?. 681 * 682 * @param receiverUserId the receiver user ID 683 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 684 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 685 * @throws SystemException if a system exception occurred 686 */ 687 public com.liferay.portlet.social.model.SocialActivity fetchByReceiverUserId_First( 688 long receiverUserId, 689 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 690 throws com.liferay.portal.kernel.exception.SystemException; 691 692 /** 693 * Returns the last social activity in the ordered set where receiverUserId = ?. 694 * 695 * @param receiverUserId the receiver user ID 696 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 697 * @return the last matching social activity 698 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 699 * @throws SystemException if a system exception occurred 700 */ 701 public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last( 702 long receiverUserId, 703 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 704 throws com.liferay.portal.kernel.exception.SystemException, 705 com.liferay.portlet.social.NoSuchActivityException; 706 707 /** 708 * Returns the last social activity in the ordered set where receiverUserId = ?. 709 * 710 * @param receiverUserId the receiver user ID 711 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 712 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 713 * @throws SystemException if a system exception occurred 714 */ 715 public com.liferay.portlet.social.model.SocialActivity fetchByReceiverUserId_Last( 716 long receiverUserId, 717 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 718 throws com.liferay.portal.kernel.exception.SystemException; 719 720 /** 721 * Returns the social activities before and after the current social activity in the ordered set where receiverUserId = ?. 722 * 723 * @param activityId the primary key of the current social activity 724 * @param receiverUserId the receiver user ID 725 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 726 * @return the previous, current, and next social activity 727 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 728 * @throws SystemException if a system exception occurred 729 */ 730 public com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext( 731 long activityId, long receiverUserId, 732 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 733 throws com.liferay.portal.kernel.exception.SystemException, 734 com.liferay.portlet.social.NoSuchActivityException; 735 736 /** 737 * Returns all the social activities where classNameId = ? and classPK = ?. 738 * 739 * @param classNameId the class name ID 740 * @param classPK the class p k 741 * @return the matching social activities 742 * @throws SystemException if a system exception occurred 743 */ 744 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 745 long classNameId, long classPK) 746 throws com.liferay.portal.kernel.exception.SystemException; 747 748 /** 749 * Returns a range of all the social activities where classNameId = ? and classPK = ?. 750 * 751 * <p> 752 * 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. 753 * </p> 754 * 755 * @param classNameId the class name ID 756 * @param classPK the class p k 757 * @param start the lower bound of the range of social activities 758 * @param end the upper bound of the range of social activities (not inclusive) 759 * @return the range of matching social activities 760 * @throws SystemException if a system exception occurred 761 */ 762 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 763 long classNameId, long classPK, int start, int end) 764 throws com.liferay.portal.kernel.exception.SystemException; 765 766 /** 767 * Returns an ordered range of all the social activities where classNameId = ? and classPK = ?. 768 * 769 * <p> 770 * 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. 771 * </p> 772 * 773 * @param classNameId the class name ID 774 * @param classPK the class p k 775 * @param start the lower bound of the range of social activities 776 * @param end the upper bound of the range of social activities (not inclusive) 777 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 778 * @return the ordered range of matching social activities 779 * @throws SystemException if a system exception occurred 780 */ 781 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 782 long classNameId, long classPK, int start, int end, 783 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 784 throws com.liferay.portal.kernel.exception.SystemException; 785 786 /** 787 * Returns the first social activity in the ordered set where classNameId = ? and classPK = ?. 788 * 789 * @param classNameId the class name ID 790 * @param classPK the class p k 791 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 792 * @return the first matching social activity 793 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 794 * @throws SystemException if a system exception occurred 795 */ 796 public com.liferay.portlet.social.model.SocialActivity findByC_C_First( 797 long classNameId, long classPK, 798 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 799 throws com.liferay.portal.kernel.exception.SystemException, 800 com.liferay.portlet.social.NoSuchActivityException; 801 802 /** 803 * Returns the first social activity in the ordered set where classNameId = ? and classPK = ?. 804 * 805 * @param classNameId the class name ID 806 * @param classPK the class p k 807 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 808 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 809 * @throws SystemException if a system exception occurred 810 */ 811 public com.liferay.portlet.social.model.SocialActivity fetchByC_C_First( 812 long classNameId, long classPK, 813 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 814 throws com.liferay.portal.kernel.exception.SystemException; 815 816 /** 817 * Returns the last social activity in the ordered set where classNameId = ? and classPK = ?. 818 * 819 * @param classNameId the class name ID 820 * @param classPK the class p k 821 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 822 * @return the last matching social activity 823 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 824 * @throws SystemException if a system exception occurred 825 */ 826 public com.liferay.portlet.social.model.SocialActivity findByC_C_Last( 827 long classNameId, long classPK, 828 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 829 throws com.liferay.portal.kernel.exception.SystemException, 830 com.liferay.portlet.social.NoSuchActivityException; 831 832 /** 833 * Returns the last social activity in the ordered set where classNameId = ? and classPK = ?. 834 * 835 * @param classNameId the class name ID 836 * @param classPK the class p k 837 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 838 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 839 * @throws SystemException if a system exception occurred 840 */ 841 public com.liferay.portlet.social.model.SocialActivity fetchByC_C_Last( 842 long classNameId, long classPK, 843 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 844 throws com.liferay.portal.kernel.exception.SystemException; 845 846 /** 847 * Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?. 848 * 849 * @param activityId the primary key of the current social activity 850 * @param classNameId the class name ID 851 * @param classPK the class p k 852 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 853 * @return the previous, current, and next social activity 854 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 855 * @throws SystemException if a system exception occurred 856 */ 857 public com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext( 858 long activityId, long classNameId, long classPK, 859 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 860 throws com.liferay.portal.kernel.exception.SystemException, 861 com.liferay.portlet.social.NoSuchActivityException; 862 863 /** 864 * Returns all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 865 * 866 * @param mirrorActivityId the mirror activity ID 867 * @param classNameId the class name ID 868 * @param classPK the class p k 869 * @return the matching social activities 870 * @throws SystemException if a system exception occurred 871 */ 872 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 873 long mirrorActivityId, long classNameId, long classPK) 874 throws com.liferay.portal.kernel.exception.SystemException; 875 876 /** 877 * Returns a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 878 * 879 * <p> 880 * 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. 881 * </p> 882 * 883 * @param mirrorActivityId the mirror activity ID 884 * @param classNameId the class name ID 885 * @param classPK the class p k 886 * @param start the lower bound of the range of social activities 887 * @param end the upper bound of the range of social activities (not inclusive) 888 * @return the range of matching social activities 889 * @throws SystemException if a system exception occurred 890 */ 891 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 892 long mirrorActivityId, long classNameId, long classPK, int start, 893 int end) throws com.liferay.portal.kernel.exception.SystemException; 894 895 /** 896 * Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 897 * 898 * <p> 899 * 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. 900 * </p> 901 * 902 * @param mirrorActivityId the mirror activity ID 903 * @param classNameId the class name ID 904 * @param classPK the class p k 905 * @param start the lower bound of the range of social activities 906 * @param end the upper bound of the range of social activities (not inclusive) 907 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 908 * @return the ordered range of matching social activities 909 * @throws SystemException if a system exception occurred 910 */ 911 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 912 long mirrorActivityId, long classNameId, long classPK, int start, 913 int end, 914 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 915 throws com.liferay.portal.kernel.exception.SystemException; 916 917 /** 918 * Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 919 * 920 * @param mirrorActivityId the mirror activity ID 921 * @param classNameId the class name ID 922 * @param classPK the class p k 923 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 924 * @return the first matching social activity 925 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 926 * @throws SystemException if a system exception occurred 927 */ 928 public com.liferay.portlet.social.model.SocialActivity findByM_C_C_First( 929 long mirrorActivityId, long classNameId, long classPK, 930 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 931 throws com.liferay.portal.kernel.exception.SystemException, 932 com.liferay.portlet.social.NoSuchActivityException; 933 934 /** 935 * Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 936 * 937 * @param mirrorActivityId the mirror activity ID 938 * @param classNameId the class name ID 939 * @param classPK the class p k 940 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 941 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 942 * @throws SystemException if a system exception occurred 943 */ 944 public com.liferay.portlet.social.model.SocialActivity fetchByM_C_C_First( 945 long mirrorActivityId, long classNameId, long classPK, 946 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 947 throws com.liferay.portal.kernel.exception.SystemException; 948 949 /** 950 * Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 951 * 952 * @param mirrorActivityId the mirror activity ID 953 * @param classNameId the class name ID 954 * @param classPK the class p k 955 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 956 * @return the last matching social activity 957 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 958 * @throws SystemException if a system exception occurred 959 */ 960 public com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last( 961 long mirrorActivityId, long classNameId, long classPK, 962 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 963 throws com.liferay.portal.kernel.exception.SystemException, 964 com.liferay.portlet.social.NoSuchActivityException; 965 966 /** 967 * Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 968 * 969 * @param mirrorActivityId the mirror activity ID 970 * @param classNameId the class name ID 971 * @param classPK the class p k 972 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 973 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 974 * @throws SystemException if a system exception occurred 975 */ 976 public com.liferay.portlet.social.model.SocialActivity fetchByM_C_C_Last( 977 long mirrorActivityId, long classNameId, long classPK, 978 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 979 throws com.liferay.portal.kernel.exception.SystemException; 980 981 /** 982 * Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 983 * 984 * @param activityId the primary key of the current social activity 985 * @param mirrorActivityId the mirror activity ID 986 * @param classNameId the class name ID 987 * @param classPK the class p k 988 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 989 * @return the previous, current, and next social activity 990 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 991 * @throws SystemException if a system exception occurred 992 */ 993 public com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext( 994 long activityId, long mirrorActivityId, long classNameId, long classPK, 995 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 996 throws com.liferay.portal.kernel.exception.SystemException, 997 com.liferay.portlet.social.NoSuchActivityException; 998 999 /** 1000 * Returns all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1001 * 1002 * @param groupId the group ID 1003 * @param userId the user ID 1004 * @param classNameId the class name ID 1005 * @param classPK the class p k 1006 * @param type the type 1007 * @param receiverUserId the receiver user ID 1008 * @return the matching social activities 1009 * @throws SystemException if a system exception occurred 1010 */ 1011 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R( 1012 long groupId, long userId, long classNameId, long classPK, int type, 1013 long receiverUserId) 1014 throws com.liferay.portal.kernel.exception.SystemException; 1015 1016 /** 1017 * Returns a range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1018 * 1019 * <p> 1020 * 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. 1021 * </p> 1022 * 1023 * @param groupId the group ID 1024 * @param userId the user ID 1025 * @param classNameId the class name ID 1026 * @param classPK the class p k 1027 * @param type the type 1028 * @param receiverUserId the receiver user ID 1029 * @param start the lower bound of the range of social activities 1030 * @param end the upper bound of the range of social activities (not inclusive) 1031 * @return the range of matching social activities 1032 * @throws SystemException if a system exception occurred 1033 */ 1034 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R( 1035 long groupId, long userId, long classNameId, long classPK, int type, 1036 long receiverUserId, int start, int end) 1037 throws com.liferay.portal.kernel.exception.SystemException; 1038 1039 /** 1040 * Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1041 * 1042 * <p> 1043 * 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. 1044 * </p> 1045 * 1046 * @param groupId the group ID 1047 * @param userId the user ID 1048 * @param classNameId the class name ID 1049 * @param classPK the class p k 1050 * @param type the type 1051 * @param receiverUserId the receiver user ID 1052 * @param start the lower bound of the range of social activities 1053 * @param end the upper bound of the range of social activities (not inclusive) 1054 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1055 * @return the ordered range of matching social activities 1056 * @throws SystemException if a system exception occurred 1057 */ 1058 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R( 1059 long groupId, long userId, long classNameId, long classPK, int type, 1060 long receiverUserId, int start, int end, 1061 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1062 throws com.liferay.portal.kernel.exception.SystemException; 1063 1064 /** 1065 * Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1066 * 1067 * @param groupId the group ID 1068 * @param userId the user ID 1069 * @param classNameId the class name ID 1070 * @param classPK the class p k 1071 * @param type the type 1072 * @param receiverUserId the receiver user ID 1073 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1074 * @return the first matching social activity 1075 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1076 * @throws SystemException if a system exception occurred 1077 */ 1078 public com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_First( 1079 long groupId, long userId, long classNameId, long classPK, int type, 1080 long receiverUserId, 1081 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1082 throws com.liferay.portal.kernel.exception.SystemException, 1083 com.liferay.portlet.social.NoSuchActivityException; 1084 1085 /** 1086 * Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1087 * 1088 * @param groupId the group ID 1089 * @param userId the user ID 1090 * @param classNameId the class name ID 1091 * @param classPK the class p k 1092 * @param type the type 1093 * @param receiverUserId the receiver user ID 1094 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1095 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 1096 * @throws SystemException if a system exception occurred 1097 */ 1098 public com.liferay.portlet.social.model.SocialActivity fetchByG_U_C_C_T_R_First( 1099 long groupId, long userId, long classNameId, long classPK, int type, 1100 long receiverUserId, 1101 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1102 throws com.liferay.portal.kernel.exception.SystemException; 1103 1104 /** 1105 * Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1106 * 1107 * @param groupId the group ID 1108 * @param userId the user ID 1109 * @param classNameId the class name ID 1110 * @param classPK the class p k 1111 * @param type the type 1112 * @param receiverUserId the receiver user ID 1113 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1114 * @return the last matching social activity 1115 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1116 * @throws SystemException if a system exception occurred 1117 */ 1118 public com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_Last( 1119 long groupId, long userId, long classNameId, long classPK, int type, 1120 long receiverUserId, 1121 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1122 throws com.liferay.portal.kernel.exception.SystemException, 1123 com.liferay.portlet.social.NoSuchActivityException; 1124 1125 /** 1126 * Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1127 * 1128 * @param groupId the group ID 1129 * @param userId the user ID 1130 * @param classNameId the class name ID 1131 * @param classPK the class p k 1132 * @param type the type 1133 * @param receiverUserId the receiver user ID 1134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1135 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public com.liferay.portlet.social.model.SocialActivity fetchByG_U_C_C_T_R_Last( 1139 long groupId, long userId, long classNameId, long classPK, int type, 1140 long receiverUserId, 1141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1142 throws com.liferay.portal.kernel.exception.SystemException; 1143 1144 /** 1145 * Returns the social activities before and after the current social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1146 * 1147 * @param activityId the primary key of the current social activity 1148 * @param groupId the group ID 1149 * @param userId the user ID 1150 * @param classNameId the class name ID 1151 * @param classPK the class p k 1152 * @param type the type 1153 * @param receiverUserId the receiver user ID 1154 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1155 * @return the previous, current, and next social activity 1156 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 1157 * @throws SystemException if a system exception occurred 1158 */ 1159 public com.liferay.portlet.social.model.SocialActivity[] findByG_U_C_C_T_R_PrevAndNext( 1160 long activityId, long groupId, long userId, long classNameId, 1161 long classPK, int type, long receiverUserId, 1162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1163 throws com.liferay.portal.kernel.exception.SystemException, 1164 com.liferay.portlet.social.NoSuchActivityException; 1165 1166 /** 1167 * Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found. 1168 * 1169 * @param groupId the group ID 1170 * @param userId the user ID 1171 * @param createDate the create date 1172 * @param classNameId the class name ID 1173 * @param classPK the class p k 1174 * @param type the type 1175 * @param receiverUserId the receiver user ID 1176 * @return the matching social activity 1177 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1178 * @throws SystemException if a system exception occurred 1179 */ 1180 public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R( 1181 long groupId, long userId, long createDate, long classNameId, 1182 long classPK, int type, long receiverUserId) 1183 throws com.liferay.portal.kernel.exception.SystemException, 1184 com.liferay.portlet.social.NoSuchActivityException; 1185 1186 /** 1187 * Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1188 * 1189 * @param groupId the group ID 1190 * @param userId the user ID 1191 * @param createDate the create date 1192 * @param classNameId the class name ID 1193 * @param classPK the class p k 1194 * @param type the type 1195 * @param receiverUserId the receiver user ID 1196 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R( 1200 long groupId, long userId, long createDate, long classNameId, 1201 long classPK, int type, long receiverUserId) 1202 throws com.liferay.portal.kernel.exception.SystemException; 1203 1204 /** 1205 * Returns the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1206 * 1207 * @param groupId the group ID 1208 * @param userId the user ID 1209 * @param createDate the create date 1210 * @param classNameId the class name ID 1211 * @param classPK the class p k 1212 * @param type the type 1213 * @param receiverUserId the receiver user ID 1214 * @param retrieveFromCache whether to use the finder cache 1215 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 1216 * @throws SystemException if a system exception occurred 1217 */ 1218 public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R( 1219 long groupId, long userId, long createDate, long classNameId, 1220 long classPK, int type, long receiverUserId, boolean retrieveFromCache) 1221 throws com.liferay.portal.kernel.exception.SystemException; 1222 1223 /** 1224 * Returns all the social activities. 1225 * 1226 * @return the social activities 1227 * @throws SystemException if a system exception occurred 1228 */ 1229 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll() 1230 throws com.liferay.portal.kernel.exception.SystemException; 1231 1232 /** 1233 * Returns a range of all the social activities. 1234 * 1235 * <p> 1236 * 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. 1237 * </p> 1238 * 1239 * @param start the lower bound of the range of social activities 1240 * @param end the upper bound of the range of social activities (not inclusive) 1241 * @return the range of social activities 1242 * @throws SystemException if a system exception occurred 1243 */ 1244 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll( 1245 int start, int end) 1246 throws com.liferay.portal.kernel.exception.SystemException; 1247 1248 /** 1249 * Returns an ordered range of all the social activities. 1250 * 1251 * <p> 1252 * 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. 1253 * </p> 1254 * 1255 * @param start the lower bound of the range of social activities 1256 * @param end the upper bound of the range of social activities (not inclusive) 1257 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1258 * @return the ordered range of social activities 1259 * @throws SystemException if a system exception occurred 1260 */ 1261 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll( 1262 int start, int end, 1263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1264 throws com.liferay.portal.kernel.exception.SystemException; 1265 1266 /** 1267 * Removes all the social activities where groupId = ? from the database. 1268 * 1269 * @param groupId the group ID 1270 * @throws SystemException if a system exception occurred 1271 */ 1272 public void removeByGroupId(long groupId) 1273 throws com.liferay.portal.kernel.exception.SystemException; 1274 1275 /** 1276 * Removes all the social activities where companyId = ? from the database. 1277 * 1278 * @param companyId the company ID 1279 * @throws SystemException if a system exception occurred 1280 */ 1281 public void removeByCompanyId(long companyId) 1282 throws com.liferay.portal.kernel.exception.SystemException; 1283 1284 /** 1285 * Removes all the social activities where userId = ? from the database. 1286 * 1287 * @param userId the user ID 1288 * @throws SystemException if a system exception occurred 1289 */ 1290 public void removeByUserId(long userId) 1291 throws com.liferay.portal.kernel.exception.SystemException; 1292 1293 /** 1294 * Removes the social activity where mirrorActivityId = ? from the database. 1295 * 1296 * @param mirrorActivityId the mirror activity ID 1297 * @return the social activity that was removed 1298 * @throws SystemException if a system exception occurred 1299 */ 1300 public com.liferay.portlet.social.model.SocialActivity removeByMirrorActivityId( 1301 long mirrorActivityId) 1302 throws com.liferay.portal.kernel.exception.SystemException, 1303 com.liferay.portlet.social.NoSuchActivityException; 1304 1305 /** 1306 * Removes all the social activities where classNameId = ? from the database. 1307 * 1308 * @param classNameId the class name ID 1309 * @throws SystemException if a system exception occurred 1310 */ 1311 public void removeByClassNameId(long classNameId) 1312 throws com.liferay.portal.kernel.exception.SystemException; 1313 1314 /** 1315 * Removes all the social activities where receiverUserId = ? from the database. 1316 * 1317 * @param receiverUserId the receiver user ID 1318 * @throws SystemException if a system exception occurred 1319 */ 1320 public void removeByReceiverUserId(long receiverUserId) 1321 throws com.liferay.portal.kernel.exception.SystemException; 1322 1323 /** 1324 * Removes all the social activities where classNameId = ? and classPK = ? from the database. 1325 * 1326 * @param classNameId the class name ID 1327 * @param classPK the class p k 1328 * @throws SystemException if a system exception occurred 1329 */ 1330 public void removeByC_C(long classNameId, long classPK) 1331 throws com.liferay.portal.kernel.exception.SystemException; 1332 1333 /** 1334 * Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database. 1335 * 1336 * @param mirrorActivityId the mirror activity ID 1337 * @param classNameId the class name ID 1338 * @param classPK the class p k 1339 * @throws SystemException if a system exception occurred 1340 */ 1341 public void removeByM_C_C(long mirrorActivityId, long classNameId, 1342 long classPK) 1343 throws com.liferay.portal.kernel.exception.SystemException; 1344 1345 /** 1346 * Removes all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. 1347 * 1348 * @param groupId the group ID 1349 * @param userId the user ID 1350 * @param classNameId the class name ID 1351 * @param classPK the class p k 1352 * @param type the type 1353 * @param receiverUserId the receiver user ID 1354 * @throws SystemException if a system exception occurred 1355 */ 1356 public void removeByG_U_C_C_T_R(long groupId, long userId, 1357 long classNameId, long classPK, int type, long receiverUserId) 1358 throws com.liferay.portal.kernel.exception.SystemException; 1359 1360 /** 1361 * Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. 1362 * 1363 * @param groupId the group ID 1364 * @param userId the user ID 1365 * @param createDate the create date 1366 * @param classNameId the class name ID 1367 * @param classPK the class p k 1368 * @param type the type 1369 * @param receiverUserId the receiver user ID 1370 * @return the social activity that was removed 1371 * @throws SystemException if a system exception occurred 1372 */ 1373 public com.liferay.portlet.social.model.SocialActivity removeByG_U_CD_C_C_T_R( 1374 long groupId, long userId, long createDate, long classNameId, 1375 long classPK, int type, long receiverUserId) 1376 throws com.liferay.portal.kernel.exception.SystemException, 1377 com.liferay.portlet.social.NoSuchActivityException; 1378 1379 /** 1380 * Removes all the social activities from the database. 1381 * 1382 * @throws SystemException if a system exception occurred 1383 */ 1384 public void removeAll() 1385 throws com.liferay.portal.kernel.exception.SystemException; 1386 1387 /** 1388 * Returns the number of social activities where groupId = ?. 1389 * 1390 * @param groupId the group ID 1391 * @return the number of matching social activities 1392 * @throws SystemException if a system exception occurred 1393 */ 1394 public int countByGroupId(long groupId) 1395 throws com.liferay.portal.kernel.exception.SystemException; 1396 1397 /** 1398 * Returns the number of social activities where companyId = ?. 1399 * 1400 * @param companyId the company ID 1401 * @return the number of matching social activities 1402 * @throws SystemException if a system exception occurred 1403 */ 1404 public int countByCompanyId(long companyId) 1405 throws com.liferay.portal.kernel.exception.SystemException; 1406 1407 /** 1408 * Returns the number of social activities where userId = ?. 1409 * 1410 * @param userId the user ID 1411 * @return the number of matching social activities 1412 * @throws SystemException if a system exception occurred 1413 */ 1414 public int countByUserId(long userId) 1415 throws com.liferay.portal.kernel.exception.SystemException; 1416 1417 /** 1418 * Returns the number of social activities where mirrorActivityId = ?. 1419 * 1420 * @param mirrorActivityId the mirror activity ID 1421 * @return the number of matching social activities 1422 * @throws SystemException if a system exception occurred 1423 */ 1424 public int countByMirrorActivityId(long mirrorActivityId) 1425 throws com.liferay.portal.kernel.exception.SystemException; 1426 1427 /** 1428 * Returns the number of social activities where classNameId = ?. 1429 * 1430 * @param classNameId the class name ID 1431 * @return the number of matching social activities 1432 * @throws SystemException if a system exception occurred 1433 */ 1434 public int countByClassNameId(long classNameId) 1435 throws com.liferay.portal.kernel.exception.SystemException; 1436 1437 /** 1438 * Returns the number of social activities where receiverUserId = ?. 1439 * 1440 * @param receiverUserId the receiver user ID 1441 * @return the number of matching social activities 1442 * @throws SystemException if a system exception occurred 1443 */ 1444 public int countByReceiverUserId(long receiverUserId) 1445 throws com.liferay.portal.kernel.exception.SystemException; 1446 1447 /** 1448 * Returns the number of social activities where classNameId = ? and classPK = ?. 1449 * 1450 * @param classNameId the class name ID 1451 * @param classPK the class p k 1452 * @return the number of matching social activities 1453 * @throws SystemException if a system exception occurred 1454 */ 1455 public int countByC_C(long classNameId, long classPK) 1456 throws com.liferay.portal.kernel.exception.SystemException; 1457 1458 /** 1459 * Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1460 * 1461 * @param mirrorActivityId the mirror activity ID 1462 * @param classNameId the class name ID 1463 * @param classPK the class p k 1464 * @return the number of matching social activities 1465 * @throws SystemException if a system exception occurred 1466 */ 1467 public int countByM_C_C(long mirrorActivityId, long classNameId, 1468 long classPK) 1469 throws com.liferay.portal.kernel.exception.SystemException; 1470 1471 /** 1472 * Returns the number of social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1473 * 1474 * @param groupId the group ID 1475 * @param userId the user ID 1476 * @param classNameId the class name ID 1477 * @param classPK the class p k 1478 * @param type the type 1479 * @param receiverUserId the receiver user ID 1480 * @return the number of matching social activities 1481 * @throws SystemException if a system exception occurred 1482 */ 1483 public int countByG_U_C_C_T_R(long groupId, long userId, long classNameId, 1484 long classPK, int type, long receiverUserId) 1485 throws com.liferay.portal.kernel.exception.SystemException; 1486 1487 /** 1488 * Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1489 * 1490 * @param groupId the group ID 1491 * @param userId the user ID 1492 * @param createDate the create date 1493 * @param classNameId the class name ID 1494 * @param classPK the class p k 1495 * @param type the type 1496 * @param receiverUserId the receiver user ID 1497 * @return the number of matching social activities 1498 * @throws SystemException if a system exception occurred 1499 */ 1500 public int countByG_U_CD_C_C_T_R(long groupId, long userId, 1501 long createDate, long classNameId, long classPK, int type, 1502 long receiverUserId) 1503 throws com.liferay.portal.kernel.exception.SystemException; 1504 1505 /** 1506 * Returns the number of social activities. 1507 * 1508 * @return the number of social activities 1509 * @throws SystemException if a system exception occurred 1510 */ 1511 public int countAll() 1512 throws com.liferay.portal.kernel.exception.SystemException; 1513 }