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