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