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.blogs.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.blogs.model.BlogsStatsUser; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the blogs stats user service. This utility wraps {@link BlogsStatsUserPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see BlogsStatsUserPersistence 037 * @see BlogsStatsUserPersistenceImpl 038 * @generated 039 */ 040 public class BlogsStatsUserUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(BlogsStatsUser blogsStatsUser) { 058 getPersistence().clearCache(blogsStatsUser); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<BlogsStatsUser> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<BlogsStatsUser> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<BlogsStatsUser> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser, 101 boolean merge) throws SystemException { 102 return getPersistence().update(blogsStatsUser, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static BlogsStatsUser update(BlogsStatsUser blogsStatsUser, 109 boolean merge, ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(blogsStatsUser, merge, serviceContext); 111 } 112 113 /** 114 * Caches the blogs stats user in the entity cache if it is enabled. 115 * 116 * @param blogsStatsUser the blogs stats user 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser) { 120 getPersistence().cacheResult(blogsStatsUser); 121 } 122 123 /** 124 * Caches the blogs stats users in the entity cache if it is enabled. 125 * 126 * @param blogsStatsUsers the blogs stats users 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> blogsStatsUsers) { 130 getPersistence().cacheResult(blogsStatsUsers); 131 } 132 133 /** 134 * Creates a new blogs stats user with the primary key. Does not add the blogs stats user to the database. 135 * 136 * @param statsUserId the primary key for the new blogs stats user 137 * @return the new blogs stats user 138 */ 139 public static com.liferay.portlet.blogs.model.BlogsStatsUser create( 140 long statsUserId) { 141 return getPersistence().create(statsUserId); 142 } 143 144 /** 145 * Removes the blogs stats user with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param statsUserId the primary key of the blogs stats user 148 * @return the blogs stats user that was removed 149 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.blogs.model.BlogsStatsUser remove( 153 long statsUserId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.blogs.NoSuchStatsUserException { 156 return getPersistence().remove(statsUserId); 157 } 158 159 public static com.liferay.portlet.blogs.model.BlogsStatsUser updateImpl( 160 com.liferay.portlet.blogs.model.BlogsStatsUser blogsStatsUser, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(blogsStatsUser, merge); 164 } 165 166 /** 167 * Returns the blogs stats user with the primary key or throws a {@link com.liferay.portlet.blogs.NoSuchStatsUserException} if it could not be found. 168 * 169 * @param statsUserId the primary key of the blogs stats user 170 * @return the blogs stats user 171 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByPrimaryKey( 175 long statsUserId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.blogs.NoSuchStatsUserException { 178 return getPersistence().findByPrimaryKey(statsUserId); 179 } 180 181 /** 182 * Returns the blogs stats user with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param statsUserId the primary key of the blogs stats user 185 * @return the blogs stats user, or <code>null</code> if a blogs stats user with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByPrimaryKey( 189 long statsUserId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(statsUserId); 192 } 193 194 /** 195 * Returns all the blogs stats users where groupId = ?. 196 * 197 * @param groupId the group ID 198 * @return the matching blogs stats users 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId( 202 long groupId) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByGroupId(groupId); 205 } 206 207 /** 208 * Returns a range of all the blogs stats users where groupId = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param groupId the group ID 215 * @param start the lower bound of the range of blogs stats users 216 * @param end the upper bound of the range of blogs stats users (not inclusive) 217 * @return the range of matching blogs stats users 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId( 221 long groupId, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByGroupId(groupId, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the blogs stats users where groupId = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param groupId the group ID 234 * @param start the lower bound of the range of blogs stats users 235 * @param end the upper bound of the range of blogs stats users (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching blogs stats users 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByGroupId( 241 long groupId, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByGroupId(groupId, start, end, orderByComparator); 246 } 247 248 /** 249 * Returns the first blogs stats user in the ordered set where groupId = ?. 250 * 251 * @param groupId the group ID 252 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 253 * @return the first matching blogs stats user 254 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_First( 258 long groupId, 259 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 260 throws com.liferay.portal.kernel.exception.SystemException, 261 com.liferay.portlet.blogs.NoSuchStatsUserException { 262 return getPersistence().findByGroupId_First(groupId, orderByComparator); 263 } 264 265 /** 266 * Returns the first blogs stats user in the ordered set where groupId = ?. 267 * 268 * @param groupId the group ID 269 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 270 * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByGroupId_First( 274 long groupId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException { 277 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 278 } 279 280 /** 281 * Returns the last blogs stats user in the ordered set where groupId = ?. 282 * 283 * @param groupId the group ID 284 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 285 * @return the last matching blogs stats user 286 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 287 * @throws SystemException if a system exception occurred 288 */ 289 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByGroupId_Last( 290 long groupId, 291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 292 throws com.liferay.portal.kernel.exception.SystemException, 293 com.liferay.portlet.blogs.NoSuchStatsUserException { 294 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 295 } 296 297 /** 298 * Returns the last blogs stats user in the ordered set where groupId = ?. 299 * 300 * @param groupId the group ID 301 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 302 * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 303 * @throws SystemException if a system exception occurred 304 */ 305 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByGroupId_Last( 306 long groupId, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.kernel.exception.SystemException { 309 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 310 } 311 312 /** 313 * Returns the blogs stats users before and after the current blogs stats user in the ordered set where groupId = ?. 314 * 315 * @param statsUserId the primary key of the current blogs stats user 316 * @param groupId the group ID 317 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 318 * @return the previous, current, and next blogs stats user 319 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByGroupId_PrevAndNext( 323 long statsUserId, long groupId, 324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 325 throws com.liferay.portal.kernel.exception.SystemException, 326 com.liferay.portlet.blogs.NoSuchStatsUserException { 327 return getPersistence() 328 .findByGroupId_PrevAndNext(statsUserId, groupId, 329 orderByComparator); 330 } 331 332 /** 333 * Returns all the blogs stats users where userId = ?. 334 * 335 * @param userId the user ID 336 * @return the matching blogs stats users 337 * @throws SystemException if a system exception occurred 338 */ 339 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId( 340 long userId) throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().findByUserId(userId); 342 } 343 344 /** 345 * Returns a range of all the blogs stats users where userId = ?. 346 * 347 * <p> 348 * 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. 349 * </p> 350 * 351 * @param userId the user ID 352 * @param start the lower bound of the range of blogs stats users 353 * @param end the upper bound of the range of blogs stats users (not inclusive) 354 * @return the range of matching blogs stats users 355 * @throws SystemException if a system exception occurred 356 */ 357 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId( 358 long userId, int start, int end) 359 throws com.liferay.portal.kernel.exception.SystemException { 360 return getPersistence().findByUserId(userId, start, end); 361 } 362 363 /** 364 * Returns an ordered range of all the blogs stats users where userId = ?. 365 * 366 * <p> 367 * 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. 368 * </p> 369 * 370 * @param userId the user ID 371 * @param start the lower bound of the range of blogs stats users 372 * @param end the upper bound of the range of blogs stats users (not inclusive) 373 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 374 * @return the ordered range of matching blogs stats users 375 * @throws SystemException if a system exception occurred 376 */ 377 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByUserId( 378 long userId, int start, int end, 379 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 380 throws com.liferay.portal.kernel.exception.SystemException { 381 return getPersistence() 382 .findByUserId(userId, start, end, orderByComparator); 383 } 384 385 /** 386 * Returns the first blogs stats user in the ordered set where userId = ?. 387 * 388 * @param userId the user ID 389 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 390 * @return the first matching blogs stats user 391 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 392 * @throws SystemException if a system exception occurred 393 */ 394 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_First( 395 long userId, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.kernel.exception.SystemException, 398 com.liferay.portlet.blogs.NoSuchStatsUserException { 399 return getPersistence().findByUserId_First(userId, orderByComparator); 400 } 401 402 /** 403 * Returns the first blogs stats user in the ordered set where userId = ?. 404 * 405 * @param userId the user ID 406 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 407 * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 408 * @throws SystemException if a system exception occurred 409 */ 410 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByUserId_First( 411 long userId, 412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 413 throws com.liferay.portal.kernel.exception.SystemException { 414 return getPersistence().fetchByUserId_First(userId, orderByComparator); 415 } 416 417 /** 418 * Returns the last blogs stats user in the ordered set where userId = ?. 419 * 420 * @param userId the user ID 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the last matching blogs stats user 423 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 424 * @throws SystemException if a system exception occurred 425 */ 426 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByUserId_Last( 427 long userId, 428 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 429 throws com.liferay.portal.kernel.exception.SystemException, 430 com.liferay.portlet.blogs.NoSuchStatsUserException { 431 return getPersistence().findByUserId_Last(userId, orderByComparator); 432 } 433 434 /** 435 * Returns the last blogs stats user in the ordered set where userId = ?. 436 * 437 * @param userId the user ID 438 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 439 * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 440 * @throws SystemException if a system exception occurred 441 */ 442 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByUserId_Last( 443 long userId, 444 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 445 throws com.liferay.portal.kernel.exception.SystemException { 446 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 447 } 448 449 /** 450 * Returns the blogs stats users before and after the current blogs stats user in the ordered set where userId = ?. 451 * 452 * @param statsUserId the primary key of the current blogs stats user 453 * @param userId the user ID 454 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 455 * @return the previous, current, and next blogs stats user 456 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 457 * @throws SystemException if a system exception occurred 458 */ 459 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByUserId_PrevAndNext( 460 long statsUserId, long userId, 461 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 462 throws com.liferay.portal.kernel.exception.SystemException, 463 com.liferay.portlet.blogs.NoSuchStatsUserException { 464 return getPersistence() 465 .findByUserId_PrevAndNext(statsUserId, userId, 466 orderByComparator); 467 } 468 469 /** 470 * Returns the blogs stats user where groupId = ? and userId = ? or throws a {@link com.liferay.portlet.blogs.NoSuchStatsUserException} if it could not be found. 471 * 472 * @param groupId the group ID 473 * @param userId the user ID 474 * @return the matching blogs stats user 475 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 476 * @throws SystemException if a system exception occurred 477 */ 478 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_U( 479 long groupId, long userId) 480 throws com.liferay.portal.kernel.exception.SystemException, 481 com.liferay.portlet.blogs.NoSuchStatsUserException { 482 return getPersistence().findByG_U(groupId, userId); 483 } 484 485 /** 486 * Returns the blogs stats user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 487 * 488 * @param groupId the group ID 489 * @param userId the user ID 490 * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 491 * @throws SystemException if a system exception occurred 492 */ 493 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U( 494 long groupId, long userId) 495 throws com.liferay.portal.kernel.exception.SystemException { 496 return getPersistence().fetchByG_U(groupId, userId); 497 } 498 499 /** 500 * Returns the blogs stats user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 501 * 502 * @param groupId the group ID 503 * @param userId the user ID 504 * @param retrieveFromCache whether to use the finder cache 505 * @return the matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 506 * @throws SystemException if a system exception occurred 507 */ 508 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_U( 509 long groupId, long userId, boolean retrieveFromCache) 510 throws com.liferay.portal.kernel.exception.SystemException { 511 return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache); 512 } 513 514 /** 515 * Returns all the blogs stats users where groupId = ? and entryCount ≠ ?. 516 * 517 * @param groupId the group ID 518 * @param entryCount the entry count 519 * @return the matching blogs stats users 520 * @throws SystemException if a system exception occurred 521 */ 522 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE( 523 long groupId, int entryCount) 524 throws com.liferay.portal.kernel.exception.SystemException { 525 return getPersistence().findByG_NotE(groupId, entryCount); 526 } 527 528 /** 529 * Returns a range of all the blogs stats users where groupId = ? and entryCount ≠ ?. 530 * 531 * <p> 532 * 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. 533 * </p> 534 * 535 * @param groupId the group ID 536 * @param entryCount the entry count 537 * @param start the lower bound of the range of blogs stats users 538 * @param end the upper bound of the range of blogs stats users (not inclusive) 539 * @return the range of matching blogs stats users 540 * @throws SystemException if a system exception occurred 541 */ 542 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE( 543 long groupId, int entryCount, int start, int end) 544 throws com.liferay.portal.kernel.exception.SystemException { 545 return getPersistence().findByG_NotE(groupId, entryCount, start, end); 546 } 547 548 /** 549 * Returns an ordered range of all the blogs stats users where groupId = ? and entryCount ≠ ?. 550 * 551 * <p> 552 * 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. 553 * </p> 554 * 555 * @param groupId the group ID 556 * @param entryCount the entry count 557 * @param start the lower bound of the range of blogs stats users 558 * @param end the upper bound of the range of blogs stats users (not inclusive) 559 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 560 * @return the ordered range of matching blogs stats users 561 * @throws SystemException if a system exception occurred 562 */ 563 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByG_NotE( 564 long groupId, int entryCount, int start, int end, 565 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 566 throws com.liferay.portal.kernel.exception.SystemException { 567 return getPersistence() 568 .findByG_NotE(groupId, entryCount, start, end, 569 orderByComparator); 570 } 571 572 /** 573 * Returns the first blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. 574 * 575 * @param groupId the group ID 576 * @param entryCount the entry count 577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 578 * @return the first matching blogs stats user 579 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_First( 583 long groupId, int entryCount, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.kernel.exception.SystemException, 586 com.liferay.portlet.blogs.NoSuchStatsUserException { 587 return getPersistence() 588 .findByG_NotE_First(groupId, entryCount, orderByComparator); 589 } 590 591 /** 592 * Returns the first blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. 593 * 594 * @param groupId the group ID 595 * @param entryCount the entry count 596 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 597 * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 598 * @throws SystemException if a system exception occurred 599 */ 600 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_NotE_First( 601 long groupId, int entryCount, 602 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 603 throws com.liferay.portal.kernel.exception.SystemException { 604 return getPersistence() 605 .fetchByG_NotE_First(groupId, entryCount, orderByComparator); 606 } 607 608 /** 609 * Returns the last blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. 610 * 611 * @param groupId the group ID 612 * @param entryCount the entry count 613 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 614 * @return the last matching blogs stats user 615 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 616 * @throws SystemException if a system exception occurred 617 */ 618 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByG_NotE_Last( 619 long groupId, int entryCount, 620 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 621 throws com.liferay.portal.kernel.exception.SystemException, 622 com.liferay.portlet.blogs.NoSuchStatsUserException { 623 return getPersistence() 624 .findByG_NotE_Last(groupId, entryCount, orderByComparator); 625 } 626 627 /** 628 * Returns the last blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. 629 * 630 * @param groupId the group ID 631 * @param entryCount the entry count 632 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 633 * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 634 * @throws SystemException if a system exception occurred 635 */ 636 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByG_NotE_Last( 637 long groupId, int entryCount, 638 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 639 throws com.liferay.portal.kernel.exception.SystemException { 640 return getPersistence() 641 .fetchByG_NotE_Last(groupId, entryCount, orderByComparator); 642 } 643 644 /** 645 * Returns the blogs stats users before and after the current blogs stats user in the ordered set where groupId = ? and entryCount ≠ ?. 646 * 647 * @param statsUserId the primary key of the current blogs stats user 648 * @param groupId the group ID 649 * @param entryCount the entry count 650 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 651 * @return the previous, current, and next blogs stats user 652 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 653 * @throws SystemException if a system exception occurred 654 */ 655 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByG_NotE_PrevAndNext( 656 long statsUserId, long groupId, int entryCount, 657 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 658 throws com.liferay.portal.kernel.exception.SystemException, 659 com.liferay.portlet.blogs.NoSuchStatsUserException { 660 return getPersistence() 661 .findByG_NotE_PrevAndNext(statsUserId, groupId, entryCount, 662 orderByComparator); 663 } 664 665 /** 666 * Returns all the blogs stats users where companyId = ? and entryCount ≠ ?. 667 * 668 * @param companyId the company ID 669 * @param entryCount the entry count 670 * @return the matching blogs stats users 671 * @throws SystemException if a system exception occurred 672 */ 673 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE( 674 long companyId, int entryCount) 675 throws com.liferay.portal.kernel.exception.SystemException { 676 return getPersistence().findByC_NotE(companyId, entryCount); 677 } 678 679 /** 680 * Returns a range of all the blogs stats users where companyId = ? and entryCount ≠ ?. 681 * 682 * <p> 683 * 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. 684 * </p> 685 * 686 * @param companyId the company ID 687 * @param entryCount the entry count 688 * @param start the lower bound of the range of blogs stats users 689 * @param end the upper bound of the range of blogs stats users (not inclusive) 690 * @return the range of matching blogs stats users 691 * @throws SystemException if a system exception occurred 692 */ 693 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE( 694 long companyId, int entryCount, int start, int end) 695 throws com.liferay.portal.kernel.exception.SystemException { 696 return getPersistence().findByC_NotE(companyId, entryCount, start, end); 697 } 698 699 /** 700 * Returns an ordered range of all the blogs stats users where companyId = ? and entryCount ≠ ?. 701 * 702 * <p> 703 * 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. 704 * </p> 705 * 706 * @param companyId the company ID 707 * @param entryCount the entry count 708 * @param start the lower bound of the range of blogs stats users 709 * @param end the upper bound of the range of blogs stats users (not inclusive) 710 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 711 * @return the ordered range of matching blogs stats users 712 * @throws SystemException if a system exception occurred 713 */ 714 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByC_NotE( 715 long companyId, int entryCount, int start, int end, 716 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 717 throws com.liferay.portal.kernel.exception.SystemException { 718 return getPersistence() 719 .findByC_NotE(companyId, entryCount, start, end, 720 orderByComparator); 721 } 722 723 /** 724 * Returns the first blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. 725 * 726 * @param companyId the company ID 727 * @param entryCount the entry count 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the first matching blogs stats user 730 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 731 * @throws SystemException if a system exception occurred 732 */ 733 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_First( 734 long companyId, int entryCount, 735 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 736 throws com.liferay.portal.kernel.exception.SystemException, 737 com.liferay.portlet.blogs.NoSuchStatsUserException { 738 return getPersistence() 739 .findByC_NotE_First(companyId, entryCount, orderByComparator); 740 } 741 742 /** 743 * Returns the first blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. 744 * 745 * @param companyId the company ID 746 * @param entryCount the entry count 747 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 748 * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 749 * @throws SystemException if a system exception occurred 750 */ 751 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByC_NotE_First( 752 long companyId, int entryCount, 753 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 754 throws com.liferay.portal.kernel.exception.SystemException { 755 return getPersistence() 756 .fetchByC_NotE_First(companyId, entryCount, orderByComparator); 757 } 758 759 /** 760 * Returns the last blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. 761 * 762 * @param companyId the company ID 763 * @param entryCount the entry count 764 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 765 * @return the last matching blogs stats user 766 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 767 * @throws SystemException if a system exception occurred 768 */ 769 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByC_NotE_Last( 770 long companyId, int entryCount, 771 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 772 throws com.liferay.portal.kernel.exception.SystemException, 773 com.liferay.portlet.blogs.NoSuchStatsUserException { 774 return getPersistence() 775 .findByC_NotE_Last(companyId, entryCount, orderByComparator); 776 } 777 778 /** 779 * Returns the last blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. 780 * 781 * @param companyId the company ID 782 * @param entryCount the entry count 783 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 784 * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 785 * @throws SystemException if a system exception occurred 786 */ 787 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByC_NotE_Last( 788 long companyId, int entryCount, 789 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 790 throws com.liferay.portal.kernel.exception.SystemException { 791 return getPersistence() 792 .fetchByC_NotE_Last(companyId, entryCount, orderByComparator); 793 } 794 795 /** 796 * Returns the blogs stats users before and after the current blogs stats user in the ordered set where companyId = ? and entryCount ≠ ?. 797 * 798 * @param statsUserId the primary key of the current blogs stats user 799 * @param companyId the company ID 800 * @param entryCount the entry count 801 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 802 * @return the previous, current, and next blogs stats user 803 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 804 * @throws SystemException if a system exception occurred 805 */ 806 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByC_NotE_PrevAndNext( 807 long statsUserId, long companyId, int entryCount, 808 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 809 throws com.liferay.portal.kernel.exception.SystemException, 810 com.liferay.portlet.blogs.NoSuchStatsUserException { 811 return getPersistence() 812 .findByC_NotE_PrevAndNext(statsUserId, companyId, 813 entryCount, orderByComparator); 814 } 815 816 /** 817 * Returns all the blogs stats users where userId = ? and lastPostDate = ?. 818 * 819 * @param userId the user ID 820 * @param lastPostDate the last post date 821 * @return the matching blogs stats users 822 * @throws SystemException if a system exception occurred 823 */ 824 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L( 825 long userId, java.util.Date lastPostDate) 826 throws com.liferay.portal.kernel.exception.SystemException { 827 return getPersistence().findByU_L(userId, lastPostDate); 828 } 829 830 /** 831 * Returns a range of all the blogs stats users where userId = ? and lastPostDate = ?. 832 * 833 * <p> 834 * 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. 835 * </p> 836 * 837 * @param userId the user ID 838 * @param lastPostDate the last post date 839 * @param start the lower bound of the range of blogs stats users 840 * @param end the upper bound of the range of blogs stats users (not inclusive) 841 * @return the range of matching blogs stats users 842 * @throws SystemException if a system exception occurred 843 */ 844 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L( 845 long userId, java.util.Date lastPostDate, int start, int end) 846 throws com.liferay.portal.kernel.exception.SystemException { 847 return getPersistence().findByU_L(userId, lastPostDate, start, end); 848 } 849 850 /** 851 * Returns an ordered range of all the blogs stats users where userId = ? and lastPostDate = ?. 852 * 853 * <p> 854 * 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. 855 * </p> 856 * 857 * @param userId the user ID 858 * @param lastPostDate the last post date 859 * @param start the lower bound of the range of blogs stats users 860 * @param end the upper bound of the range of blogs stats users (not inclusive) 861 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 862 * @return the ordered range of matching blogs stats users 863 * @throws SystemException if a system exception occurred 864 */ 865 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findByU_L( 866 long userId, java.util.Date lastPostDate, int start, int end, 867 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 868 throws com.liferay.portal.kernel.exception.SystemException { 869 return getPersistence() 870 .findByU_L(userId, lastPostDate, start, end, 871 orderByComparator); 872 } 873 874 /** 875 * Returns the first blogs stats user in the ordered set where userId = ? and lastPostDate = ?. 876 * 877 * @param userId the user ID 878 * @param lastPostDate the last post date 879 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 880 * @return the first matching blogs stats user 881 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 882 * @throws SystemException if a system exception occurred 883 */ 884 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_First( 885 long userId, java.util.Date lastPostDate, 886 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 887 throws com.liferay.portal.kernel.exception.SystemException, 888 com.liferay.portlet.blogs.NoSuchStatsUserException { 889 return getPersistence() 890 .findByU_L_First(userId, lastPostDate, orderByComparator); 891 } 892 893 /** 894 * Returns the first blogs stats user in the ordered set where userId = ? and lastPostDate = ?. 895 * 896 * @param userId the user ID 897 * @param lastPostDate the last post date 898 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 899 * @return the first matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 900 * @throws SystemException if a system exception occurred 901 */ 902 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByU_L_First( 903 long userId, java.util.Date lastPostDate, 904 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 905 throws com.liferay.portal.kernel.exception.SystemException { 906 return getPersistence() 907 .fetchByU_L_First(userId, lastPostDate, orderByComparator); 908 } 909 910 /** 911 * Returns the last blogs stats user in the ordered set where userId = ? and lastPostDate = ?. 912 * 913 * @param userId the user ID 914 * @param lastPostDate the last post date 915 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 916 * @return the last matching blogs stats user 917 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a matching blogs stats user could not be found 918 * @throws SystemException if a system exception occurred 919 */ 920 public static com.liferay.portlet.blogs.model.BlogsStatsUser findByU_L_Last( 921 long userId, java.util.Date lastPostDate, 922 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 923 throws com.liferay.portal.kernel.exception.SystemException, 924 com.liferay.portlet.blogs.NoSuchStatsUserException { 925 return getPersistence() 926 .findByU_L_Last(userId, lastPostDate, orderByComparator); 927 } 928 929 /** 930 * Returns the last blogs stats user in the ordered set where userId = ? and lastPostDate = ?. 931 * 932 * @param userId the user ID 933 * @param lastPostDate the last post date 934 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 935 * @return the last matching blogs stats user, or <code>null</code> if a matching blogs stats user could not be found 936 * @throws SystemException if a system exception occurred 937 */ 938 public static com.liferay.portlet.blogs.model.BlogsStatsUser fetchByU_L_Last( 939 long userId, java.util.Date lastPostDate, 940 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 941 throws com.liferay.portal.kernel.exception.SystemException { 942 return getPersistence() 943 .fetchByU_L_Last(userId, lastPostDate, orderByComparator); 944 } 945 946 /** 947 * Returns the blogs stats users before and after the current blogs stats user in the ordered set where userId = ? and lastPostDate = ?. 948 * 949 * @param statsUserId the primary key of the current blogs stats user 950 * @param userId the user ID 951 * @param lastPostDate the last post date 952 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 953 * @return the previous, current, and next blogs stats user 954 * @throws com.liferay.portlet.blogs.NoSuchStatsUserException if a blogs stats user with the primary key could not be found 955 * @throws SystemException if a system exception occurred 956 */ 957 public static com.liferay.portlet.blogs.model.BlogsStatsUser[] findByU_L_PrevAndNext( 958 long statsUserId, long userId, java.util.Date lastPostDate, 959 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 960 throws com.liferay.portal.kernel.exception.SystemException, 961 com.liferay.portlet.blogs.NoSuchStatsUserException { 962 return getPersistence() 963 .findByU_L_PrevAndNext(statsUserId, userId, lastPostDate, 964 orderByComparator); 965 } 966 967 /** 968 * Returns all the blogs stats users. 969 * 970 * @return the blogs stats users 971 * @throws SystemException if a system exception occurred 972 */ 973 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll() 974 throws com.liferay.portal.kernel.exception.SystemException { 975 return getPersistence().findAll(); 976 } 977 978 /** 979 * Returns a range of all the blogs stats users. 980 * 981 * <p> 982 * 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. 983 * </p> 984 * 985 * @param start the lower bound of the range of blogs stats users 986 * @param end the upper bound of the range of blogs stats users (not inclusive) 987 * @return the range of blogs stats users 988 * @throws SystemException if a system exception occurred 989 */ 990 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll( 991 int start, int end) 992 throws com.liferay.portal.kernel.exception.SystemException { 993 return getPersistence().findAll(start, end); 994 } 995 996 /** 997 * Returns an ordered range of all the blogs stats users. 998 * 999 * <p> 1000 * 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. 1001 * </p> 1002 * 1003 * @param start the lower bound of the range of blogs stats users 1004 * @param end the upper bound of the range of blogs stats users (not inclusive) 1005 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1006 * @return the ordered range of blogs stats users 1007 * @throws SystemException if a system exception occurred 1008 */ 1009 public static java.util.List<com.liferay.portlet.blogs.model.BlogsStatsUser> findAll( 1010 int start, int end, 1011 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1012 throws com.liferay.portal.kernel.exception.SystemException { 1013 return getPersistence().findAll(start, end, orderByComparator); 1014 } 1015 1016 /** 1017 * Removes all the blogs stats users where groupId = ? from the database. 1018 * 1019 * @param groupId the group ID 1020 * @throws SystemException if a system exception occurred 1021 */ 1022 public static void removeByGroupId(long groupId) 1023 throws com.liferay.portal.kernel.exception.SystemException { 1024 getPersistence().removeByGroupId(groupId); 1025 } 1026 1027 /** 1028 * Removes all the blogs stats users where userId = ? from the database. 1029 * 1030 * @param userId the user ID 1031 * @throws SystemException if a system exception occurred 1032 */ 1033 public static void removeByUserId(long userId) 1034 throws com.liferay.portal.kernel.exception.SystemException { 1035 getPersistence().removeByUserId(userId); 1036 } 1037 1038 /** 1039 * Removes the blogs stats user where groupId = ? and userId = ? from the database. 1040 * 1041 * @param groupId the group ID 1042 * @param userId the user ID 1043 * @return the blogs stats user that was removed 1044 * @throws SystemException if a system exception occurred 1045 */ 1046 public static com.liferay.portlet.blogs.model.BlogsStatsUser removeByG_U( 1047 long groupId, long userId) 1048 throws com.liferay.portal.kernel.exception.SystemException, 1049 com.liferay.portlet.blogs.NoSuchStatsUserException { 1050 return getPersistence().removeByG_U(groupId, userId); 1051 } 1052 1053 /** 1054 * Removes all the blogs stats users where groupId = ? and entryCount ≠ ? from the database. 1055 * 1056 * @param groupId the group ID 1057 * @param entryCount the entry count 1058 * @throws SystemException if a system exception occurred 1059 */ 1060 public static void removeByG_NotE(long groupId, int entryCount) 1061 throws com.liferay.portal.kernel.exception.SystemException { 1062 getPersistence().removeByG_NotE(groupId, entryCount); 1063 } 1064 1065 /** 1066 * Removes all the blogs stats users where companyId = ? and entryCount ≠ ? from the database. 1067 * 1068 * @param companyId the company ID 1069 * @param entryCount the entry count 1070 * @throws SystemException if a system exception occurred 1071 */ 1072 public static void removeByC_NotE(long companyId, int entryCount) 1073 throws com.liferay.portal.kernel.exception.SystemException { 1074 getPersistence().removeByC_NotE(companyId, entryCount); 1075 } 1076 1077 /** 1078 * Removes all the blogs stats users where userId = ? and lastPostDate = ? from the database. 1079 * 1080 * @param userId the user ID 1081 * @param lastPostDate the last post date 1082 * @throws SystemException if a system exception occurred 1083 */ 1084 public static void removeByU_L(long userId, java.util.Date lastPostDate) 1085 throws com.liferay.portal.kernel.exception.SystemException { 1086 getPersistence().removeByU_L(userId, lastPostDate); 1087 } 1088 1089 /** 1090 * Removes all the blogs stats users from the database. 1091 * 1092 * @throws SystemException if a system exception occurred 1093 */ 1094 public static void removeAll() 1095 throws com.liferay.portal.kernel.exception.SystemException { 1096 getPersistence().removeAll(); 1097 } 1098 1099 /** 1100 * Returns the number of blogs stats users where groupId = ?. 1101 * 1102 * @param groupId the group ID 1103 * @return the number of matching blogs stats users 1104 * @throws SystemException if a system exception occurred 1105 */ 1106 public static int countByGroupId(long groupId) 1107 throws com.liferay.portal.kernel.exception.SystemException { 1108 return getPersistence().countByGroupId(groupId); 1109 } 1110 1111 /** 1112 * Returns the number of blogs stats users where userId = ?. 1113 * 1114 * @param userId the user ID 1115 * @return the number of matching blogs stats users 1116 * @throws SystemException if a system exception occurred 1117 */ 1118 public static int countByUserId(long userId) 1119 throws com.liferay.portal.kernel.exception.SystemException { 1120 return getPersistence().countByUserId(userId); 1121 } 1122 1123 /** 1124 * Returns the number of blogs stats users where groupId = ? and userId = ?. 1125 * 1126 * @param groupId the group ID 1127 * @param userId the user ID 1128 * @return the number of matching blogs stats users 1129 * @throws SystemException if a system exception occurred 1130 */ 1131 public static int countByG_U(long groupId, long userId) 1132 throws com.liferay.portal.kernel.exception.SystemException { 1133 return getPersistence().countByG_U(groupId, userId); 1134 } 1135 1136 /** 1137 * Returns the number of blogs stats users where groupId = ? and entryCount ≠ ?. 1138 * 1139 * @param groupId the group ID 1140 * @param entryCount the entry count 1141 * @return the number of matching blogs stats users 1142 * @throws SystemException if a system exception occurred 1143 */ 1144 public static int countByG_NotE(long groupId, int entryCount) 1145 throws com.liferay.portal.kernel.exception.SystemException { 1146 return getPersistence().countByG_NotE(groupId, entryCount); 1147 } 1148 1149 /** 1150 * Returns the number of blogs stats users where companyId = ? and entryCount ≠ ?. 1151 * 1152 * @param companyId the company ID 1153 * @param entryCount the entry count 1154 * @return the number of matching blogs stats users 1155 * @throws SystemException if a system exception occurred 1156 */ 1157 public static int countByC_NotE(long companyId, int entryCount) 1158 throws com.liferay.portal.kernel.exception.SystemException { 1159 return getPersistence().countByC_NotE(companyId, entryCount); 1160 } 1161 1162 /** 1163 * Returns the number of blogs stats users where userId = ? and lastPostDate = ?. 1164 * 1165 * @param userId the user ID 1166 * @param lastPostDate the last post date 1167 * @return the number of matching blogs stats users 1168 * @throws SystemException if a system exception occurred 1169 */ 1170 public static int countByU_L(long userId, java.util.Date lastPostDate) 1171 throws com.liferay.portal.kernel.exception.SystemException { 1172 return getPersistence().countByU_L(userId, lastPostDate); 1173 } 1174 1175 /** 1176 * Returns the number of blogs stats users. 1177 * 1178 * @return the number of blogs stats users 1179 * @throws SystemException if a system exception occurred 1180 */ 1181 public static int countAll() 1182 throws com.liferay.portal.kernel.exception.SystemException { 1183 return getPersistence().countAll(); 1184 } 1185 1186 public static BlogsStatsUserPersistence getPersistence() { 1187 if (_persistence == null) { 1188 _persistence = (BlogsStatsUserPersistence)PortalBeanLocatorUtil.locate(BlogsStatsUserPersistence.class.getName()); 1189 1190 ReferenceRegistry.registerReference(BlogsStatsUserUtil.class, 1191 "_persistence"); 1192 } 1193 1194 return _persistence; 1195 } 1196 1197 /** 1198 * @deprecated 1199 */ 1200 public void setPersistence(BlogsStatsUserPersistence persistence) { 1201 } 1202 1203 private static BlogsStatsUserPersistence _persistence; 1204 }