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