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.SocialActivitySet; 022 023 /** 024 * The persistence interface for the social activity set 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 com.liferay.portlet.social.service.persistence.impl.SocialActivitySetPersistenceImpl 032 * @see SocialActivitySetUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface SocialActivitySetPersistence extends BasePersistence<SocialActivitySet> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link SocialActivitySetUtil} to access the social activity set persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the social activity sets where groupId = ?. 045 * 046 * @param groupId the group ID 047 * @return the matching social activity sets 048 */ 049 public java.util.List<SocialActivitySet> findByGroupId(long groupId); 050 051 /** 052 * Returns a range of all the social activity sets where groupId = ?. 053 * 054 * <p> 055 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 056 * </p> 057 * 058 * @param groupId the group ID 059 * @param start the lower bound of the range of social activity sets 060 * @param end the upper bound of the range of social activity sets (not inclusive) 061 * @return the range of matching social activity sets 062 */ 063 public java.util.List<SocialActivitySet> findByGroupId(long groupId, 064 int start, int end); 065 066 /** 067 * Returns an ordered range of all the social activity sets where groupId = ?. 068 * 069 * <p> 070 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 071 * </p> 072 * 073 * @param groupId the group ID 074 * @param start the lower bound of the range of social activity sets 075 * @param end the upper bound of the range of social activity sets (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching social activity sets 078 */ 079 public java.util.List<SocialActivitySet> findByGroupId(long groupId, 080 int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 082 083 /** 084 * Returns the first social activity set in the ordered set where groupId = ?. 085 * 086 * @param groupId the group ID 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching social activity set 089 * @throws NoSuchActivitySetException if a matching social activity set could not be found 090 */ 091 public SocialActivitySet findByGroupId_First(long groupId, 092 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 093 throws com.liferay.portlet.social.NoSuchActivitySetException; 094 095 /** 096 * Returns the first social activity set in the ordered set where groupId = ?. 097 * 098 * @param groupId the group ID 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found 101 */ 102 public SocialActivitySet fetchByGroupId_First(long groupId, 103 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 104 105 /** 106 * Returns the last social activity set in the ordered set where groupId = ?. 107 * 108 * @param groupId the group ID 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the last matching social activity set 111 * @throws NoSuchActivitySetException if a matching social activity set could not be found 112 */ 113 public SocialActivitySet findByGroupId_Last(long groupId, 114 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 115 throws com.liferay.portlet.social.NoSuchActivitySetException; 116 117 /** 118 * Returns the last social activity set in the ordered set where groupId = ?. 119 * 120 * @param groupId the group ID 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 123 */ 124 public SocialActivitySet fetchByGroupId_Last(long groupId, 125 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 126 127 /** 128 * Returns the social activity sets before and after the current social activity set in the ordered set where groupId = ?. 129 * 130 * @param activitySetId the primary key of the current social activity set 131 * @param groupId the group ID 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next social activity set 134 * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found 135 */ 136 public SocialActivitySet[] findByGroupId_PrevAndNext(long activitySetId, 137 long groupId, 138 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 139 throws com.liferay.portlet.social.NoSuchActivitySetException; 140 141 /** 142 * Removes all the social activity sets where groupId = ? from the database. 143 * 144 * @param groupId the group ID 145 */ 146 public void removeByGroupId(long groupId); 147 148 /** 149 * Returns the number of social activity sets where groupId = ?. 150 * 151 * @param groupId the group ID 152 * @return the number of matching social activity sets 153 */ 154 public int countByGroupId(long groupId); 155 156 /** 157 * Returns all the social activity sets where userId = ?. 158 * 159 * @param userId the user ID 160 * @return the matching social activity sets 161 */ 162 public java.util.List<SocialActivitySet> findByUserId(long userId); 163 164 /** 165 * Returns a range of all the social activity sets where userId = ?. 166 * 167 * <p> 168 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 169 * </p> 170 * 171 * @param userId the user ID 172 * @param start the lower bound of the range of social activity sets 173 * @param end the upper bound of the range of social activity sets (not inclusive) 174 * @return the range of matching social activity sets 175 */ 176 public java.util.List<SocialActivitySet> findByUserId(long userId, 177 int start, int end); 178 179 /** 180 * Returns an ordered range of all the social activity sets where userId = ?. 181 * 182 * <p> 183 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 184 * </p> 185 * 186 * @param userId the user ID 187 * @param start the lower bound of the range of social activity sets 188 * @param end the upper bound of the range of social activity sets (not inclusive) 189 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 190 * @return the ordered range of matching social activity sets 191 */ 192 public java.util.List<SocialActivitySet> findByUserId(long userId, 193 int start, int end, 194 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 195 196 /** 197 * Returns the first social activity set in the ordered set where userId = ?. 198 * 199 * @param userId the user ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the first matching social activity set 202 * @throws NoSuchActivitySetException if a matching social activity set could not be found 203 */ 204 public SocialActivitySet findByUserId_First(long userId, 205 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 206 throws com.liferay.portlet.social.NoSuchActivitySetException; 207 208 /** 209 * Returns the first social activity set in the ordered set where userId = ?. 210 * 211 * @param userId the user ID 212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 213 * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found 214 */ 215 public SocialActivitySet fetchByUserId_First(long userId, 216 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 217 218 /** 219 * Returns the last social activity set in the ordered set where userId = ?. 220 * 221 * @param userId the user ID 222 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 223 * @return the last matching social activity set 224 * @throws NoSuchActivitySetException if a matching social activity set could not be found 225 */ 226 public SocialActivitySet findByUserId_Last(long userId, 227 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 228 throws com.liferay.portlet.social.NoSuchActivitySetException; 229 230 /** 231 * Returns the last social activity set in the ordered set where userId = ?. 232 * 233 * @param userId the user ID 234 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 235 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 236 */ 237 public SocialActivitySet fetchByUserId_Last(long userId, 238 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 239 240 /** 241 * Returns the social activity sets before and after the current social activity set in the ordered set where userId = ?. 242 * 243 * @param activitySetId the primary key of the current social activity set 244 * @param userId the user ID 245 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 246 * @return the previous, current, and next social activity set 247 * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found 248 */ 249 public SocialActivitySet[] findByUserId_PrevAndNext(long activitySetId, 250 long userId, 251 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 252 throws com.liferay.portlet.social.NoSuchActivitySetException; 253 254 /** 255 * Removes all the social activity sets where userId = ? from the database. 256 * 257 * @param userId the user ID 258 */ 259 public void removeByUserId(long userId); 260 261 /** 262 * Returns the number of social activity sets where userId = ?. 263 * 264 * @param userId the user ID 265 * @return the number of matching social activity sets 266 */ 267 public int countByUserId(long userId); 268 269 /** 270 * Returns all the social activity sets where groupId = ? and userId = ? and type = ?. 271 * 272 * @param groupId the group ID 273 * @param userId the user ID 274 * @param type the type 275 * @return the matching social activity sets 276 */ 277 public java.util.List<SocialActivitySet> findByG_U_T(long groupId, 278 long userId, int type); 279 280 /** 281 * Returns a range of all the social activity sets where groupId = ? and userId = ? and type = ?. 282 * 283 * <p> 284 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 285 * </p> 286 * 287 * @param groupId the group ID 288 * @param userId the user ID 289 * @param type the type 290 * @param start the lower bound of the range of social activity sets 291 * @param end the upper bound of the range of social activity sets (not inclusive) 292 * @return the range of matching social activity sets 293 */ 294 public java.util.List<SocialActivitySet> findByG_U_T(long groupId, 295 long userId, int type, int start, int end); 296 297 /** 298 * Returns an ordered range of all the social activity sets where groupId = ? and userId = ? and type = ?. 299 * 300 * <p> 301 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 302 * </p> 303 * 304 * @param groupId the group ID 305 * @param userId the user ID 306 * @param type the type 307 * @param start the lower bound of the range of social activity sets 308 * @param end the upper bound of the range of social activity sets (not inclusive) 309 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 310 * @return the ordered range of matching social activity sets 311 */ 312 public java.util.List<SocialActivitySet> findByG_U_T(long groupId, 313 long userId, int type, int start, int end, 314 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 315 316 /** 317 * Returns the first social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 318 * 319 * @param groupId the group ID 320 * @param userId the user ID 321 * @param type the type 322 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 323 * @return the first matching social activity set 324 * @throws NoSuchActivitySetException if a matching social activity set could not be found 325 */ 326 public SocialActivitySet findByG_U_T_First(long groupId, long userId, 327 int type, 328 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 329 throws com.liferay.portlet.social.NoSuchActivitySetException; 330 331 /** 332 * Returns the first social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 333 * 334 * @param groupId the group ID 335 * @param userId the user ID 336 * @param type the type 337 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 338 * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found 339 */ 340 public SocialActivitySet fetchByG_U_T_First(long groupId, long userId, 341 int type, 342 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 343 344 /** 345 * Returns the last social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 346 * 347 * @param groupId the group ID 348 * @param userId the user ID 349 * @param type the type 350 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 351 * @return the last matching social activity set 352 * @throws NoSuchActivitySetException if a matching social activity set could not be found 353 */ 354 public SocialActivitySet findByG_U_T_Last(long groupId, long userId, 355 int type, 356 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 357 throws com.liferay.portlet.social.NoSuchActivitySetException; 358 359 /** 360 * Returns the last social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 361 * 362 * @param groupId the group ID 363 * @param userId the user ID 364 * @param type the type 365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 366 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 367 */ 368 public SocialActivitySet fetchByG_U_T_Last(long groupId, long userId, 369 int type, 370 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 371 372 /** 373 * Returns the social activity sets before and after the current social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 374 * 375 * @param activitySetId the primary key of the current social activity set 376 * @param groupId the group ID 377 * @param userId the user ID 378 * @param type the type 379 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 380 * @return the previous, current, and next social activity set 381 * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found 382 */ 383 public SocialActivitySet[] findByG_U_T_PrevAndNext(long activitySetId, 384 long groupId, long userId, int type, 385 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 386 throws com.liferay.portlet.social.NoSuchActivitySetException; 387 388 /** 389 * Removes all the social activity sets where groupId = ? and userId = ? and type = ? from the database. 390 * 391 * @param groupId the group ID 392 * @param userId the user ID 393 * @param type the type 394 */ 395 public void removeByG_U_T(long groupId, long userId, int type); 396 397 /** 398 * Returns the number of social activity sets where groupId = ? and userId = ? and type = ?. 399 * 400 * @param groupId the group ID 401 * @param userId the user ID 402 * @param type the type 403 * @return the number of matching social activity sets 404 */ 405 public int countByG_U_T(long groupId, long userId, int type); 406 407 /** 408 * Returns all the social activity sets where classNameId = ? and classPK = ? and type = ?. 409 * 410 * @param classNameId the class name ID 411 * @param classPK the class p k 412 * @param type the type 413 * @return the matching social activity sets 414 */ 415 public java.util.List<SocialActivitySet> findByC_C_T(long classNameId, 416 long classPK, int type); 417 418 /** 419 * Returns a range of all the social activity sets where classNameId = ? and classPK = ? and type = ?. 420 * 421 * <p> 422 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 423 * </p> 424 * 425 * @param classNameId the class name ID 426 * @param classPK the class p k 427 * @param type the type 428 * @param start the lower bound of the range of social activity sets 429 * @param end the upper bound of the range of social activity sets (not inclusive) 430 * @return the range of matching social activity sets 431 */ 432 public java.util.List<SocialActivitySet> findByC_C_T(long classNameId, 433 long classPK, int type, int start, int end); 434 435 /** 436 * Returns an ordered range of all the social activity sets where classNameId = ? and classPK = ? and type = ?. 437 * 438 * <p> 439 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 440 * </p> 441 * 442 * @param classNameId the class name ID 443 * @param classPK the class p k 444 * @param type the type 445 * @param start the lower bound of the range of social activity sets 446 * @param end the upper bound of the range of social activity sets (not inclusive) 447 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 448 * @return the ordered range of matching social activity sets 449 */ 450 public java.util.List<SocialActivitySet> findByC_C_T(long classNameId, 451 long classPK, int type, int start, int end, 452 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 453 454 /** 455 * Returns the first social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 456 * 457 * @param classNameId the class name ID 458 * @param classPK the class p k 459 * @param type the type 460 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 461 * @return the first matching social activity set 462 * @throws NoSuchActivitySetException if a matching social activity set could not be found 463 */ 464 public SocialActivitySet findByC_C_T_First(long classNameId, long classPK, 465 int type, 466 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 467 throws com.liferay.portlet.social.NoSuchActivitySetException; 468 469 /** 470 * Returns the first social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 471 * 472 * @param classNameId the class name ID 473 * @param classPK the class p k 474 * @param type the type 475 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 476 * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found 477 */ 478 public SocialActivitySet fetchByC_C_T_First(long classNameId, long classPK, 479 int type, 480 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 481 482 /** 483 * Returns the last social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 484 * 485 * @param classNameId the class name ID 486 * @param classPK the class p k 487 * @param type the type 488 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 489 * @return the last matching social activity set 490 * @throws NoSuchActivitySetException if a matching social activity set could not be found 491 */ 492 public SocialActivitySet findByC_C_T_Last(long classNameId, long classPK, 493 int type, 494 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 495 throws com.liferay.portlet.social.NoSuchActivitySetException; 496 497 /** 498 * Returns the last social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 499 * 500 * @param classNameId the class name ID 501 * @param classPK the class p k 502 * @param type the type 503 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 504 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 505 */ 506 public SocialActivitySet fetchByC_C_T_Last(long classNameId, long classPK, 507 int type, 508 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 509 510 /** 511 * Returns the social activity sets before and after the current social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 512 * 513 * @param activitySetId the primary key of the current social activity set 514 * @param classNameId the class name ID 515 * @param classPK the class p k 516 * @param type the type 517 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 518 * @return the previous, current, and next social activity set 519 * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found 520 */ 521 public SocialActivitySet[] findByC_C_T_PrevAndNext(long activitySetId, 522 long classNameId, long classPK, int type, 523 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 524 throws com.liferay.portlet.social.NoSuchActivitySetException; 525 526 /** 527 * Removes all the social activity sets where classNameId = ? and classPK = ? and type = ? from the database. 528 * 529 * @param classNameId the class name ID 530 * @param classPK the class p k 531 * @param type the type 532 */ 533 public void removeByC_C_T(long classNameId, long classPK, int type); 534 535 /** 536 * Returns the number of social activity sets where classNameId = ? and classPK = ? and type = ?. 537 * 538 * @param classNameId the class name ID 539 * @param classPK the class p k 540 * @param type the type 541 * @return the number of matching social activity sets 542 */ 543 public int countByC_C_T(long classNameId, long classPK, int type); 544 545 /** 546 * Returns all the social activity sets where groupId = ? and userId = ? and classNameId = ? and type = ?. 547 * 548 * @param groupId the group ID 549 * @param userId the user ID 550 * @param classNameId the class name ID 551 * @param type the type 552 * @return the matching social activity sets 553 */ 554 public java.util.List<SocialActivitySet> findByG_U_C_T(long groupId, 555 long userId, long classNameId, int type); 556 557 /** 558 * Returns a range of all the social activity sets where groupId = ? and userId = ? and classNameId = ? and type = ?. 559 * 560 * <p> 561 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 562 * </p> 563 * 564 * @param groupId the group ID 565 * @param userId the user ID 566 * @param classNameId the class name ID 567 * @param type the type 568 * @param start the lower bound of the range of social activity sets 569 * @param end the upper bound of the range of social activity sets (not inclusive) 570 * @return the range of matching social activity sets 571 */ 572 public java.util.List<SocialActivitySet> findByG_U_C_T(long groupId, 573 long userId, long classNameId, int type, int start, int end); 574 575 /** 576 * Returns an ordered range of all the social activity sets where groupId = ? and userId = ? and classNameId = ? and type = ?. 577 * 578 * <p> 579 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 580 * </p> 581 * 582 * @param groupId the group ID 583 * @param userId the user ID 584 * @param classNameId the class name ID 585 * @param type the type 586 * @param start the lower bound of the range of social activity sets 587 * @param end the upper bound of the range of social activity sets (not inclusive) 588 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 589 * @return the ordered range of matching social activity sets 590 */ 591 public java.util.List<SocialActivitySet> findByG_U_C_T(long groupId, 592 long userId, long classNameId, int type, int start, int end, 593 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 594 595 /** 596 * Returns the first social activity set in the ordered set where groupId = ? and userId = ? and classNameId = ? and type = ?. 597 * 598 * @param groupId the group ID 599 * @param userId the user ID 600 * @param classNameId the class name ID 601 * @param type the type 602 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 603 * @return the first matching social activity set 604 * @throws NoSuchActivitySetException if a matching social activity set could not be found 605 */ 606 public SocialActivitySet findByG_U_C_T_First(long groupId, long userId, 607 long classNameId, int type, 608 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 609 throws com.liferay.portlet.social.NoSuchActivitySetException; 610 611 /** 612 * Returns the first social activity set in the ordered set where groupId = ? and userId = ? and classNameId = ? and type = ?. 613 * 614 * @param groupId the group ID 615 * @param userId the user ID 616 * @param classNameId the class name ID 617 * @param type the type 618 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 619 * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found 620 */ 621 public SocialActivitySet fetchByG_U_C_T_First(long groupId, long userId, 622 long classNameId, int type, 623 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 624 625 /** 626 * Returns the last social activity set in the ordered set where groupId = ? and userId = ? and classNameId = ? and type = ?. 627 * 628 * @param groupId the group ID 629 * @param userId the user ID 630 * @param classNameId the class name ID 631 * @param type the type 632 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 633 * @return the last matching social activity set 634 * @throws NoSuchActivitySetException if a matching social activity set could not be found 635 */ 636 public SocialActivitySet findByG_U_C_T_Last(long groupId, long userId, 637 long classNameId, int type, 638 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 639 throws com.liferay.portlet.social.NoSuchActivitySetException; 640 641 /** 642 * Returns the last social activity set in the ordered set where groupId = ? and userId = ? and classNameId = ? and type = ?. 643 * 644 * @param groupId the group ID 645 * @param userId the user ID 646 * @param classNameId the class name ID 647 * @param type the type 648 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 649 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 650 */ 651 public SocialActivitySet fetchByG_U_C_T_Last(long groupId, long userId, 652 long classNameId, int type, 653 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 654 655 /** 656 * Returns the social activity sets before and after the current social activity set in the ordered set where groupId = ? and userId = ? and classNameId = ? and type = ?. 657 * 658 * @param activitySetId the primary key of the current social activity set 659 * @param groupId the group ID 660 * @param userId the user ID 661 * @param classNameId the class name ID 662 * @param type the type 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the previous, current, and next social activity set 665 * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found 666 */ 667 public SocialActivitySet[] findByG_U_C_T_PrevAndNext(long activitySetId, 668 long groupId, long userId, long classNameId, int type, 669 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 670 throws com.liferay.portlet.social.NoSuchActivitySetException; 671 672 /** 673 * Removes all the social activity sets where groupId = ? and userId = ? and classNameId = ? and type = ? from the database. 674 * 675 * @param groupId the group ID 676 * @param userId the user ID 677 * @param classNameId the class name ID 678 * @param type the type 679 */ 680 public void removeByG_U_C_T(long groupId, long userId, long classNameId, 681 int type); 682 683 /** 684 * Returns the number of social activity sets where groupId = ? and userId = ? and classNameId = ? and type = ?. 685 * 686 * @param groupId the group ID 687 * @param userId the user ID 688 * @param classNameId the class name ID 689 * @param type the type 690 * @return the number of matching social activity sets 691 */ 692 public int countByG_U_C_T(long groupId, long userId, long classNameId, 693 int type); 694 695 /** 696 * Returns all the social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ?. 697 * 698 * @param userId the user ID 699 * @param classNameId the class name ID 700 * @param classPK the class p k 701 * @param type the type 702 * @return the matching social activity sets 703 */ 704 public java.util.List<SocialActivitySet> findByU_C_C_T(long userId, 705 long classNameId, long classPK, int type); 706 707 /** 708 * Returns a range of all the social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ?. 709 * 710 * <p> 711 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 712 * </p> 713 * 714 * @param userId the user ID 715 * @param classNameId the class name ID 716 * @param classPK the class p k 717 * @param type the type 718 * @param start the lower bound of the range of social activity sets 719 * @param end the upper bound of the range of social activity sets (not inclusive) 720 * @return the range of matching social activity sets 721 */ 722 public java.util.List<SocialActivitySet> findByU_C_C_T(long userId, 723 long classNameId, long classPK, int type, int start, int end); 724 725 /** 726 * Returns an ordered range of all the social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ?. 727 * 728 * <p> 729 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 730 * </p> 731 * 732 * @param userId the user ID 733 * @param classNameId the class name ID 734 * @param classPK the class p k 735 * @param type the type 736 * @param start the lower bound of the range of social activity sets 737 * @param end the upper bound of the range of social activity sets (not inclusive) 738 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 739 * @return the ordered range of matching social activity sets 740 */ 741 public java.util.List<SocialActivitySet> findByU_C_C_T(long userId, 742 long classNameId, long classPK, int type, int start, int end, 743 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 744 745 /** 746 * Returns the first social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 747 * 748 * @param userId the user ID 749 * @param classNameId the class name ID 750 * @param classPK the class p k 751 * @param type the type 752 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 753 * @return the first matching social activity set 754 * @throws NoSuchActivitySetException if a matching social activity set could not be found 755 */ 756 public SocialActivitySet findByU_C_C_T_First(long userId, long classNameId, 757 long classPK, int type, 758 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 759 throws com.liferay.portlet.social.NoSuchActivitySetException; 760 761 /** 762 * Returns the first social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 763 * 764 * @param userId the user ID 765 * @param classNameId the class name ID 766 * @param classPK the class p k 767 * @param type the type 768 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 769 * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found 770 */ 771 public SocialActivitySet fetchByU_C_C_T_First(long userId, 772 long classNameId, long classPK, int type, 773 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 774 775 /** 776 * Returns the last social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 777 * 778 * @param userId the user ID 779 * @param classNameId the class name ID 780 * @param classPK the class p k 781 * @param type the type 782 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 783 * @return the last matching social activity set 784 * @throws NoSuchActivitySetException if a matching social activity set could not be found 785 */ 786 public SocialActivitySet findByU_C_C_T_Last(long userId, long classNameId, 787 long classPK, int type, 788 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 789 throws com.liferay.portlet.social.NoSuchActivitySetException; 790 791 /** 792 * Returns the last social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 793 * 794 * @param userId the user ID 795 * @param classNameId the class name ID 796 * @param classPK the class p k 797 * @param type the type 798 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 799 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 800 */ 801 public SocialActivitySet fetchByU_C_C_T_Last(long userId, long classNameId, 802 long classPK, int type, 803 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 804 805 /** 806 * Returns the social activity sets before and after the current social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 807 * 808 * @param activitySetId the primary key of the current social activity set 809 * @param userId the user ID 810 * @param classNameId the class name ID 811 * @param classPK the class p k 812 * @param type the type 813 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 814 * @return the previous, current, and next social activity set 815 * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found 816 */ 817 public SocialActivitySet[] findByU_C_C_T_PrevAndNext(long activitySetId, 818 long userId, long classNameId, long classPK, int type, 819 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator) 820 throws com.liferay.portlet.social.NoSuchActivitySetException; 821 822 /** 823 * Removes all the social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ? from the database. 824 * 825 * @param userId the user ID 826 * @param classNameId the class name ID 827 * @param classPK the class p k 828 * @param type the type 829 */ 830 public void removeByU_C_C_T(long userId, long classNameId, long classPK, 831 int type); 832 833 /** 834 * Returns the number of social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ?. 835 * 836 * @param userId the user ID 837 * @param classNameId the class name ID 838 * @param classPK the class p k 839 * @param type the type 840 * @return the number of matching social activity sets 841 */ 842 public int countByU_C_C_T(long userId, long classNameId, long classPK, 843 int type); 844 845 /** 846 * Caches the social activity set in the entity cache if it is enabled. 847 * 848 * @param socialActivitySet the social activity set 849 */ 850 public void cacheResult(SocialActivitySet socialActivitySet); 851 852 /** 853 * Caches the social activity sets in the entity cache if it is enabled. 854 * 855 * @param socialActivitySets the social activity sets 856 */ 857 public void cacheResult( 858 java.util.List<SocialActivitySet> socialActivitySets); 859 860 /** 861 * Creates a new social activity set with the primary key. Does not add the social activity set to the database. 862 * 863 * @param activitySetId the primary key for the new social activity set 864 * @return the new social activity set 865 */ 866 public SocialActivitySet create(long activitySetId); 867 868 /** 869 * Removes the social activity set with the primary key from the database. Also notifies the appropriate model listeners. 870 * 871 * @param activitySetId the primary key of the social activity set 872 * @return the social activity set that was removed 873 * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found 874 */ 875 public SocialActivitySet remove(long activitySetId) 876 throws com.liferay.portlet.social.NoSuchActivitySetException; 877 878 public SocialActivitySet updateImpl(SocialActivitySet socialActivitySet); 879 880 /** 881 * Returns the social activity set with the primary key or throws a {@link NoSuchActivitySetException} if it could not be found. 882 * 883 * @param activitySetId the primary key of the social activity set 884 * @return the social activity set 885 * @throws NoSuchActivitySetException if a social activity set with the primary key could not be found 886 */ 887 public SocialActivitySet findByPrimaryKey(long activitySetId) 888 throws com.liferay.portlet.social.NoSuchActivitySetException; 889 890 /** 891 * Returns the social activity set with the primary key or returns <code>null</code> if it could not be found. 892 * 893 * @param activitySetId the primary key of the social activity set 894 * @return the social activity set, or <code>null</code> if a social activity set with the primary key could not be found 895 */ 896 public SocialActivitySet fetchByPrimaryKey(long activitySetId); 897 898 @Override 899 public java.util.Map<java.io.Serializable, SocialActivitySet> fetchByPrimaryKeys( 900 java.util.Set<java.io.Serializable> primaryKeys); 901 902 /** 903 * Returns all the social activity sets. 904 * 905 * @return the social activity sets 906 */ 907 public java.util.List<SocialActivitySet> findAll(); 908 909 /** 910 * Returns a range of all the social activity sets. 911 * 912 * <p> 913 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 914 * </p> 915 * 916 * @param start the lower bound of the range of social activity sets 917 * @param end the upper bound of the range of social activity sets (not inclusive) 918 * @return the range of social activity sets 919 */ 920 public java.util.List<SocialActivitySet> findAll(int start, int end); 921 922 /** 923 * Returns an ordered range of all the social activity sets. 924 * 925 * <p> 926 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySetModelImpl}. 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. 927 * </p> 928 * 929 * @param start the lower bound of the range of social activity sets 930 * @param end the upper bound of the range of social activity sets (not inclusive) 931 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 932 * @return the ordered range of social activity sets 933 */ 934 public java.util.List<SocialActivitySet> findAll(int start, int end, 935 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySet> orderByComparator); 936 937 /** 938 * Removes all the social activity sets from the database. 939 */ 940 public void removeAll(); 941 942 /** 943 * Returns the number of social activity sets. 944 * 945 * @return the number of social activity sets 946 */ 947 public int countAll(); 948 }