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