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