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