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