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