001 /** 002 * Copyright (c) 2000-2010 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.blogs.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.blogs.model.BlogsStatsUser; 020 021 /** 022 * The persistence interface for the blogs stats user service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see BlogsStatsUserPersistenceImpl 030 * @see BlogsStatsUserUtil 031 * @generated 032 */ 033 public interface BlogsStatsUserPersistence extends BasePersistence<BlogsStatsUser> { 034 /** 035 * Caches the blogs stats user in the entity cache if it is enabled. 036 * 037 * @param blogsStatsUser the blogs stats user to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser); 041 042 /** 043 * Caches the blogs stats users in the entity cache if it is enabled. 044 * 045 * @param blogsStatsUsers the blogs stats users to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers); 049 050 /** 051 * Creates a new blogs stats user with the primary key. 052 * 053 * @param statsUserId the primary key for the new blogs stats user 054 * @return the new blogs stats user 055 */ 056 public com.liferay.portlet.blogs.model.BlogsStatsUser create( 057 long statsUserId); 058 059 /** 060 * Removes the blogs stats user with the primary key from the database. Also notifies the appropriate model listeners. 061 * 062 * @param statsUserId the primary key of the blogs stats user to remove 063 * @return the blogs stats user that was removed 064 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 065 * @throws SystemException if a system exception occurred 066 */ 067 public com.liferay.portlet.blogs.model.BlogsStatsUser remove( 068 long statsUserId) 069 throws com.liferay.portal.kernel.exception.SystemException, 070 com.liferay.portlet.blogs.NoSuchStatsUserException; 071 072 public com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl( 073 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser, 074 boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Finds the blogs stats user with the primary key or throws a {@link com.liferay.portlet.blogs.NoSuchStatsUserException} if it could not be found. 079 * 080 * @param statsUserId the primary key of the blogs stats user to find 081 * @return the blogs stats user 082 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey( 086 long statsUserId) 087 throws com.liferay.portal.kernel.exception.SystemException, 088 com.liferay.portlet.blogs.NoSuchStatsUserException; 089 090 /** 091 * Finds the blogs stats user with the primary key or returns <code>null</code> if it could not be found. 092 * 093 * @param statsUserId the primary key of the blogs stats user to find 094 * @return the blogs stats user, or <code>null</code> if a blogs stats user with the primary key could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey( 098 long statsUserId) 099 throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Finds all the blogs stats users where groupId = ?. 103 * 104 * @param groupId the group id to search with 105 * @return the matching blogs stats users 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId( 109 long groupId) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Finds a range of all the blogs stats users where groupId = ?. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param groupId the group id to search with 120 * @param start the lower bound of the range of blogs stats users to return 121 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 122 * @return the range of matching blogs stats users 123 * @throws SystemException if a system exception occurred 124 */ 125 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId( 126 long groupId, int start, int end) 127 throws com.liferay.portal.kernel.exception.SystemException; 128 129 /** 130 * Finds an ordered range of all the blogs stats users where groupId = ?. 131 * 132 * <p> 133 * 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. 134 * </p> 135 * 136 * @param groupId the group id to search with 137 * @param start the lower bound of the range of blogs stats users to return 138 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 139 * @param orderByComparator the comparator to order the results by 140 * @return the ordered range of matching blogs stats users 141 * @throws SystemException if a system exception occurred 142 */ 143 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId( 144 long groupId, int start, int end, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Finds the first blogs stats user in the ordered set where groupId = ?. 150 * 151 * <p> 152 * 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. 153 * </p> 154 * 155 * @param groupId the group id to search with 156 * @param orderByComparator the comparator to order the set by 157 * @return the first matching blogs stats user 158 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First( 162 long groupId, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.blogs.NoSuchStatsUserException; 166 167 /** 168 * Finds the last blogs stats user in the ordered set where groupId = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param groupId the group id to search with 175 * @param orderByComparator the comparator to order the set by 176 * @return the last matching blogs stats user 177 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last( 181 long groupId, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.kernel.exception.SystemException, 184 com.liferay.portlet.blogs.NoSuchStatsUserException; 185 186 /** 187 * Finds the blogs stats users before and after the current blogs stats user in the ordered set where groupId = ?. 188 * 189 * <p> 190 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 191 * </p> 192 * 193 * @param statsUserId the primary key of the current blogs stats user 194 * @param groupId the group id to search with 195 * @param orderByComparator the comparator to order the set by 196 * @return the previous, current, and next blogs stats user 197 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext( 201 long statsUserId, long groupId, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.kernel.exception.SystemException, 204 com.liferay.portlet.blogs.NoSuchStatsUserException; 205 206 /** 207 * Finds all the blogs stats users where userId = ?. 208 * 209 * @param userId the user id to search with 210 * @return the matching blogs stats users 211 * @throws SystemException if a system exception occurred 212 */ 213 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId( 214 long userId) throws com.liferay.portal.kernel.exception.SystemException; 215 216 /** 217 * Finds a range of all the blogs stats users where userId = ?. 218 * 219 * <p> 220 * 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. 221 * </p> 222 * 223 * @param userId the user id to search with 224 * @param start the lower bound of the range of blogs stats users to return 225 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 226 * @return the range of matching blogs stats users 227 * @throws SystemException if a system exception occurred 228 */ 229 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId( 230 long userId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Finds an ordered range of all the blogs stats users where userId = ?. 235 * 236 * <p> 237 * 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. 238 * </p> 239 * 240 * @param userId the user id to search with 241 * @param start the lower bound of the range of blogs stats users to return 242 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 243 * @param orderByComparator the comparator to order the results by 244 * @return the ordered range of matching blogs stats users 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId( 248 long userId, int start, int end, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Finds the first blogs stats user in the ordered set where userId = ?. 254 * 255 * <p> 256 * 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. 257 * </p> 258 * 259 * @param userId the user id to search with 260 * @param orderByComparator the comparator to order the set by 261 * @return the first matching blogs stats user 262 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 263 * @throws SystemException if a system exception occurred 264 */ 265 public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First( 266 long userId, 267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 268 throws com.liferay.portal.kernel.exception.SystemException, 269 com.liferay.portlet.blogs.NoSuchStatsUserException; 270 271 /** 272 * Finds the last blogs stats user in the ordered set where userId = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param userId the user id to search with 279 * @param orderByComparator the comparator to order the set by 280 * @return the last matching blogs stats user 281 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last( 285 long userId, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException, 288 com.liferay.portlet.blogs.NoSuchStatsUserException; 289 290 /** 291 * Finds the blogs stats users before and after the current blogs stats user in the ordered set where userId = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param statsUserId the primary key of the current blogs stats user 298 * @param userId the user id to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the previous, current, and next blogs stats user 301 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext( 305 long statsUserId, long userId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.blogs.NoSuchStatsUserException; 309 310 /** 311 * Finds the blogs stats user where groupId = ? and userId = ? or throws a {@link com.liferay.portlet.blogs.NoSuchStatsUserException} if it could not be found. 312 * 313 * @param groupId the group id to search with 314 * @param userId the user id to search with 315 * @return the matching blogs stats user 316 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 317 * @throws SystemException if a system exception occurred 318 */ 319 public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U( 320 long groupId, long userId) 321 throws com.liferay.portal.kernel.exception.SystemException, 322 com.liferay.portlet.blogs.NoSuchStatsUserException; 323 324 /** 325 * Finds the blogs stats user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 326 * 327 * @param groupId the group id to search with 328 * @param userId the user id to search with 329 * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 330 * @throws SystemException if a system exception occurred 331 */ 332 public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U( 333 long groupId, long userId) 334 throws com.liferay.portal.kernel.exception.SystemException; 335 336 /** 337 * Finds the blogs stats user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 338 * 339 * @param groupId the group id to search with 340 * @param userId the user id to search with 341 * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U( 345 long groupId, long userId, boolean retrieveFromCache) 346 throws com.liferay.portal.kernel.exception.SystemException; 347 348 /** 349 * Finds all the blogs stats users where groupId = ? and entryCount ≠ ?. 350 * 351 * @param groupId the group id to search with 352 * @param entryCount the entry count to search with 353 * @return the matching blogs stats users 354 * @throws SystemException if a system exception occurred 355 */ 356 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE( 357 long groupId, int entryCount) 358 throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Finds a range of all the blogs stats users where groupId = ? and entryCount ≠ ?. 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. 365 * </p> 366 * 367 * @param groupId the group id to search with 368 * @param entryCount the entry count to search with 369 * @param start the lower bound of the range of blogs stats users to return 370 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 371 * @return the range of matching blogs stats users 372 * @throws SystemException if a system exception occurred 373 */ 374 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE( 375 long groupId, int entryCount, int start, int end) 376 throws com.liferay.portal.kernel.exception.SystemException; 377 378 /** 379 * Finds an ordered range of all the blogs stats users where groupId = ? and entryCount ≠ ?. 380 * 381 * <p> 382 * 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. 383 * </p> 384 * 385 * @param groupId the group id to search with 386 * @param entryCount the entry count to search with 387 * @param start the lower bound of the range of blogs stats users to return 388 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 389 * @param orderByComparator the comparator to order the results by 390 * @return the ordered range of matching blogs stats users 391 * @throws SystemException if a system exception occurred 392 */ 393 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE( 394 long groupId, int entryCount, int start, int end, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.kernel.exception.SystemException; 397 398 /** 399 * Finds the first blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. 400 * 401 * <p> 402 * 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. 403 * </p> 404 * 405 * @param groupId the group id to search with 406 * @param entryCount the entry count to search with 407 * @param orderByComparator the comparator to order the set by 408 * @return the first matching blogs stats user 409 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 410 * @throws SystemException if a system exception occurred 411 */ 412 public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_First( 413 long groupId, int entryCount, 414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 415 throws com.liferay.portal.kernel.exception.SystemException, 416 com.liferay.portlet.blogs.NoSuchStatsUserException; 417 418 /** 419 * Finds the last blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. 420 * 421 * <p> 422 * 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. 423 * </p> 424 * 425 * @param groupId the group id to search with 426 * @param entryCount the entry count to search with 427 * @param orderByComparator the comparator to order the set by 428 * @return the last matching blogs stats user 429 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 430 * @throws SystemException if a system exception occurred 431 */ 432 public com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_Last( 433 long groupId, int entryCount, 434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 435 throws com.liferay.portal.kernel.exception.SystemException, 436 com.liferay.portlet.blogs.NoSuchStatsUserException; 437 438 /** 439 * Finds the blogs stats users before and after the current blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. 440 * 441 * <p> 442 * 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. 443 * </p> 444 * 445 * @param statsUserId the primary key of the current blogs stats user 446 * @param groupId the group id to search with 447 * @param entryCount the entry count to search with 448 * @param orderByComparator the comparator to order the set by 449 * @return the previous, current, and next blogs stats user 450 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 451 * @throws SystemException if a system exception occurred 452 */ 453 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_NotE_PrevAndNext( 454 long statsUserId, long groupId, int entryCount, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.kernel.exception.SystemException, 457 com.liferay.portlet.blogs.NoSuchStatsUserException; 458 459 /** 460 * Finds all the blogs stats users where companyId = ? and entryCount ≠ ?. 461 * 462 * @param companyId the company id to search with 463 * @param entryCount the entry count to search with 464 * @return the matching blogs stats users 465 * @throws SystemException if a system exception occurred 466 */ 467 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE( 468 long companyId, int entryCount) 469 throws com.liferay.portal.kernel.exception.SystemException; 470 471 /** 472 * Finds a range of all the blogs stats users where companyId = ? and entryCount ≠ ?. 473 * 474 * <p> 475 * 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. 476 * </p> 477 * 478 * @param companyId the company id to search with 479 * @param entryCount the entry count to search with 480 * @param start the lower bound of the range of blogs stats users to return 481 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 482 * @return the range of matching blogs stats users 483 * @throws SystemException if a system exception occurred 484 */ 485 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE( 486 long companyId, int entryCount, int start, int end) 487 throws com.liferay.portal.kernel.exception.SystemException; 488 489 /** 490 * Finds an ordered range of all the blogs stats users where companyId = ? and entryCount ≠ ?. 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. 494 * </p> 495 * 496 * @param companyId the company id to search with 497 * @param entryCount the entry count to search with 498 * @param start the lower bound of the range of blogs stats users to return 499 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 500 * @param orderByComparator the comparator to order the results by 501 * @return the ordered range of matching blogs stats users 502 * @throws SystemException if a system exception occurred 503 */ 504 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE( 505 long companyId, int entryCount, int start, int end, 506 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 507 throws com.liferay.portal.kernel.exception.SystemException; 508 509 /** 510 * Finds the first blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. 511 * 512 * <p> 513 * 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. 514 * </p> 515 * 516 * @param companyId the company id to search with 517 * @param entryCount the entry count to search with 518 * @param orderByComparator the comparator to order the set by 519 * @return the first matching blogs stats user 520 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 521 * @throws SystemException if a system exception occurred 522 */ 523 public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_First( 524 long companyId, int entryCount, 525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 526 throws com.liferay.portal.kernel.exception.SystemException, 527 com.liferay.portlet.blogs.NoSuchStatsUserException; 528 529 /** 530 * Finds the last blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. 531 * 532 * <p> 533 * 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. 534 * </p> 535 * 536 * @param companyId the company id to search with 537 * @param entryCount the entry count to search with 538 * @param orderByComparator the comparator to order the set by 539 * @return the last matching blogs stats user 540 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 541 * @throws SystemException if a system exception occurred 542 */ 543 public com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_Last( 544 long companyId, int entryCount, 545 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 546 throws com.liferay.portal.kernel.exception.SystemException, 547 com.liferay.portlet.blogs.NoSuchStatsUserException; 548 549 /** 550 * Finds the blogs stats users before and after the current blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. 551 * 552 * <p> 553 * 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. 554 * </p> 555 * 556 * @param statsUserId the primary key of the current blogs stats user 557 * @param companyId the company id to search with 558 * @param entryCount the entry count to search with 559 * @param orderByComparator the comparator to order the set by 560 * @return the previous, current, and next blogs stats user 561 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 562 * @throws SystemException if a system exception occurred 563 */ 564 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_NotE_PrevAndNext( 565 long statsUserId, long companyId, int entryCount, 566 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 567 throws com.liferay.portal.kernel.exception.SystemException, 568 com.liferay.portlet.blogs.NoSuchStatsUserException; 569 570 /** 571 * Finds all the blogs stats users where userId = ? and lastPostDate = ?. 572 * 573 * @param userId the user id to search with 574 * @param lastPostDate the last post date to search with 575 * @return the matching blogs stats users 576 * @throws SystemException if a system exception occurred 577 */ 578 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L( 579 long userId, java.util.Date lastPostDate) 580 throws com.liferay.portal.kernel.exception.SystemException; 581 582 /** 583 * Finds a range of all the blogs stats users where userId = ? and lastPostDate = ?. 584 * 585 * <p> 586 * 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. 587 * </p> 588 * 589 * @param userId the user id to search with 590 * @param lastPostDate the last post date to search with 591 * @param start the lower bound of the range of blogs stats users to return 592 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 593 * @return the range of matching blogs stats users 594 * @throws SystemException if a system exception occurred 595 */ 596 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L( 597 long userId, java.util.Date lastPostDate, int start, int end) 598 throws com.liferay.portal.kernel.exception.SystemException; 599 600 /** 601 * Finds an ordered range of all the blogs stats users where userId = ? and lastPostDate = ?. 602 * 603 * <p> 604 * 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. 605 * </p> 606 * 607 * @param userId the user id to search with 608 * @param lastPostDate the last post date to search with 609 * @param start the lower bound of the range of blogs stats users to return 610 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 611 * @param orderByComparator the comparator to order the results by 612 * @return the ordered range of matching blogs stats users 613 * @throws SystemException if a system exception occurred 614 */ 615 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L( 616 long userId, java.util.Date lastPostDate, int start, int end, 617 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 618 throws com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Finds the first blogs stats user in the ordered set where userId = ? and lastPostDate = ?. 622 * 623 * <p> 624 * 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. 625 * </p> 626 * 627 * @param userId the user id to search with 628 * @param lastPostDate the last post date to search with 629 * @param orderByComparator the comparator to order the set by 630 * @return the first matching blogs stats user 631 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 632 * @throws SystemException if a system exception occurred 633 */ 634 public com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_First( 635 long userId, java.util.Date lastPostDate, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.kernel.exception.SystemException, 638 com.liferay.portlet.blogs.NoSuchStatsUserException; 639 640 /** 641 * Finds the last blogs stats user in the ordered set where userId = ? and lastPostDate = ?. 642 * 643 * <p> 644 * 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. 645 * </p> 646 * 647 * @param userId the user id to search with 648 * @param lastPostDate the last post date to search with 649 * @param orderByComparator the comparator to order the set by 650 * @return the last matching blogs stats user 651 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 652 * @throws SystemException if a system exception occurred 653 */ 654 public com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_Last( 655 long userId, java.util.Date lastPostDate, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.kernel.exception.SystemException, 658 com.liferay.portlet.blogs.NoSuchStatsUserException; 659 660 /** 661 * Finds the blogs stats users before and after the current blogs stats user in the ordered set where userId = ? and lastPostDate = ?. 662 * 663 * <p> 664 * 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. 665 * </p> 666 * 667 * @param statsUserId the primary key of the current blogs stats user 668 * @param userId the user id to search with 669 * @param lastPostDate the last post date to search with 670 * @param orderByComparator the comparator to order the set by 671 * @return the previous, current, and next blogs stats user 672 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 673 * @throws SystemException if a system exception occurred 674 */ 675 public com.liferay.portlet.blogs.model.BlogsStatsUser[] findByU_L_PrevAndNext( 676 long statsUserId, long userId, java.util.Date lastPostDate, 677 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 678 throws com.liferay.portal.kernel.exception.SystemException, 679 com.liferay.portlet.blogs.NoSuchStatsUserException; 680 681 /** 682 * Finds all the blogs stats users. 683 * 684 * @return the blogs stats users 685 * @throws SystemException if a system exception occurred 686 */ 687 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll() 688 throws com.liferay.portal.kernel.exception.SystemException; 689 690 /** 691 * Finds a range of all the blogs stats users. 692 * 693 * <p> 694 * 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. 695 * </p> 696 * 697 * @param start the lower bound of the range of blogs stats users to return 698 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 699 * @return the range of blogs stats users 700 * @throws SystemException if a system exception occurred 701 */ 702 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll( 703 int start, int end) 704 throws com.liferay.portal.kernel.exception.SystemException; 705 706 /** 707 * Finds an ordered range of all the blogs stats users. 708 * 709 * <p> 710 * 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. 711 * </p> 712 * 713 * @param start the lower bound of the range of blogs stats users to return 714 * @param end the upper bound of the range of blogs stats users to return (not inclusive) 715 * @param orderByComparator the comparator to order the results by 716 * @return the ordered range of blogs stats users 717 * @throws SystemException if a system exception occurred 718 */ 719 public java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll( 720 int start, int end, 721 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 722 throws com.liferay.portal.kernel.exception.SystemException; 723 724 /** 725 * Removes all the blogs stats users where groupId = ? from the database. 726 * 727 * @param groupId the group id to search with 728 * @throws SystemException if a system exception occurred 729 */ 730 public void removeByGroupId(long groupId) 731 throws com.liferay.portal.kernel.exception.SystemException; 732 733 /** 734 * Removes all the blogs stats users where userId = ? from the database. 735 * 736 * @param userId the user id to search with 737 * @throws SystemException if a system exception occurred 738 */ 739 public void removeByUserId(long userId) 740 throws com.liferay.portal.kernel.exception.SystemException; 741 742 /** 743 * Removes the blogs stats user where groupId = ? and userId = ? from the database. 744 * 745 * @param groupId the group id to search with 746 * @param userId the user id to search with 747 * @throws SystemException if a system exception occurred 748 */ 749 public void removeByG_U(long groupId, long userId) 750 throws com.liferay.portal.kernel.exception.SystemException, 751 com.liferay.portlet.blogs.NoSuchStatsUserException; 752 753 /** 754 * Removes all the blogs stats users where groupId = ? and entryCount ≠ ? from the database. 755 * 756 * @param groupId the group id to search with 757 * @param entryCount the entry count to search with 758 * @throws SystemException if a system exception occurred 759 */ 760 public void removeByG_NotE(long groupId, int entryCount) 761 throws com.liferay.portal.kernel.exception.SystemException; 762 763 /** 764 * Removes all the blogs stats users where companyId = ? and entryCount ≠ ? from the database. 765 * 766 * @param companyId the company id to search with 767 * @param entryCount the entry count to search with 768 * @throws SystemException if a system exception occurred 769 */ 770 public void removeByC_NotE(long companyId, int entryCount) 771 throws com.liferay.portal.kernel.exception.SystemException; 772 773 /** 774 * Removes all the blogs stats users where userId = ? and lastPostDate = ? from the database. 775 * 776 * @param userId the user id to search with 777 * @param lastPostDate the last post date to search with 778 * @throws SystemException if a system exception occurred 779 */ 780 public void removeByU_L(long userId, java.util.Date lastPostDate) 781 throws com.liferay.portal.kernel.exception.SystemException; 782 783 /** 784 * Removes all the blogs stats users 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 * Counts all the blogs stats users where groupId = ?. 793 * 794 * @param groupId the group id to search with 795 * @return the number of matching blogs stats users 796 * @throws SystemException if a system exception occurred 797 */ 798 public int countByGroupId(long groupId) 799 throws com.liferay.portal.kernel.exception.SystemException; 800 801 /** 802 * Counts all the blogs stats users where userId = ?. 803 * 804 * @param userId the user id to search with 805 * @return the number of matching blogs stats users 806 * @throws SystemException if a system exception occurred 807 */ 808 public int countByUserId(long userId) 809 throws com.liferay.portal.kernel.exception.SystemException; 810 811 /** 812 * Counts all the blogs stats users where groupId = ? and userId = ?. 813 * 814 * @param groupId the group id to search with 815 * @param userId the user id to search with 816 * @return the number of matching blogs stats users 817 * @throws SystemException if a system exception occurred 818 */ 819 public int countByG_U(long groupId, long userId) 820 throws com.liferay.portal.kernel.exception.SystemException; 821 822 /** 823 * Counts all the blogs stats users where groupId = ? and entryCount ≠ ?. 824 * 825 * @param groupId the group id to search with 826 * @param entryCount the entry count to search with 827 * @return the number of matching blogs stats users 828 * @throws SystemException if a system exception occurred 829 */ 830 public int countByG_NotE(long groupId, int entryCount) 831 throws com.liferay.portal.kernel.exception.SystemException; 832 833 /** 834 * Counts all the blogs stats users where companyId = ? and entryCount ≠ ?. 835 * 836 * @param companyId the company id to search with 837 * @param entryCount the entry count to search with 838 * @return the number of matching blogs stats users 839 * @throws SystemException if a system exception occurred 840 */ 841 public int countByC_NotE(long companyId, int entryCount) 842 throws com.liferay.portal.kernel.exception.SystemException; 843 844 /** 845 * Counts all the blogs stats users where userId = ? and lastPostDate = ?. 846 * 847 * @param userId the user id to search with 848 * @param lastPostDate the last post date to search with 849 * @return the number of matching blogs stats users 850 * @throws SystemException if a system exception occurred 851 */ 852 public int countByU_L(long userId, java.util.Date lastPostDate) 853 throws com.liferay.portal.kernel.exception.SystemException; 854 855 /** 856 * Counts all the blogs stats users. 857 * 858 * @return the number of blogs stats users 859 * @throws SystemException if a system exception occurred 860 */ 861 public int countAll() 862 throws com.liferay.portal.kernel.exception.SystemException; 863 }