001 /** 002 * Copyright (c) 2000-2011 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.messageboards.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.messageboards.model.MBStatsUser; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the message boards stats user service. This utility wraps {@link MBStatsUserPersistenceImpl} 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 MBStatsUserPersistence 037 * @see MBStatsUserPersistenceImpl 038 * @generated 039 */ 040 public class MBStatsUserUtil { 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(MBStatsUser mbStatsUser) { 058 getPersistence().clearCache(mbStatsUser); 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<MBStatsUser> 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<MBStatsUser> 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<MBStatsUser> 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#remove(com.liferay.portal.model.BaseModel) 099 */ 100 public static MBStatsUser remove(MBStatsUser mbStatsUser) 101 throws SystemException { 102 return getPersistence().remove(mbStatsUser); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 107 */ 108 public static MBStatsUser update(MBStatsUser mbStatsUser, boolean merge) 109 throws SystemException { 110 return getPersistence().update(mbStatsUser, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static MBStatsUser update(MBStatsUser mbStatsUser, boolean merge, 117 ServiceContext serviceContext) throws SystemException { 118 return getPersistence().update(mbStatsUser, merge, serviceContext); 119 } 120 121 /** 122 * Caches the message boards stats user in the entity cache if it is enabled. 123 * 124 * @param mbStatsUser the message boards stats user 125 */ 126 public static void cacheResult( 127 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) { 128 getPersistence().cacheResult(mbStatsUser); 129 } 130 131 /** 132 * Caches the message boards stats users in the entity cache if it is enabled. 133 * 134 * @param mbStatsUsers the message boards stats users 135 */ 136 public static void cacheResult( 137 java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers) { 138 getPersistence().cacheResult(mbStatsUsers); 139 } 140 141 /** 142 * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database. 143 * 144 * @param statsUserId the primary key for the new message boards stats user 145 * @return the new message boards stats user 146 */ 147 public static com.liferay.portlet.messageboards.model.MBStatsUser create( 148 long statsUserId) { 149 return getPersistence().create(statsUserId); 150 } 151 152 /** 153 * Removes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners. 154 * 155 * @param statsUserId the primary key of the message boards stats user 156 * @return the message boards stats user that was removed 157 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public static com.liferay.portlet.messageboards.model.MBStatsUser remove( 161 long statsUserId) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.messageboards.NoSuchStatsUserException { 164 return getPersistence().remove(statsUserId); 165 } 166 167 public static com.liferay.portlet.messageboards.model.MBStatsUser updateImpl( 168 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser, 169 boolean merge) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().updateImpl(mbStatsUser, merge); 172 } 173 174 /** 175 * Returns the message boards stats user with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchStatsUserException} if it could not be found. 176 * 177 * @param statsUserId the primary key of the message boards stats user 178 * @return the message boards stats user 179 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 180 * @throws SystemException if a system exception occurred 181 */ 182 public static com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey( 183 long statsUserId) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.messageboards.NoSuchStatsUserException { 186 return getPersistence().findByPrimaryKey(statsUserId); 187 } 188 189 /** 190 * Returns the message boards stats user with the primary key or returns <code>null</code> if it could not be found. 191 * 192 * @param statsUserId the primary key of the message boards stats user 193 * @return the message boards stats user, or <code>null</code> if a message boards stats user with the primary key could not be found 194 * @throws SystemException if a system exception occurred 195 */ 196 public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey( 197 long statsUserId) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return getPersistence().fetchByPrimaryKey(statsUserId); 200 } 201 202 /** 203 * Returns all the message boards stats users where groupId = ?. 204 * 205 * @param groupId the group ID 206 * @return the matching message boards stats users 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId( 210 long groupId) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByGroupId(groupId); 213 } 214 215 /** 216 * Returns a range of all the message boards stats users where groupId = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param groupId the group ID 223 * @param start the lower bound of the range of message boards stats users 224 * @param end the upper bound of the range of message boards stats users (not inclusive) 225 * @return the range of matching message boards stats users 226 * @throws SystemException if a system exception occurred 227 */ 228 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId( 229 long groupId, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException { 231 return getPersistence().findByGroupId(groupId, start, end); 232 } 233 234 /** 235 * Returns an ordered range of all the message boards stats users where groupId = ?. 236 * 237 * <p> 238 * 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. 239 * </p> 240 * 241 * @param groupId the group ID 242 * @param start the lower bound of the range of message boards stats users 243 * @param end the upper bound of the range of message boards stats users (not inclusive) 244 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 245 * @return the ordered range of matching message boards stats users 246 * @throws SystemException if a system exception occurred 247 */ 248 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId( 249 long groupId, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException { 252 return getPersistence() 253 .findByGroupId(groupId, start, end, orderByComparator); 254 } 255 256 /** 257 * Returns the first message boards stats user in the ordered set where groupId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param groupId the group ID 264 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 265 * @return the first matching message boards stats user 266 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First( 270 long groupId, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.messageboards.NoSuchStatsUserException { 274 return getPersistence().findByGroupId_First(groupId, orderByComparator); 275 } 276 277 /** 278 * Returns the last message boards stats user in the ordered set where groupId = ?. 279 * 280 * <p> 281 * 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. 282 * </p> 283 * 284 * @param groupId the group ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching message boards stats user 287 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public static com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last( 291 long groupId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.messageboards.NoSuchStatsUserException { 295 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 296 } 297 298 /** 299 * Returns the message boards stats users before and after the current message boards stats user in the ordered set where groupId = ?. 300 * 301 * <p> 302 * 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. 303 * </p> 304 * 305 * @param statsUserId the primary key of the current message boards stats user 306 * @param groupId the group ID 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the previous, current, and next message boards stats user 309 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 310 * @throws SystemException if a system exception occurred 311 */ 312 public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext( 313 long statsUserId, long groupId, 314 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 315 throws com.liferay.portal.kernel.exception.SystemException, 316 com.liferay.portlet.messageboards.NoSuchStatsUserException { 317 return getPersistence() 318 .findByGroupId_PrevAndNext(statsUserId, groupId, 319 orderByComparator); 320 } 321 322 /** 323 * Returns all the message boards stats users where userId = ?. 324 * 325 * @param userId the user ID 326 * @return the matching message boards stats users 327 * @throws SystemException if a system exception occurred 328 */ 329 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId( 330 long userId) throws com.liferay.portal.kernel.exception.SystemException { 331 return getPersistence().findByUserId(userId); 332 } 333 334 /** 335 * Returns a range of all the message boards stats users where userId = ?. 336 * 337 * <p> 338 * 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. 339 * </p> 340 * 341 * @param userId the user ID 342 * @param start the lower bound of the range of message boards stats users 343 * @param end the upper bound of the range of message boards stats users (not inclusive) 344 * @return the range of matching message boards stats users 345 * @throws SystemException if a system exception occurred 346 */ 347 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId( 348 long userId, int start, int end) 349 throws com.liferay.portal.kernel.exception.SystemException { 350 return getPersistence().findByUserId(userId, start, end); 351 } 352 353 /** 354 * Returns an ordered range of all the message boards stats users where userId = ?. 355 * 356 * <p> 357 * 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. 358 * </p> 359 * 360 * @param userId the user ID 361 * @param start the lower bound of the range of message boards stats users 362 * @param end the upper bound of the range of message boards stats users (not inclusive) 363 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 364 * @return the ordered range of matching message boards stats users 365 * @throws SystemException if a system exception occurred 366 */ 367 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId( 368 long userId, int start, int end, 369 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 370 throws com.liferay.portal.kernel.exception.SystemException { 371 return getPersistence() 372 .findByUserId(userId, start, end, orderByComparator); 373 } 374 375 /** 376 * Returns the first message boards stats user in the ordered set where userId = ?. 377 * 378 * <p> 379 * 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. 380 * </p> 381 * 382 * @param userId the user ID 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the first matching message boards stats user 385 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 386 * @throws SystemException if a system exception occurred 387 */ 388 public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First( 389 long userId, 390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 391 throws com.liferay.portal.kernel.exception.SystemException, 392 com.liferay.portlet.messageboards.NoSuchStatsUserException { 393 return getPersistence().findByUserId_First(userId, orderByComparator); 394 } 395 396 /** 397 * Returns the last message boards stats user in the ordered set where userId = ?. 398 * 399 * <p> 400 * 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. 401 * </p> 402 * 403 * @param userId the user ID 404 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 405 * @return the last matching message boards stats user 406 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 407 * @throws SystemException if a system exception occurred 408 */ 409 public static com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last( 410 long userId, 411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 412 throws com.liferay.portal.kernel.exception.SystemException, 413 com.liferay.portlet.messageboards.NoSuchStatsUserException { 414 return getPersistence().findByUserId_Last(userId, orderByComparator); 415 } 416 417 /** 418 * Returns the message boards stats users before and after the current message boards stats user in the ordered set where userId = ?. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param statsUserId the primary key of the current message boards stats user 425 * @param userId the user ID 426 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 427 * @return the previous, current, and next message boards stats user 428 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 429 * @throws SystemException if a system exception occurred 430 */ 431 public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext( 432 long statsUserId, long userId, 433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 434 throws com.liferay.portal.kernel.exception.SystemException, 435 com.liferay.portlet.messageboards.NoSuchStatsUserException { 436 return getPersistence() 437 .findByUserId_PrevAndNext(statsUserId, userId, 438 orderByComparator); 439 } 440 441 /** 442 * Returns the message boards stats user where groupId = ? and userId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchStatsUserException} if it could not be found. 443 * 444 * @param groupId the group ID 445 * @param userId the user ID 446 * @return the matching message boards stats user 447 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 448 * @throws SystemException if a system exception occurred 449 */ 450 public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_U( 451 long groupId, long userId) 452 throws com.liferay.portal.kernel.exception.SystemException, 453 com.liferay.portlet.messageboards.NoSuchStatsUserException { 454 return getPersistence().findByG_U(groupId, userId); 455 } 456 457 /** 458 * Returns the message boards stats user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 459 * 460 * @param groupId the group ID 461 * @param userId the user ID 462 * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U( 466 long groupId, long userId) 467 throws com.liferay.portal.kernel.exception.SystemException { 468 return getPersistence().fetchByG_U(groupId, userId); 469 } 470 471 /** 472 * Returns the message boards stats user where groupId = ? and userId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 473 * 474 * @param groupId the group ID 475 * @param userId the user ID 476 * @param retrieveFromCache whether to use the finder cache 477 * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public static com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U( 481 long groupId, long userId, boolean retrieveFromCache) 482 throws com.liferay.portal.kernel.exception.SystemException { 483 return getPersistence().fetchByG_U(groupId, userId, retrieveFromCache); 484 } 485 486 /** 487 * Returns all the message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ?. 488 * 489 * @param groupId the group ID 490 * @param userId the user ID 491 * @param messageCount the message count 492 * @return the matching message boards stats users 493 * @throws SystemException if a system exception occurred 494 */ 495 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM( 496 long groupId, long userId, int messageCount) 497 throws com.liferay.portal.kernel.exception.SystemException { 498 return getPersistence().findByG_NotU_NotM(groupId, userId, messageCount); 499 } 500 501 /** 502 * Returns a range of all the message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ?. 503 * 504 * <p> 505 * 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. 506 * </p> 507 * 508 * @param groupId the group ID 509 * @param userId the user ID 510 * @param messageCount the message count 511 * @param start the lower bound of the range of message boards stats users 512 * @param end the upper bound of the range of message boards stats users (not inclusive) 513 * @return the range of matching message boards stats users 514 * @throws SystemException if a system exception occurred 515 */ 516 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM( 517 long groupId, long userId, int messageCount, int start, int end) 518 throws com.liferay.portal.kernel.exception.SystemException { 519 return getPersistence() 520 .findByG_NotU_NotM(groupId, userId, messageCount, start, end); 521 } 522 523 /** 524 * Returns an ordered range of all the message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ?. 525 * 526 * <p> 527 * 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. 528 * </p> 529 * 530 * @param groupId the group ID 531 * @param userId the user ID 532 * @param messageCount the message count 533 * @param start the lower bound of the range of message boards stats users 534 * @param end the upper bound of the range of message boards stats users (not inclusive) 535 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 536 * @return the ordered range of matching message boards stats users 537 * @throws SystemException if a system exception occurred 538 */ 539 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM( 540 long groupId, long userId, int messageCount, int start, int end, 541 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 542 throws com.liferay.portal.kernel.exception.SystemException { 543 return getPersistence() 544 .findByG_NotU_NotM(groupId, userId, messageCount, start, 545 end, orderByComparator); 546 } 547 548 /** 549 * Returns the first message boards stats user in the ordered set where groupId = ? and userId ≠ ? and messageCount ≠ ?. 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 userId the user ID 557 * @param messageCount the message count 558 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 559 * @return the first matching message boards stats user 560 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 561 * @throws SystemException if a system exception occurred 562 */ 563 public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_First( 564 long groupId, long userId, int messageCount, 565 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 566 throws com.liferay.portal.kernel.exception.SystemException, 567 com.liferay.portlet.messageboards.NoSuchStatsUserException { 568 return getPersistence() 569 .findByG_NotU_NotM_First(groupId, userId, messageCount, 570 orderByComparator); 571 } 572 573 /** 574 * Returns the last message boards stats user in the ordered set where groupId = ? and userId ≠ ? and messageCount ≠ ?. 575 * 576 * <p> 577 * 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. 578 * </p> 579 * 580 * @param groupId the group ID 581 * @param userId the user ID 582 * @param messageCount the message count 583 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 584 * @return the last matching message boards stats user 585 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 586 * @throws SystemException if a system exception occurred 587 */ 588 public static com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_Last( 589 long groupId, long userId, int messageCount, 590 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 591 throws com.liferay.portal.kernel.exception.SystemException, 592 com.liferay.portlet.messageboards.NoSuchStatsUserException { 593 return getPersistence() 594 .findByG_NotU_NotM_Last(groupId, userId, messageCount, 595 orderByComparator); 596 } 597 598 /** 599 * Returns the message boards stats users before and after the current message boards stats user in the ordered set where groupId = ? and userId ≠ ? and messageCount ≠ ?. 600 * 601 * <p> 602 * 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. 603 * </p> 604 * 605 * @param statsUserId the primary key of the current message boards stats user 606 * @param groupId the group ID 607 * @param userId the user ID 608 * @param messageCount the message count 609 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 610 * @return the previous, current, and next message boards stats user 611 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 612 * @throws SystemException if a system exception occurred 613 */ 614 public static com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotU_NotM_PrevAndNext( 615 long statsUserId, long groupId, long userId, int messageCount, 616 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 617 throws com.liferay.portal.kernel.exception.SystemException, 618 com.liferay.portlet.messageboards.NoSuchStatsUserException { 619 return getPersistence() 620 .findByG_NotU_NotM_PrevAndNext(statsUserId, groupId, userId, 621 messageCount, orderByComparator); 622 } 623 624 /** 625 * Returns all the message boards stats users. 626 * 627 * @return the message boards stats users 628 * @throws SystemException if a system exception occurred 629 */ 630 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll() 631 throws com.liferay.portal.kernel.exception.SystemException { 632 return getPersistence().findAll(); 633 } 634 635 /** 636 * Returns a range of all the message boards stats users. 637 * 638 * <p> 639 * 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. 640 * </p> 641 * 642 * @param start the lower bound of the range of message boards stats users 643 * @param end the upper bound of the range of message boards stats users (not inclusive) 644 * @return the range of message boards stats users 645 * @throws SystemException if a system exception occurred 646 */ 647 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll( 648 int start, int end) 649 throws com.liferay.portal.kernel.exception.SystemException { 650 return getPersistence().findAll(start, end); 651 } 652 653 /** 654 * Returns an ordered range of all the message boards stats users. 655 * 656 * <p> 657 * 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. 658 * </p> 659 * 660 * @param start the lower bound of the range of message boards stats users 661 * @param end the upper bound of the range of message boards stats users (not inclusive) 662 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 663 * @return the ordered range of message boards stats users 664 * @throws SystemException if a system exception occurred 665 */ 666 public static java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll( 667 int start, int end, 668 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 669 throws com.liferay.portal.kernel.exception.SystemException { 670 return getPersistence().findAll(start, end, orderByComparator); 671 } 672 673 /** 674 * Removes all the message boards stats users where groupId = ? from the database. 675 * 676 * @param groupId the group ID 677 * @throws SystemException if a system exception occurred 678 */ 679 public static void removeByGroupId(long groupId) 680 throws com.liferay.portal.kernel.exception.SystemException { 681 getPersistence().removeByGroupId(groupId); 682 } 683 684 /** 685 * Removes all the message boards stats users where userId = ? from the database. 686 * 687 * @param userId the user ID 688 * @throws SystemException if a system exception occurred 689 */ 690 public static void removeByUserId(long userId) 691 throws com.liferay.portal.kernel.exception.SystemException { 692 getPersistence().removeByUserId(userId); 693 } 694 695 /** 696 * Removes the message boards stats user where groupId = ? and userId = ? from the database. 697 * 698 * @param groupId the group ID 699 * @param userId the user ID 700 * @throws SystemException if a system exception occurred 701 */ 702 public static void removeByG_U(long groupId, long userId) 703 throws com.liferay.portal.kernel.exception.SystemException, 704 com.liferay.portlet.messageboards.NoSuchStatsUserException { 705 getPersistence().removeByG_U(groupId, userId); 706 } 707 708 /** 709 * Removes all the message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ? from the database. 710 * 711 * @param groupId the group ID 712 * @param userId the user ID 713 * @param messageCount the message count 714 * @throws SystemException if a system exception occurred 715 */ 716 public static void removeByG_NotU_NotM(long groupId, long userId, 717 int messageCount) 718 throws com.liferay.portal.kernel.exception.SystemException { 719 getPersistence().removeByG_NotU_NotM(groupId, userId, messageCount); 720 } 721 722 /** 723 * Removes all the message boards stats users from the database. 724 * 725 * @throws SystemException if a system exception occurred 726 */ 727 public static void removeAll() 728 throws com.liferay.portal.kernel.exception.SystemException { 729 getPersistence().removeAll(); 730 } 731 732 /** 733 * Returns the number of message boards stats users where groupId = ?. 734 * 735 * @param groupId the group ID 736 * @return the number of matching message boards stats users 737 * @throws SystemException if a system exception occurred 738 */ 739 public static int countByGroupId(long groupId) 740 throws com.liferay.portal.kernel.exception.SystemException { 741 return getPersistence().countByGroupId(groupId); 742 } 743 744 /** 745 * Returns the number of message boards stats users where userId = ?. 746 * 747 * @param userId the user ID 748 * @return the number of matching message boards stats users 749 * @throws SystemException if a system exception occurred 750 */ 751 public static int countByUserId(long userId) 752 throws com.liferay.portal.kernel.exception.SystemException { 753 return getPersistence().countByUserId(userId); 754 } 755 756 /** 757 * Returns the number of message boards stats users where groupId = ? and userId = ?. 758 * 759 * @param groupId the group ID 760 * @param userId the user ID 761 * @return the number of matching message boards stats users 762 * @throws SystemException if a system exception occurred 763 */ 764 public static int countByG_U(long groupId, long userId) 765 throws com.liferay.portal.kernel.exception.SystemException { 766 return getPersistence().countByG_U(groupId, userId); 767 } 768 769 /** 770 * Returns the number of message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ?. 771 * 772 * @param groupId the group ID 773 * @param userId the user ID 774 * @param messageCount the message count 775 * @return the number of matching message boards stats users 776 * @throws SystemException if a system exception occurred 777 */ 778 public static int countByG_NotU_NotM(long groupId, long userId, 779 int messageCount) 780 throws com.liferay.portal.kernel.exception.SystemException { 781 return getPersistence().countByG_NotU_NotM(groupId, userId, messageCount); 782 } 783 784 /** 785 * Returns the number of message boards stats users. 786 * 787 * @return the number of message boards stats users 788 * @throws SystemException if a system exception occurred 789 */ 790 public static int countAll() 791 throws com.liferay.portal.kernel.exception.SystemException { 792 return getPersistence().countAll(); 793 } 794 795 public static MBStatsUserPersistence getPersistence() { 796 if (_persistence == null) { 797 _persistence = (MBStatsUserPersistence)PortalBeanLocatorUtil.locate(MBStatsUserPersistence.class.getName()); 798 799 ReferenceRegistry.registerReference(MBStatsUserUtil.class, 800 "_persistence"); 801 } 802 803 return _persistence; 804 } 805 806 public void setPersistence(MBStatsUserPersistence persistence) { 807 _persistence = persistence; 808 809 ReferenceRegistry.registerReference(MBStatsUserUtil.class, 810 "_persistence"); 811 } 812 813 private static MBStatsUserPersistence _persistence; 814 }