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