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