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 com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.social.model.SocialActivitySet; 020 021 /** 022 * The persistence interface for the social activity set service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see SocialActivitySetPersistenceImpl 030 * @see SocialActivitySetUtil 031 * @generated 032 */ 033 public interface SocialActivitySetPersistence extends BasePersistence<SocialActivitySet> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * 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. 038 */ 039 040 /** 041 * Returns all the social activity sets where groupId = ? and userId = ? and type = ?. 042 * 043 * @param groupId the group ID 044 * @param userId the user ID 045 * @param type the type 046 * @return the matching social activity sets 047 * @throws SystemException if a system exception occurred 048 */ 049 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByG_U_T( 050 long groupId, long userId, int type) 051 throws com.liferay.portal.kernel.exception.SystemException; 052 053 /** 054 * Returns a range of all the social activity sets where groupId = ? and userId = ? and type = ?. 055 * 056 * <p> 057 * 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. 058 * </p> 059 * 060 * @param groupId the group ID 061 * @param userId the user ID 062 * @param type the type 063 * @param start the lower bound of the range of social activity sets 064 * @param end the upper bound of the range of social activity sets (not inclusive) 065 * @return the range of matching social activity sets 066 * @throws SystemException if a system exception occurred 067 */ 068 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByG_U_T( 069 long groupId, long userId, int type, int start, int end) 070 throws com.liferay.portal.kernel.exception.SystemException; 071 072 /** 073 * Returns an ordered range of all the social activity sets where groupId = ? and userId = ? and type = ?. 074 * 075 * <p> 076 * 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. 077 * </p> 078 * 079 * @param groupId the group ID 080 * @param userId the user ID 081 * @param type the type 082 * @param start the lower bound of the range of social activity sets 083 * @param end the upper bound of the range of social activity sets (not inclusive) 084 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 085 * @return the ordered range of matching social activity sets 086 * @throws SystemException if a system exception occurred 087 */ 088 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByG_U_T( 089 long groupId, long userId, int type, int start, int end, 090 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 091 throws com.liferay.portal.kernel.exception.SystemException; 092 093 /** 094 * Returns the first social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 095 * 096 * @param groupId the group ID 097 * @param userId the user ID 098 * @param type the type 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching social activity set 101 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found 102 * @throws SystemException if a system exception occurred 103 */ 104 public com.liferay.portlet.social.model.SocialActivitySet findByG_U_T_First( 105 long groupId, long userId, int type, 106 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 107 throws com.liferay.portal.kernel.exception.SystemException, 108 com.liferay.portlet.social.NoSuchActivitySetException; 109 110 /** 111 * Returns the first social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 112 * 113 * @param groupId the group ID 114 * @param userId the user ID 115 * @param type the type 116 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 117 * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found 118 * @throws SystemException if a system exception occurred 119 */ 120 public com.liferay.portlet.social.model.SocialActivitySet fetchByG_U_T_First( 121 long groupId, long userId, int type, 122 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 123 throws com.liferay.portal.kernel.exception.SystemException; 124 125 /** 126 * Returns the last social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 127 * 128 * @param groupId the group ID 129 * @param userId the user ID 130 * @param type the type 131 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 132 * @return the last matching social activity set 133 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found 134 * @throws SystemException if a system exception occurred 135 */ 136 public com.liferay.portlet.social.model.SocialActivitySet findByG_U_T_Last( 137 long groupId, long userId, int type, 138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 139 throws com.liferay.portal.kernel.exception.SystemException, 140 com.liferay.portlet.social.NoSuchActivitySetException; 141 142 /** 143 * Returns the last social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 144 * 145 * @param groupId the group ID 146 * @param userId the user ID 147 * @param type the type 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public com.liferay.portlet.social.model.SocialActivitySet fetchByG_U_T_Last( 153 long groupId, long userId, int type, 154 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 155 throws com.liferay.portal.kernel.exception.SystemException; 156 157 /** 158 * Returns the social activity sets before and after the current social activity set in the ordered set where groupId = ? and userId = ? and type = ?. 159 * 160 * @param activitySetId the primary key of the current social activity set 161 * @param groupId the group ID 162 * @param userId the user ID 163 * @param type the type 164 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 165 * @return the previous, current, and next social activity set 166 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found 167 * @throws SystemException if a system exception occurred 168 */ 169 public com.liferay.portlet.social.model.SocialActivitySet[] findByG_U_T_PrevAndNext( 170 long activitySetId, long groupId, long userId, int type, 171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 172 throws com.liferay.portal.kernel.exception.SystemException, 173 com.liferay.portlet.social.NoSuchActivitySetException; 174 175 /** 176 * Removes all the social activity sets where groupId = ? and userId = ? and type = ? from the database. 177 * 178 * @param groupId the group ID 179 * @param userId the user ID 180 * @param type the type 181 * @throws SystemException if a system exception occurred 182 */ 183 public void removeByG_U_T(long groupId, long userId, int type) 184 throws com.liferay.portal.kernel.exception.SystemException; 185 186 /** 187 * Returns the number of social activity sets where groupId = ? and userId = ? and type = ?. 188 * 189 * @param groupId the group ID 190 * @param userId the user ID 191 * @param type the type 192 * @return the number of matching social activity sets 193 * @throws SystemException if a system exception occurred 194 */ 195 public int countByG_U_T(long groupId, long userId, int type) 196 throws com.liferay.portal.kernel.exception.SystemException; 197 198 /** 199 * Returns all the social activity sets where classNameId = ? and classPK = ? and type = ?. 200 * 201 * @param classNameId the class name ID 202 * @param classPK the class p k 203 * @param type the type 204 * @return the matching social activity sets 205 * @throws SystemException if a system exception occurred 206 */ 207 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByC_C_T( 208 long classNameId, long classPK, int type) 209 throws com.liferay.portal.kernel.exception.SystemException; 210 211 /** 212 * Returns a range of all the social activity sets where classNameId = ? and classPK = ? and type = ?. 213 * 214 * <p> 215 * 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. 216 * </p> 217 * 218 * @param classNameId the class name ID 219 * @param classPK the class p k 220 * @param type the type 221 * @param start the lower bound of the range of social activity sets 222 * @param end the upper bound of the range of social activity sets (not inclusive) 223 * @return the range of matching social activity sets 224 * @throws SystemException if a system exception occurred 225 */ 226 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByC_C_T( 227 long classNameId, long classPK, int type, int start, int end) 228 throws com.liferay.portal.kernel.exception.SystemException; 229 230 /** 231 * Returns an ordered range of all the social activity sets where classNameId = ? and classPK = ? and type = ?. 232 * 233 * <p> 234 * 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. 235 * </p> 236 * 237 * @param classNameId the class name ID 238 * @param classPK the class p k 239 * @param type the type 240 * @param start the lower bound of the range of social activity sets 241 * @param end the upper bound of the range of social activity sets (not inclusive) 242 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 243 * @return the ordered range of matching social activity sets 244 * @throws SystemException if a system exception occurred 245 */ 246 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByC_C_T( 247 long classNameId, long classPK, int type, int start, int end, 248 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 249 throws com.liferay.portal.kernel.exception.SystemException; 250 251 /** 252 * Returns the first social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 253 * 254 * @param classNameId the class name ID 255 * @param classPK the class p k 256 * @param type the type 257 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 258 * @return the first matching social activity set 259 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found 260 * @throws SystemException if a system exception occurred 261 */ 262 public com.liferay.portlet.social.model.SocialActivitySet findByC_C_T_First( 263 long classNameId, long classPK, int type, 264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 265 throws com.liferay.portal.kernel.exception.SystemException, 266 com.liferay.portlet.social.NoSuchActivitySetException; 267 268 /** 269 * Returns the first social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 270 * 271 * @param classNameId the class name ID 272 * @param classPK the class p k 273 * @param type the type 274 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 275 * @return the first 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 fetchByC_C_T_First( 279 long classNameId, long classPK, int type, 280 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 281 throws com.liferay.portal.kernel.exception.SystemException; 282 283 /** 284 * Returns the last social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 285 * 286 * @param classNameId the class name ID 287 * @param classPK the class p k 288 * @param type the type 289 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 290 * @return the last matching social activity set 291 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found 292 * @throws SystemException if a system exception occurred 293 */ 294 public com.liferay.portlet.social.model.SocialActivitySet findByC_C_T_Last( 295 long classNameId, long classPK, int type, 296 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 297 throws com.liferay.portal.kernel.exception.SystemException, 298 com.liferay.portlet.social.NoSuchActivitySetException; 299 300 /** 301 * Returns the last social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 302 * 303 * @param classNameId the class name ID 304 * @param classPK the class p k 305 * @param type the type 306 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 307 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public com.liferay.portlet.social.model.SocialActivitySet fetchByC_C_T_Last( 311 long classNameId, long classPK, int type, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Returns the social activity sets before and after the current social activity set in the ordered set where classNameId = ? and classPK = ? and type = ?. 317 * 318 * @param activitySetId the primary key of the current social activity set 319 * @param classNameId the class name ID 320 * @param classPK the class p k 321 * @param type the type 322 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 323 * @return the previous, current, and next social activity set 324 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public com.liferay.portlet.social.model.SocialActivitySet[] findByC_C_T_PrevAndNext( 328 long activitySetId, long classNameId, long classPK, int type, 329 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 330 throws com.liferay.portal.kernel.exception.SystemException, 331 com.liferay.portlet.social.NoSuchActivitySetException; 332 333 /** 334 * Removes all the social activity sets where classNameId = ? and classPK = ? and type = ? from the database. 335 * 336 * @param classNameId the class name ID 337 * @param classPK the class p k 338 * @param type the type 339 * @throws SystemException if a system exception occurred 340 */ 341 public void removeByC_C_T(long classNameId, long classPK, int type) 342 throws com.liferay.portal.kernel.exception.SystemException; 343 344 /** 345 * Returns the number of social activity sets where classNameId = ? and classPK = ? and type = ?. 346 * 347 * @param classNameId the class name ID 348 * @param classPK the class p k 349 * @param type the type 350 * @return the number of matching social activity sets 351 * @throws SystemException if a system exception occurred 352 */ 353 public int countByC_C_T(long classNameId, long classPK, int type) 354 throws com.liferay.portal.kernel.exception.SystemException; 355 356 /** 357 * Returns all the social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ?. 358 * 359 * @param userId the user ID 360 * @param classNameId the class name ID 361 * @param classPK the class p k 362 * @param type the type 363 * @return the matching social activity sets 364 * @throws SystemException if a system exception occurred 365 */ 366 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByU_C_C_T( 367 long userId, long classNameId, long classPK, int type) 368 throws com.liferay.portal.kernel.exception.SystemException; 369 370 /** 371 * Returns a range of all the social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ?. 372 * 373 * <p> 374 * 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. 375 * </p> 376 * 377 * @param userId the user ID 378 * @param classNameId the class name ID 379 * @param classPK the class p k 380 * @param type the type 381 * @param start the lower bound of the range of social activity sets 382 * @param end the upper bound of the range of social activity sets (not inclusive) 383 * @return the range of matching social activity sets 384 * @throws SystemException if a system exception occurred 385 */ 386 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByU_C_C_T( 387 long userId, long classNameId, long classPK, int type, int start, 388 int end) throws com.liferay.portal.kernel.exception.SystemException; 389 390 /** 391 * Returns an ordered range of all the social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ?. 392 * 393 * <p> 394 * 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. 395 * </p> 396 * 397 * @param userId the user ID 398 * @param classNameId the class name ID 399 * @param classPK the class p k 400 * @param type the type 401 * @param start the lower bound of the range of social activity sets 402 * @param end the upper bound of the range of social activity sets (not inclusive) 403 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 404 * @return the ordered range of matching social activity sets 405 * @throws SystemException if a system exception occurred 406 */ 407 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findByU_C_C_T( 408 long userId, long classNameId, long classPK, int type, int start, 409 int end, 410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 411 throws com.liferay.portal.kernel.exception.SystemException; 412 413 /** 414 * Returns the first social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 415 * 416 * @param userId the user ID 417 * @param classNameId the class name ID 418 * @param classPK the class p k 419 * @param type the type 420 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 421 * @return the first matching social activity set 422 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found 423 * @throws SystemException if a system exception occurred 424 */ 425 public com.liferay.portlet.social.model.SocialActivitySet findByU_C_C_T_First( 426 long userId, long classNameId, long classPK, int type, 427 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 428 throws com.liferay.portal.kernel.exception.SystemException, 429 com.liferay.portlet.social.NoSuchActivitySetException; 430 431 /** 432 * Returns the first social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 433 * 434 * @param userId the user ID 435 * @param classNameId the class name ID 436 * @param classPK the class p k 437 * @param type the type 438 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 439 * @return the first matching social activity set, or <code>null</code> if a matching social activity set could not be found 440 * @throws SystemException if a system exception occurred 441 */ 442 public com.liferay.portlet.social.model.SocialActivitySet fetchByU_C_C_T_First( 443 long userId, long classNameId, long classPK, int type, 444 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 445 throws com.liferay.portal.kernel.exception.SystemException; 446 447 /** 448 * Returns the last social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 449 * 450 * @param userId the user ID 451 * @param classNameId the class name ID 452 * @param classPK the class p k 453 * @param type the type 454 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 455 * @return the last matching social activity set 456 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a matching social activity set could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public com.liferay.portlet.social.model.SocialActivitySet findByU_C_C_T_Last( 460 long userId, long classNameId, long classPK, int type, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException, 463 com.liferay.portlet.social.NoSuchActivitySetException; 464 465 /** 466 * Returns the last social activity set in the ordered set where userId = ? and classNameId = ? and classPK = ? and type = ?. 467 * 468 * @param userId the user ID 469 * @param classNameId the class name ID 470 * @param classPK the class p k 471 * @param type the type 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the last matching social activity set, or <code>null</code> if a matching social activity set could not be found 474 * @throws SystemException if a system exception occurred 475 */ 476 public com.liferay.portlet.social.model.SocialActivitySet fetchByU_C_C_T_Last( 477 long userId, long classNameId, long classPK, int type, 478 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 479 throws com.liferay.portal.kernel.exception.SystemException; 480 481 /** 482 * 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 = ?. 483 * 484 * @param activitySetId the primary key of the current social activity set 485 * @param userId the user ID 486 * @param classNameId the class name ID 487 * @param classPK the class p k 488 * @param type the type 489 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 490 * @return the previous, current, and next social activity set 491 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found 492 * @throws SystemException if a system exception occurred 493 */ 494 public com.liferay.portlet.social.model.SocialActivitySet[] findByU_C_C_T_PrevAndNext( 495 long activitySetId, long userId, long classNameId, long classPK, 496 int type, 497 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 498 throws com.liferay.portal.kernel.exception.SystemException, 499 com.liferay.portlet.social.NoSuchActivitySetException; 500 501 /** 502 * Removes all the social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ? from the database. 503 * 504 * @param userId the user ID 505 * @param classNameId the class name ID 506 * @param classPK the class p k 507 * @param type the type 508 * @throws SystemException if a system exception occurred 509 */ 510 public void removeByU_C_C_T(long userId, long classNameId, long classPK, 511 int type) throws com.liferay.portal.kernel.exception.SystemException; 512 513 /** 514 * Returns the number of social activity sets where userId = ? and classNameId = ? and classPK = ? and type = ?. 515 * 516 * @param userId the user ID 517 * @param classNameId the class name ID 518 * @param classPK the class p k 519 * @param type the type 520 * @return the number of matching social activity sets 521 * @throws SystemException if a system exception occurred 522 */ 523 public int countByU_C_C_T(long userId, long classNameId, long classPK, 524 int type) throws com.liferay.portal.kernel.exception.SystemException; 525 526 /** 527 * Caches the social activity set in the entity cache if it is enabled. 528 * 529 * @param socialActivitySet the social activity set 530 */ 531 public void cacheResult( 532 com.liferay.portlet.social.model.SocialActivitySet socialActivitySet); 533 534 /** 535 * Caches the social activity sets in the entity cache if it is enabled. 536 * 537 * @param socialActivitySets the social activity sets 538 */ 539 public void cacheResult( 540 java.util.List<com.liferay.portlet.social.model.SocialActivitySet> socialActivitySets); 541 542 /** 543 * Creates a new social activity set with the primary key. Does not add the social activity set to the database. 544 * 545 * @param activitySetId the primary key for the new social activity set 546 * @return the new social activity set 547 */ 548 public com.liferay.portlet.social.model.SocialActivitySet create( 549 long activitySetId); 550 551 /** 552 * Removes the social activity set with the primary key from the database. Also notifies the appropriate model listeners. 553 * 554 * @param activitySetId the primary key of the social activity set 555 * @return the social activity set that was removed 556 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found 557 * @throws SystemException if a system exception occurred 558 */ 559 public com.liferay.portlet.social.model.SocialActivitySet remove( 560 long activitySetId) 561 throws com.liferay.portal.kernel.exception.SystemException, 562 com.liferay.portlet.social.NoSuchActivitySetException; 563 564 public com.liferay.portlet.social.model.SocialActivitySet updateImpl( 565 com.liferay.portlet.social.model.SocialActivitySet socialActivitySet) 566 throws com.liferay.portal.kernel.exception.SystemException; 567 568 /** 569 * Returns the social activity set with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivitySetException} if it could not be found. 570 * 571 * @param activitySetId the primary key of the social activity set 572 * @return the social activity set 573 * @throws com.liferay.portlet.social.NoSuchActivitySetException if a social activity set with the primary key could not be found 574 * @throws SystemException if a system exception occurred 575 */ 576 public com.liferay.portlet.social.model.SocialActivitySet findByPrimaryKey( 577 long activitySetId) 578 throws com.liferay.portal.kernel.exception.SystemException, 579 com.liferay.portlet.social.NoSuchActivitySetException; 580 581 /** 582 * Returns the social activity set with the primary key or returns <code>null</code> if it could not be found. 583 * 584 * @param activitySetId the primary key of the social activity set 585 * @return the social activity set, or <code>null</code> if a social activity set with the primary key could not be found 586 * @throws SystemException if a system exception occurred 587 */ 588 public com.liferay.portlet.social.model.SocialActivitySet fetchByPrimaryKey( 589 long activitySetId) 590 throws com.liferay.portal.kernel.exception.SystemException; 591 592 /** 593 * Returns all the social activity sets. 594 * 595 * @return the social activity sets 596 * @throws SystemException if a system exception occurred 597 */ 598 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findAll() 599 throws com.liferay.portal.kernel.exception.SystemException; 600 601 /** 602 * Returns a range of all the social activity sets. 603 * 604 * <p> 605 * 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. 606 * </p> 607 * 608 * @param start the lower bound of the range of social activity sets 609 * @param end the upper bound of the range of social activity sets (not inclusive) 610 * @return the range of social activity sets 611 * @throws SystemException if a system exception occurred 612 */ 613 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findAll( 614 int start, int end) 615 throws com.liferay.portal.kernel.exception.SystemException; 616 617 /** 618 * Returns an ordered range of all the social activity sets. 619 * 620 * <p> 621 * 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. 622 * </p> 623 * 624 * @param start the lower bound of the range of social activity sets 625 * @param end the upper bound of the range of social activity sets (not inclusive) 626 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 627 * @return the ordered range of social activity sets 628 * @throws SystemException if a system exception occurred 629 */ 630 public java.util.List<com.liferay.portlet.social.model.SocialActivitySet> findAll( 631 int start, int end, 632 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 633 throws com.liferay.portal.kernel.exception.SystemException; 634 635 /** 636 * Removes all the social activity sets from the database. 637 * 638 * @throws SystemException if a system exception occurred 639 */ 640 public void removeAll() 641 throws com.liferay.portal.kernel.exception.SystemException; 642 643 /** 644 * Returns the number of social activity sets. 645 * 646 * @return the number of social activity sets 647 * @throws SystemException if a system exception occurred 648 */ 649 public int countAll() 650 throws com.liferay.portal.kernel.exception.SystemException; 651 }