001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.social.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.social.model.SocialActivity; 020 021 /** 022 * The persistence interface for the social activity service. 023 * 024 * <p> 025 * 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. 026 * </p> 027 * 028 * <p> 029 * Caching information and settings can be found in <code>portal.properties</code> 030 * </p> 031 * 032 * @author Brian Wing Shun Chan 033 * @see SocialActivityPersistenceImpl 034 * @see SocialActivityUtil 035 * @generated 036 */ 037 public interface SocialActivityPersistence extends BasePersistence<SocialActivity> { 038 /** 039 * Caches the social activity in the entity cache if it is enabled. 040 * 041 * @param socialActivity the social activity to cache 042 */ 043 public void cacheResult( 044 com.liferay.portlet.social.model.SocialActivity socialActivity); 045 046 /** 047 * Caches the social activities in the entity cache if it is enabled. 048 * 049 * @param socialActivities the social activities to cache 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portlet.social.model.SocialActivity> socialActivities); 053 054 /** 055 * Creates a new social activity with the primary key. Does not add the social activity to the database. 056 * 057 * @param activityId the primary key for the new social activity 058 * @return the new social activity 059 */ 060 public com.liferay.portlet.social.model.SocialActivity create( 061 long activityId); 062 063 /** 064 * Removes the social activity with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param activityId the primary key of the social activity to remove 067 * @return the social activity that was removed 068 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portlet.social.model.SocialActivity remove( 072 long activityId) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.social.NoSuchActivityException; 075 076 public com.liferay.portlet.social.model.SocialActivity updateImpl( 077 com.liferay.portlet.social.model.SocialActivity socialActivity, 078 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Finds the social activity with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found. 083 * 084 * @param activityId the primary key of the social activity to find 085 * @return the social activity 086 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.social.model.SocialActivity findByPrimaryKey( 090 long activityId) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.social.NoSuchActivityException; 093 094 /** 095 * Finds the social activity with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param activityId the primary key of the social activity to find 098 * @return the social activity, or <code>null</code> if a social activity with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.social.model.SocialActivity fetchByPrimaryKey( 102 long activityId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Finds all the social activities where groupId = ?. 107 * 108 * @param groupId the group id to search with 109 * @return the matching social activities 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 113 long groupId) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Finds a range of all the social activities where groupId = ?. 118 * 119 * <p> 120 * 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. 121 * </p> 122 * 123 * @param groupId the group id to search with 124 * @param start the lower bound of the range of social activities to return 125 * @param end the upper bound of the range of social activities to return (not inclusive) 126 * @return the range of matching social activities 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 130 long groupId, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Finds an ordered range of all the social activities where groupId = ?. 135 * 136 * <p> 137 * 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. 138 * </p> 139 * 140 * @param groupId the group id to search with 141 * @param start the lower bound of the range of social activities to return 142 * @param end the upper bound of the range of social activities to return (not inclusive) 143 * @param orderByComparator the comparator to order the results by 144 * @return the ordered range of matching social activities 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByGroupId( 148 long groupId, int start, int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Finds the first social activity in the ordered set where groupId = ?. 154 * 155 * <p> 156 * 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. 157 * </p> 158 * 159 * @param groupId the group id to search with 160 * @param orderByComparator the comparator to order the set by 161 * @return the first matching social activity 162 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portlet.social.model.SocialActivity findByGroupId_First( 166 long groupId, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.kernel.exception.SystemException, 169 com.liferay.portlet.social.NoSuchActivityException; 170 171 /** 172 * Finds the last social activity in the ordered set where groupId = ?. 173 * 174 * <p> 175 * 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. 176 * </p> 177 * 178 * @param groupId the group id to search with 179 * @param orderByComparator the comparator to order the set by 180 * @return the last matching social activity 181 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portlet.social.model.SocialActivity findByGroupId_Last( 185 long groupId, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.kernel.exception.SystemException, 188 com.liferay.portlet.social.NoSuchActivityException; 189 190 /** 191 * Finds the social activities before and after the current social activity in the ordered set where groupId = ?. 192 * 193 * <p> 194 * 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. 195 * </p> 196 * 197 * @param activityId the primary key of the current social activity 198 * @param groupId the group id to search with 199 * @param orderByComparator the comparator to order the set by 200 * @return the previous, current, and next social activity 201 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.social.model.SocialActivity[] findByGroupId_PrevAndNext( 205 long activityId, long groupId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException, 208 com.liferay.portlet.social.NoSuchActivityException; 209 210 /** 211 * Finds all the social activities where companyId = ?. 212 * 213 * @param companyId the company id to search with 214 * @return the matching social activities 215 * @throws SystemException if a system exception occurred 216 */ 217 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 218 long companyId) 219 throws com.liferay.portal.kernel.exception.SystemException; 220 221 /** 222 * Finds a range of all the social activities where companyId = ?. 223 * 224 * <p> 225 * 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. 226 * </p> 227 * 228 * @param companyId the company id to search with 229 * @param start the lower bound of the range of social activities to return 230 * @param end the upper bound of the range of social activities to return (not inclusive) 231 * @return the range of matching social activities 232 * @throws SystemException if a system exception occurred 233 */ 234 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 235 long companyId, int start, int end) 236 throws com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * Finds an ordered range of all the social activities where companyId = ?. 240 * 241 * <p> 242 * 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. 243 * </p> 244 * 245 * @param companyId the company id to search with 246 * @param start the lower bound of the range of social activities to return 247 * @param end the upper bound of the range of social activities to return (not inclusive) 248 * @param orderByComparator the comparator to order the results by 249 * @return the ordered range of matching social activities 250 * @throws SystemException if a system exception occurred 251 */ 252 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByCompanyId( 253 long companyId, int start, int end, 254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 255 throws com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Finds the first social activity in the ordered set where companyId = ?. 259 * 260 * <p> 261 * 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. 262 * </p> 263 * 264 * @param companyId the company id to search with 265 * @param orderByComparator the comparator to order the set by 266 * @return the first matching social activity 267 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 268 * @throws SystemException if a system exception occurred 269 */ 270 public com.liferay.portlet.social.model.SocialActivity findByCompanyId_First( 271 long companyId, 272 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 273 throws com.liferay.portal.kernel.exception.SystemException, 274 com.liferay.portlet.social.NoSuchActivityException; 275 276 /** 277 * Finds the last social activity in the ordered set where companyId = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param companyId the company id to search with 284 * @param orderByComparator the comparator to order the set by 285 * @return the last matching social activity 286 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public com.liferay.portlet.social.model.SocialActivity findByCompanyId_Last( 290 long companyId, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.kernel.exception.SystemException, 293 com.liferay.portlet.social.NoSuchActivityException; 294 295 /** 296 * Finds the social activities before and after the current social activity in the ordered set where companyId = ?. 297 * 298 * <p> 299 * 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. 300 * </p> 301 * 302 * @param activityId the primary key of the current social activity 303 * @param companyId the company id to search with 304 * @param orderByComparator the comparator to order the set by 305 * @return the previous, current, and next social activity 306 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 307 * @throws SystemException if a system exception occurred 308 */ 309 public com.liferay.portlet.social.model.SocialActivity[] findByCompanyId_PrevAndNext( 310 long activityId, long companyId, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException, 313 com.liferay.portlet.social.NoSuchActivityException; 314 315 /** 316 * Finds all the social activities where userId = ?. 317 * 318 * @param userId the user id to search with 319 * @return the matching social activities 320 * @throws SystemException if a system exception occurred 321 */ 322 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 323 long userId) throws com.liferay.portal.kernel.exception.SystemException; 324 325 /** 326 * Finds a range of all the social activities where userId = ?. 327 * 328 * <p> 329 * 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. 330 * </p> 331 * 332 * @param userId the user id to search with 333 * @param start the lower bound of the range of social activities to return 334 * @param end the upper bound of the range of social activities to return (not inclusive) 335 * @return the range of matching social activities 336 * @throws SystemException if a system exception occurred 337 */ 338 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 339 long userId, int start, int end) 340 throws com.liferay.portal.kernel.exception.SystemException; 341 342 /** 343 * Finds an ordered range of all the social activities where userId = ?. 344 * 345 * <p> 346 * 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. 347 * </p> 348 * 349 * @param userId the user id to search with 350 * @param start the lower bound of the range of social activities to return 351 * @param end the upper bound of the range of social activities to return (not inclusive) 352 * @param orderByComparator the comparator to order the results by 353 * @return the ordered range of matching social activities 354 * @throws SystemException if a system exception occurred 355 */ 356 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByUserId( 357 long userId, int start, int end, 358 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 359 throws com.liferay.portal.kernel.exception.SystemException; 360 361 /** 362 * Finds the first social activity in the ordered set where userId = ?. 363 * 364 * <p> 365 * 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. 366 * </p> 367 * 368 * @param userId the user id to search with 369 * @param orderByComparator the comparator to order the set by 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 * Finds the last social activity in the ordered set where userId = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param userId the user id to search with 388 * @param orderByComparator the comparator to order the set by 389 * @return the last matching social activity 390 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 391 * @throws SystemException if a system exception occurred 392 */ 393 public com.liferay.portlet.social.model.SocialActivity findByUserId_Last( 394 long userId, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.kernel.exception.SystemException, 397 com.liferay.portlet.social.NoSuchActivityException; 398 399 /** 400 * Finds the social activities before and after the current social activity in the ordered set where userId = ?. 401 * 402 * <p> 403 * 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. 404 * </p> 405 * 406 * @param activityId the primary key of the current social activity 407 * @param userId the user id to search with 408 * @param orderByComparator the comparator to order the set by 409 * @return the previous, current, and next social activity 410 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 411 * @throws SystemException if a system exception occurred 412 */ 413 public com.liferay.portlet.social.model.SocialActivity[] findByUserId_PrevAndNext( 414 long activityId, long userId, 415 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 416 throws com.liferay.portal.kernel.exception.SystemException, 417 com.liferay.portlet.social.NoSuchActivityException; 418 419 /** 420 * Finds the social activity where mirrorActivityId = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityException} if it could not be found. 421 * 422 * @param mirrorActivityId the mirror activity id to search with 423 * @return the matching social activity 424 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public com.liferay.portlet.social.model.SocialActivity findByMirrorActivityId( 428 long mirrorActivityId) 429 throws com.liferay.portal.kernel.exception.SystemException, 430 com.liferay.portlet.social.NoSuchActivityException; 431 432 /** 433 * Finds the social activity where mirrorActivityId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 434 * 435 * @param mirrorActivityId the mirror activity id to search with 436 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 437 * @throws SystemException if a system exception occurred 438 */ 439 public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId( 440 long mirrorActivityId) 441 throws com.liferay.portal.kernel.exception.SystemException; 442 443 /** 444 * Finds the social activity where mirrorActivityId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 445 * 446 * @param mirrorActivityId the mirror activity id to search with 447 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 448 * @throws SystemException if a system exception occurred 449 */ 450 public com.liferay.portlet.social.model.SocialActivity fetchByMirrorActivityId( 451 long mirrorActivityId, boolean retrieveFromCache) 452 throws com.liferay.portal.kernel.exception.SystemException; 453 454 /** 455 * Finds all the social activities where classNameId = ?. 456 * 457 * @param classNameId the class name id to search with 458 * @return the matching social activities 459 * @throws SystemException if a system exception occurred 460 */ 461 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 462 long classNameId) 463 throws com.liferay.portal.kernel.exception.SystemException; 464 465 /** 466 * Finds a range of all the social activities where classNameId = ?. 467 * 468 * <p> 469 * 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. 470 * </p> 471 * 472 * @param classNameId the class name id to search with 473 * @param start the lower bound of the range of social activities to return 474 * @param end the upper bound of the range of social activities to return (not inclusive) 475 * @return the range of matching social activities 476 * @throws SystemException if a system exception occurred 477 */ 478 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 479 long classNameId, int start, int end) 480 throws com.liferay.portal.kernel.exception.SystemException; 481 482 /** 483 * Finds an ordered range of all the social activities where classNameId = ?. 484 * 485 * <p> 486 * 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. 487 * </p> 488 * 489 * @param classNameId the class name id to search with 490 * @param start the lower bound of the range of social activities to return 491 * @param end the upper bound of the range of social activities to return (not inclusive) 492 * @param orderByComparator the comparator to order the results by 493 * @return the ordered range of matching social activities 494 * @throws SystemException if a system exception occurred 495 */ 496 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByClassNameId( 497 long classNameId, int start, int end, 498 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 499 throws com.liferay.portal.kernel.exception.SystemException; 500 501 /** 502 * Finds the first social activity in the ordered set where classNameId = ?. 503 * 504 * <p> 505 * 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. 506 * </p> 507 * 508 * @param classNameId the class name id to search with 509 * @param orderByComparator the comparator to order the set by 510 * @return the first matching social activity 511 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 512 * @throws SystemException if a system exception occurred 513 */ 514 public com.liferay.portlet.social.model.SocialActivity findByClassNameId_First( 515 long classNameId, 516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 517 throws com.liferay.portal.kernel.exception.SystemException, 518 com.liferay.portlet.social.NoSuchActivityException; 519 520 /** 521 * Finds the last social activity in the ordered set where classNameId = ?. 522 * 523 * <p> 524 * 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. 525 * </p> 526 * 527 * @param classNameId the class name id to search with 528 * @param orderByComparator the comparator to order the set by 529 * @return the last matching social activity 530 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 531 * @throws SystemException if a system exception occurred 532 */ 533 public com.liferay.portlet.social.model.SocialActivity findByClassNameId_Last( 534 long classNameId, 535 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 536 throws com.liferay.portal.kernel.exception.SystemException, 537 com.liferay.portlet.social.NoSuchActivityException; 538 539 /** 540 * Finds the social activities before and after the current social activity in the ordered set where classNameId = ?. 541 * 542 * <p> 543 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 544 * </p> 545 * 546 * @param activityId the primary key of the current social activity 547 * @param classNameId the class name id to search with 548 * @param orderByComparator the comparator to order the set by 549 * @return the previous, current, and next social activity 550 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 551 * @throws SystemException if a system exception occurred 552 */ 553 public com.liferay.portlet.social.model.SocialActivity[] findByClassNameId_PrevAndNext( 554 long activityId, long classNameId, 555 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 556 throws com.liferay.portal.kernel.exception.SystemException, 557 com.liferay.portlet.social.NoSuchActivityException; 558 559 /** 560 * Finds all the social activities where receiverUserId = ?. 561 * 562 * @param receiverUserId the receiver user id to search with 563 * @return the matching social activities 564 * @throws SystemException if a system exception occurred 565 */ 566 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 567 long receiverUserId) 568 throws com.liferay.portal.kernel.exception.SystemException; 569 570 /** 571 * Finds a range of all the social activities where receiverUserId = ?. 572 * 573 * <p> 574 * 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. 575 * </p> 576 * 577 * @param receiverUserId the receiver user id to search with 578 * @param start the lower bound of the range of social activities to return 579 * @param end the upper bound of the range of social activities to return (not inclusive) 580 * @return the range of matching social activities 581 * @throws SystemException if a system exception occurred 582 */ 583 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 584 long receiverUserId, int start, int end) 585 throws com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * Finds an ordered range of all the social activities where receiverUserId = ?. 589 * 590 * <p> 591 * 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. 592 * </p> 593 * 594 * @param receiverUserId the receiver user id to search with 595 * @param start the lower bound of the range of social activities to return 596 * @param end the upper bound of the range of social activities to return (not inclusive) 597 * @param orderByComparator the comparator to order the results by 598 * @return the ordered range of matching social activities 599 * @throws SystemException if a system exception occurred 600 */ 601 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByReceiverUserId( 602 long receiverUserId, int start, int end, 603 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 604 throws com.liferay.portal.kernel.exception.SystemException; 605 606 /** 607 * Finds the first social activity in the ordered set where receiverUserId = ?. 608 * 609 * <p> 610 * 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. 611 * </p> 612 * 613 * @param receiverUserId the receiver user id to search with 614 * @param orderByComparator the comparator to order the set by 615 * @return the first matching social activity 616 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 617 * @throws SystemException if a system exception occurred 618 */ 619 public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_First( 620 long receiverUserId, 621 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 622 throws com.liferay.portal.kernel.exception.SystemException, 623 com.liferay.portlet.social.NoSuchActivityException; 624 625 /** 626 * Finds the last social activity in the ordered set where receiverUserId = ?. 627 * 628 * <p> 629 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 630 * </p> 631 * 632 * @param receiverUserId the receiver user id to search with 633 * @param orderByComparator the comparator to order the set by 634 * @return the last matching social activity 635 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 636 * @throws SystemException if a system exception occurred 637 */ 638 public com.liferay.portlet.social.model.SocialActivity findByReceiverUserId_Last( 639 long receiverUserId, 640 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 641 throws com.liferay.portal.kernel.exception.SystemException, 642 com.liferay.portlet.social.NoSuchActivityException; 643 644 /** 645 * Finds the social activities before and after the current social activity in the ordered set where receiverUserId = ?. 646 * 647 * <p> 648 * 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. 649 * </p> 650 * 651 * @param activityId the primary key of the current social activity 652 * @param receiverUserId the receiver user id to search with 653 * @param orderByComparator the comparator to order the set by 654 * @return the previous, current, and next social activity 655 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 656 * @throws SystemException if a system exception occurred 657 */ 658 public com.liferay.portlet.social.model.SocialActivity[] findByReceiverUserId_PrevAndNext( 659 long activityId, long receiverUserId, 660 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 661 throws com.liferay.portal.kernel.exception.SystemException, 662 com.liferay.portlet.social.NoSuchActivityException; 663 664 /** 665 * Finds all the social activities where classNameId = ? and classPK = ?. 666 * 667 * @param classNameId the class name id to search with 668 * @param classPK the class p k to search with 669 * @return the matching social activities 670 * @throws SystemException if a system exception occurred 671 */ 672 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 673 long classNameId, long classPK) 674 throws com.liferay.portal.kernel.exception.SystemException; 675 676 /** 677 * Finds a range of all the social activities where classNameId = ? and classPK = ?. 678 * 679 * <p> 680 * 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. 681 * </p> 682 * 683 * @param classNameId the class name id to search with 684 * @param classPK the class p k to search with 685 * @param start the lower bound of the range of social activities to return 686 * @param end the upper bound of the range of social activities to return (not inclusive) 687 * @return the range of matching social activities 688 * @throws SystemException if a system exception occurred 689 */ 690 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 691 long classNameId, long classPK, int start, int end) 692 throws com.liferay.portal.kernel.exception.SystemException; 693 694 /** 695 * Finds an ordered range of all the social activities where classNameId = ? and classPK = ?. 696 * 697 * <p> 698 * 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. 699 * </p> 700 * 701 * @param classNameId the class name id to search with 702 * @param classPK the class p k to search with 703 * @param start the lower bound of the range of social activities to return 704 * @param end the upper bound of the range of social activities to return (not inclusive) 705 * @param orderByComparator the comparator to order the results by 706 * @return the ordered range of matching social activities 707 * @throws SystemException if a system exception occurred 708 */ 709 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByC_C( 710 long classNameId, long classPK, int start, int end, 711 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 712 throws com.liferay.portal.kernel.exception.SystemException; 713 714 /** 715 * Finds the first social activity in the ordered set where classNameId = ? and classPK = ?. 716 * 717 * <p> 718 * 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. 719 * </p> 720 * 721 * @param classNameId the class name id to search with 722 * @param classPK the class p k to search with 723 * @param orderByComparator the comparator to order the set by 724 * @return the first matching social activity 725 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 726 * @throws SystemException if a system exception occurred 727 */ 728 public com.liferay.portlet.social.model.SocialActivity findByC_C_First( 729 long classNameId, long classPK, 730 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 731 throws com.liferay.portal.kernel.exception.SystemException, 732 com.liferay.portlet.social.NoSuchActivityException; 733 734 /** 735 * Finds the last social activity in the ordered set where classNameId = ? and classPK = ?. 736 * 737 * <p> 738 * 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. 739 * </p> 740 * 741 * @param classNameId the class name id to search with 742 * @param classPK the class p k to search with 743 * @param orderByComparator the comparator to order the set by 744 * @return the last matching social activity 745 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 746 * @throws SystemException if a system exception occurred 747 */ 748 public com.liferay.portlet.social.model.SocialActivity findByC_C_Last( 749 long classNameId, long classPK, 750 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 751 throws com.liferay.portal.kernel.exception.SystemException, 752 com.liferay.portlet.social.NoSuchActivityException; 753 754 /** 755 * Finds the social activities before and after the current social activity in the ordered set where classNameId = ? and classPK = ?. 756 * 757 * <p> 758 * 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. 759 * </p> 760 * 761 * @param activityId the primary key of the current social activity 762 * @param classNameId the class name id to search with 763 * @param classPK the class p k to search with 764 * @param orderByComparator the comparator to order the set by 765 * @return the previous, current, and next social activity 766 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 767 * @throws SystemException if a system exception occurred 768 */ 769 public com.liferay.portlet.social.model.SocialActivity[] findByC_C_PrevAndNext( 770 long activityId, long classNameId, long classPK, 771 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 772 throws com.liferay.portal.kernel.exception.SystemException, 773 com.liferay.portlet.social.NoSuchActivityException; 774 775 /** 776 * Finds all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 777 * 778 * @param mirrorActivityId the mirror activity id to search with 779 * @param classNameId the class name id to search with 780 * @param classPK the class p k to search with 781 * @return the matching social activities 782 * @throws SystemException if a system exception occurred 783 */ 784 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 785 long mirrorActivityId, long classNameId, long classPK) 786 throws com.liferay.portal.kernel.exception.SystemException; 787 788 /** 789 * Finds a range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 790 * 791 * <p> 792 * 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. 793 * </p> 794 * 795 * @param mirrorActivityId the mirror activity id to search with 796 * @param classNameId the class name id to search with 797 * @param classPK the class p k to search with 798 * @param start the lower bound of the range of social activities to return 799 * @param end the upper bound of the range of social activities to return (not inclusive) 800 * @return the range of matching social activities 801 * @throws SystemException if a system exception occurred 802 */ 803 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 804 long mirrorActivityId, long classNameId, long classPK, int start, 805 int end) throws com.liferay.portal.kernel.exception.SystemException; 806 807 /** 808 * Finds an ordered range of all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 809 * 810 * <p> 811 * 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. 812 * </p> 813 * 814 * @param mirrorActivityId the mirror activity id to search with 815 * @param classNameId the class name id to search with 816 * @param classPK the class p k to search with 817 * @param start the lower bound of the range of social activities to return 818 * @param end the upper bound of the range of social activities to return (not inclusive) 819 * @param orderByComparator the comparator to order the results by 820 * @return the ordered range of matching social activities 821 * @throws SystemException if a system exception occurred 822 */ 823 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findByM_C_C( 824 long mirrorActivityId, long classNameId, long classPK, int start, 825 int end, 826 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 827 throws com.liferay.portal.kernel.exception.SystemException; 828 829 /** 830 * Finds the first social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 831 * 832 * <p> 833 * 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. 834 * </p> 835 * 836 * @param mirrorActivityId the mirror activity id to search with 837 * @param classNameId the class name id to search with 838 * @param classPK the class p k to search with 839 * @param orderByComparator the comparator to order the set by 840 * @return the first matching social activity 841 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 842 * @throws SystemException if a system exception occurred 843 */ 844 public com.liferay.portlet.social.model.SocialActivity findByM_C_C_First( 845 long mirrorActivityId, long classNameId, long classPK, 846 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 847 throws com.liferay.portal.kernel.exception.SystemException, 848 com.liferay.portlet.social.NoSuchActivityException; 849 850 /** 851 * Finds the last social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 852 * 853 * <p> 854 * 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. 855 * </p> 856 * 857 * @param mirrorActivityId the mirror activity id to search with 858 * @param classNameId the class name id to search with 859 * @param classPK the class p k to search with 860 * @param orderByComparator the comparator to order the set by 861 * @return the last matching social activity 862 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 863 * @throws SystemException if a system exception occurred 864 */ 865 public com.liferay.portlet.social.model.SocialActivity findByM_C_C_Last( 866 long mirrorActivityId, long classNameId, long classPK, 867 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 868 throws com.liferay.portal.kernel.exception.SystemException, 869 com.liferay.portlet.social.NoSuchActivityException; 870 871 /** 872 * Finds the social activities before and after the current social activity in the ordered set where mirrorActivityId = ? and classNameId = ? and classPK = ?. 873 * 874 * <p> 875 * 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. 876 * </p> 877 * 878 * @param activityId the primary key of the current social activity 879 * @param mirrorActivityId the mirror activity id to search with 880 * @param classNameId the class name id to search with 881 * @param classPK the class p k to search with 882 * @param orderByComparator the comparator to order the set by 883 * @return the previous, current, and next social activity 884 * @throws com.liferay.portlet.social.NoSuchActivityException if a social activity with the primary key could not be found 885 * @throws SystemException if a system exception occurred 886 */ 887 public com.liferay.portlet.social.model.SocialActivity[] findByM_C_C_PrevAndNext( 888 long activityId, long mirrorActivityId, long classNameId, long classPK, 889 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 890 throws com.liferay.portal.kernel.exception.SystemException, 891 com.liferay.portlet.social.NoSuchActivityException; 892 893 /** 894 * Finds 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. 895 * 896 * @param groupId the group id to search with 897 * @param userId the user id to search with 898 * @param createDate the create date to search with 899 * @param classNameId the class name id to search with 900 * @param classPK the class p k to search with 901 * @param type the type to search with 902 * @param receiverUserId the receiver user id to search with 903 * @return the matching social activity 904 * @throws com.liferay.portlet.social.NoSuchActivityException if a matching social activity could not be found 905 * @throws SystemException if a system exception occurred 906 */ 907 public com.liferay.portlet.social.model.SocialActivity findByG_U_CD_C_C_T_R( 908 long groupId, long userId, long createDate, long classNameId, 909 long classPK, int type, long receiverUserId) 910 throws com.liferay.portal.kernel.exception.SystemException, 911 com.liferay.portlet.social.NoSuchActivityException; 912 913 /** 914 * Finds 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. 915 * 916 * @param groupId the group id to search with 917 * @param userId the user id to search with 918 * @param createDate the create date to search with 919 * @param classNameId the class name id to search with 920 * @param classPK the class p k to search with 921 * @param type the type to search with 922 * @param receiverUserId the receiver user id to search with 923 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 924 * @throws SystemException if a system exception occurred 925 */ 926 public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R( 927 long groupId, long userId, long createDate, long classNameId, 928 long classPK, int type, long receiverUserId) 929 throws com.liferay.portal.kernel.exception.SystemException; 930 931 /** 932 * Finds 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. 933 * 934 * @param groupId the group id to search with 935 * @param userId the user id to search with 936 * @param createDate the create date to search with 937 * @param classNameId the class name id to search with 938 * @param classPK the class p k to search with 939 * @param type the type to search with 940 * @param receiverUserId the receiver user id to search with 941 * @return the matching social activity, or <code>null</code> if a matching social activity could not be found 942 * @throws SystemException if a system exception occurred 943 */ 944 public com.liferay.portlet.social.model.SocialActivity fetchByG_U_CD_C_C_T_R( 945 long groupId, long userId, long createDate, long classNameId, 946 long classPK, int type, long receiverUserId, boolean retrieveFromCache) 947 throws com.liferay.portal.kernel.exception.SystemException; 948 949 /** 950 * Finds all the social activities. 951 * 952 * @return the social activities 953 * @throws SystemException if a system exception occurred 954 */ 955 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll() 956 throws com.liferay.portal.kernel.exception.SystemException; 957 958 /** 959 * Finds a range of all the social activities. 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. 963 * </p> 964 * 965 * @param start the lower bound of the range of social activities to return 966 * @param end the upper bound of the range of social activities to return (not inclusive) 967 * @return the range of social activities 968 * @throws SystemException if a system exception occurred 969 */ 970 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll( 971 int start, int end) 972 throws com.liferay.portal.kernel.exception.SystemException; 973 974 /** 975 * Finds an ordered range of all the social activities. 976 * 977 * <p> 978 * 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. 979 * </p> 980 * 981 * @param start the lower bound of the range of social activities to return 982 * @param end the upper bound of the range of social activities to return (not inclusive) 983 * @param orderByComparator the comparator to order the results by 984 * @return the ordered range of social activities 985 * @throws SystemException if a system exception occurred 986 */ 987 public java.util.List<com.liferay.portlet.social.model.SocialActivity> findAll( 988 int start, int end, 989 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 990 throws com.liferay.portal.kernel.exception.SystemException; 991 992 /** 993 * Removes all the social activities where groupId = ? from the database. 994 * 995 * @param groupId the group id to search with 996 * @throws SystemException if a system exception occurred 997 */ 998 public void removeByGroupId(long groupId) 999 throws com.liferay.portal.kernel.exception.SystemException; 1000 1001 /** 1002 * Removes all the social activities where companyId = ? from the database. 1003 * 1004 * @param companyId the company id to search with 1005 * @throws SystemException if a system exception occurred 1006 */ 1007 public void removeByCompanyId(long companyId) 1008 throws com.liferay.portal.kernel.exception.SystemException; 1009 1010 /** 1011 * Removes all the social activities where userId = ? from the database. 1012 * 1013 * @param userId the user id to search with 1014 * @throws SystemException if a system exception occurred 1015 */ 1016 public void removeByUserId(long userId) 1017 throws com.liferay.portal.kernel.exception.SystemException; 1018 1019 /** 1020 * Removes the social activity where mirrorActivityId = ? from the database. 1021 * 1022 * @param mirrorActivityId the mirror activity id to search with 1023 * @throws SystemException if a system exception occurred 1024 */ 1025 public void removeByMirrorActivityId(long mirrorActivityId) 1026 throws com.liferay.portal.kernel.exception.SystemException, 1027 com.liferay.portlet.social.NoSuchActivityException; 1028 1029 /** 1030 * Removes all the social activities where classNameId = ? from the database. 1031 * 1032 * @param classNameId the class name id to search with 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public void removeByClassNameId(long classNameId) 1036 throws com.liferay.portal.kernel.exception.SystemException; 1037 1038 /** 1039 * Removes all the social activities where receiverUserId = ? from the database. 1040 * 1041 * @param receiverUserId the receiver user id to search with 1042 * @throws SystemException if a system exception occurred 1043 */ 1044 public void removeByReceiverUserId(long receiverUserId) 1045 throws com.liferay.portal.kernel.exception.SystemException; 1046 1047 /** 1048 * Removes all the social activities where classNameId = ? and classPK = ? from the database. 1049 * 1050 * @param classNameId the class name id to search with 1051 * @param classPK the class p k to search with 1052 * @throws SystemException if a system exception occurred 1053 */ 1054 public void removeByC_C(long classNameId, long classPK) 1055 throws com.liferay.portal.kernel.exception.SystemException; 1056 1057 /** 1058 * Removes all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ? from the database. 1059 * 1060 * @param mirrorActivityId the mirror activity id to search with 1061 * @param classNameId the class name id to search with 1062 * @param classPK the class p k to search with 1063 * @throws SystemException if a system exception occurred 1064 */ 1065 public void removeByM_C_C(long mirrorActivityId, long classNameId, 1066 long classPK) 1067 throws com.liferay.portal.kernel.exception.SystemException; 1068 1069 /** 1070 * Removes the social activity where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ? from the database. 1071 * 1072 * @param groupId the group id to search with 1073 * @param userId the user id to search with 1074 * @param createDate the create date to search with 1075 * @param classNameId the class name id to search with 1076 * @param classPK the class p k to search with 1077 * @param type the type to search with 1078 * @param receiverUserId the receiver user id to search with 1079 * @throws SystemException if a system exception occurred 1080 */ 1081 public void removeByG_U_CD_C_C_T_R(long groupId, long userId, 1082 long createDate, long classNameId, long classPK, int type, 1083 long receiverUserId) 1084 throws com.liferay.portal.kernel.exception.SystemException, 1085 com.liferay.portlet.social.NoSuchActivityException; 1086 1087 /** 1088 * Removes all the social activities from the database. 1089 * 1090 * @throws SystemException if a system exception occurred 1091 */ 1092 public void removeAll() 1093 throws com.liferay.portal.kernel.exception.SystemException; 1094 1095 /** 1096 * Counts all the social activities where groupId = ?. 1097 * 1098 * @param groupId the group id to search with 1099 * @return the number of matching social activities 1100 * @throws SystemException if a system exception occurred 1101 */ 1102 public int countByGroupId(long groupId) 1103 throws com.liferay.portal.kernel.exception.SystemException; 1104 1105 /** 1106 * Counts all the social activities where companyId = ?. 1107 * 1108 * @param companyId the company id to search with 1109 * @return the number of matching social activities 1110 * @throws SystemException if a system exception occurred 1111 */ 1112 public int countByCompanyId(long companyId) 1113 throws com.liferay.portal.kernel.exception.SystemException; 1114 1115 /** 1116 * Counts all the social activities where userId = ?. 1117 * 1118 * @param userId the user id to search with 1119 * @return the number of matching social activities 1120 * @throws SystemException if a system exception occurred 1121 */ 1122 public int countByUserId(long userId) 1123 throws com.liferay.portal.kernel.exception.SystemException; 1124 1125 /** 1126 * Counts all the social activities where mirrorActivityId = ?. 1127 * 1128 * @param mirrorActivityId the mirror activity id to search with 1129 * @return the number of matching social activities 1130 * @throws SystemException if a system exception occurred 1131 */ 1132 public int countByMirrorActivityId(long mirrorActivityId) 1133 throws com.liferay.portal.kernel.exception.SystemException; 1134 1135 /** 1136 * Counts all the social activities where classNameId = ?. 1137 * 1138 * @param classNameId the class name id to search with 1139 * @return the number of matching social activities 1140 * @throws SystemException if a system exception occurred 1141 */ 1142 public int countByClassNameId(long classNameId) 1143 throws com.liferay.portal.kernel.exception.SystemException; 1144 1145 /** 1146 * Counts all the social activities where receiverUserId = ?. 1147 * 1148 * @param receiverUserId the receiver user id to search with 1149 * @return the number of matching social activities 1150 * @throws SystemException if a system exception occurred 1151 */ 1152 public int countByReceiverUserId(long receiverUserId) 1153 throws com.liferay.portal.kernel.exception.SystemException; 1154 1155 /** 1156 * Counts all the social activities where classNameId = ? and classPK = ?. 1157 * 1158 * @param classNameId the class name id to search with 1159 * @param classPK the class p k to search with 1160 * @return the number of matching social activities 1161 * @throws SystemException if a system exception occurred 1162 */ 1163 public int countByC_C(long classNameId, long classPK) 1164 throws com.liferay.portal.kernel.exception.SystemException; 1165 1166 /** 1167 * Counts all the social activities where mirrorActivityId = ? and classNameId = ? and classPK = ?. 1168 * 1169 * @param mirrorActivityId the mirror activity id to search with 1170 * @param classNameId the class name id to search with 1171 * @param classPK the class p k to search with 1172 * @return the number of matching social activities 1173 * @throws SystemException if a system exception occurred 1174 */ 1175 public int countByM_C_C(long mirrorActivityId, long classNameId, 1176 long classPK) 1177 throws com.liferay.portal.kernel.exception.SystemException; 1178 1179 /** 1180 * Counts all the social activities where groupId = ? and userId = ? and createDate = ? and classNameId = ? and classPK = ? and type = ? and receiverUserId = ?. 1181 * 1182 * @param groupId the group id to search with 1183 * @param userId the user id to search with 1184 * @param createDate the create date to search with 1185 * @param classNameId the class name id to search with 1186 * @param classPK the class p k to search with 1187 * @param type the type to search with 1188 * @param receiverUserId the receiver user id to search with 1189 * @return the number of matching social activities 1190 * @throws SystemException if a system exception occurred 1191 */ 1192 public int countByG_U_CD_C_C_T_R(long groupId, long userId, 1193 long createDate, long classNameId, long classPK, int type, 1194 long receiverUserId) 1195 throws com.liferay.portal.kernel.exception.SystemException; 1196 1197 /** 1198 * Counts all the social activities. 1199 * 1200 * @return the number of social activities 1201 * @throws SystemException if a system exception occurred 1202 */ 1203 public int countAll() 1204 throws com.liferay.portal.kernel.exception.SystemException; 1205 }