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