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