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.SocialActivitySetting; 026 027 import java.util.List; 028 029 /** 030 * The persistence utility for the social activity setting service. This utility wraps {@link com.liferay.portlet.social.service.persistence.impl.SocialActivitySettingPersistenceImpl} 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 SocialActivitySettingPersistence 038 * @see com.liferay.portlet.social.service.persistence.impl.SocialActivitySettingPersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class SocialActivitySettingUtil { 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(SocialActivitySetting socialActivitySetting) { 060 getPersistence().clearCache(socialActivitySetting); 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<SocialActivitySetting> 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<SocialActivitySetting> 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<SocialActivitySetting> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator<SocialActivitySetting> 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 SocialActivitySetting update( 101 SocialActivitySetting socialActivitySetting) { 102 return getPersistence().update(socialActivitySetting); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static SocialActivitySetting update( 109 SocialActivitySetting socialActivitySetting, 110 ServiceContext serviceContext) { 111 return getPersistence().update(socialActivitySetting, serviceContext); 112 } 113 114 /** 115 * Returns all the social activity settings where groupId = ?. 116 * 117 * @param groupId the group ID 118 * @return the matching social activity settings 119 */ 120 public static List<SocialActivitySetting> findByGroupId(long groupId) { 121 return getPersistence().findByGroupId(groupId); 122 } 123 124 /** 125 * Returns a range of all the social activity settings where groupId = ?. 126 * 127 * <p> 128 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 129 * </p> 130 * 131 * @param groupId the group ID 132 * @param start the lower bound of the range of social activity settings 133 * @param end the upper bound of the range of social activity settings (not inclusive) 134 * @return the range of matching social activity settings 135 */ 136 public static List<SocialActivitySetting> findByGroupId(long groupId, 137 int start, int end) { 138 return getPersistence().findByGroupId(groupId, start, end); 139 } 140 141 /** 142 * Returns an ordered range of all the social activity settings where groupId = ?. 143 * 144 * <p> 145 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 146 * </p> 147 * 148 * @param groupId the group ID 149 * @param start the lower bound of the range of social activity settings 150 * @param end the upper bound of the range of social activity settings (not inclusive) 151 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 152 * @return the ordered range of matching social activity settings 153 */ 154 public static List<SocialActivitySetting> findByGroupId(long groupId, 155 int start, int end, 156 OrderByComparator<SocialActivitySetting> orderByComparator) { 157 return getPersistence() 158 .findByGroupId(groupId, start, end, orderByComparator); 159 } 160 161 /** 162 * Returns an ordered range of all the social activity settings where groupId = ?. 163 * 164 * <p> 165 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 166 * </p> 167 * 168 * @param groupId the group ID 169 * @param start the lower bound of the range of social activity settings 170 * @param end the upper bound of the range of social activity settings (not inclusive) 171 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 172 * @param retrieveFromCache whether to retrieve from the finder cache 173 * @return the ordered range of matching social activity settings 174 */ 175 public static List<SocialActivitySetting> findByGroupId(long groupId, 176 int start, int end, 177 OrderByComparator<SocialActivitySetting> orderByComparator, 178 boolean retrieveFromCache) { 179 return getPersistence() 180 .findByGroupId(groupId, start, end, orderByComparator, 181 retrieveFromCache); 182 } 183 184 /** 185 * Returns the first social activity setting in the ordered set where groupId = ?. 186 * 187 * @param groupId the group ID 188 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 189 * @return the first matching social activity setting 190 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 191 */ 192 public static SocialActivitySetting findByGroupId_First(long groupId, 193 OrderByComparator<SocialActivitySetting> orderByComparator) 194 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 195 return getPersistence().findByGroupId_First(groupId, orderByComparator); 196 } 197 198 /** 199 * Returns the first social activity setting in the ordered set where groupId = ?. 200 * 201 * @param groupId the group ID 202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 203 * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 204 */ 205 public static SocialActivitySetting fetchByGroupId_First(long groupId, 206 OrderByComparator<SocialActivitySetting> orderByComparator) { 207 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 208 } 209 210 /** 211 * Returns the last social activity setting in the ordered set where groupId = ?. 212 * 213 * @param groupId the group ID 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the last matching social activity setting 216 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 217 */ 218 public static SocialActivitySetting findByGroupId_Last(long groupId, 219 OrderByComparator<SocialActivitySetting> orderByComparator) 220 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 221 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 222 } 223 224 /** 225 * Returns the last social activity setting in the ordered set where groupId = ?. 226 * 227 * @param groupId the group ID 228 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 229 * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 230 */ 231 public static SocialActivitySetting fetchByGroupId_Last(long groupId, 232 OrderByComparator<SocialActivitySetting> orderByComparator) { 233 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 234 } 235 236 /** 237 * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ?. 238 * 239 * @param activitySettingId the primary key of the current social activity setting 240 * @param groupId the group ID 241 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 242 * @return the previous, current, and next social activity setting 243 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 244 */ 245 public static SocialActivitySetting[] findByGroupId_PrevAndNext( 246 long activitySettingId, long groupId, 247 OrderByComparator<SocialActivitySetting> orderByComparator) 248 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 249 return getPersistence() 250 .findByGroupId_PrevAndNext(activitySettingId, groupId, 251 orderByComparator); 252 } 253 254 /** 255 * Removes all the social activity settings where groupId = ? from the database. 256 * 257 * @param groupId the group ID 258 */ 259 public static void removeByGroupId(long groupId) { 260 getPersistence().removeByGroupId(groupId); 261 } 262 263 /** 264 * Returns the number of social activity settings where groupId = ?. 265 * 266 * @param groupId the group ID 267 * @return the number of matching social activity settings 268 */ 269 public static int countByGroupId(long groupId) { 270 return getPersistence().countByGroupId(groupId); 271 } 272 273 /** 274 * Returns all the social activity settings where groupId = ? and classNameId = ?. 275 * 276 * @param groupId the group ID 277 * @param classNameId the class name ID 278 * @return the matching social activity settings 279 */ 280 public static List<SocialActivitySetting> findByG_C(long groupId, 281 long classNameId) { 282 return getPersistence().findByG_C(groupId, classNameId); 283 } 284 285 /** 286 * Returns a range of all the social activity settings where groupId = ? and classNameId = ?. 287 * 288 * <p> 289 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 290 * </p> 291 * 292 * @param groupId the group ID 293 * @param classNameId the class name ID 294 * @param start the lower bound of the range of social activity settings 295 * @param end the upper bound of the range of social activity settings (not inclusive) 296 * @return the range of matching social activity settings 297 */ 298 public static List<SocialActivitySetting> findByG_C(long groupId, 299 long classNameId, int start, int end) { 300 return getPersistence().findByG_C(groupId, classNameId, start, end); 301 } 302 303 /** 304 * Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ?. 305 * 306 * <p> 307 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 308 * </p> 309 * 310 * @param groupId the group ID 311 * @param classNameId the class name ID 312 * @param start the lower bound of the range of social activity settings 313 * @param end the upper bound of the range of social activity settings (not inclusive) 314 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 315 * @return the ordered range of matching social activity settings 316 */ 317 public static List<SocialActivitySetting> findByG_C(long groupId, 318 long classNameId, int start, int end, 319 OrderByComparator<SocialActivitySetting> orderByComparator) { 320 return getPersistence() 321 .findByG_C(groupId, classNameId, start, end, 322 orderByComparator); 323 } 324 325 /** 326 * Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ?. 327 * 328 * <p> 329 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 330 * </p> 331 * 332 * @param groupId the group ID 333 * @param classNameId the class name ID 334 * @param start the lower bound of the range of social activity settings 335 * @param end the upper bound of the range of social activity settings (not inclusive) 336 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 337 * @param retrieveFromCache whether to retrieve from the finder cache 338 * @return the ordered range of matching social activity settings 339 */ 340 public static List<SocialActivitySetting> findByG_C(long groupId, 341 long classNameId, int start, int end, 342 OrderByComparator<SocialActivitySetting> orderByComparator, 343 boolean retrieveFromCache) { 344 return getPersistence() 345 .findByG_C(groupId, classNameId, start, end, 346 orderByComparator, retrieveFromCache); 347 } 348 349 /** 350 * Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?. 351 * 352 * @param groupId the group ID 353 * @param classNameId the class name ID 354 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 355 * @return the first matching social activity setting 356 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 357 */ 358 public static SocialActivitySetting findByG_C_First(long groupId, 359 long classNameId, 360 OrderByComparator<SocialActivitySetting> orderByComparator) 361 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 362 return getPersistence() 363 .findByG_C_First(groupId, classNameId, orderByComparator); 364 } 365 366 /** 367 * Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?. 368 * 369 * @param groupId the group ID 370 * @param classNameId the class name ID 371 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 372 * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 373 */ 374 public static SocialActivitySetting fetchByG_C_First(long groupId, 375 long classNameId, 376 OrderByComparator<SocialActivitySetting> orderByComparator) { 377 return getPersistence() 378 .fetchByG_C_First(groupId, classNameId, orderByComparator); 379 } 380 381 /** 382 * Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?. 383 * 384 * @param groupId the group ID 385 * @param classNameId the class name ID 386 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 387 * @return the last matching social activity setting 388 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 389 */ 390 public static SocialActivitySetting findByG_C_Last(long groupId, 391 long classNameId, 392 OrderByComparator<SocialActivitySetting> orderByComparator) 393 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 394 return getPersistence() 395 .findByG_C_Last(groupId, classNameId, orderByComparator); 396 } 397 398 /** 399 * Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?. 400 * 401 * @param groupId the group ID 402 * @param classNameId the class name ID 403 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 404 * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 405 */ 406 public static SocialActivitySetting fetchByG_C_Last(long groupId, 407 long classNameId, 408 OrderByComparator<SocialActivitySetting> orderByComparator) { 409 return getPersistence() 410 .fetchByG_C_Last(groupId, classNameId, orderByComparator); 411 } 412 413 /** 414 * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ?. 415 * 416 * @param activitySettingId the primary key of the current social activity setting 417 * @param groupId the group ID 418 * @param classNameId the class name ID 419 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 420 * @return the previous, current, and next social activity setting 421 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 422 */ 423 public static SocialActivitySetting[] findByG_C_PrevAndNext( 424 long activitySettingId, long groupId, long classNameId, 425 OrderByComparator<SocialActivitySetting> orderByComparator) 426 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 427 return getPersistence() 428 .findByG_C_PrevAndNext(activitySettingId, groupId, 429 classNameId, orderByComparator); 430 } 431 432 /** 433 * Removes all the social activity settings where groupId = ? and classNameId = ? from the database. 434 * 435 * @param groupId the group ID 436 * @param classNameId the class name ID 437 */ 438 public static void removeByG_C(long groupId, long classNameId) { 439 getPersistence().removeByG_C(groupId, classNameId); 440 } 441 442 /** 443 * Returns the number of social activity settings where groupId = ? and classNameId = ?. 444 * 445 * @param groupId the group ID 446 * @param classNameId the class name ID 447 * @return the number of matching social activity settings 448 */ 449 public static int countByG_C(long groupId, long classNameId) { 450 return getPersistence().countByG_C(groupId, classNameId); 451 } 452 453 /** 454 * Returns all the social activity settings where groupId = ? and activityType = ?. 455 * 456 * @param groupId the group ID 457 * @param activityType the activity type 458 * @return the matching social activity settings 459 */ 460 public static List<SocialActivitySetting> findByG_A(long groupId, 461 int activityType) { 462 return getPersistence().findByG_A(groupId, activityType); 463 } 464 465 /** 466 * Returns a range of all the social activity settings where groupId = ? and activityType = ?. 467 * 468 * <p> 469 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 470 * </p> 471 * 472 * @param groupId the group ID 473 * @param activityType the activity type 474 * @param start the lower bound of the range of social activity settings 475 * @param end the upper bound of the range of social activity settings (not inclusive) 476 * @return the range of matching social activity settings 477 */ 478 public static List<SocialActivitySetting> findByG_A(long groupId, 479 int activityType, int start, int end) { 480 return getPersistence().findByG_A(groupId, activityType, start, end); 481 } 482 483 /** 484 * Returns an ordered range of all the social activity settings where groupId = ? and activityType = ?. 485 * 486 * <p> 487 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 488 * </p> 489 * 490 * @param groupId the group ID 491 * @param activityType the activity type 492 * @param start the lower bound of the range of social activity settings 493 * @param end the upper bound of the range of social activity settings (not inclusive) 494 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 495 * @return the ordered range of matching social activity settings 496 */ 497 public static List<SocialActivitySetting> findByG_A(long groupId, 498 int activityType, int start, int end, 499 OrderByComparator<SocialActivitySetting> orderByComparator) { 500 return getPersistence() 501 .findByG_A(groupId, activityType, start, end, 502 orderByComparator); 503 } 504 505 /** 506 * Returns an ordered range of all the social activity settings where groupId = ? and activityType = ?. 507 * 508 * <p> 509 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 510 * </p> 511 * 512 * @param groupId the group ID 513 * @param activityType the activity type 514 * @param start the lower bound of the range of social activity settings 515 * @param end the upper bound of the range of social activity settings (not inclusive) 516 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 517 * @param retrieveFromCache whether to retrieve from the finder cache 518 * @return the ordered range of matching social activity settings 519 */ 520 public static List<SocialActivitySetting> findByG_A(long groupId, 521 int activityType, int start, int end, 522 OrderByComparator<SocialActivitySetting> orderByComparator, 523 boolean retrieveFromCache) { 524 return getPersistence() 525 .findByG_A(groupId, activityType, start, end, 526 orderByComparator, retrieveFromCache); 527 } 528 529 /** 530 * Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?. 531 * 532 * @param groupId the group ID 533 * @param activityType the activity type 534 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 535 * @return the first matching social activity setting 536 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 537 */ 538 public static SocialActivitySetting findByG_A_First(long groupId, 539 int activityType, 540 OrderByComparator<SocialActivitySetting> orderByComparator) 541 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 542 return getPersistence() 543 .findByG_A_First(groupId, activityType, orderByComparator); 544 } 545 546 /** 547 * Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?. 548 * 549 * @param groupId the group ID 550 * @param activityType the activity type 551 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 552 * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 553 */ 554 public static SocialActivitySetting fetchByG_A_First(long groupId, 555 int activityType, 556 OrderByComparator<SocialActivitySetting> orderByComparator) { 557 return getPersistence() 558 .fetchByG_A_First(groupId, activityType, orderByComparator); 559 } 560 561 /** 562 * Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?. 563 * 564 * @param groupId the group ID 565 * @param activityType the activity type 566 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 567 * @return the last matching social activity setting 568 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 569 */ 570 public static SocialActivitySetting findByG_A_Last(long groupId, 571 int activityType, 572 OrderByComparator<SocialActivitySetting> orderByComparator) 573 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 574 return getPersistence() 575 .findByG_A_Last(groupId, activityType, orderByComparator); 576 } 577 578 /** 579 * Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?. 580 * 581 * @param groupId the group ID 582 * @param activityType the activity type 583 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 584 * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 585 */ 586 public static SocialActivitySetting fetchByG_A_Last(long groupId, 587 int activityType, 588 OrderByComparator<SocialActivitySetting> orderByComparator) { 589 return getPersistence() 590 .fetchByG_A_Last(groupId, activityType, orderByComparator); 591 } 592 593 /** 594 * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and activityType = ?. 595 * 596 * @param activitySettingId the primary key of the current social activity setting 597 * @param groupId the group ID 598 * @param activityType the activity type 599 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 600 * @return the previous, current, and next social activity setting 601 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 602 */ 603 public static SocialActivitySetting[] findByG_A_PrevAndNext( 604 long activitySettingId, long groupId, int activityType, 605 OrderByComparator<SocialActivitySetting> orderByComparator) 606 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 607 return getPersistence() 608 .findByG_A_PrevAndNext(activitySettingId, groupId, 609 activityType, orderByComparator); 610 } 611 612 /** 613 * Removes all the social activity settings where groupId = ? and activityType = ? from the database. 614 * 615 * @param groupId the group ID 616 * @param activityType the activity type 617 */ 618 public static void removeByG_A(long groupId, int activityType) { 619 getPersistence().removeByG_A(groupId, activityType); 620 } 621 622 /** 623 * Returns the number of social activity settings where groupId = ? and activityType = ?. 624 * 625 * @param groupId the group ID 626 * @param activityType the activity type 627 * @return the number of matching social activity settings 628 */ 629 public static int countByG_A(long groupId, int activityType) { 630 return getPersistence().countByG_A(groupId, activityType); 631 } 632 633 /** 634 * Returns all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. 635 * 636 * @param groupId the group ID 637 * @param classNameId the class name ID 638 * @param activityType the activity type 639 * @return the matching social activity settings 640 */ 641 public static List<SocialActivitySetting> findByG_C_A(long groupId, 642 long classNameId, int activityType) { 643 return getPersistence().findByG_C_A(groupId, classNameId, activityType); 644 } 645 646 /** 647 * Returns a range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. 648 * 649 * <p> 650 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 651 * </p> 652 * 653 * @param groupId the group ID 654 * @param classNameId the class name ID 655 * @param activityType the activity type 656 * @param start the lower bound of the range of social activity settings 657 * @param end the upper bound of the range of social activity settings (not inclusive) 658 * @return the range of matching social activity settings 659 */ 660 public static List<SocialActivitySetting> findByG_C_A(long groupId, 661 long classNameId, int activityType, int start, int end) { 662 return getPersistence() 663 .findByG_C_A(groupId, classNameId, activityType, start, end); 664 } 665 666 /** 667 * Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. 668 * 669 * <p> 670 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 671 * </p> 672 * 673 * @param groupId the group ID 674 * @param classNameId the class name ID 675 * @param activityType the activity type 676 * @param start the lower bound of the range of social activity settings 677 * @param end the upper bound of the range of social activity settings (not inclusive) 678 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 679 * @return the ordered range of matching social activity settings 680 */ 681 public static List<SocialActivitySetting> findByG_C_A(long groupId, 682 long classNameId, int activityType, int start, int end, 683 OrderByComparator<SocialActivitySetting> orderByComparator) { 684 return getPersistence() 685 .findByG_C_A(groupId, classNameId, activityType, start, end, 686 orderByComparator); 687 } 688 689 /** 690 * Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. 691 * 692 * <p> 693 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 694 * </p> 695 * 696 * @param groupId the group ID 697 * @param classNameId the class name ID 698 * @param activityType the activity type 699 * @param start the lower bound of the range of social activity settings 700 * @param end the upper bound of the range of social activity settings (not inclusive) 701 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 702 * @param retrieveFromCache whether to retrieve from the finder cache 703 * @return the ordered range of matching social activity settings 704 */ 705 public static List<SocialActivitySetting> findByG_C_A(long groupId, 706 long classNameId, int activityType, int start, int end, 707 OrderByComparator<SocialActivitySetting> orderByComparator, 708 boolean retrieveFromCache) { 709 return getPersistence() 710 .findByG_C_A(groupId, classNameId, activityType, start, end, 711 orderByComparator, retrieveFromCache); 712 } 713 714 /** 715 * Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 716 * 717 * @param groupId the group ID 718 * @param classNameId the class name ID 719 * @param activityType the activity type 720 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 721 * @return the first matching social activity setting 722 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 723 */ 724 public static SocialActivitySetting findByG_C_A_First(long groupId, 725 long classNameId, int activityType, 726 OrderByComparator<SocialActivitySetting> orderByComparator) 727 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 728 return getPersistence() 729 .findByG_C_A_First(groupId, classNameId, activityType, 730 orderByComparator); 731 } 732 733 /** 734 * Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 735 * 736 * @param groupId the group ID 737 * @param classNameId the class name ID 738 * @param activityType the activity type 739 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 740 * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 741 */ 742 public static SocialActivitySetting fetchByG_C_A_First(long groupId, 743 long classNameId, int activityType, 744 OrderByComparator<SocialActivitySetting> orderByComparator) { 745 return getPersistence() 746 .fetchByG_C_A_First(groupId, classNameId, activityType, 747 orderByComparator); 748 } 749 750 /** 751 * Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 752 * 753 * @param groupId the group ID 754 * @param classNameId the class name ID 755 * @param activityType the activity type 756 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 757 * @return the last matching social activity setting 758 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 759 */ 760 public static SocialActivitySetting findByG_C_A_Last(long groupId, 761 long classNameId, int activityType, 762 OrderByComparator<SocialActivitySetting> orderByComparator) 763 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 764 return getPersistence() 765 .findByG_C_A_Last(groupId, classNameId, activityType, 766 orderByComparator); 767 } 768 769 /** 770 * Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 771 * 772 * @param groupId the group ID 773 * @param classNameId the class name ID 774 * @param activityType the activity type 775 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 776 * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 777 */ 778 public static SocialActivitySetting fetchByG_C_A_Last(long groupId, 779 long classNameId, int activityType, 780 OrderByComparator<SocialActivitySetting> orderByComparator) { 781 return getPersistence() 782 .fetchByG_C_A_Last(groupId, classNameId, activityType, 783 orderByComparator); 784 } 785 786 /** 787 * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 788 * 789 * @param activitySettingId the primary key of the current social activity setting 790 * @param groupId the group ID 791 * @param classNameId the class name ID 792 * @param activityType the activity type 793 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 794 * @return the previous, current, and next social activity setting 795 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 796 */ 797 public static SocialActivitySetting[] findByG_C_A_PrevAndNext( 798 long activitySettingId, long groupId, long classNameId, 799 int activityType, 800 OrderByComparator<SocialActivitySetting> orderByComparator) 801 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 802 return getPersistence() 803 .findByG_C_A_PrevAndNext(activitySettingId, groupId, 804 classNameId, activityType, orderByComparator); 805 } 806 807 /** 808 * Removes all the social activity settings where groupId = ? and classNameId = ? and activityType = ? from the database. 809 * 810 * @param groupId the group ID 811 * @param classNameId the class name ID 812 * @param activityType the activity type 813 */ 814 public static void removeByG_C_A(long groupId, long classNameId, 815 int activityType) { 816 getPersistence().removeByG_C_A(groupId, classNameId, activityType); 817 } 818 819 /** 820 * Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ?. 821 * 822 * @param groupId the group ID 823 * @param classNameId the class name ID 824 * @param activityType the activity type 825 * @return the number of matching social activity settings 826 */ 827 public static int countByG_C_A(long groupId, long classNameId, 828 int activityType) { 829 return getPersistence().countByG_C_A(groupId, classNameId, activityType); 830 } 831 832 /** 833 * Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or throws a {@link NoSuchActivitySettingException} if it could not be found. 834 * 835 * @param groupId the group ID 836 * @param classNameId the class name ID 837 * @param activityType the activity type 838 * @param name the name 839 * @return the matching social activity setting 840 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 841 */ 842 public static SocialActivitySetting findByG_C_A_N(long groupId, 843 long classNameId, int activityType, java.lang.String name) 844 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 845 return getPersistence() 846 .findByG_C_A_N(groupId, classNameId, activityType, name); 847 } 848 849 /** 850 * Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 851 * 852 * @param groupId the group ID 853 * @param classNameId the class name ID 854 * @param activityType the activity type 855 * @param name the name 856 * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 857 */ 858 public static SocialActivitySetting fetchByG_C_A_N(long groupId, 859 long classNameId, int activityType, java.lang.String name) { 860 return getPersistence() 861 .fetchByG_C_A_N(groupId, classNameId, activityType, name); 862 } 863 864 /** 865 * Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 866 * 867 * @param groupId the group ID 868 * @param classNameId the class name ID 869 * @param activityType the activity type 870 * @param name the name 871 * @param retrieveFromCache whether to retrieve from the finder cache 872 * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 873 */ 874 public static SocialActivitySetting fetchByG_C_A_N(long groupId, 875 long classNameId, int activityType, java.lang.String name, 876 boolean retrieveFromCache) { 877 return getPersistence() 878 .fetchByG_C_A_N(groupId, classNameId, activityType, name, 879 retrieveFromCache); 880 } 881 882 /** 883 * Removes the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? from the database. 884 * 885 * @param groupId the group ID 886 * @param classNameId the class name ID 887 * @param activityType the activity type 888 * @param name the name 889 * @return the social activity setting that was removed 890 */ 891 public static SocialActivitySetting removeByG_C_A_N(long groupId, 892 long classNameId, int activityType, java.lang.String name) 893 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 894 return getPersistence() 895 .removeByG_C_A_N(groupId, classNameId, activityType, name); 896 } 897 898 /** 899 * Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ? and name = ?. 900 * 901 * @param groupId the group ID 902 * @param classNameId the class name ID 903 * @param activityType the activity type 904 * @param name the name 905 * @return the number of matching social activity settings 906 */ 907 public static int countByG_C_A_N(long groupId, long classNameId, 908 int activityType, java.lang.String name) { 909 return getPersistence() 910 .countByG_C_A_N(groupId, classNameId, activityType, name); 911 } 912 913 /** 914 * Caches the social activity setting in the entity cache if it is enabled. 915 * 916 * @param socialActivitySetting the social activity setting 917 */ 918 public static void cacheResult(SocialActivitySetting socialActivitySetting) { 919 getPersistence().cacheResult(socialActivitySetting); 920 } 921 922 /** 923 * Caches the social activity settings in the entity cache if it is enabled. 924 * 925 * @param socialActivitySettings the social activity settings 926 */ 927 public static void cacheResult( 928 List<SocialActivitySetting> socialActivitySettings) { 929 getPersistence().cacheResult(socialActivitySettings); 930 } 931 932 /** 933 * Creates a new social activity setting with the primary key. Does not add the social activity setting to the database. 934 * 935 * @param activitySettingId the primary key for the new social activity setting 936 * @return the new social activity setting 937 */ 938 public static SocialActivitySetting create(long activitySettingId) { 939 return getPersistence().create(activitySettingId); 940 } 941 942 /** 943 * Removes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners. 944 * 945 * @param activitySettingId the primary key of the social activity setting 946 * @return the social activity setting that was removed 947 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 948 */ 949 public static SocialActivitySetting remove(long activitySettingId) 950 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 951 return getPersistence().remove(activitySettingId); 952 } 953 954 public static SocialActivitySetting updateImpl( 955 SocialActivitySetting socialActivitySetting) { 956 return getPersistence().updateImpl(socialActivitySetting); 957 } 958 959 /** 960 * Returns the social activity setting with the primary key or throws a {@link NoSuchActivitySettingException} if it could not be found. 961 * 962 * @param activitySettingId the primary key of the social activity setting 963 * @return the social activity setting 964 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 965 */ 966 public static SocialActivitySetting findByPrimaryKey(long activitySettingId) 967 throws com.liferay.portlet.social.exception.NoSuchActivitySettingException { 968 return getPersistence().findByPrimaryKey(activitySettingId); 969 } 970 971 /** 972 * Returns the social activity setting with the primary key or returns <code>null</code> if it could not be found. 973 * 974 * @param activitySettingId the primary key of the social activity setting 975 * @return the social activity setting, or <code>null</code> if a social activity setting with the primary key could not be found 976 */ 977 public static SocialActivitySetting fetchByPrimaryKey( 978 long activitySettingId) { 979 return getPersistence().fetchByPrimaryKey(activitySettingId); 980 } 981 982 public static java.util.Map<java.io.Serializable, SocialActivitySetting> fetchByPrimaryKeys( 983 java.util.Set<java.io.Serializable> primaryKeys) { 984 return getPersistence().fetchByPrimaryKeys(primaryKeys); 985 } 986 987 /** 988 * Returns all the social activity settings. 989 * 990 * @return the social activity settings 991 */ 992 public static List<SocialActivitySetting> findAll() { 993 return getPersistence().findAll(); 994 } 995 996 /** 997 * Returns a range of all the social activity settings. 998 * 999 * <p> 1000 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 1001 * </p> 1002 * 1003 * @param start the lower bound of the range of social activity settings 1004 * @param end the upper bound of the range of social activity settings (not inclusive) 1005 * @return the range of social activity settings 1006 */ 1007 public static List<SocialActivitySetting> findAll(int start, int end) { 1008 return getPersistence().findAll(start, end); 1009 } 1010 1011 /** 1012 * Returns an ordered range of all the social activity settings. 1013 * 1014 * <p> 1015 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 1016 * </p> 1017 * 1018 * @param start the lower bound of the range of social activity settings 1019 * @param end the upper bound of the range of social activity settings (not inclusive) 1020 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1021 * @return the ordered range of social activity settings 1022 */ 1023 public static List<SocialActivitySetting> findAll(int start, int end, 1024 OrderByComparator<SocialActivitySetting> orderByComparator) { 1025 return getPersistence().findAll(start, end, orderByComparator); 1026 } 1027 1028 /** 1029 * Returns an ordered range of all the social activity settings. 1030 * 1031 * <p> 1032 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. 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. 1033 * </p> 1034 * 1035 * @param start the lower bound of the range of social activity settings 1036 * @param end the upper bound of the range of social activity settings (not inclusive) 1037 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1038 * @param retrieveFromCache whether to retrieve from the finder cache 1039 * @return the ordered range of social activity settings 1040 */ 1041 public static List<SocialActivitySetting> findAll(int start, int end, 1042 OrderByComparator<SocialActivitySetting> orderByComparator, 1043 boolean retrieveFromCache) { 1044 return getPersistence() 1045 .findAll(start, end, orderByComparator, retrieveFromCache); 1046 } 1047 1048 /** 1049 * Removes all the social activity settings from the database. 1050 */ 1051 public static void removeAll() { 1052 getPersistence().removeAll(); 1053 } 1054 1055 /** 1056 * Returns the number of social activity settings. 1057 * 1058 * @return the number of social activity settings 1059 */ 1060 public static int countAll() { 1061 return getPersistence().countAll(); 1062 } 1063 1064 public static SocialActivitySettingPersistence getPersistence() { 1065 if (_persistence == null) { 1066 _persistence = (SocialActivitySettingPersistence)PortalBeanLocatorUtil.locate(SocialActivitySettingPersistence.class.getName()); 1067 1068 ReferenceRegistry.registerReference(SocialActivitySettingUtil.class, 1069 "_persistence"); 1070 } 1071 1072 return _persistence; 1073 } 1074 1075 private static SocialActivitySettingPersistence _persistence; 1076 }