001 /** 002 * Copyright (c) 2000-2011 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.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 to cache 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 to cache 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 to remove 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 * 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. 086 * 087 * @param statsUserId the primary key of the message boards stats user to find 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 * Finds 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 to find 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 * Finds all the message boards stats users where groupId = ?. 110 * 111 * @param groupId the group ID to search with 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 * Finds 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 to search with 127 * @param start the lower bound of the range of message boards stats users to return 128 * @param end the upper bound of the range of message boards stats users to return (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 * Finds 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 to search with 144 * @param start the lower bound of the range of message boards stats users to return 145 * @param end the upper bound of the range of message boards stats users to return (not inclusive) 146 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 163 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 182 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 202 * @param orderByComparator the comparator to order the set by 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 * Finds all the message boards stats users where userId = ?. 215 * 216 * @param userId the user ID to search with 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 * Finds 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 to search with 231 * @param start the lower bound of the range of message boards stats users to return 232 * @param end the upper bound of the range of message boards stats users to return (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 * Finds 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 to search with 248 * @param start the lower bound of the range of message boards stats users to return 249 * @param end the upper bound of the range of message boards stats users to return (not inclusive) 250 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 267 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 286 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 306 * @param orderByComparator the comparator to order the set by 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 * 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. 319 * 320 * @param groupId the group ID to search with 321 * @param userId the user ID to search with 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 * 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. 333 * 334 * @param groupId the group ID to search with 335 * @param userId the user ID to search with 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 * 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. 345 * 346 * @param groupId the group ID to search with 347 * @param userId the user ID to search with 348 * @return the matching message boards stats user, or <code>null</code> if a matching message boards stats user could not be found 349 * @throws SystemException if a system exception occurred 350 */ 351 public com.liferay.portlet.messageboards.model.MBStatsUser fetchByG_U( 352 long groupId, long userId, boolean retrieveFromCache) 353 throws com.liferay.portal.kernel.exception.SystemException; 354 355 /** 356 * Finds all the message boards stats users where groupId = ? and messageCount ≠ ?. 357 * 358 * @param groupId the group ID to search with 359 * @param messageCount the message count to search with 360 * @return the matching message boards stats users 361 * @throws SystemException if a system exception occurred 362 */ 363 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM( 364 long groupId, int messageCount) 365 throws com.liferay.portal.kernel.exception.SystemException; 366 367 /** 368 * Finds a range of all the message boards stats users where groupId = ? and messageCount ≠ ?. 369 * 370 * <p> 371 * 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. 372 * </p> 373 * 374 * @param groupId the group ID to search with 375 * @param messageCount the message count to search with 376 * @param start the lower bound of the range of message boards stats users to return 377 * @param end the upper bound of the range of message boards stats users to return (not inclusive) 378 * @return the range of matching message boards stats users 379 * @throws SystemException if a system exception occurred 380 */ 381 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM( 382 long groupId, int messageCount, int start, int end) 383 throws com.liferay.portal.kernel.exception.SystemException; 384 385 /** 386 * Finds an ordered range of all the message boards stats users where groupId = ? and messageCount ≠ ?. 387 * 388 * <p> 389 * 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. 390 * </p> 391 * 392 * @param groupId the group ID to search with 393 * @param messageCount the message count to search with 394 * @param start the lower bound of the range of message boards stats users to return 395 * @param end the upper bound of the range of message boards stats users to return (not inclusive) 396 * @param orderByComparator the comparator to order the results by 397 * @return the ordered range of matching message boards stats users 398 * @throws SystemException if a system exception occurred 399 */ 400 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findByG_NotM( 401 long groupId, int messageCount, int start, int end, 402 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 403 throws com.liferay.portal.kernel.exception.SystemException; 404 405 /** 406 * Finds the first message boards stats user in the ordered set where groupId = ? and messageCount ≠ ?. 407 * 408 * <p> 409 * 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. 410 * </p> 411 * 412 * @param groupId the group ID to search with 413 * @param messageCount the message count to search with 414 * @param orderByComparator the comparator to order the set by 415 * @return the first matching message boards stats user 416 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 417 * @throws SystemException if a system exception occurred 418 */ 419 public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_First( 420 long groupId, int messageCount, 421 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 422 throws com.liferay.portal.kernel.exception.SystemException, 423 com.liferay.portlet.messageboards.NoSuchStatsUserException; 424 425 /** 426 * Finds the last message boards stats user in the ordered set where groupId = ? and messageCount ≠ ?. 427 * 428 * <p> 429 * 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. 430 * </p> 431 * 432 * @param groupId the group ID to search with 433 * @param messageCount the message count to search with 434 * @param orderByComparator the comparator to order the set by 435 * @return the last matching message boards stats user 436 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a matching message boards stats user could not be found 437 * @throws SystemException if a system exception occurred 438 */ 439 public com.liferay.portlet.messageboards.model.MBStatsUser findByG_NotM_Last( 440 long groupId, int messageCount, 441 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 442 throws com.liferay.portal.kernel.exception.SystemException, 443 com.liferay.portlet.messageboards.NoSuchStatsUserException; 444 445 /** 446 * Finds the message boards stats users before and after the current message boards stats user in the ordered set where groupId = ? and messageCount ≠ ?. 447 * 448 * <p> 449 * 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. 450 * </p> 451 * 452 * @param statsUserId the primary key of the current message boards stats user 453 * @param groupId the group ID to search with 454 * @param messageCount the message count to search with 455 * @param orderByComparator the comparator to order the set by 456 * @return the previous, current, and next message boards stats user 457 * @throws com.liferay.portlet.messageboards.NoSuchStatsUserException if a message boards stats user with the primary key could not be found 458 * @throws SystemException if a system exception occurred 459 */ 460 public com.liferay.portlet.messageboards.model.MBStatsUser[] findByG_NotM_PrevAndNext( 461 long statsUserId, long groupId, int messageCount, 462 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 463 throws com.liferay.portal.kernel.exception.SystemException, 464 com.liferay.portlet.messageboards.NoSuchStatsUserException; 465 466 /** 467 * Finds all the message boards stats users. 468 * 469 * @return the message boards stats users 470 * @throws SystemException if a system exception occurred 471 */ 472 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll() 473 throws com.liferay.portal.kernel.exception.SystemException; 474 475 /** 476 * Finds a range of all the message boards stats users. 477 * 478 * <p> 479 * 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. 480 * </p> 481 * 482 * @param start the lower bound of the range of message boards stats users to return 483 * @param end the upper bound of the range of message boards stats users to return (not inclusive) 484 * @return the range of message boards stats users 485 * @throws SystemException if a system exception occurred 486 */ 487 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll( 488 int start, int end) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Finds an ordered range of all the message boards stats users. 493 * 494 * <p> 495 * 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. 496 * </p> 497 * 498 * @param start the lower bound of the range of message boards stats users to return 499 * @param end the upper bound of the range of message boards stats users to return (not inclusive) 500 * @param orderByComparator the comparator to order the results by 501 * @return the ordered range of message boards stats users 502 * @throws SystemException if a system exception occurred 503 */ 504 public java.util.List<com.liferay.portlet.messageboards.model.MBStatsUser> findAll( 505 int start, int end, 506 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 507 throws com.liferay.portal.kernel.exception.SystemException; 508 509 /** 510 * Removes all the message boards stats users where groupId = ? from the database. 511 * 512 * @param groupId the group ID to search with 513 * @throws SystemException if a system exception occurred 514 */ 515 public void removeByGroupId(long groupId) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Removes all the message boards stats users where userId = ? from the database. 520 * 521 * @param userId the user ID to search with 522 * @throws SystemException if a system exception occurred 523 */ 524 public void removeByUserId(long userId) 525 throws com.liferay.portal.kernel.exception.SystemException; 526 527 /** 528 * Removes the message boards stats user where groupId = ? and userId = ? from the database. 529 * 530 * @param groupId the group ID to search with 531 * @param userId the user ID to search with 532 * @throws SystemException if a system exception occurred 533 */ 534 public void removeByG_U(long groupId, long userId) 535 throws com.liferay.portal.kernel.exception.SystemException, 536 com.liferay.portlet.messageboards.NoSuchStatsUserException; 537 538 /** 539 * Removes all the message boards stats users where groupId = ? and messageCount ≠ ? from the database. 540 * 541 * @param groupId the group ID to search with 542 * @param messageCount the message count to search with 543 * @throws SystemException if a system exception occurred 544 */ 545 public void removeByG_NotM(long groupId, int messageCount) 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Removes all the message boards stats users from the database. 550 * 551 * @throws SystemException if a system exception occurred 552 */ 553 public void removeAll() 554 throws com.liferay.portal.kernel.exception.SystemException; 555 556 /** 557 * Counts all the message boards stats users where groupId = ?. 558 * 559 * @param groupId the group ID to search with 560 * @return the number of matching message boards stats users 561 * @throws SystemException if a system exception occurred 562 */ 563 public int countByGroupId(long groupId) 564 throws com.liferay.portal.kernel.exception.SystemException; 565 566 /** 567 * Counts all the message boards stats users where userId = ?. 568 * 569 * @param userId the user ID to search with 570 * @return the number of matching message boards stats users 571 * @throws SystemException if a system exception occurred 572 */ 573 public int countByUserId(long userId) 574 throws com.liferay.portal.kernel.exception.SystemException; 575 576 /** 577 * Counts all the message boards stats users where groupId = ? and userId = ?. 578 * 579 * @param groupId the group ID to search with 580 * @param userId the user ID to search with 581 * @return the number of matching message boards stats users 582 * @throws SystemException if a system exception occurred 583 */ 584 public int countByG_U(long groupId, long userId) 585 throws com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * Counts all the message boards stats users where groupId = ? and messageCount ≠ ?. 589 * 590 * @param groupId the group ID to search with 591 * @param messageCount the message count to search with 592 * @return the number of matching message boards stats users 593 * @throws SystemException if a system exception occurred 594 */ 595 public int countByG_NotM(long groupId, int messageCount) 596 throws com.liferay.portal.kernel.exception.SystemException; 597 598 /** 599 * Counts all the message boards stats users. 600 * 601 * @return the number of message boards stats users 602 * @throws SystemException if a system exception occurred 603 */ 604 public int countAll() 605 throws com.liferay.portal.kernel.exception.SystemException; 606 607 public MBStatsUser remove(MBStatsUser mbStatsUser) 608 throws SystemException; 609 }