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