001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.social.kernel.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.service.persistence.BasePersistence; 020 021 import com.liferay.social.kernel.exception.NoSuchActivitySettingException; 022 import com.liferay.social.kernel.model.SocialActivitySetting; 023 024 /** 025 * The persistence interface for the social activity setting service. 026 * 027 * <p> 028 * Caching information and settings can be found in <code>portal.properties</code> 029 * </p> 030 * 031 * @author Brian Wing Shun Chan 032 * @see com.liferay.portlet.social.service.persistence.impl.SocialActivitySettingPersistenceImpl 033 * @see SocialActivitySettingUtil 034 * @generated 035 */ 036 @ProviderType 037 public interface SocialActivitySettingPersistence extends BasePersistence<SocialActivitySetting> { 038 /* 039 * NOTE FOR DEVELOPERS: 040 * 041 * Never modify or reference this interface directly. Always use {@link SocialActivitySettingUtil} to access the social activity setting persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 042 */ 043 044 /** 045 * Returns all the social activity settings where groupId = ?. 046 * 047 * @param groupId the group ID 048 * @return the matching social activity settings 049 */ 050 public java.util.List<SocialActivitySetting> findByGroupId(long groupId); 051 052 /** 053 * Returns a range of all the social activity settings where groupId = ?. 054 * 055 * <p> 056 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 057 * </p> 058 * 059 * @param groupId the group ID 060 * @param start the lower bound of the range of social activity settings 061 * @param end the upper bound of the range of social activity settings (not inclusive) 062 * @return the range of matching social activity settings 063 */ 064 public java.util.List<SocialActivitySetting> findByGroupId(long groupId, 065 int start, int end); 066 067 /** 068 * Returns an ordered range of all the social activity settings where groupId = ?. 069 * 070 * <p> 071 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 072 * </p> 073 * 074 * @param groupId the group ID 075 * @param start the lower bound of the range of social activity settings 076 * @param end the upper bound of the range of social activity settings (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching social activity settings 079 */ 080 public java.util.List<SocialActivitySetting> findByGroupId(long groupId, 081 int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 083 084 /** 085 * Returns an ordered range of all the social activity settings where groupId = ?. 086 * 087 * <p> 088 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 089 * </p> 090 * 091 * @param groupId the group ID 092 * @param start the lower bound of the range of social activity settings 093 * @param end the upper bound of the range of social activity settings (not inclusive) 094 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 095 * @param retrieveFromCache whether to retrieve from the finder cache 096 * @return the ordered range of matching social activity settings 097 */ 098 public java.util.List<SocialActivitySetting> findByGroupId(long groupId, 099 int start, int end, 100 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator, 101 boolean retrieveFromCache); 102 103 /** 104 * Returns the first social activity setting in the ordered set where groupId = ?. 105 * 106 * @param groupId the group ID 107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 108 * @return the first matching social activity setting 109 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 110 */ 111 public SocialActivitySetting findByGroupId_First(long groupId, 112 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 113 throws NoSuchActivitySettingException; 114 115 /** 116 * Returns the first social activity setting in the ordered set where groupId = ?. 117 * 118 * @param groupId the group ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 121 */ 122 public SocialActivitySetting fetchByGroupId_First(long groupId, 123 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 124 125 /** 126 * Returns the last social activity setting in the ordered set where groupId = ?. 127 * 128 * @param groupId the group ID 129 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 130 * @return the last matching social activity setting 131 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 132 */ 133 public SocialActivitySetting findByGroupId_Last(long groupId, 134 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 135 throws NoSuchActivitySettingException; 136 137 /** 138 * Returns the last social activity setting in the ordered set where groupId = ?. 139 * 140 * @param groupId the group ID 141 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 142 * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 143 */ 144 public SocialActivitySetting fetchByGroupId_Last(long groupId, 145 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 146 147 /** 148 * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ?. 149 * 150 * @param activitySettingId the primary key of the current social activity setting 151 * @param groupId the group ID 152 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 153 * @return the previous, current, and next social activity setting 154 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 155 */ 156 public SocialActivitySetting[] findByGroupId_PrevAndNext( 157 long activitySettingId, long groupId, 158 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 159 throws NoSuchActivitySettingException; 160 161 /** 162 * Removes all the social activity settings where groupId = ? from the database. 163 * 164 * @param groupId the group ID 165 */ 166 public void removeByGroupId(long groupId); 167 168 /** 169 * Returns the number of social activity settings where groupId = ?. 170 * 171 * @param groupId the group ID 172 * @return the number of matching social activity settings 173 */ 174 public int countByGroupId(long groupId); 175 176 /** 177 * Returns all the social activity settings where groupId = ? and classNameId = ?. 178 * 179 * @param groupId the group ID 180 * @param classNameId the class name ID 181 * @return the matching social activity settings 182 */ 183 public java.util.List<SocialActivitySetting> findByG_C(long groupId, 184 long classNameId); 185 186 /** 187 * Returns a range of all the social activity settings where groupId = ? and classNameId = ?. 188 * 189 * <p> 190 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 191 * </p> 192 * 193 * @param groupId the group ID 194 * @param classNameId the class name ID 195 * @param start the lower bound of the range of social activity settings 196 * @param end the upper bound of the range of social activity settings (not inclusive) 197 * @return the range of matching social activity settings 198 */ 199 public java.util.List<SocialActivitySetting> findByG_C(long groupId, 200 long classNameId, int start, int end); 201 202 /** 203 * Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ?. 204 * 205 * <p> 206 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 207 * </p> 208 * 209 * @param groupId the group ID 210 * @param classNameId the class name ID 211 * @param start the lower bound of the range of social activity settings 212 * @param end the upper bound of the range of social activity settings (not inclusive) 213 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 214 * @return the ordered range of matching social activity settings 215 */ 216 public java.util.List<SocialActivitySetting> findByG_C(long groupId, 217 long classNameId, int start, int end, 218 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 219 220 /** 221 * Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ?. 222 * 223 * <p> 224 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 225 * </p> 226 * 227 * @param groupId the group ID 228 * @param classNameId the class name ID 229 * @param start the lower bound of the range of social activity settings 230 * @param end the upper bound of the range of social activity settings (not inclusive) 231 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 232 * @param retrieveFromCache whether to retrieve from the finder cache 233 * @return the ordered range of matching social activity settings 234 */ 235 public java.util.List<SocialActivitySetting> findByG_C(long groupId, 236 long classNameId, int start, int end, 237 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator, 238 boolean retrieveFromCache); 239 240 /** 241 * Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?. 242 * 243 * @param groupId the group ID 244 * @param classNameId the class name ID 245 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 246 * @return the first matching social activity setting 247 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 248 */ 249 public SocialActivitySetting findByG_C_First(long groupId, 250 long classNameId, 251 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 252 throws NoSuchActivitySettingException; 253 254 /** 255 * Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ?. 256 * 257 * @param groupId the group ID 258 * @param classNameId the class name ID 259 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 260 * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 261 */ 262 public SocialActivitySetting fetchByG_C_First(long groupId, 263 long classNameId, 264 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 265 266 /** 267 * Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?. 268 * 269 * @param groupId the group ID 270 * @param classNameId the class name ID 271 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 272 * @return the last matching social activity setting 273 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 274 */ 275 public SocialActivitySetting findByG_C_Last(long groupId, long classNameId, 276 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 277 throws NoSuchActivitySettingException; 278 279 /** 280 * Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ?. 281 * 282 * @param groupId the group ID 283 * @param classNameId the class name ID 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 286 */ 287 public SocialActivitySetting fetchByG_C_Last(long groupId, 288 long classNameId, 289 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 290 291 /** 292 * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ?. 293 * 294 * @param activitySettingId the primary key of the current social activity setting 295 * @param groupId the group ID 296 * @param classNameId the class name ID 297 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 298 * @return the previous, current, and next social activity setting 299 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 300 */ 301 public SocialActivitySetting[] findByG_C_PrevAndNext( 302 long activitySettingId, long groupId, long classNameId, 303 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 304 throws NoSuchActivitySettingException; 305 306 /** 307 * Removes all the social activity settings where groupId = ? and classNameId = ? from the database. 308 * 309 * @param groupId the group ID 310 * @param classNameId the class name ID 311 */ 312 public void removeByG_C(long groupId, long classNameId); 313 314 /** 315 * Returns the number of social activity settings where groupId = ? and classNameId = ?. 316 * 317 * @param groupId the group ID 318 * @param classNameId the class name ID 319 * @return the number of matching social activity settings 320 */ 321 public int countByG_C(long groupId, long classNameId); 322 323 /** 324 * Returns all the social activity settings where groupId = ? and activityType = ?. 325 * 326 * @param groupId the group ID 327 * @param activityType the activity type 328 * @return the matching social activity settings 329 */ 330 public java.util.List<SocialActivitySetting> findByG_A(long groupId, 331 int activityType); 332 333 /** 334 * Returns a range of all the social activity settings where groupId = ? and activityType = ?. 335 * 336 * <p> 337 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 338 * </p> 339 * 340 * @param groupId the group ID 341 * @param activityType the activity type 342 * @param start the lower bound of the range of social activity settings 343 * @param end the upper bound of the range of social activity settings (not inclusive) 344 * @return the range of matching social activity settings 345 */ 346 public java.util.List<SocialActivitySetting> findByG_A(long groupId, 347 int activityType, int start, int end); 348 349 /** 350 * Returns an ordered range of all the social activity settings where groupId = ? and activityType = ?. 351 * 352 * <p> 353 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 354 * </p> 355 * 356 * @param groupId the group ID 357 * @param activityType the activity type 358 * @param start the lower bound of the range of social activity settings 359 * @param end the upper bound of the range of social activity settings (not inclusive) 360 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 361 * @return the ordered range of matching social activity settings 362 */ 363 public java.util.List<SocialActivitySetting> findByG_A(long groupId, 364 int activityType, int start, int end, 365 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 366 367 /** 368 * Returns an ordered range of all the social activity settings where groupId = ? and activityType = ?. 369 * 370 * <p> 371 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 372 * </p> 373 * 374 * @param groupId the group ID 375 * @param activityType the activity type 376 * @param start the lower bound of the range of social activity settings 377 * @param end the upper bound of the range of social activity settings (not inclusive) 378 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 379 * @param retrieveFromCache whether to retrieve from the finder cache 380 * @return the ordered range of matching social activity settings 381 */ 382 public java.util.List<SocialActivitySetting> findByG_A(long groupId, 383 int activityType, int start, int end, 384 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator, 385 boolean retrieveFromCache); 386 387 /** 388 * Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?. 389 * 390 * @param groupId the group ID 391 * @param activityType the activity type 392 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 393 * @return the first matching social activity setting 394 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 395 */ 396 public SocialActivitySetting findByG_A_First(long groupId, 397 int activityType, 398 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 399 throws NoSuchActivitySettingException; 400 401 /** 402 * Returns the first social activity setting in the ordered set where groupId = ? and activityType = ?. 403 * 404 * @param groupId the group ID 405 * @param activityType the activity type 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 408 */ 409 public SocialActivitySetting fetchByG_A_First(long groupId, 410 int activityType, 411 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 412 413 /** 414 * Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?. 415 * 416 * @param groupId the group ID 417 * @param activityType the activity type 418 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 419 * @return the last matching social activity setting 420 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 421 */ 422 public SocialActivitySetting findByG_A_Last(long groupId, int activityType, 423 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 424 throws NoSuchActivitySettingException; 425 426 /** 427 * Returns the last social activity setting in the ordered set where groupId = ? and activityType = ?. 428 * 429 * @param groupId the group ID 430 * @param activityType the activity type 431 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 432 * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 433 */ 434 public SocialActivitySetting fetchByG_A_Last(long groupId, 435 int activityType, 436 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 437 438 /** 439 * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and activityType = ?. 440 * 441 * @param activitySettingId the primary key of the current social activity setting 442 * @param groupId the group ID 443 * @param activityType the activity type 444 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 445 * @return the previous, current, and next social activity setting 446 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 447 */ 448 public SocialActivitySetting[] findByG_A_PrevAndNext( 449 long activitySettingId, long groupId, int activityType, 450 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 451 throws NoSuchActivitySettingException; 452 453 /** 454 * Removes all the social activity settings where groupId = ? and activityType = ? from the database. 455 * 456 * @param groupId the group ID 457 * @param activityType the activity type 458 */ 459 public void removeByG_A(long groupId, int activityType); 460 461 /** 462 * Returns the number of social activity settings where groupId = ? and activityType = ?. 463 * 464 * @param groupId the group ID 465 * @param activityType the activity type 466 * @return the number of matching social activity settings 467 */ 468 public int countByG_A(long groupId, int activityType); 469 470 /** 471 * Returns all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. 472 * 473 * @param groupId the group ID 474 * @param classNameId the class name ID 475 * @param activityType the activity type 476 * @return the matching social activity settings 477 */ 478 public java.util.List<SocialActivitySetting> findByG_C_A(long groupId, 479 long classNameId, int activityType); 480 481 /** 482 * Returns a range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. 483 * 484 * <p> 485 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 486 * </p> 487 * 488 * @param groupId the group ID 489 * @param classNameId the class name ID 490 * @param activityType the activity type 491 * @param start the lower bound of the range of social activity settings 492 * @param end the upper bound of the range of social activity settings (not inclusive) 493 * @return the range of matching social activity settings 494 */ 495 public java.util.List<SocialActivitySetting> findByG_C_A(long groupId, 496 long classNameId, int activityType, int start, int end); 497 498 /** 499 * Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ? and activityType = ?. 500 * 501 * <p> 502 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 503 * </p> 504 * 505 * @param groupId the group ID 506 * @param classNameId the class name ID 507 * @param activityType the activity type 508 * @param start the lower bound of the range of social activity settings 509 * @param end the upper bound of the range of social activity settings (not inclusive) 510 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 511 * @return the ordered range of matching social activity settings 512 */ 513 public java.util.List<SocialActivitySetting> findByG_C_A(long groupId, 514 long classNameId, int activityType, int start, int end, 515 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 516 517 /** 518 * Returns an ordered range of all the social activity settings where groupId = ? and classNameId = ? 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 522 * </p> 523 * 524 * @param groupId the group ID 525 * @param classNameId the class name ID 526 * @param activityType the activity type 527 * @param start the lower bound of the range of social activity settings 528 * @param end the upper bound of the range of social activity settings (not inclusive) 529 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 530 * @param retrieveFromCache whether to retrieve from the finder cache 531 * @return the ordered range of matching social activity settings 532 */ 533 public java.util.List<SocialActivitySetting> findByG_C_A(long groupId, 534 long classNameId, int activityType, int start, int end, 535 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator, 536 boolean retrieveFromCache); 537 538 /** 539 * Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 540 * 541 * @param groupId the group ID 542 * @param classNameId the class name ID 543 * @param activityType the activity type 544 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 545 * @return the first matching social activity setting 546 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 547 */ 548 public SocialActivitySetting findByG_C_A_First(long groupId, 549 long classNameId, int activityType, 550 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 551 throws NoSuchActivitySettingException; 552 553 /** 554 * Returns the first social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 555 * 556 * @param groupId the group ID 557 * @param classNameId the class name ID 558 * @param activityType the activity type 559 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 560 * @return the first matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 561 */ 562 public SocialActivitySetting fetchByG_C_A_First(long groupId, 563 long classNameId, int activityType, 564 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 565 566 /** 567 * Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 568 * 569 * @param groupId the group ID 570 * @param classNameId the class name 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 574 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 575 */ 576 public SocialActivitySetting findByG_C_A_Last(long groupId, 577 long classNameId, int activityType, 578 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 579 throws NoSuchActivitySettingException; 580 581 /** 582 * Returns the last social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 583 * 584 * @param groupId the group ID 585 * @param classNameId the class name ID 586 * @param activityType the activity type 587 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 588 * @return the last matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 589 */ 590 public SocialActivitySetting fetchByG_C_A_Last(long groupId, 591 long classNameId, int activityType, 592 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 593 594 /** 595 * Returns the social activity settings before and after the current social activity setting in the ordered set where groupId = ? and classNameId = ? and activityType = ?. 596 * 597 * @param activitySettingId the primary key of the current social activity setting 598 * @param groupId the group ID 599 * @param classNameId the class name ID 600 * @param activityType the activity type 601 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 602 * @return the previous, current, and next social activity setting 603 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 604 */ 605 public SocialActivitySetting[] findByG_C_A_PrevAndNext( 606 long activitySettingId, long groupId, long classNameId, 607 int activityType, 608 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator) 609 throws NoSuchActivitySettingException; 610 611 /** 612 * Removes all the social activity settings where groupId = ? and classNameId = ? and activityType = ? from the database. 613 * 614 * @param groupId the group ID 615 * @param classNameId the class name ID 616 * @param activityType the activity type 617 */ 618 public void removeByG_C_A(long groupId, long classNameId, int activityType); 619 620 /** 621 * Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ?. 622 * 623 * @param groupId the group ID 624 * @param classNameId the class name ID 625 * @param activityType the activity type 626 * @return the number of matching social activity settings 627 */ 628 public int countByG_C_A(long groupId, long classNameId, int activityType); 629 630 /** 631 * Returns the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? or throws a {@link NoSuchActivitySettingException} if it could not be found. 632 * 633 * @param groupId the group ID 634 * @param classNameId the class name ID 635 * @param activityType the activity type 636 * @param name the name 637 * @return the matching social activity setting 638 * @throws NoSuchActivitySettingException if a matching social activity setting could not be found 639 */ 640 public SocialActivitySetting findByG_C_A_N(long groupId, long classNameId, 641 int activityType, java.lang.String name) 642 throws NoSuchActivitySettingException; 643 644 /** 645 * 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. 646 * 647 * @param groupId the group ID 648 * @param classNameId the class name ID 649 * @param activityType the activity type 650 * @param name the name 651 * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 652 */ 653 public SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, 654 int activityType, java.lang.String name); 655 656 /** 657 * 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. 658 * 659 * @param groupId the group ID 660 * @param classNameId the class name ID 661 * @param activityType the activity type 662 * @param name the name 663 * @param retrieveFromCache whether to retrieve from the finder cache 664 * @return the matching social activity setting, or <code>null</code> if a matching social activity setting could not be found 665 */ 666 public SocialActivitySetting fetchByG_C_A_N(long groupId, long classNameId, 667 int activityType, java.lang.String name, boolean retrieveFromCache); 668 669 /** 670 * Removes the social activity setting where groupId = ? and classNameId = ? and activityType = ? and name = ? from the database. 671 * 672 * @param groupId the group ID 673 * @param classNameId the class name ID 674 * @param activityType the activity type 675 * @param name the name 676 * @return the social activity setting that was removed 677 */ 678 public SocialActivitySetting removeByG_C_A_N(long groupId, 679 long classNameId, int activityType, java.lang.String name) 680 throws NoSuchActivitySettingException; 681 682 /** 683 * Returns the number of social activity settings where groupId = ? and classNameId = ? and activityType = ? and name = ?. 684 * 685 * @param groupId the group ID 686 * @param classNameId the class name ID 687 * @param activityType the activity type 688 * @param name the name 689 * @return the number of matching social activity settings 690 */ 691 public int countByG_C_A_N(long groupId, long classNameId, int activityType, 692 java.lang.String name); 693 694 /** 695 * Caches the social activity setting in the entity cache if it is enabled. 696 * 697 * @param socialActivitySetting the social activity setting 698 */ 699 public void cacheResult(SocialActivitySetting socialActivitySetting); 700 701 /** 702 * Caches the social activity settings in the entity cache if it is enabled. 703 * 704 * @param socialActivitySettings the social activity settings 705 */ 706 public void cacheResult( 707 java.util.List<SocialActivitySetting> socialActivitySettings); 708 709 /** 710 * Creates a new social activity setting with the primary key. Does not add the social activity setting to the database. 711 * 712 * @param activitySettingId the primary key for the new social activity setting 713 * @return the new social activity setting 714 */ 715 public SocialActivitySetting create(long activitySettingId); 716 717 /** 718 * Removes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners. 719 * 720 * @param activitySettingId the primary key of the social activity setting 721 * @return the social activity setting that was removed 722 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 723 */ 724 public SocialActivitySetting remove(long activitySettingId) 725 throws NoSuchActivitySettingException; 726 727 public SocialActivitySetting updateImpl( 728 SocialActivitySetting socialActivitySetting); 729 730 /** 731 * Returns the social activity setting with the primary key or throws a {@link NoSuchActivitySettingException} if it could not be found. 732 * 733 * @param activitySettingId the primary key of the social activity setting 734 * @return the social activity setting 735 * @throws NoSuchActivitySettingException if a social activity setting with the primary key could not be found 736 */ 737 public SocialActivitySetting findByPrimaryKey(long activitySettingId) 738 throws NoSuchActivitySettingException; 739 740 /** 741 * Returns the social activity setting with the primary key or returns <code>null</code> if it could not be found. 742 * 743 * @param activitySettingId the primary key of the social activity setting 744 * @return the social activity setting, or <code>null</code> if a social activity setting with the primary key could not be found 745 */ 746 public SocialActivitySetting fetchByPrimaryKey(long activitySettingId); 747 748 @Override 749 public java.util.Map<java.io.Serializable, SocialActivitySetting> fetchByPrimaryKeys( 750 java.util.Set<java.io.Serializable> primaryKeys); 751 752 /** 753 * Returns all the social activity settings. 754 * 755 * @return the social activity settings 756 */ 757 public java.util.List<SocialActivitySetting> findAll(); 758 759 /** 760 * Returns a range of all the social activity settings. 761 * 762 * <p> 763 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 764 * </p> 765 * 766 * @param start the lower bound of the range of social activity settings 767 * @param end the upper bound of the range of social activity settings (not inclusive) 768 * @return the range of social activity settings 769 */ 770 public java.util.List<SocialActivitySetting> findAll(int start, int end); 771 772 /** 773 * Returns an ordered range of all the social activity settings. 774 * 775 * <p> 776 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 777 * </p> 778 * 779 * @param start the lower bound of the range of social activity settings 780 * @param end the upper bound of the range of social activity settings (not inclusive) 781 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 782 * @return the ordered range of social activity settings 783 */ 784 public java.util.List<SocialActivitySetting> findAll(int start, int end, 785 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator); 786 787 /** 788 * Returns an ordered range of all the social activity settings. 789 * 790 * <p> 791 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link SocialActivitySettingModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 792 * </p> 793 * 794 * @param start the lower bound of the range of social activity settings 795 * @param end the upper bound of the range of social activity settings (not inclusive) 796 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 797 * @param retrieveFromCache whether to retrieve from the finder cache 798 * @return the ordered range of social activity settings 799 */ 800 public java.util.List<SocialActivitySetting> findAll(int start, int end, 801 com.liferay.portal.kernel.util.OrderByComparator<SocialActivitySetting> orderByComparator, 802 boolean retrieveFromCache); 803 804 /** 805 * Removes all the social activity settings from the database. 806 */ 807 public void removeAll(); 808 809 /** 810 * Returns the number of social activity settings. 811 * 812 * @return the number of social activity settings 813 */ 814 public int countAll(); 815 }