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