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