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.SocialActivityCounter; 020 021 /** 022 * The persistence interface for the social activity counter 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 SocialActivityCounterPersistenceImpl 030 * @see SocialActivityCounterUtil 031 * @generated 032 */ 033 public interface SocialActivityCounterPersistence extends BasePersistence<SocialActivityCounter> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link SocialActivityCounterUtil} to access the social activity counter persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Returns all the social activity counters where groupId = ?. 042 * 043 * @param groupId the group ID 044 * @return the matching social activity counters 045 * @throws SystemException if a system exception occurred 046 */ 047 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByGroupId( 048 long groupId) 049 throws com.liferay.portal.kernel.exception.SystemException; 050 051 /** 052 * Returns a range of all the social activity counters where groupId = ?. 053 * 054 * <p> 055 * 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.SocialActivityCounterModelImpl}. 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. 056 * </p> 057 * 058 * @param groupId the group ID 059 * @param start the lower bound of the range of social activity counters 060 * @param end the upper bound of the range of social activity counters (not inclusive) 061 * @return the range of matching social activity counters 062 * @throws SystemException if a system exception occurred 063 */ 064 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByGroupId( 065 long groupId, int start, int end) 066 throws com.liferay.portal.kernel.exception.SystemException; 067 068 /** 069 * Returns an ordered range of all the social activity counters where groupId = ?. 070 * 071 * <p> 072 * 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.SocialActivityCounterModelImpl}. 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. 073 * </p> 074 * 075 * @param groupId the group ID 076 * @param start the lower bound of the range of social activity counters 077 * @param end the upper bound of the range of social activity counters (not inclusive) 078 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 079 * @return the ordered range of matching social activity counters 080 * @throws SystemException if a system exception occurred 081 */ 082 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByGroupId( 083 long groupId, int start, int end, 084 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 085 throws com.liferay.portal.kernel.exception.SystemException; 086 087 /** 088 * Returns the first social activity counter in the ordered set where groupId = ?. 089 * 090 * @param groupId the group ID 091 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 092 * @return the first matching social activity counter 093 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 094 * @throws SystemException if a system exception occurred 095 */ 096 public com.liferay.portlet.social.model.SocialActivityCounter findByGroupId_First( 097 long groupId, 098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 099 throws com.liferay.portal.kernel.exception.SystemException, 100 com.liferay.portlet.social.NoSuchActivityCounterException; 101 102 /** 103 * Returns the first social activity counter in the ordered set where groupId = ?. 104 * 105 * @param groupId the group ID 106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 107 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 108 * @throws SystemException if a system exception occurred 109 */ 110 public com.liferay.portlet.social.model.SocialActivityCounter fetchByGroupId_First( 111 long groupId, 112 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns the last social activity counter in the ordered set where groupId = ?. 117 * 118 * @param groupId the group ID 119 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 120 * @return the last matching social activity counter 121 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 122 * @throws SystemException if a system exception occurred 123 */ 124 public com.liferay.portlet.social.model.SocialActivityCounter findByGroupId_Last( 125 long groupId, 126 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 127 throws com.liferay.portal.kernel.exception.SystemException, 128 com.liferay.portlet.social.NoSuchActivityCounterException; 129 130 /** 131 * Returns the last social activity counter in the ordered set where groupId = ?. 132 * 133 * @param groupId the group ID 134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 135 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 136 * @throws SystemException if a system exception occurred 137 */ 138 public com.liferay.portlet.social.model.SocialActivityCounter fetchByGroupId_Last( 139 long groupId, 140 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 141 throws com.liferay.portal.kernel.exception.SystemException; 142 143 /** 144 * Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ?. 145 * 146 * @param activityCounterId the primary key of the current social activity counter 147 * @param groupId the group ID 148 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 149 * @return the previous, current, and next social activity counter 150 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public com.liferay.portlet.social.model.SocialActivityCounter[] findByGroupId_PrevAndNext( 154 long activityCounterId, long groupId, 155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 156 throws com.liferay.portal.kernel.exception.SystemException, 157 com.liferay.portlet.social.NoSuchActivityCounterException; 158 159 /** 160 * Removes all the social activity counters where groupId = ? from the database. 161 * 162 * @param groupId the group ID 163 * @throws SystemException if a system exception occurred 164 */ 165 public void removeByGroupId(long groupId) 166 throws com.liferay.portal.kernel.exception.SystemException; 167 168 /** 169 * Returns the number of social activity counters where groupId = ?. 170 * 171 * @param groupId the group ID 172 * @return the number of matching social activity counters 173 * @throws SystemException if a system exception occurred 174 */ 175 public int countByGroupId(long groupId) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns all the social activity counters where classNameId = ? and classPK = ?. 180 * 181 * @param classNameId the class name ID 182 * @param classPK the class p k 183 * @return the matching social activity counters 184 * @throws SystemException if a system exception occurred 185 */ 186 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 187 long classNameId, long classPK) 188 throws com.liferay.portal.kernel.exception.SystemException; 189 190 /** 191 * Returns a range of all the social activity counters where classNameId = ? and classPK = ?. 192 * 193 * <p> 194 * 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.SocialActivityCounterModelImpl}. 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. 195 * </p> 196 * 197 * @param classNameId the class name ID 198 * @param classPK the class p k 199 * @param start the lower bound of the range of social activity counters 200 * @param end the upper bound of the range of social activity counters (not inclusive) 201 * @return the range of matching social activity counters 202 * @throws SystemException if a system exception occurred 203 */ 204 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 205 long classNameId, long classPK, int start, int end) 206 throws com.liferay.portal.kernel.exception.SystemException; 207 208 /** 209 * Returns an ordered range of all the social activity counters where classNameId = ? and classPK = ?. 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.SocialActivityCounterModelImpl}. 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 classNameId the class name ID 216 * @param classPK the class p k 217 * @param start the lower bound of the range of social activity counters 218 * @param end the upper bound of the range of social activity counters (not inclusive) 219 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 220 * @return the ordered range of matching social activity counters 221 * @throws SystemException if a system exception occurred 222 */ 223 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByC_C( 224 long classNameId, long classPK, int start, int end, 225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 226 throws com.liferay.portal.kernel.exception.SystemException; 227 228 /** 229 * Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?. 230 * 231 * @param classNameId the class name ID 232 * @param classPK the class p k 233 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 234 * @return the first matching social activity counter 235 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 236 * @throws SystemException if a system exception occurred 237 */ 238 public com.liferay.portlet.social.model.SocialActivityCounter findByC_C_First( 239 long classNameId, long classPK, 240 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 241 throws com.liferay.portal.kernel.exception.SystemException, 242 com.liferay.portlet.social.NoSuchActivityCounterException; 243 244 /** 245 * Returns the first social activity counter in the ordered set where classNameId = ? and classPK = ?. 246 * 247 * @param classNameId the class name ID 248 * @param classPK the class p k 249 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 250 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 251 * @throws SystemException if a system exception occurred 252 */ 253 public com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_First( 254 long classNameId, long classPK, 255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 256 throws com.liferay.portal.kernel.exception.SystemException; 257 258 /** 259 * Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?. 260 * 261 * @param classNameId the class name ID 262 * @param classPK the class p k 263 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 264 * @return the last matching social activity counter 265 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 266 * @throws SystemException if a system exception occurred 267 */ 268 public com.liferay.portlet.social.model.SocialActivityCounter findByC_C_Last( 269 long classNameId, long classPK, 270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 271 throws com.liferay.portal.kernel.exception.SystemException, 272 com.liferay.portlet.social.NoSuchActivityCounterException; 273 274 /** 275 * Returns the last social activity counter in the ordered set where classNameId = ? and classPK = ?. 276 * 277 * @param classNameId the class name ID 278 * @param classPK the class p k 279 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 280 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 281 * @throws SystemException if a system exception occurred 282 */ 283 public com.liferay.portlet.social.model.SocialActivityCounter fetchByC_C_Last( 284 long classNameId, long classPK, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.kernel.exception.SystemException; 287 288 /** 289 * Returns the social activity counters before and after the current social activity counter in the ordered set where classNameId = ? and classPK = ?. 290 * 291 * @param activityCounterId the primary key of the current social activity counter 292 * @param classNameId the class name ID 293 * @param classPK the class p k 294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 295 * @return the previous, current, and next social activity counter 296 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public com.liferay.portlet.social.model.SocialActivityCounter[] findByC_C_PrevAndNext( 300 long activityCounterId, long classNameId, long classPK, 301 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 302 throws com.liferay.portal.kernel.exception.SystemException, 303 com.liferay.portlet.social.NoSuchActivityCounterException; 304 305 /** 306 * Removes all the social activity counters where classNameId = ? and classPK = ? from the database. 307 * 308 * @param classNameId the class name ID 309 * @param classPK the class p k 310 * @throws SystemException if a system exception occurred 311 */ 312 public void removeByC_C(long classNameId, long classPK) 313 throws com.liferay.portal.kernel.exception.SystemException; 314 315 /** 316 * Returns the number of social activity counters where classNameId = ? and classPK = ?. 317 * 318 * @param classNameId the class name ID 319 * @param classPK the class p k 320 * @return the number of matching social activity counters 321 * @throws SystemException if a system exception occurred 322 */ 323 public int countByC_C(long classNameId, long classPK) 324 throws com.liferay.portal.kernel.exception.SystemException; 325 326 /** 327 * Returns all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 328 * 329 * @param groupId the group ID 330 * @param classNameId the class name ID 331 * @param classPK the class p k 332 * @param ownerType the owner type 333 * @return the matching social activity counters 334 * @throws SystemException if a system exception occurred 335 */ 336 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 337 long groupId, long classNameId, long classPK, int ownerType) 338 throws com.liferay.portal.kernel.exception.SystemException; 339 340 /** 341 * Returns a range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 342 * 343 * <p> 344 * 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.SocialActivityCounterModelImpl}. 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. 345 * </p> 346 * 347 * @param groupId the group ID 348 * @param classNameId the class name ID 349 * @param classPK the class p k 350 * @param ownerType the owner type 351 * @param start the lower bound of the range of social activity counters 352 * @param end the upper bound of the range of social activity counters (not inclusive) 353 * @return the range of matching social activity counters 354 * @throws SystemException if a system exception occurred 355 */ 356 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 357 long groupId, long classNameId, long classPK, int ownerType, int start, 358 int end) throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Returns an ordered range of all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 362 * 363 * <p> 364 * 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.SocialActivityCounterModelImpl}. 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. 365 * </p> 366 * 367 * @param groupId the group ID 368 * @param classNameId the class name ID 369 * @param classPK the class p k 370 * @param ownerType the owner type 371 * @param start the lower bound of the range of social activity counters 372 * @param end the upper bound of the range of social activity counters (not inclusive) 373 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 374 * @return the ordered range of matching social activity counters 375 * @throws SystemException if a system exception occurred 376 */ 377 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findByG_C_C_O( 378 long groupId, long classNameId, long classPK, int ownerType, int start, 379 int end, 380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 381 throws com.liferay.portal.kernel.exception.SystemException; 382 383 /** 384 * Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 385 * 386 * @param groupId the group ID 387 * @param classNameId the class name ID 388 * @param classPK the class p k 389 * @param ownerType the owner type 390 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 391 * @return the first matching social activity counter 392 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 393 * @throws SystemException if a system exception occurred 394 */ 395 public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_First( 396 long groupId, long classNameId, long classPK, int ownerType, 397 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 398 throws com.liferay.portal.kernel.exception.SystemException, 399 com.liferay.portlet.social.NoSuchActivityCounterException; 400 401 /** 402 * Returns the first social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 403 * 404 * @param groupId the group ID 405 * @param classNameId the class name ID 406 * @param classPK the class p k 407 * @param ownerType the owner type 408 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 409 * @return the first matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 410 * @throws SystemException if a system exception occurred 411 */ 412 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_First( 413 long groupId, long classNameId, long classPK, int ownerType, 414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 415 throws com.liferay.portal.kernel.exception.SystemException; 416 417 /** 418 * Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 419 * 420 * @param groupId the group ID 421 * @param classNameId the class name ID 422 * @param classPK the class p k 423 * @param ownerType the owner type 424 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 425 * @return the last matching social activity counter 426 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 427 * @throws SystemException if a system exception occurred 428 */ 429 public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_O_Last( 430 long groupId, long classNameId, long classPK, int ownerType, 431 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 432 throws com.liferay.portal.kernel.exception.SystemException, 433 com.liferay.portlet.social.NoSuchActivityCounterException; 434 435 /** 436 * Returns the last social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 437 * 438 * @param groupId the group ID 439 * @param classNameId the class name ID 440 * @param classPK the class p k 441 * @param ownerType the owner type 442 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 443 * @return the last matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_O_Last( 447 long groupId, long classNameId, long classPK, int ownerType, 448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 449 throws com.liferay.portal.kernel.exception.SystemException; 450 451 /** 452 * Returns the social activity counters before and after the current social activity counter in the ordered set where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 453 * 454 * @param activityCounterId the primary key of the current social activity counter 455 * @param groupId the group ID 456 * @param classNameId the class name ID 457 * @param classPK the class p k 458 * @param ownerType the owner type 459 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 460 * @return the previous, current, and next social activity counter 461 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 462 * @throws SystemException if a system exception occurred 463 */ 464 public com.liferay.portlet.social.model.SocialActivityCounter[] findByG_C_C_O_PrevAndNext( 465 long activityCounterId, long groupId, long classNameId, long classPK, 466 int ownerType, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException, 469 com.liferay.portlet.social.NoSuchActivityCounterException; 470 471 /** 472 * Removes all the social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ? from the database. 473 * 474 * @param groupId the group ID 475 * @param classNameId the class name ID 476 * @param classPK the class p k 477 * @param ownerType the owner type 478 * @throws SystemException if a system exception occurred 479 */ 480 public void removeByG_C_C_O(long groupId, long classNameId, long classPK, 481 int ownerType) 482 throws com.liferay.portal.kernel.exception.SystemException; 483 484 /** 485 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and ownerType = ?. 486 * 487 * @param groupId the group ID 488 * @param classNameId the class name ID 489 * @param classPK the class p k 490 * @param ownerType the owner type 491 * @return the number of matching social activity counters 492 * @throws SystemException if a system exception occurred 493 */ 494 public int countByG_C_C_O(long groupId, long classNameId, long classPK, 495 int ownerType) 496 throws com.liferay.portal.kernel.exception.SystemException; 497 498 /** 499 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found. 500 * 501 * @param groupId the group ID 502 * @param classNameId the class name ID 503 * @param classPK the class p k 504 * @param name the name 505 * @param ownerType the owner type 506 * @param startPeriod the start period 507 * @return the matching social activity counter 508 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 509 * @throws SystemException if a system exception occurred 510 */ 511 public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_S( 512 long groupId, long classNameId, long classPK, java.lang.String name, 513 int ownerType, int startPeriod) 514 throws com.liferay.portal.kernel.exception.SystemException, 515 com.liferay.portlet.social.NoSuchActivityCounterException; 516 517 /** 518 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 519 * 520 * @param groupId the group ID 521 * @param classNameId the class name ID 522 * @param classPK the class p k 523 * @param name the name 524 * @param ownerType the owner type 525 * @param startPeriod the start period 526 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 527 * @throws SystemException if a system exception occurred 528 */ 529 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S( 530 long groupId, long classNameId, long classPK, java.lang.String name, 531 int ownerType, int startPeriod) 532 throws com.liferay.portal.kernel.exception.SystemException; 533 534 /** 535 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 536 * 537 * @param groupId the group ID 538 * @param classNameId the class name ID 539 * @param classPK the class p k 540 * @param name the name 541 * @param ownerType the owner type 542 * @param startPeriod the start period 543 * @param retrieveFromCache whether to use the finder cache 544 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 545 * @throws SystemException if a system exception occurred 546 */ 547 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_S( 548 long groupId, long classNameId, long classPK, java.lang.String name, 549 int ownerType, int startPeriod, boolean retrieveFromCache) 550 throws com.liferay.portal.kernel.exception.SystemException; 551 552 /** 553 * Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ? from the database. 554 * 555 * @param groupId the group ID 556 * @param classNameId the class name ID 557 * @param classPK the class p k 558 * @param name the name 559 * @param ownerType the owner type 560 * @param startPeriod the start period 561 * @return the social activity counter that was removed 562 * @throws SystemException if a system exception occurred 563 */ 564 public com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_S( 565 long groupId, long classNameId, long classPK, java.lang.String name, 566 int ownerType, int startPeriod) 567 throws com.liferay.portal.kernel.exception.SystemException, 568 com.liferay.portlet.social.NoSuchActivityCounterException; 569 570 /** 571 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and startPeriod = ?. 572 * 573 * @param groupId the group ID 574 * @param classNameId the class name ID 575 * @param classPK the class p k 576 * @param name the name 577 * @param ownerType the owner type 578 * @param startPeriod the start period 579 * @return the number of matching social activity counters 580 * @throws SystemException if a system exception occurred 581 */ 582 public int countByG_C_C_N_O_S(long groupId, long classNameId, long classPK, 583 java.lang.String name, int ownerType, int startPeriod) 584 throws com.liferay.portal.kernel.exception.SystemException; 585 586 /** 587 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found. 588 * 589 * @param groupId the group ID 590 * @param classNameId the class name ID 591 * @param classPK the class p k 592 * @param name the name 593 * @param ownerType the owner type 594 * @param endPeriod the end period 595 * @return the matching social activity counter 596 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a matching social activity counter could not be found 597 * @throws SystemException if a system exception occurred 598 */ 599 public com.liferay.portlet.social.model.SocialActivityCounter findByG_C_C_N_O_E( 600 long groupId, long classNameId, long classPK, java.lang.String name, 601 int ownerType, int endPeriod) 602 throws com.liferay.portal.kernel.exception.SystemException, 603 com.liferay.portlet.social.NoSuchActivityCounterException; 604 605 /** 606 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 607 * 608 * @param groupId the group ID 609 * @param classNameId the class name ID 610 * @param classPK the class p k 611 * @param name the name 612 * @param ownerType the owner type 613 * @param endPeriod the end period 614 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 615 * @throws SystemException if a system exception occurred 616 */ 617 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E( 618 long groupId, long classNameId, long classPK, java.lang.String name, 619 int ownerType, int endPeriod) 620 throws com.liferay.portal.kernel.exception.SystemException; 621 622 /** 623 * Returns the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 624 * 625 * @param groupId the group ID 626 * @param classNameId the class name ID 627 * @param classPK the class p k 628 * @param name the name 629 * @param ownerType the owner type 630 * @param endPeriod the end period 631 * @param retrieveFromCache whether to use the finder cache 632 * @return the matching social activity counter, or <code>null</code> if a matching social activity counter could not be found 633 * @throws SystemException if a system exception occurred 634 */ 635 public com.liferay.portlet.social.model.SocialActivityCounter fetchByG_C_C_N_O_E( 636 long groupId, long classNameId, long classPK, java.lang.String name, 637 int ownerType, int endPeriod, boolean retrieveFromCache) 638 throws com.liferay.portal.kernel.exception.SystemException; 639 640 /** 641 * Removes the social activity counter where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ? from the database. 642 * 643 * @param groupId the group ID 644 * @param classNameId the class name ID 645 * @param classPK the class p k 646 * @param name the name 647 * @param ownerType the owner type 648 * @param endPeriod the end period 649 * @return the social activity counter that was removed 650 * @throws SystemException if a system exception occurred 651 */ 652 public com.liferay.portlet.social.model.SocialActivityCounter removeByG_C_C_N_O_E( 653 long groupId, long classNameId, long classPK, java.lang.String name, 654 int ownerType, int endPeriod) 655 throws com.liferay.portal.kernel.exception.SystemException, 656 com.liferay.portlet.social.NoSuchActivityCounterException; 657 658 /** 659 * Returns the number of social activity counters where groupId = ? and classNameId = ? and classPK = ? and name = ? and ownerType = ? and endPeriod = ?. 660 * 661 * @param groupId the group ID 662 * @param classNameId the class name ID 663 * @param classPK the class p k 664 * @param name the name 665 * @param ownerType the owner type 666 * @param endPeriod the end period 667 * @return the number of matching social activity counters 668 * @throws SystemException if a system exception occurred 669 */ 670 public int countByG_C_C_N_O_E(long groupId, long classNameId, long classPK, 671 java.lang.String name, int ownerType, int endPeriod) 672 throws com.liferay.portal.kernel.exception.SystemException; 673 674 /** 675 * Caches the social activity counter in the entity cache if it is enabled. 676 * 677 * @param socialActivityCounter the social activity counter 678 */ 679 public void cacheResult( 680 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter); 681 682 /** 683 * Caches the social activity counters in the entity cache if it is enabled. 684 * 685 * @param socialActivityCounters the social activity counters 686 */ 687 public void cacheResult( 688 java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> socialActivityCounters); 689 690 /** 691 * Creates a new social activity counter with the primary key. Does not add the social activity counter to the database. 692 * 693 * @param activityCounterId the primary key for the new social activity counter 694 * @return the new social activity counter 695 */ 696 public com.liferay.portlet.social.model.SocialActivityCounter create( 697 long activityCounterId); 698 699 /** 700 * Removes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners. 701 * 702 * @param activityCounterId the primary key of the social activity counter 703 * @return the social activity counter that was removed 704 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 705 * @throws SystemException if a system exception occurred 706 */ 707 public com.liferay.portlet.social.model.SocialActivityCounter remove( 708 long activityCounterId) 709 throws com.liferay.portal.kernel.exception.SystemException, 710 com.liferay.portlet.social.NoSuchActivityCounterException; 711 712 public com.liferay.portlet.social.model.SocialActivityCounter updateImpl( 713 com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter) 714 throws com.liferay.portal.kernel.exception.SystemException; 715 716 /** 717 * Returns the social activity counter with the primary key or throws a {@link com.liferay.portlet.social.NoSuchActivityCounterException} if it could not be found. 718 * 719 * @param activityCounterId the primary key of the social activity counter 720 * @return the social activity counter 721 * @throws com.liferay.portlet.social.NoSuchActivityCounterException if a social activity counter with the primary key could not be found 722 * @throws SystemException if a system exception occurred 723 */ 724 public com.liferay.portlet.social.model.SocialActivityCounter findByPrimaryKey( 725 long activityCounterId) 726 throws com.liferay.portal.kernel.exception.SystemException, 727 com.liferay.portlet.social.NoSuchActivityCounterException; 728 729 /** 730 * Returns the social activity counter with the primary key or returns <code>null</code> if it could not be found. 731 * 732 * @param activityCounterId the primary key of the social activity counter 733 * @return the social activity counter, or <code>null</code> if a social activity counter with the primary key could not be found 734 * @throws SystemException if a system exception occurred 735 */ 736 public com.liferay.portlet.social.model.SocialActivityCounter fetchByPrimaryKey( 737 long activityCounterId) 738 throws com.liferay.portal.kernel.exception.SystemException; 739 740 /** 741 * Returns all the social activity counters. 742 * 743 * @return the social activity counters 744 * @throws SystemException if a system exception occurred 745 */ 746 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll() 747 throws com.liferay.portal.kernel.exception.SystemException; 748 749 /** 750 * Returns a range of all the social activity counters. 751 * 752 * <p> 753 * 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.SocialActivityCounterModelImpl}. 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. 754 * </p> 755 * 756 * @param start the lower bound of the range of social activity counters 757 * @param end the upper bound of the range of social activity counters (not inclusive) 758 * @return the range of social activity counters 759 * @throws SystemException if a system exception occurred 760 */ 761 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll( 762 int start, int end) 763 throws com.liferay.portal.kernel.exception.SystemException; 764 765 /** 766 * Returns an ordered range of all the social activity counters. 767 * 768 * <p> 769 * 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.SocialActivityCounterModelImpl}. 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. 770 * </p> 771 * 772 * @param start the lower bound of the range of social activity counters 773 * @param end the upper bound of the range of social activity counters (not inclusive) 774 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 775 * @return the ordered range of social activity counters 776 * @throws SystemException if a system exception occurred 777 */ 778 public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> findAll( 779 int start, int end, 780 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 781 throws com.liferay.portal.kernel.exception.SystemException; 782 783 /** 784 * Removes all the social activity counters from the database. 785 * 786 * @throws SystemException if a system exception occurred 787 */ 788 public void removeAll() 789 throws com.liferay.portal.kernel.exception.SystemException; 790 791 /** 792 * Returns the number of social activity counters. 793 * 794 * @return the number of social activity counters 795 * @throws SystemException if a system exception occurred 796 */ 797 public int countAll() 798 throws com.liferay.portal.kernel.exception.SystemException; 799 }