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