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