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.messageboards.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.messageboards.model.MBStatsUser; 020 021 /** 022 * The persistence interface for the message boards stats user service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see MBStatsUserPersistenceImpl 030 * @see MBStatsUserUtil 031 * @generated 032 */ 033 public interface MBStatsUserPersistence extends BasePersistence<MBStatsUser> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link MBStatsUserUtil} to access the message boards stats user persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the message boards stats user in the entity cache if it is enabled. 042 * 043 * @param mbStatsUser the message boards stats user 044 */ 045 public void cacheResult( 046 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser); 047 048 /** 049 * Caches the message boards stats users in the entity cache if it is enabled. 050 * 051 * @param mbStatsUsers the message boards stats users 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> mbStatsUsers); 055 056 /** 057 * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database. 058 * 059 * @param statsUserId the primary key for the new message boards stats user 060 * @return the new message boards stats user 061 */ 062 public com.liferay.portlet.messageboards.model.MBStatsUser create( 063 long statsUserId); 064 065 /** 066 * Removes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param statsUserId the primary key of the message boards stats user 069 * @return the message boards stats user that was removed 070 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.messageboards.model.MBStatsUser remove( 074 long statsUserId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.messageboards.NoSuchStatsUserException; 077 078 public com.liferay.portlet.messageboards.model.MBStatsUser updateImpl( 079 com.liferay.portlet.messageboards.model.MBStatsUser mbStatsUser) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * 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. 084 * 085 * @param statsUserId the primary key of the message boards stats user 086 * @return the message boards stats user 087 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.messageboards.model.MBStatsUser findByPrimaryKey( 091 long statsUserId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.messageboards.NoSuchStatsUserException; 094 095 /** 096 * Returns the message boards stats user with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param statsUserId the primary key of the message boards stats user 099 * @return the message boards stats user, or <code>null</code> if a message boards stats user with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByPrimaryKey( 103 long statsUserId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the message boards stats users where groupId = ?. 108 * 109 * @param groupId the group ID 110 * @return the matching message boards stats users 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId( 114 long groupId) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the message boards stats users where groupId = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param groupId the group ID 125 * @param start the lower bound of the range of message boards stats users 126 * @param end the upper bound of the range of message boards stats users (not inclusive) 127 * @return the range of matching message boards stats users 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId( 131 long groupId, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the message boards stats users where groupId = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param groupId the group ID 142 * @param start the lower bound of the range of message boards stats users 143 * @param end the upper bound of the range of message boards stats users (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching message boards stats users 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByGroupId( 149 long groupId, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first message boards stats user in the ordered set where groupId = ?. 155 * 156 * @param groupId the group ID 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching message boards stats user 159 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_First( 163 long groupId, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.messageboards.NoSuchStatsUserException; 167 168 /** 169 * Returns the first message boards stats user in the ordered set where groupId = ?. 170 * 171 * @param groupId the group ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByGroupId_First( 177 long groupId, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last message boards stats user in the ordered set where groupId = ?. 183 * 184 * @param groupId the group ID 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching message boards stats user 187 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.messageboards.model.MBStatsUser findByGroupId_Last( 191 long groupId, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.messageboards.NoSuchStatsUserException; 195 196 /** 197 * Returns the last message boards stats user in the ordered set where groupId = ?. 198 * 199 * @param groupId the group ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByGroupId_Last( 205 long groupId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the message boards stats users before and after the current message boards stats user in the ordered set where groupId = ?. 211 * 212 * @param statsUserId the primary key of the current message boards stats user 213 * @param groupId the group ID 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next message boards stats user 216 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.messageboards.model.MBStatsUser[] findByGroupId_PrevAndNext( 220 long statsUserId, long groupId, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.messageboards.NoSuchStatsUserException; 224 225 /** 226 * Returns all the message boards stats users where userId = ?. 227 * 228 * @param userId the user ID 229 * @return the matching message boards stats users 230 * @throws SystemException if a system exception occurred 231 */ 232 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId( 233 long userId) throws com.liferay.portal.kernel.exception.SystemException; 234 235 /** 236 * Returns a range of all the message boards stats users where userId = ?. 237 * 238 * <p> 239 * 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. 240 * </p> 241 * 242 * @param userId the user ID 243 * @param start the lower bound of the range of message boards stats users 244 * @param end the upper bound of the range of message boards stats users (not inclusive) 245 * @return the range of matching message boards stats users 246 * @throws SystemException if a system exception occurred 247 */ 248 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId( 249 long userId, int start, int end) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns an ordered range of all the message boards stats users where userId = ?. 254 * 255 * <p> 256 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 257 * </p> 258 * 259 * @param userId the user ID 260 * @param start the lower bound of the range of message boards stats users 261 * @param end the upper bound of the range of message boards stats users (not inclusive) 262 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 263 * @return the ordered range of matching message boards stats users 264 * @throws SystemException if a system exception occurred 265 */ 266 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByUserId( 267 long userId, int start, int end, 268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 269 throws com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns the first message boards stats user in the ordered set where userId = ?. 273 * 274 * @param userId the user ID 275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 276 * @return the first matching message boards stats user 277 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_First( 281 long userId, 282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 283 throws com.liferay.portal.kernel.exception.SystemException, 284 com.liferay.portlet.messageboards.NoSuchStatsUserException; 285 286 /** 287 * Returns the first message boards stats user in the ordered set where userId = ?. 288 * 289 * @param userId the user ID 290 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 291 * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 292 * @throws SystemException if a system exception occurred 293 */ 294 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByUserId_First( 295 long userId, 296 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 297 throws com.liferay.portal.kernel.exception.SystemException; 298 299 /** 300 * Returns the last message boards stats user in the ordered set where userId = ?. 301 * 302 * @param userId the user ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the last matching message boards stats user 305 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portlet.messageboards.model.MBStatsUser findByUserId_Last( 309 long userId, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.kernel.exception.SystemException, 312 com.liferay.portlet.messageboards.NoSuchStatsUserException; 313 314 /** 315 * Returns the last message boards stats user in the ordered set where userId = ?. 316 * 317 * @param userId the user ID 318 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 319 * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByUserId_Last( 323 long userId, 324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 325 throws com.liferay.portal.kernel.exception.SystemException; 326 327 /** 328 * Returns the message boards stats users before and after the current message boards stats user in the ordered set where userId = ?. 329 * 330 * @param statsUserId the primary key of the current message boards stats user 331 * @param userId the user ID 332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 333 * @return the previous, current, and next message boards stats user 334 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public com.liferay.portlet.messageboards.model.MBStatsUser[] findByUserId_PrevAndNext( 338 long statsUserId, long userId, 339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 340 throws com.liferay.portal.kernel.exception.SystemException, 341 com.liferay.portlet.messageboards.NoSuchStatsUserException; 342 343 /** 344 * 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. 345 * 346 * @param groupId the group ID 347 * @param userId the user ID 348 * @return the matching message boards stats user 349 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public com.liferay.portlet.messageboards.model.MBStatsUser findByG_U( 353 long groupId, long userId) 354 throws com.liferay.portal.kernel.exception.SystemException, 355 com.liferay.portlet.messageboards.NoSuchStatsUserException; 356 357 /** 358 * 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. 359 * 360 * @param groupId the group ID 361 * @param userId the user ID 362 * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 363 * @throws SystemException if a system exception occurred 364 */ 365 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U( 366 long groupId, long userId) 367 throws com.liferay.portal.kernel.exception.SystemException; 368 369 /** 370 * 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. 371 * 372 * @param groupId the group ID 373 * @param userId the user ID 374 * @param retrieveFromCache whether to use the finder cache 375 * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 376 * @throws SystemException if a system exception occurred 377 */ 378 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U( 379 long groupId, long userId, boolean retrieveFromCache) 380 throws com.liferay.portal.kernel.exception.SystemException; 381 382 /** 383 * Returns all the message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ?. 384 * 385 * @param groupId the group ID 386 * @param userId the user ID 387 * @param messageCount the message count 388 * @return the matching message boards stats users 389 * @throws SystemException if a system exception occurred 390 */ 391 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM( 392 long groupId, long userId, int messageCount) 393 throws com.liferay.portal.kernel.exception.SystemException; 394 395 /** 396 * Returns a range of all the message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ?. 397 * 398 * <p> 399 * 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. 400 * </p> 401 * 402 * @param groupId the group ID 403 * @param userId the user ID 404 * @param messageCount the message count 405 * @param start the lower bound of the range of message boards stats users 406 * @param end the upper bound of the range of message boards stats users (not inclusive) 407 * @return the range of matching message boards stats users 408 * @throws SystemException if a system exception occurred 409 */ 410 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM( 411 long groupId, long userId, int messageCount, int start, int end) 412 throws com.liferay.portal.kernel.exception.SystemException; 413 414 /** 415 * Returns an ordered range of all the message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ?. 416 * 417 * <p> 418 * 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. 419 * </p> 420 * 421 * @param groupId the group ID 422 * @param userId the user ID 423 * @param messageCount the message count 424 * @param start the lower bound of the range of message boards stats users 425 * @param end the upper bound of the range of message boards stats users (not inclusive) 426 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 427 * @return the ordered range of matching message boards stats users 428 * @throws SystemException if a system exception occurred 429 */ 430 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotU_NotM( 431 long groupId, long userId, int messageCount, int start, int end, 432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 433 throws com.liferay.portal.kernel.exception.SystemException; 434 435 /** 436 * Returns the first message boards stats user in the ordered set where groupId = ? and userId ≠ ? and messageCount ≠ ?. 437 * 438 * @param groupId the group ID 439 * @param userId the user ID 440 * @param messageCount the message count 441 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 442 * @return the first matching message boards stats user 443 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 444 * @throws SystemException if a system exception occurred 445 */ 446 public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_First( 447 long groupId, long userId, int messageCount, 448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 449 throws com.liferay.portal.kernel.exception.SystemException, 450 com.liferay.portlet.messageboards.NoSuchStatsUserException; 451 452 /** 453 * Returns the first message boards stats user in the ordered set where groupId = ? and userId ≠ ? and messageCount ≠ ?. 454 * 455 * @param groupId the group ID 456 * @param userId the user ID 457 * @param messageCount the message count 458 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 459 * @return the first matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 460 * @throws SystemException if a system exception occurred 461 */ 462 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_NotU_NotM_First( 463 long groupId, long userId, int messageCount, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Returns the last message boards stats user in the ordered set where groupId = ? and userId ≠ ? and messageCount ≠ ?. 469 * 470 * @param groupId the group ID 471 * @param userId the user ID 472 * @param messageCount the message count 473 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 474 * @return the last matching message boards stats user 475 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 476 * @throws SystemException if a system exception occurred 477 */ 478 public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotU_NotM_Last( 479 long groupId, long userId, int messageCount, 480 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 481 throws com.liferay.portal.kernel.exception.SystemException, 482 com.liferay.portlet.messageboards.NoSuchStatsUserException; 483 484 /** 485 * Returns the last message boards stats user in the ordered set where groupId = ? and userId ≠ ? and messageCount ≠ ?. 486 * 487 * @param groupId the group ID 488 * @param userId the user ID 489 * @param messageCount the message count 490 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 491 * @return the last matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 492 * @throws SystemException if a system exception occurred 493 */ 494 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_NotU_NotM_Last( 495 long groupId, long userId, int messageCount, 496 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 497 throws com.liferay.portal.kernel.exception.SystemException; 498 499 /** 500 * 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 ≠ ?. 501 * 502 * @param statsUserId the primary key of the current message boards stats user 503 * @param groupId the group ID 504 * @param userId the user ID 505 * @param messageCount the message count 506 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 507 * @return the previous, current, and next message boards stats user 508 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 509 * @throws SystemException if a system exception occurred 510 */ 511 public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotU_NotM_PrevAndNext( 512 long statsUserId, long groupId, long userId, int messageCount, 513 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 514 throws com.liferay.portal.kernel.exception.SystemException, 515 com.liferay.portlet.messageboards.NoSuchStatsUserException; 516 517 /** 518 * Returns all the message boards stats users. 519 * 520 * @return the message boards stats users 521 * @throws SystemException if a system exception occurred 522 */ 523 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll() 524 throws com.liferay.portal.kernel.exception.SystemException; 525 526 /** 527 * Returns a range of all the message boards stats users. 528 * 529 * <p> 530 * 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. 531 * </p> 532 * 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 * @return the range of message boards stats users 536 * @throws SystemException if a system exception occurred 537 */ 538 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll( 539 int start, int end) 540 throws com.liferay.portal.kernel.exception.SystemException; 541 542 /** 543 * Returns an ordered range of all the message boards stats users. 544 * 545 * <p> 546 * 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. 547 * </p> 548 * 549 * @param start the lower bound of the range of message boards stats users 550 * @param end the upper bound of the range of message boards stats users (not inclusive) 551 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 552 * @return the ordered range of message boards stats users 553 * @throws SystemException if a system exception occurred 554 */ 555 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll( 556 int start, int end, 557 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 558 throws com.liferay.portal.kernel.exception.SystemException; 559 560 /** 561 * Removes all the message boards stats users where groupId = ? from the database. 562 * 563 * @param groupId the group ID 564 * @throws SystemException if a system exception occurred 565 */ 566 public void removeByGroupId(long groupId) 567 throws com.liferay.portal.kernel.exception.SystemException; 568 569 /** 570 * Removes all the message boards stats users where userId = ? from the database. 571 * 572 * @param userId the user ID 573 * @throws SystemException if a system exception occurred 574 */ 575 public void removeByUserId(long userId) 576 throws com.liferay.portal.kernel.exception.SystemException; 577 578 /** 579 * Removes the message boards stats user where groupId = ? and userId = ? from the database. 580 * 581 * @param groupId the group ID 582 * @param userId the user ID 583 * @return the message boards stats user that was removed 584 * @throws SystemException if a system exception occurred 585 */ 586 public com.liferay.portlet.messageboards.model.MBStatsUser removeByG_U( 587 long groupId, long userId) 588 throws com.liferay.portal.kernel.exception.SystemException, 589 com.liferay.portlet.messageboards.NoSuchStatsUserException; 590 591 /** 592 * Removes all the message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ? from the database. 593 * 594 * @param groupId the group ID 595 * @param userId the user ID 596 * @param messageCount the message count 597 * @throws SystemException if a system exception occurred 598 */ 599 public void removeByG_NotU_NotM(long groupId, long userId, int messageCount) 600 throws com.liferay.portal.kernel.exception.SystemException; 601 602 /** 603 * Removes all the message boards stats users from the database. 604 * 605 * @throws SystemException if a system exception occurred 606 */ 607 public void removeAll() 608 throws com.liferay.portal.kernel.exception.SystemException; 609 610 /** 611 * Returns the number of message boards stats users where groupId = ?. 612 * 613 * @param groupId the group ID 614 * @return the number of matching message boards stats users 615 * @throws SystemException if a system exception occurred 616 */ 617 public int countByGroupId(long groupId) 618 throws com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Returns the number of message boards stats users where userId = ?. 622 * 623 * @param userId the user ID 624 * @return the number of matching message boards stats users 625 * @throws SystemException if a system exception occurred 626 */ 627 public int countByUserId(long userId) 628 throws com.liferay.portal.kernel.exception.SystemException; 629 630 /** 631 * Returns the number of message boards stats users where groupId = ? and userId = ?. 632 * 633 * @param groupId the group ID 634 * @param userId the user ID 635 * @return the number of matching message boards stats users 636 * @throws SystemException if a system exception occurred 637 */ 638 public int countByG_U(long groupId, long userId) 639 throws com.liferay.portal.kernel.exception.SystemException; 640 641 /** 642 * Returns the number of message boards stats users where groupId = ? and userId ≠ ? and messageCount ≠ ?. 643 * 644 * @param groupId the group ID 645 * @param userId the user ID 646 * @param messageCount the message count 647 * @return the number of matching message boards stats users 648 * @throws SystemException if a system exception occurred 649 */ 650 public int countByG_NotU_NotM(long groupId, long userId, int messageCount) 651 throws com.liferay.portal.kernel.exception.SystemException; 652 653 /** 654 * Returns the number of message boards stats users. 655 * 656 * @return the number of message boards stats users 657 * @throws SystemException if a system exception occurred 658 */ 659 public int countAll() 660 throws com.liferay.portal.kernel.exception.SystemException; 661 }