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