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