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