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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.social.model.SocialActivity; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the social activity service. This utility wraps {@link SocialActivityPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see SocialActivityPersistence 037 * @see SocialActivityPersistenceImpl 038 * @generated 039 */ 040 public class SocialActivityUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(SocialActivity socialActivity) { 058 getPersistence().clearCache(socialActivity); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<SocialActivity> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<SocialActivity> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<SocialActivity> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static SocialActivity update(SocialActivity socialActivity) 101 throws SystemException { 102 return getPersistence().update(socialActivity); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static SocialActivity update(SocialActivity socialActivity, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(socialActivity, serviceContext); 111 } 112 113 /** 114 * Caches the social activity in the entity cache if it is enabled. 115 * 116 * @param socialActivity the social activity 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.social.model.SocialActivity socialActivity) { 120 getPersistence().cacheResult(socialActivity); 121 } 122 123 /** 124 * Caches the social activities in the entity cache if it is enabled. 125 * 126 * @param socialActivities the social activities 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities) { 130 getPersistence().cacheResult(socialActivities); 131 } 132 133 /** 134 * Creates a new social activity with the primary key. Does not add the social activity to the database. 135 * 136 * @param activityId the primary key for the new social activity 137 * @return the new social activity 138 */ 139 public static com.liferay.portlet.social.model.SocialActivity create( 140 long activityId) { 141 return getPersistence().create(activityId); 142 } 143 144 /** 145 * Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param activityId the primary key of the social activity 148 * @return the social activity that was removed 149 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.social.model.SocialActivity remove( 153 long activityId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.social.NoSuchActivityException { 156 return getPersistence().remove(activityId); 157 } 158 159 public static com.liferay.portlet.social.model.SocialActivity updateImpl( 160 com.liferay.portlet.social.model.SocialActivity socialActivity) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(socialActivity); 163 } 164 165 /** 166 * Returns the social activity with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found. 167 * 168 * @param activityId the primary key of the social activity 169 * @return the social activity 170 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.social.model.SocialActivity findByPrimaryKey( 174 long activityId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.social.NoSuchActivityException { 177 return getPersistence().findByPrimaryKey(activityId); 178 } 179 180 /** 181 * Returns the social activity with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param activityId the primary key of the social activity 184 * @return the social activity, or <code>null</code> if a social activity with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey( 188 long activityId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(activityId); 191 } 192 193 /** 194 * Returns all the social activities where groupId = ?. 195 * 196 * @param groupId the group ID 197 * @return the matching social activities 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 201 long groupId) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByGroupId(groupId); 204 } 205 206 /** 207 * Returns a range of all the social activities where groupId = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param groupId the group ID 214 * @param start the lower bound of the range of social activities 215 * @param end the upper bound of the range of social activities (not inclusive) 216 * @return the range of matching social activities 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 220 long groupId, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByGroupId(groupId, start, end); 223 } 224 225 /** 226 * Returns an ordered range of all the social activities where groupId = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param groupId the group ID 233 * @param start the lower bound of the range of social activities 234 * @param end the upper bound of the range of social activities (not inclusive) 235 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 236 * @return the ordered range of matching social activities 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 240 long groupId, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence() 244 .findByGroupId(groupId, start, end, orderByComparator); 245 } 246 247 /** 248 * Returns the first social activity in the ordered set where groupId = ?. 249 * 250 * @param groupId the group ID 251 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 252 * @return the first matching social activity 253 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 254 * @throws SystemException if a system exception occurred 255 */ 256 public static com.liferay.portlet.social.model.SocialActivity findByGroupId_First( 257 long groupId, 258 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 259 throws com.liferay.portal.kernel.exception.SystemException, 260 com.liferay.portlet.social.NoSuchActivityException { 261 return getPersistence().findByGroupId_First(groupId, orderByComparator); 262 } 263 264 /** 265 * Returns the first social activity in the ordered set where groupId = ?. 266 * 267 * @param groupId the group ID 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 270 * @throws SystemException if a system exception occurred 271 */ 272 public static com.liferay.portlet.social.model.SocialActivity fetchByGroupId_First( 273 long groupId, 274 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 275 throws com.liferay.portal.kernel.exception.SystemException { 276 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 277 } 278 279 /** 280 * Returns the last social activity in the ordered set where groupId = ?. 281 * 282 * @param groupId the group ID 283 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 284 * @return the last matching social activity 285 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 286 * @throws SystemException if a system exception occurred 287 */ 288 public static com.liferay.portlet.social.model.SocialActivity findByGroupId_Last( 289 long groupId, 290 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 291 throws com.liferay.portal.kernel.exception.SystemException, 292 com.liferay.portlet.social.NoSuchActivityException { 293 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 294 } 295 296 /** 297 * Returns the last social activity in the ordered set where groupId = ?. 298 * 299 * @param groupId the group ID 300 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 301 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.social.model.SocialActivity fetchByGroupId_Last( 305 long groupId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException { 308 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 309 } 310 311 /** 312 * Returns the social activities before and after the current social activity in the ordered set where groupId = ?. 313 * 314 * @param activityId the primary key of the current social activity 315 * @param groupId the group ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the previous, current, and next social activity 318 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext( 322 long activityId, long groupId, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.social.NoSuchActivityException { 326 return getPersistence() 327 .findByGroupId_PrevAndNext(activityId, groupId, 328 orderByComparator); 329 } 330 331 /** 332 * Returns all the social activities where companyId = ?. 333 * 334 * @param companyId the company ID 335 * @return the matching social activities 336 * @throws SystemException if a system exception occurred 337 */ 338 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 339 long companyId) 340 throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().findByCompanyId(companyId); 342 } 343 344 /** 345 * Returns a range of all the social activities where companyId = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param companyId the company ID 352 * @param start the lower bound of the range of social activities 353 * @param end the upper bound of the range of social activities (not inclusive) 354 * @return the range of matching social activities 355 * @throws SystemException if a system exception occurred 356 */ 357 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 358 long companyId, int start, int end) 359 throws com.liferay.portal.kernel.exception.SystemException { 360 return getPersistence().findByCompanyId(companyId, start, end); 361 } 362 363 /** 364 * Returns an ordered range of all the social activities where companyId = ?. 365 * 366 * <p> 367 * 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. 368 * </p> 369 * 370 * @param companyId the company ID 371 * @param start the lower bound of the range of social activities 372 * @param end the upper bound of the range of social activities (not inclusive) 373 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 374 * @return the ordered range of matching social activities 375 * @throws SystemException if a system exception occurred 376 */ 377 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 378 long companyId, int start, int end, 379 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 380 throws com.liferay.portal.kernel.exception.SystemException { 381 return getPersistence() 382 .findByCompanyId(companyId, start, end, orderByComparator); 383 } 384 385 /** 386 * Returns the first social activity in the ordered set where companyId = ?. 387 * 388 * @param companyId the company ID 389 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 390 * @return the first matching social activity 391 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 392 * @throws SystemException if a system exception occurred 393 */ 394 public static com.liferay.portlet.social.model.SocialActivity findByCompanyId_First( 395 long companyId, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.kernel.exception.SystemException, 398 com.liferay.portlet.social.NoSuchActivityException { 399 return getPersistence() 400 .findByCompanyId_First(companyId, orderByComparator); 401 } 402 403 /** 404 * Returns the first social activity in the ordered set where companyId = ?. 405 * 406 * @param companyId the company ID 407 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 408 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 409 * @throws SystemException if a system exception occurred 410 */ 411 public static com.liferay.portlet.social.model.SocialActivity fetchByCompanyId_First( 412 long companyId, 413 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 414 throws com.liferay.portal.kernel.exception.SystemException { 415 return getPersistence() 416 .fetchByCompanyId_First(companyId, orderByComparator); 417 } 418 419 /** 420 * Returns the last social activity in the ordered set where companyId = ?. 421 * 422 * @param companyId the company 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 static com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last( 429 long companyId, 430 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 431 throws com.liferay.portal.kernel.exception.SystemException, 432 com.liferay.portlet.social.NoSuchActivityException { 433 return getPersistence() 434 .findByCompanyId_Last(companyId, orderByComparator); 435 } 436 437 /** 438 * Returns the last social activity in the ordered set where companyId = ?. 439 * 440 * @param companyId the company ID 441 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 442 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 443 * @throws SystemException if a system exception occurred 444 */ 445 public static com.liferay.portlet.social.model.SocialActivity fetchByCompanyId_Last( 446 long companyId, 447 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 448 throws com.liferay.portal.kernel.exception.SystemException { 449 return getPersistence() 450 .fetchByCompanyId_Last(companyId, orderByComparator); 451 } 452 453 /** 454 * Returns the social activities before and after the current social activity in the ordered set where companyId = ?. 455 * 456 * @param activityId the primary key of the current social activity 457 * @param companyId the company ID 458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 459 * @return the previous, current, and next social activity 460 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 461 * @throws SystemException if a system exception occurred 462 */ 463 public static com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext( 464 long activityId, long companyId, 465 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 466 throws com.liferay.portal.kernel.exception.SystemException, 467 com.liferay.portlet.social.NoSuchActivityException { 468 return getPersistence() 469 .findByCompanyId_PrevAndNext(activityId, companyId, 470 orderByComparator); 471 } 472 473 /** 474 * Returns all the social activities where userId = ?. 475 * 476 * @param userId the user ID 477 * @return the matching social activities 478 * @throws SystemException if a system exception occurred 479 */ 480 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 481 long userId) throws com.liferay.portal.kernel.exception.SystemException { 482 return getPersistence().findByUserId(userId); 483 } 484 485 /** 486 * Returns a range of all the social activities where userId = ?. 487 * 488 * <p> 489 * 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. 490 * </p> 491 * 492 * @param userId the user ID 493 * @param start the lower bound of the range of social activities 494 * @param end the upper bound of the range of social activities (not inclusive) 495 * @return the range of matching social activities 496 * @throws SystemException if a system exception occurred 497 */ 498 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 499 long userId, int start, int end) 500 throws com.liferay.portal.kernel.exception.SystemException { 501 return getPersistence().findByUserId(userId, start, end); 502 } 503 504 /** 505 * Returns an ordered range of all the social activities where userId = ?. 506 * 507 * <p> 508 * 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. 509 * </p> 510 * 511 * @param userId the user ID 512 * @param start the lower bound of the range of social activities 513 * @param end the upper bound of the range of social activities (not inclusive) 514 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 515 * @return the ordered range of matching social activities 516 * @throws SystemException if a system exception occurred 517 */ 518 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 519 long userId, int start, int end, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException { 522 return getPersistence() 523 .findByUserId(userId, start, end, orderByComparator); 524 } 525 526 /** 527 * Returns the first social activity in the ordered set where userId = ?. 528 * 529 * @param userId the user ID 530 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 531 * @return the first matching social activity 532 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 533 * @throws SystemException if a system exception occurred 534 */ 535 public static com.liferay.portlet.social.model.SocialActivity findByUserId_First( 536 long userId, 537 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 538 throws com.liferay.portal.kernel.exception.SystemException, 539 com.liferay.portlet.social.NoSuchActivityException { 540 return getPersistence().findByUserId_First(userId, orderByComparator); 541 } 542 543 /** 544 * Returns the first social activity in the ordered set where userId = ?. 545 * 546 * @param userId the user ID 547 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 548 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 549 * @throws SystemException if a system exception occurred 550 */ 551 public static com.liferay.portlet.social.model.SocialActivity fetchByUserId_First( 552 long userId, 553 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 554 throws com.liferay.portal.kernel.exception.SystemException { 555 return getPersistence().fetchByUserId_First(userId, orderByComparator); 556 } 557 558 /** 559 * Returns the last social activity in the ordered set where userId = ?. 560 * 561 * @param userId the user ID 562 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 563 * @return the last matching social activity 564 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 565 * @throws SystemException if a system exception occurred 566 */ 567 public static com.liferay.portlet.social.model.SocialActivity findByUserId_Last( 568 long userId, 569 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 570 throws com.liferay.portal.kernel.exception.SystemException, 571 com.liferay.portlet.social.NoSuchActivityException { 572 return getPersistence().findByUserId_Last(userId, orderByComparator); 573 } 574 575 /** 576 * Returns the last social activity in the ordered set where userId = ?. 577 * 578 * @param userId the user ID 579 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 580 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 581 * @throws SystemException if a system exception occurred 582 */ 583 public static com.liferay.portlet.social.model.SocialActivity fetchByUserId_Last( 584 long userId, 585 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 586 throws com.liferay.portal.kernel.exception.SystemException { 587 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 588 } 589 590 /** 591 * Returns the social activities before and after the current social activity in the ordered set where userId = ?. 592 * 593 * @param activityId the primary key of the current social activity 594 * @param userId the user ID 595 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 596 * @return the previous, current, and next social activity 597 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 598 * @throws SystemException if a system exception occurred 599 */ 600 public static com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext( 601 long activityId, long userId, 602 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 603 throws com.liferay.portal.kernel.exception.SystemException, 604 com.liferay.portlet.social.NoSuchActivityException { 605 return getPersistence() 606 .findByUserId_PrevAndNext(activityId, userId, 607 orderByComparator); 608 } 609 610 /** 611 * Returns the social activity where mirrorActivityId = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found. 612 * 613 * @param mirrorActivityId the mirror activity ID 614 * @return the matching social activity 615 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 616 * @throws SystemException if a system exception occurred 617 */ 618 public static com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId( 619 long mirrorActivityId) 620 throws com.liferay.portal.kernel.exception.SystemException, 621 com.liferay.portlet.social.NoSuchActivityException { 622 return getPersistence().findByMirrorActivityId(mirrorActivityId); 623 } 624 625 /** 626 * Returns the social activity where mirrorActivityId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 627 * 628 * @param mirrorActivityId the mirror activity ID 629 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 630 * @throws SystemException if a system exception occurred 631 */ 632 public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId( 633 long mirrorActivityId) 634 throws com.liferay.portal.kernel.exception.SystemException { 635 return getPersistence().fetchByMirrorActivityId(mirrorActivityId); 636 } 637 638 /** 639 * Returns the social activity where mirrorActivityId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 640 * 641 * @param mirrorActivityId the mirror activity ID 642 * @param retrieveFromCache whether to use the finder cache 643 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 644 * @throws SystemException if a system exception occurred 645 */ 646 public static com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId( 647 long mirrorActivityId, boolean retrieveFromCache) 648 throws com.liferay.portal.kernel.exception.SystemException { 649 return getPersistence() 650 .fetchByMirrorActivityId(mirrorActivityId, retrieveFromCache); 651 } 652 653 /** 654 * Returns all the social activities where classNameId = ?. 655 * 656 * @param classNameId the class name ID 657 * @return the matching social activities 658 * @throws SystemException if a system exception occurred 659 */ 660 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 661 long classNameId) 662 throws com.liferay.portal.kernel.exception.SystemException { 663 return getPersistence().findByClassNameId(classNameId); 664 } 665 666 /** 667 * Returns a range of all the social activities where classNameId = ?. 668 * 669 * <p> 670 * 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. 671 * </p> 672 * 673 * @param classNameId the class name ID 674 * @param start the lower bound of the range of social activities 675 * @param end the upper bound of the range of social activities (not inclusive) 676 * @return the range of matching social activities 677 * @throws SystemException if a system exception occurred 678 */ 679 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 680 long classNameId, int start, int end) 681 throws com.liferay.portal.kernel.exception.SystemException { 682 return getPersistence().findByClassNameId(classNameId, start, end); 683 } 684 685 /** 686 * Returns an ordered range of all the social activities where classNameId = ?. 687 * 688 * <p> 689 * 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. 690 * </p> 691 * 692 * @param classNameId the class name ID 693 * @param start the lower bound of the range of social activities 694 * @param end the upper bound of the range of social activities (not inclusive) 695 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 696 * @return the ordered range of matching social activities 697 * @throws SystemException if a system exception occurred 698 */ 699 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 700 long classNameId, int start, int end, 701 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 702 throws com.liferay.portal.kernel.exception.SystemException { 703 return getPersistence() 704 .findByClassNameId(classNameId, start, end, orderByComparator); 705 } 706 707 /** 708 * Returns the first social activity in the ordered set where classNameId = ?. 709 * 710 * @param classNameId the class name ID 711 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 712 * @return the first matching social activity 713 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 714 * @throws SystemException if a system exception occurred 715 */ 716 public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_First( 717 long classNameId, 718 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 719 throws com.liferay.portal.kernel.exception.SystemException, 720 com.liferay.portlet.social.NoSuchActivityException { 721 return getPersistence() 722 .findByClassNameId_First(classNameId, orderByComparator); 723 } 724 725 /** 726 * Returns the first social activity in the ordered set where classNameId = ?. 727 * 728 * @param classNameId the class name ID 729 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 730 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public static com.liferay.portlet.social.model.SocialActivity fetchByClassNameId_First( 734 long classNameId, 735 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 736 throws com.liferay.portal.kernel.exception.SystemException { 737 return getPersistence() 738 .fetchByClassNameId_First(classNameId, orderByComparator); 739 } 740 741 /** 742 * Returns the last social activity in the ordered set where classNameId = ?. 743 * 744 * @param classNameId the class name ID 745 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 746 * @return the last matching social activity 747 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 748 * @throws SystemException if a system exception occurred 749 */ 750 public static com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last( 751 long classNameId, 752 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 753 throws com.liferay.portal.kernel.exception.SystemException, 754 com.liferay.portlet.social.NoSuchActivityException { 755 return getPersistence() 756 .findByClassNameId_Last(classNameId, orderByComparator); 757 } 758 759 /** 760 * Returns the last social activity in the ordered set where classNameId = ?. 761 * 762 * @param classNameId the class name ID 763 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 764 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 765 * @throws SystemException if a system exception occurred 766 */ 767 public static com.liferay.portlet.social.model.SocialActivity fetchByClassNameId_Last( 768 long classNameId, 769 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 770 throws com.liferay.portal.kernel.exception.SystemException { 771 return getPersistence() 772 .fetchByClassNameId_Last(classNameId, orderByComparator); 773 } 774 775 /** 776 * Returns the social activities before and after the current social activity in the ordered set where classNameId = ?. 777 * 778 * @param activityId the primary key of the current social activity 779 * @param classNameId the class name ID 780 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 781 * @return the previous, current, and next social activity 782 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 783 * @throws SystemException if a system exception occurred 784 */ 785 public static com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext( 786 long activityId, long classNameId, 787 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 788 throws com.liferay.portal.kernel.exception.SystemException, 789 com.liferay.portlet.social.NoSuchActivityException { 790 return getPersistence() 791 .findByClassNameId_PrevAndNext(activityId, classNameId, 792 orderByComparator); 793 } 794 795 /** 796 * Returns all the social activities where receiverUserId = ?. 797 * 798 * @param receiverUserId the receiver user ID 799 * @return the matching social activities 800 * @throws SystemException if a system exception occurred 801 */ 802 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 803 long receiverUserId) 804 throws com.liferay.portal.kernel.exception.SystemException { 805 return getPersistence().findByReceiverUserId(receiverUserId); 806 } 807 808 /** 809 * Returns a range of all the social activities where receiverUserId = ?. 810 * 811 * <p> 812 * 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. 813 * </p> 814 * 815 * @param receiverUserId the receiver user ID 816 * @param start the lower bound of the range of social activities 817 * @param end the upper bound of the range of social activities (not inclusive) 818 * @return the range of matching social activities 819 * @throws SystemException if a system exception occurred 820 */ 821 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 822 long receiverUserId, int start, int end) 823 throws com.liferay.portal.kernel.exception.SystemException { 824 return getPersistence().findByReceiverUserId(receiverUserId, start, end); 825 } 826 827 /** 828 * Returns an ordered range of all the social activities where receiverUserId = ?. 829 * 830 * <p> 831 * 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. 832 * </p> 833 * 834 * @param receiverUserId the receiver user ID 835 * @param start the lower bound of the range of social activities 836 * @param end the upper bound of the range of social activities (not inclusive) 837 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 838 * @return the ordered range of matching social activities 839 * @throws SystemException if a system exception occurred 840 */ 841 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 842 long receiverUserId, int start, int end, 843 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 844 throws com.liferay.portal.kernel.exception.SystemException { 845 return getPersistence() 846 .findByReceiverUserId(receiverUserId, start, end, 847 orderByComparator); 848 } 849 850 /** 851 * Returns the first social activity in the ordered set where receiverUserId = ?. 852 * 853 * @param receiverUserId the receiver user ID 854 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 855 * @return the first matching social activity 856 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 857 * @throws SystemException if a system exception occurred 858 */ 859 public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First( 860 long receiverUserId, 861 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 862 throws com.liferay.portal.kernel.exception.SystemException, 863 com.liferay.portlet.social.NoSuchActivityException { 864 return getPersistence() 865 .findByReceiverUserId_First(receiverUserId, orderByComparator); 866 } 867 868 /** 869 * Returns the first social activity in the ordered set where receiverUserId = ?. 870 * 871 * @param receiverUserId the receiver user ID 872 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 873 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 874 * @throws SystemException if a system exception occurred 875 */ 876 public static com.liferay.portlet.social.model.SocialActivity fetchByReceiverUserId_First( 877 long receiverUserId, 878 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 879 throws com.liferay.portal.kernel.exception.SystemException { 880 return getPersistence() 881 .fetchByReceiverUserId_First(receiverUserId, 882 orderByComparator); 883 } 884 885 /** 886 * Returns the last social activity in the ordered set where receiverUserId = ?. 887 * 888 * @param receiverUserId the receiver user ID 889 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 890 * @return the last matching social activity 891 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 892 * @throws SystemException if a system exception occurred 893 */ 894 public static com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last( 895 long receiverUserId, 896 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 897 throws com.liferay.portal.kernel.exception.SystemException, 898 com.liferay.portlet.social.NoSuchActivityException { 899 return getPersistence() 900 .findByReceiverUserId_Last(receiverUserId, orderByComparator); 901 } 902 903 /** 904 * Returns the last social activity in the ordered set where receiverUserId = ?. 905 * 906 * @param receiverUserId the receiver user ID 907 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 908 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 909 * @throws SystemException if a system exception occurred 910 */ 911 public static com.liferay.portlet.social.model.SocialActivity fetchByReceiverUserId_Last( 912 long receiverUserId, 913 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 914 throws com.liferay.portal.kernel.exception.SystemException { 915 return getPersistence() 916 .fetchByReceiverUserId_Last(receiverUserId, orderByComparator); 917 } 918 919 /** 920 * Returns the social activities before and after the current social activity in the ordered set where receiverUserId = ?. 921 * 922 * @param activityId the primary key of the current social activity 923 * @param receiverUserId the receiver user ID 924 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 925 * @return the previous, current, and next social activity 926 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 927 * @throws SystemException if a system exception occurred 928 */ 929 public static com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext( 930 long activityId, long receiverUserId, 931 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 932 throws com.liferay.portal.kernel.exception.SystemException, 933 com.liferay.portlet.social.NoSuchActivityException { 934 return getPersistence() 935 .findByReceiverUserId_PrevAndNext(activityId, 936 receiverUserId, orderByComparator); 937 } 938 939 /** 940 * Returns all the social activities where classNameId = ? and classPK = ?. 941 * 942 * @param classNameId the class name ID 943 * @param classPK the class p k 944 * @return the matching social activities 945 * @throws SystemException if a system exception occurred 946 */ 947 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 948 long classNameId, long classPK) 949 throws com.liferay.portal.kernel.exception.SystemException { 950 return getPersistence().findByC_C(classNameId, classPK); 951 } 952 953 /** 954 * Returns a range of all the social activities where classNameId = ? and classPK = ?. 955 * 956 * <p> 957 * 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. 958 * </p> 959 * 960 * @param classNameId the class name ID 961 * @param classPK the class p k 962 * @param start the lower bound of the range of social activities 963 * @param end the upper bound of the range of social activities (not inclusive) 964 * @return the range of matching social activities 965 * @throws SystemException if a system exception occurred 966 */ 967 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 968 long classNameId, long classPK, int start, int end) 969 throws com.liferay.portal.kernel.exception.SystemException { 970 return getPersistence().findByC_C(classNameId, classPK, start, end); 971 } 972 973 /** 974 * Returns an ordered range of all the social activities where classNameId = ? and classPK = ?. 975 * 976 * <p> 977 * 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. 978 * </p> 979 * 980 * @param classNameId the class name ID 981 * @param classPK the class p k 982 * @param start the lower bound of the range of social activities 983 * @param end the upper bound of the range of social activities (not inclusive) 984 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 985 * @return the ordered range of matching social activities 986 * @throws SystemException if a system exception occurred 987 */ 988 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 989 long classNameId, long classPK, int start, int end, 990 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 991 throws com.liferay.portal.kernel.exception.SystemException { 992 return getPersistence() 993 .findByC_C(classNameId, classPK, start, end, 994 orderByComparator); 995 } 996 997 /** 998 * Returns the first social activity in the ordered set where classNameId = ? and classPK = ?. 999 * 1000 * @param classNameId the class name ID 1001 * @param classPK the class p k 1002 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1003 * @return the first matching social activity 1004 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1005 * @throws SystemException if a system exception occurred 1006 */ 1007 public static com.liferay.portlet.social.model.SocialActivity findByC_C_First( 1008 long classNameId, long classPK, 1009 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1010 throws com.liferay.portal.kernel.exception.SystemException, 1011 com.liferay.portlet.social.NoSuchActivityException { 1012 return getPersistence() 1013 .findByC_C_First(classNameId, classPK, orderByComparator); 1014 } 1015 1016 /** 1017 * Returns the first social activity in the ordered set where classNameId = ? and classPK = ?. 1018 * 1019 * @param classNameId the class name ID 1020 * @param classPK the class p k 1021 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1022 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 1023 * @throws SystemException if a system exception occurred 1024 */ 1025 public static com.liferay.portlet.social.model.SocialActivity fetchByC_C_First( 1026 long classNameId, long classPK, 1027 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1028 throws com.liferay.portal.kernel.exception.SystemException { 1029 return getPersistence() 1030 .fetchByC_C_First(classNameId, classPK, orderByComparator); 1031 } 1032 1033 /** 1034 * Returns the last social activity in the ordered set where classNameId = ? and classPK = ?. 1035 * 1036 * @param classNameId the class name ID 1037 * @param classPK the class p k 1038 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1039 * @return the last matching social activity 1040 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1041 * @throws SystemException if a system exception occurred 1042 */ 1043 public static com.liferay.portlet.social.model.SocialActivity findByC_C_Last( 1044 long classNameId, long classPK, 1045 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1046 throws com.liferay.portal.kernel.exception.SystemException, 1047 com.liferay.portlet.social.NoSuchActivityException { 1048 return getPersistence() 1049 .findByC_C_Last(classNameId, classPK, orderByComparator); 1050 } 1051 1052 /** 1053 * Returns the last social activity in the ordered set where classNameId = ? and classPK = ?. 1054 * 1055 * @param classNameId the class name ID 1056 * @param classPK the class p k 1057 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1058 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 1059 * @throws SystemException if a system exception occurred 1060 */ 1061 public static com.liferay.portlet.social.model.SocialActivity fetchByC_C_Last( 1062 long classNameId, long classPK, 1063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1064 throws com.liferay.portal.kernel.exception.SystemException { 1065 return getPersistence() 1066 .fetchByC_C_Last(classNameId, classPK, orderByComparator); 1067 } 1068 1069 /** 1070 * Returns the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?. 1071 * 1072 * @param activityId the primary key of the current social activity 1073 * @param classNameId the class name ID 1074 * @param classPK the class p k 1075 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1076 * @return the previous, current, and next social activity 1077 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 1078 * @throws SystemException if a system exception occurred 1079 */ 1080 public static com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext( 1081 long activityId, long classNameId, long classPK, 1082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1083 throws com.liferay.portal.kernel.exception.SystemException, 1084 com.liferay.portlet.social.NoSuchActivityException { 1085 return getPersistence() 1086 .findByC_C_PrevAndNext(activityId, classNameId, classPK, 1087 orderByComparator); 1088 } 1089 1090 /** 1091 * Returns all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1092 * 1093 * @param mirrorActivityId the mirror activity ID 1094 * @param classNameId the class name ID 1095 * @param classPK the class p k 1096 * @return the matching social activities 1097 * @throws SystemException if a system exception occurred 1098 */ 1099 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 1100 long mirrorActivityId, long classNameId, long classPK) 1101 throws com.liferay.portal.kernel.exception.SystemException { 1102 return getPersistence() 1103 .findByM_C_C(mirrorActivityId, classNameId, classPK); 1104 } 1105 1106 /** 1107 * Returns a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1108 * 1109 * <p> 1110 * 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. 1111 * </p> 1112 * 1113 * @param mirrorActivityId the mirror activity ID 1114 * @param classNameId the class name ID 1115 * @param classPK the class p k 1116 * @param start the lower bound of the range of social activities 1117 * @param end the upper bound of the range of social activities (not inclusive) 1118 * @return the range of matching social activities 1119 * @throws SystemException if a system exception occurred 1120 */ 1121 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 1122 long mirrorActivityId, long classNameId, long classPK, int start, 1123 int end) throws com.liferay.portal.kernel.exception.SystemException { 1124 return getPersistence() 1125 .findByM_C_C(mirrorActivityId, classNameId, classPK, start, 1126 end); 1127 } 1128 1129 /** 1130 * Returns an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1131 * 1132 * <p> 1133 * 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. 1134 * </p> 1135 * 1136 * @param mirrorActivityId the mirror activity ID 1137 * @param classNameId the class name ID 1138 * @param classPK the class p k 1139 * @param start the lower bound of the range of social activities 1140 * @param end the upper bound of the range of social activities (not inclusive) 1141 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1142 * @return the ordered range of matching social activities 1143 * @throws SystemException if a system exception occurred 1144 */ 1145 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 1146 long mirrorActivityId, long classNameId, long classPK, int start, 1147 int end, 1148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1149 throws com.liferay.portal.kernel.exception.SystemException { 1150 return getPersistence() 1151 .findByM_C_C(mirrorActivityId, classNameId, classPK, start, 1152 end, orderByComparator); 1153 } 1154 1155 /** 1156 * Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1157 * 1158 * @param mirrorActivityId the mirror activity ID 1159 * @param classNameId the class name ID 1160 * @param classPK the class p k 1161 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1162 * @return the first matching social activity 1163 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1164 * @throws SystemException if a system exception occurred 1165 */ 1166 public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_First( 1167 long mirrorActivityId, long classNameId, long classPK, 1168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1169 throws com.liferay.portal.kernel.exception.SystemException, 1170 com.liferay.portlet.social.NoSuchActivityException { 1171 return getPersistence() 1172 .findByM_C_C_First(mirrorActivityId, classNameId, classPK, 1173 orderByComparator); 1174 } 1175 1176 /** 1177 * Returns the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1178 * 1179 * @param mirrorActivityId the mirror activity ID 1180 * @param classNameId the class name ID 1181 * @param classPK the class p k 1182 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1183 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public static com.liferay.portlet.social.model.SocialActivity fetchByM_C_C_First( 1187 long mirrorActivityId, long classNameId, long classPK, 1188 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1189 throws com.liferay.portal.kernel.exception.SystemException { 1190 return getPersistence() 1191 .fetchByM_C_C_First(mirrorActivityId, classNameId, classPK, 1192 orderByComparator); 1193 } 1194 1195 /** 1196 * Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1197 * 1198 * @param mirrorActivityId the mirror activity ID 1199 * @param classNameId the class name ID 1200 * @param classPK the class p k 1201 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1202 * @return the last matching social activity 1203 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1204 * @throws SystemException if a system exception occurred 1205 */ 1206 public static com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last( 1207 long mirrorActivityId, long classNameId, long classPK, 1208 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1209 throws com.liferay.portal.kernel.exception.SystemException, 1210 com.liferay.portlet.social.NoSuchActivityException { 1211 return getPersistence() 1212 .findByM_C_C_Last(mirrorActivityId, classNameId, classPK, 1213 orderByComparator); 1214 } 1215 1216 /** 1217 * Returns the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1218 * 1219 * @param mirrorActivityId the mirror activity ID 1220 * @param classNameId the class name ID 1221 * @param classPK the class p k 1222 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1223 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 1224 * @throws SystemException if a system exception occurred 1225 */ 1226 public static com.liferay.portlet.social.model.SocialActivity fetchByM_C_C_Last( 1227 long mirrorActivityId, long classNameId, long classPK, 1228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1229 throws com.liferay.portal.kernel.exception.SystemException { 1230 return getPersistence() 1231 .fetchByM_C_C_Last(mirrorActivityId, classNameId, classPK, 1232 orderByComparator); 1233 } 1234 1235 /** 1236 * Returns the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1237 * 1238 * @param activityId the primary key of the current social activity 1239 * @param mirrorActivityId the mirror activity ID 1240 * @param classNameId the class name ID 1241 * @param classPK the class p k 1242 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1243 * @return the previous, current, and next social activity 1244 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 1245 * @throws SystemException if a system exception occurred 1246 */ 1247 public static com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext( 1248 long activityId, long mirrorActivityId, long classNameId, long classPK, 1249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1250 throws com.liferay.portal.kernel.exception.SystemException, 1251 com.liferay.portlet.social.NoSuchActivityException { 1252 return getPersistence() 1253 .findByM_C_C_PrevAndNext(activityId, mirrorActivityId, 1254 classNameId, classPK, orderByComparator); 1255 } 1256 1257 /** 1258 * Returns all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1259 * 1260 * @param groupId the group ID 1261 * @param userId the user ID 1262 * @param classNameId the class name ID 1263 * @param classPK the class p k 1264 * @param type the type 1265 * @param receiverUserId the receiver user ID 1266 * @return the matching social activities 1267 * @throws SystemException if a system exception occurred 1268 */ 1269 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R( 1270 long groupId, long userId, long classNameId, long classPK, int type, 1271 long receiverUserId) 1272 throws com.liferay.portal.kernel.exception.SystemException { 1273 return getPersistence() 1274 .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK, 1275 type, receiverUserId); 1276 } 1277 1278 /** 1279 * Returns a range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1280 * 1281 * <p> 1282 * 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. 1283 * </p> 1284 * 1285 * @param groupId the group ID 1286 * @param userId the user ID 1287 * @param classNameId the class name ID 1288 * @param classPK the class p k 1289 * @param type the type 1290 * @param receiverUserId the receiver user ID 1291 * @param start the lower bound of the range of social activities 1292 * @param end the upper bound of the range of social activities (not inclusive) 1293 * @return the range of matching social activities 1294 * @throws SystemException if a system exception occurred 1295 */ 1296 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R( 1297 long groupId, long userId, long classNameId, long classPK, int type, 1298 long receiverUserId, int start, int end) 1299 throws com.liferay.portal.kernel.exception.SystemException { 1300 return getPersistence() 1301 .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK, 1302 type, receiverUserId, start, end); 1303 } 1304 1305 /** 1306 * Returns an ordered range of all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1307 * 1308 * <p> 1309 * 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. 1310 * </p> 1311 * 1312 * @param groupId the group ID 1313 * @param userId the user ID 1314 * @param classNameId the class name ID 1315 * @param classPK the class p k 1316 * @param type the type 1317 * @param receiverUserId the receiver user ID 1318 * @param start the lower bound of the range of social activities 1319 * @param end the upper bound of the range of social activities (not inclusive) 1320 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1321 * @return the ordered range of matching social activities 1322 * @throws SystemException if a system exception occurred 1323 */ 1324 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findByG_U_C_C_T_R( 1325 long groupId, long userId, long classNameId, long classPK, int type, 1326 long receiverUserId, int start, int end, 1327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1328 throws com.liferay.portal.kernel.exception.SystemException { 1329 return getPersistence() 1330 .findByG_U_C_C_T_R(groupId, userId, classNameId, classPK, 1331 type, receiverUserId, start, end, orderByComparator); 1332 } 1333 1334 /** 1335 * Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1336 * 1337 * @param groupId the group ID 1338 * @param userId the user ID 1339 * @param classNameId the class name ID 1340 * @param classPK the class p k 1341 * @param type the type 1342 * @param receiverUserId the receiver user ID 1343 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1344 * @return the first matching social activity 1345 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1346 * @throws SystemException if a system exception occurred 1347 */ 1348 public static com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_First( 1349 long groupId, long userId, long classNameId, long classPK, int type, 1350 long receiverUserId, 1351 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1352 throws com.liferay.portal.kernel.exception.SystemException, 1353 com.liferay.portlet.social.NoSuchActivityException { 1354 return getPersistence() 1355 .findByG_U_C_C_T_R_First(groupId, userId, classNameId, 1356 classPK, type, receiverUserId, orderByComparator); 1357 } 1358 1359 /** 1360 * Returns the first social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1361 * 1362 * @param groupId the group ID 1363 * @param userId the user ID 1364 * @param classNameId the class name ID 1365 * @param classPK the class p k 1366 * @param type the type 1367 * @param receiverUserId the receiver user ID 1368 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1369 * @return the first matching social activity, or <code>null</code> if a matching social activity could not be found 1370 * @throws SystemException if a system exception occurred 1371 */ 1372 public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_C_C_T_R_First( 1373 long groupId, long userId, long classNameId, long classPK, int type, 1374 long receiverUserId, 1375 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1376 throws com.liferay.portal.kernel.exception.SystemException { 1377 return getPersistence() 1378 .fetchByG_U_C_C_T_R_First(groupId, userId, classNameId, 1379 classPK, type, receiverUserId, orderByComparator); 1380 } 1381 1382 /** 1383 * Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1384 * 1385 * @param groupId the group ID 1386 * @param userId the user ID 1387 * @param classNameId the class name ID 1388 * @param classPK the class p k 1389 * @param type the type 1390 * @param receiverUserId the receiver user ID 1391 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1392 * @return the last matching social activity 1393 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1394 * @throws SystemException if a system exception occurred 1395 */ 1396 public static com.liferay.portlet.social.model.SocialActivity findByG_U_C_C_T_R_Last( 1397 long groupId, long userId, long classNameId, long classPK, int type, 1398 long receiverUserId, 1399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1400 throws com.liferay.portal.kernel.exception.SystemException, 1401 com.liferay.portlet.social.NoSuchActivityException { 1402 return getPersistence() 1403 .findByG_U_C_C_T_R_Last(groupId, userId, classNameId, 1404 classPK, type, receiverUserId, orderByComparator); 1405 } 1406 1407 /** 1408 * Returns the last social activity in the ordered set where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1409 * 1410 * @param groupId the group ID 1411 * @param userId the user ID 1412 * @param classNameId the class name ID 1413 * @param classPK the class p k 1414 * @param type the type 1415 * @param receiverUserId the receiver user ID 1416 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1417 * @return the last matching social activity, or <code>null</code> if a matching social activity could not be found 1418 * @throws SystemException if a system exception occurred 1419 */ 1420 public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_C_C_T_R_Last( 1421 long groupId, long userId, long classNameId, long classPK, int type, 1422 long receiverUserId, 1423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1424 throws com.liferay.portal.kernel.exception.SystemException { 1425 return getPersistence() 1426 .fetchByG_U_C_C_T_R_Last(groupId, userId, classNameId, 1427 classPK, type, receiverUserId, orderByComparator); 1428 } 1429 1430 /** 1431 * 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 = ?. 1432 * 1433 * @param activityId the primary key of the current social activity 1434 * @param groupId the group ID 1435 * @param userId the user ID 1436 * @param classNameId the class name ID 1437 * @param classPK the class p k 1438 * @param type the type 1439 * @param receiverUserId the receiver user ID 1440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1441 * @return the previous, current, and next social activity 1442 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 1443 * @throws SystemException if a system exception occurred 1444 */ 1445 public static com.liferay.portlet.social.model.SocialActivity[] findByG_U_C_C_T_R_PrevAndNext( 1446 long activityId, long groupId, long userId, long classNameId, 1447 long classPK, int type, long receiverUserId, 1448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1449 throws com.liferay.portal.kernel.exception.SystemException, 1450 com.liferay.portlet.social.NoSuchActivityException { 1451 return getPersistence() 1452 .findByG_U_C_C_T_R_PrevAndNext(activityId, groupId, userId, 1453 classNameId, classPK, type, receiverUserId, orderByComparator); 1454 } 1455 1456 /** 1457 * 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. 1458 * 1459 * @param groupId the group ID 1460 * @param userId the user ID 1461 * @param createDate the create date 1462 * @param classNameId the class name ID 1463 * @param classPK the class p k 1464 * @param type the type 1465 * @param receiverUserId the receiver user ID 1466 * @return the matching social activity 1467 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 1468 * @throws SystemException if a system exception occurred 1469 */ 1470 public static com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R( 1471 long groupId, long userId, long createDate, long classNameId, 1472 long classPK, int type, long receiverUserId) 1473 throws com.liferay.portal.kernel.exception.SystemException, 1474 com.liferay.portlet.social.NoSuchActivityException { 1475 return getPersistence() 1476 .findByG_U_CD_C_C_T_R(groupId, userId, createDate, 1477 classNameId, classPK, type, receiverUserId); 1478 } 1479 1480 /** 1481 * 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. 1482 * 1483 * @param groupId the group ID 1484 * @param userId the user ID 1485 * @param createDate the create date 1486 * @param classNameId the class name ID 1487 * @param classPK the class p k 1488 * @param type the type 1489 * @param receiverUserId the receiver user ID 1490 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 1491 * @throws SystemException if a system exception occurred 1492 */ 1493 public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R( 1494 long groupId, long userId, long createDate, long classNameId, 1495 long classPK, int type, long receiverUserId) 1496 throws com.liferay.portal.kernel.exception.SystemException { 1497 return getPersistence() 1498 .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate, 1499 classNameId, classPK, type, receiverUserId); 1500 } 1501 1502 /** 1503 * 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. 1504 * 1505 * @param groupId the group ID 1506 * @param userId the user ID 1507 * @param createDate the create date 1508 * @param classNameId the class name ID 1509 * @param classPK the class p k 1510 * @param type the type 1511 * @param receiverUserId the receiver user ID 1512 * @param retrieveFromCache whether to use the finder cache 1513 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 1514 * @throws SystemException if a system exception occurred 1515 */ 1516 public static com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R( 1517 long groupId, long userId, long createDate, long classNameId, 1518 long classPK, int type, long receiverUserId, boolean retrieveFromCache) 1519 throws com.liferay.portal.kernel.exception.SystemException { 1520 return getPersistence() 1521 .fetchByG_U_CD_C_C_T_R(groupId, userId, createDate, 1522 classNameId, classPK, type, receiverUserId, retrieveFromCache); 1523 } 1524 1525 /** 1526 * Returns all the social activities. 1527 * 1528 * @return the social activities 1529 * @throws SystemException if a system exception occurred 1530 */ 1531 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll() 1532 throws com.liferay.portal.kernel.exception.SystemException { 1533 return getPersistence().findAll(); 1534 } 1535 1536 /** 1537 * Returns a range of all the social activities. 1538 * 1539 * <p> 1540 * 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. 1541 * </p> 1542 * 1543 * @param start the lower bound of the range of social activities 1544 * @param end the upper bound of the range of social activities (not inclusive) 1545 * @return the range of social activities 1546 * @throws SystemException if a system exception occurred 1547 */ 1548 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll( 1549 int start, int end) 1550 throws com.liferay.portal.kernel.exception.SystemException { 1551 return getPersistence().findAll(start, end); 1552 } 1553 1554 /** 1555 * Returns an ordered range of all the social activities. 1556 * 1557 * <p> 1558 * 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. 1559 * </p> 1560 * 1561 * @param start the lower bound of the range of social activities 1562 * @param end the upper bound of the range of social activities (not inclusive) 1563 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1564 * @return the ordered range of social activities 1565 * @throws SystemException if a system exception occurred 1566 */ 1567 public static java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll( 1568 int start, int end, 1569 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1570 throws com.liferay.portal.kernel.exception.SystemException { 1571 return getPersistence().findAll(start, end, orderByComparator); 1572 } 1573 1574 /** 1575 * Removes all the social activities where groupId = ? from the database. 1576 * 1577 * @param groupId the group ID 1578 * @throws SystemException if a system exception occurred 1579 */ 1580 public static void removeByGroupId(long groupId) 1581 throws com.liferay.portal.kernel.exception.SystemException { 1582 getPersistence().removeByGroupId(groupId); 1583 } 1584 1585 /** 1586 * Removes all the social activities where companyId = ? from the database. 1587 * 1588 * @param companyId the company ID 1589 * @throws SystemException if a system exception occurred 1590 */ 1591 public static void removeByCompanyId(long companyId) 1592 throws com.liferay.portal.kernel.exception.SystemException { 1593 getPersistence().removeByCompanyId(companyId); 1594 } 1595 1596 /** 1597 * Removes all the social activities where userId = ? from the database. 1598 * 1599 * @param userId the user ID 1600 * @throws SystemException if a system exception occurred 1601 */ 1602 public static void removeByUserId(long userId) 1603 throws com.liferay.portal.kernel.exception.SystemException { 1604 getPersistence().removeByUserId(userId); 1605 } 1606 1607 /** 1608 * Removes the social activity where mirrorActivityId = ? from the database. 1609 * 1610 * @param mirrorActivityId the mirror activity ID 1611 * @return the social activity that was removed 1612 * @throws SystemException if a system exception occurred 1613 */ 1614 public static com.liferay.portlet.social.model.SocialActivity removeByMirrorActivityId( 1615 long mirrorActivityId) 1616 throws com.liferay.portal.kernel.exception.SystemException, 1617 com.liferay.portlet.social.NoSuchActivityException { 1618 return getPersistence().removeByMirrorActivityId(mirrorActivityId); 1619 } 1620 1621 /** 1622 * Removes all the social activities where classNameId = ? from the database. 1623 * 1624 * @param classNameId the class name ID 1625 * @throws SystemException if a system exception occurred 1626 */ 1627 public static void removeByClassNameId(long classNameId) 1628 throws com.liferay.portal.kernel.exception.SystemException { 1629 getPersistence().removeByClassNameId(classNameId); 1630 } 1631 1632 /** 1633 * Removes all the social activities where receiverUserId = ? from the database. 1634 * 1635 * @param receiverUserId the receiver user ID 1636 * @throws SystemException if a system exception occurred 1637 */ 1638 public static void removeByReceiverUserId(long receiverUserId) 1639 throws com.liferay.portal.kernel.exception.SystemException { 1640 getPersistence().removeByReceiverUserId(receiverUserId); 1641 } 1642 1643 /** 1644 * Removes all the social activities where classNameId = ? and classPK = ? from the database. 1645 * 1646 * @param classNameId the class name ID 1647 * @param classPK the class p k 1648 * @throws SystemException if a system exception occurred 1649 */ 1650 public static void removeByC_C(long classNameId, long classPK) 1651 throws com.liferay.portal.kernel.exception.SystemException { 1652 getPersistence().removeByC_C(classNameId, classPK); 1653 } 1654 1655 /** 1656 * Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database. 1657 * 1658 * @param mirrorActivityId the mirror activity ID 1659 * @param classNameId the class name ID 1660 * @param classPK the class p k 1661 * @throws SystemException if a system exception occurred 1662 */ 1663 public static void removeByM_C_C(long mirrorActivityId, long classNameId, 1664 long classPK) 1665 throws com.liferay.portal.kernel.exception.SystemException { 1666 getPersistence().removeByM_C_C(mirrorActivityId, classNameId, classPK); 1667 } 1668 1669 /** 1670 * Removes all the social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. 1671 * 1672 * @param groupId the group ID 1673 * @param userId the user ID 1674 * @param classNameId the class name ID 1675 * @param classPK the class p k 1676 * @param type the type 1677 * @param receiverUserId the receiver user ID 1678 * @throws SystemException if a system exception occurred 1679 */ 1680 public static void removeByG_U_C_C_T_R(long groupId, long userId, 1681 long classNameId, long classPK, int type, long receiverUserId) 1682 throws com.liferay.portal.kernel.exception.SystemException { 1683 getPersistence() 1684 .removeByG_U_C_C_T_R(groupId, userId, classNameId, classPK, type, 1685 receiverUserId); 1686 } 1687 1688 /** 1689 * Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. 1690 * 1691 * @param groupId the group ID 1692 * @param userId the user ID 1693 * @param createDate the create date 1694 * @param classNameId the class name ID 1695 * @param classPK the class p k 1696 * @param type the type 1697 * @param receiverUserId the receiver user ID 1698 * @return the social activity that was removed 1699 * @throws SystemException if a system exception occurred 1700 */ 1701 public static com.liferay.portlet.social.model.SocialActivity removeByG_U_CD_C_C_T_R( 1702 long groupId, long userId, long createDate, long classNameId, 1703 long classPK, int type, long receiverUserId) 1704 throws com.liferay.portal.kernel.exception.SystemException, 1705 com.liferay.portlet.social.NoSuchActivityException { 1706 return getPersistence() 1707 .removeByG_U_CD_C_C_T_R(groupId, userId, createDate, 1708 classNameId, classPK, type, receiverUserId); 1709 } 1710 1711 /** 1712 * Removes all the social activities from the database. 1713 * 1714 * @throws SystemException if a system exception occurred 1715 */ 1716 public static void removeAll() 1717 throws com.liferay.portal.kernel.exception.SystemException { 1718 getPersistence().removeAll(); 1719 } 1720 1721 /** 1722 * Returns the number of social activities where groupId = ?. 1723 * 1724 * @param groupId the group ID 1725 * @return the number of matching social activities 1726 * @throws SystemException if a system exception occurred 1727 */ 1728 public static int countByGroupId(long groupId) 1729 throws com.liferay.portal.kernel.exception.SystemException { 1730 return getPersistence().countByGroupId(groupId); 1731 } 1732 1733 /** 1734 * Returns the number of social activities where companyId = ?. 1735 * 1736 * @param companyId the company ID 1737 * @return the number of matching social activities 1738 * @throws SystemException if a system exception occurred 1739 */ 1740 public static int countByCompanyId(long companyId) 1741 throws com.liferay.portal.kernel.exception.SystemException { 1742 return getPersistence().countByCompanyId(companyId); 1743 } 1744 1745 /** 1746 * Returns the number of social activities where userId = ?. 1747 * 1748 * @param userId the user ID 1749 * @return the number of matching social activities 1750 * @throws SystemException if a system exception occurred 1751 */ 1752 public static int countByUserId(long userId) 1753 throws com.liferay.portal.kernel.exception.SystemException { 1754 return getPersistence().countByUserId(userId); 1755 } 1756 1757 /** 1758 * Returns the number of social activities where mirrorActivityId = ?. 1759 * 1760 * @param mirrorActivityId the mirror activity ID 1761 * @return the number of matching social activities 1762 * @throws SystemException if a system exception occurred 1763 */ 1764 public static int countByMirrorActivityId(long mirrorActivityId) 1765 throws com.liferay.portal.kernel.exception.SystemException { 1766 return getPersistence().countByMirrorActivityId(mirrorActivityId); 1767 } 1768 1769 /** 1770 * Returns the number of social activities where classNameId = ?. 1771 * 1772 * @param classNameId the class name ID 1773 * @return the number of matching social activities 1774 * @throws SystemException if a system exception occurred 1775 */ 1776 public static int countByClassNameId(long classNameId) 1777 throws com.liferay.portal.kernel.exception.SystemException { 1778 return getPersistence().countByClassNameId(classNameId); 1779 } 1780 1781 /** 1782 * Returns the number of social activities where receiverUserId = ?. 1783 * 1784 * @param receiverUserId the receiver user ID 1785 * @return the number of matching social activities 1786 * @throws SystemException if a system exception occurred 1787 */ 1788 public static int countByReceiverUserId(long receiverUserId) 1789 throws com.liferay.portal.kernel.exception.SystemException { 1790 return getPersistence().countByReceiverUserId(receiverUserId); 1791 } 1792 1793 /** 1794 * Returns the number of social activities where classNameId = ? and classPK = ?. 1795 * 1796 * @param classNameId the class name ID 1797 * @param classPK the class p k 1798 * @return the number of matching social activities 1799 * @throws SystemException if a system exception occurred 1800 */ 1801 public static int countByC_C(long classNameId, long classPK) 1802 throws com.liferay.portal.kernel.exception.SystemException { 1803 return getPersistence().countByC_C(classNameId, classPK); 1804 } 1805 1806 /** 1807 * Returns the number of social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1808 * 1809 * @param mirrorActivityId the mirror activity ID 1810 * @param classNameId the class name ID 1811 * @param classPK the class p k 1812 * @return the number of matching social activities 1813 * @throws SystemException if a system exception occurred 1814 */ 1815 public static int countByM_C_C(long mirrorActivityId, long classNameId, 1816 long classPK) 1817 throws com.liferay.portal.kernel.exception.SystemException { 1818 return getPersistence() 1819 .countByM_C_C(mirrorActivityId, classNameId, classPK); 1820 } 1821 1822 /** 1823 * Returns the number of social activities where groupId = ? and userId = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1824 * 1825 * @param groupId the group ID 1826 * @param userId the user ID 1827 * @param classNameId the class name ID 1828 * @param classPK the class p k 1829 * @param type the type 1830 * @param receiverUserId the receiver user ID 1831 * @return the number of matching social activities 1832 * @throws SystemException if a system exception occurred 1833 */ 1834 public static int countByG_U_C_C_T_R(long groupId, long userId, 1835 long classNameId, long classPK, int type, long receiverUserId) 1836 throws com.liferay.portal.kernel.exception.SystemException { 1837 return getPersistence() 1838 .countByG_U_C_C_T_R(groupId, userId, classNameId, classPK, 1839 type, receiverUserId); 1840 } 1841 1842 /** 1843 * Returns the number of social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1844 * 1845 * @param groupId the group ID 1846 * @param userId the user ID 1847 * @param createDate the create date 1848 * @param classNameId the class name ID 1849 * @param classPK the class p k 1850 * @param type the type 1851 * @param receiverUserId the receiver user ID 1852 * @return the number of matching social activities 1853 * @throws SystemException if a system exception occurred 1854 */ 1855 public static int countByG_U_CD_C_C_T_R(long groupId, long userId, 1856 long createDate, long classNameId, long classPK, int type, 1857 long receiverUserId) 1858 throws com.liferay.portal.kernel.exception.SystemException { 1859 return getPersistence() 1860 .countByG_U_CD_C_C_T_R(groupId, userId, createDate, 1861 classNameId, classPK, type, receiverUserId); 1862 } 1863 1864 /** 1865 * Returns the number of social activities. 1866 * 1867 * @return the number of social activities 1868 * @throws SystemException if a system exception occurred 1869 */ 1870 public static int countAll() 1871 throws com.liferay.portal.kernel.exception.SystemException { 1872 return getPersistence().countAll(); 1873 } 1874 1875 public static SocialActivityPersistence getPersistence() { 1876 if (_persistence == null) { 1877 _persistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName()); 1878 1879 ReferenceRegistry.registerReference(SocialActivityUtil.class, 1880 "_persistence"); 1881 } 1882 1883 return _persistence; 1884 } 1885 1886 /** 1887 * @deprecated 1888 */ 1889 public void setPersistence(SocialActivityPersistence persistence) { 1890 } 1891 1892 private static SocialActivityPersistence _persistence; 1893 }