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