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