001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.documentlibrary.model.DLFileRank; 020 021 /** 022 * The persistence interface for the document library file rank service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see DLFileRankPersistenceImpl 030 * @see DLFileRankUtil 031 * @generated 032 */ 033 public interface DLFileRankPersistence extends BasePersistence<DLFileRank> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link DLFileRankUtil} to access the document library file rank persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the document library file rank in the entity cache if it is enabled. 042 * 043 * @param dlFileRank the document library file rank 044 */ 045 public void cacheResult( 046 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank); 047 048 /** 049 * Caches the document library file ranks in the entity cache if it is enabled. 050 * 051 * @param dlFileRanks the document library file ranks 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks); 055 056 /** 057 * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database. 058 * 059 * @param fileRankId the primary key for the new document library file rank 060 * @return the new document library file rank 061 */ 062 public com.liferay.portlet.documentlibrary.model.DLFileRank create( 063 long fileRankId); 064 065 /** 066 * Removes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param fileRankId the primary key of the document library file rank 069 * @return the document library file rank that was removed 070 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.documentlibrary.model.DLFileRank remove( 074 long fileRankId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 077 078 public com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl( 079 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the document library file rank with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 084 * 085 * @param fileRankId the primary key of the document library file rank 086 * @return the document library file rank 087 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey( 091 long fileRankId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 094 095 /** 096 * Returns the document library file rank with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param fileRankId the primary key of the document library file rank 099 * @return the document library file rank, or <code>null</code> if a document library file rank with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey( 103 long fileRankId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the document library file ranks where userId = ?. 108 * 109 * @param userId the user ID 110 * @return the matching document library file ranks 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 114 long userId) throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Returns a range of all the document library file ranks where userId = ?. 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 userId the user ID 124 * @param start the lower bound of the range of document library file ranks 125 * @param end the upper bound of the range of document library file ranks (not inclusive) 126 * @return the range of matching document library file ranks 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 130 long userId, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Returns an ordered range of all the document library file ranks where userId = ?. 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 userId the user ID 141 * @param start the lower bound of the range of document library file ranks 142 * @param end the upper bound of the range of document library file ranks (not inclusive) 143 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 144 * @return the ordered range of matching document library file ranks 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 148 long userId, int start, int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Returns the first document library file rank in the ordered set where userId = ?. 154 * 155 * @param userId the user ID 156 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 157 * @return the first matching document library file rank 158 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First( 162 long userId, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 166 167 /** 168 * Returns the first document library file rank in the ordered set where userId = ?. 169 * 170 * @param userId the user ID 171 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 172 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_First( 176 long userId, 177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 178 throws com.liferay.portal.kernel.exception.SystemException; 179 180 /** 181 * Returns the last document library file rank in the ordered set where userId = ?. 182 * 183 * @param userId the user ID 184 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 185 * @return the last matching document library file rank 186 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last( 190 long userId, 191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 192 throws com.liferay.portal.kernel.exception.SystemException, 193 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 194 195 /** 196 * Returns the last document library file rank in the ordered set where userId = ?. 197 * 198 * @param userId the user ID 199 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 200 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_Last( 204 long userId, 205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 206 throws com.liferay.portal.kernel.exception.SystemException; 207 208 /** 209 * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?. 210 * 211 * @param fileRankId the primary key of the current document library file rank 212 * @param userId the user ID 213 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 214 * @return the previous, current, and next document library file rank 215 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 216 * @throws SystemException if a system exception occurred 217 */ 218 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext( 219 long fileRankId, long userId, 220 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 221 throws com.liferay.portal.kernel.exception.SystemException, 222 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 223 224 /** 225 * Returns all the document library file ranks where fileEntryId = ?. 226 * 227 * @param fileEntryId the file entry ID 228 * @return the matching document library file ranks 229 * @throws SystemException if a system exception occurred 230 */ 231 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 232 long fileEntryId) 233 throws com.liferay.portal.kernel.exception.SystemException; 234 235 /** 236 * Returns a range of all the document library file ranks where fileEntryId = ?. 237 * 238 * <p> 239 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 240 * </p> 241 * 242 * @param fileEntryId the file entry ID 243 * @param start the lower bound of the range of document library file ranks 244 * @param end the upper bound of the range of document library file ranks (not inclusive) 245 * @return the range of matching document library file ranks 246 * @throws SystemException if a system exception occurred 247 */ 248 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 249 long fileEntryId, int start, int end) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Returns an ordered range of all the document library file ranks where fileEntryId = ?. 254 * 255 * <p> 256 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 257 * </p> 258 * 259 * @param fileEntryId the file entry ID 260 * @param start the lower bound of the range of document library file ranks 261 * @param end the upper bound of the range of document library file ranks (not inclusive) 262 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 263 * @return the ordered range of matching document library file ranks 264 * @throws SystemException if a system exception occurred 265 */ 266 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 267 long fileEntryId, int start, int end, 268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 269 throws com.liferay.portal.kernel.exception.SystemException; 270 271 /** 272 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 273 * 274 * @param fileEntryId the file entry ID 275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 276 * @return the first matching document library file rank 277 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_First( 281 long fileEntryId, 282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 283 throws com.liferay.portal.kernel.exception.SystemException, 284 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 285 286 /** 287 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 288 * 289 * @param fileEntryId the file entry ID 290 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 291 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 292 * @throws SystemException if a system exception occurred 293 */ 294 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_First( 295 long fileEntryId, 296 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 297 throws com.liferay.portal.kernel.exception.SystemException; 298 299 /** 300 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 301 * 302 * @param fileEntryId the file entry ID 303 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 304 * @return the last matching document library file rank 305 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_Last( 309 long fileEntryId, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.kernel.exception.SystemException, 312 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 313 314 /** 315 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 316 * 317 * @param fileEntryId the file entry ID 318 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 319 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 320 * @throws SystemException if a system exception occurred 321 */ 322 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_Last( 323 long fileEntryId, 324 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 325 throws com.liferay.portal.kernel.exception.SystemException; 326 327 /** 328 * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?. 329 * 330 * @param fileRankId the primary key of the current document library file rank 331 * @param fileEntryId the file entry ID 332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 333 * @return the previous, current, and next document library file rank 334 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 335 * @throws SystemException if a system exception occurred 336 */ 337 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByFileEntryId_PrevAndNext( 338 long fileRankId, long fileEntryId, 339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 340 throws com.liferay.portal.kernel.exception.SystemException, 341 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 342 343 /** 344 * Returns all the document library file ranks where groupId = ? and userId = ?. 345 * 346 * @param groupId the group ID 347 * @param userId the user ID 348 * @return the matching document library file ranks 349 * @throws SystemException if a system exception occurred 350 */ 351 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 352 long groupId, long userId) 353 throws com.liferay.portal.kernel.exception.SystemException; 354 355 /** 356 * Returns a range of all the document library file ranks where groupId = ? and userId = ?. 357 * 358 * <p> 359 * 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. 360 * </p> 361 * 362 * @param groupId the group ID 363 * @param userId the user ID 364 * @param start the lower bound of the range of document library file ranks 365 * @param end the upper bound of the range of document library file ranks (not inclusive) 366 * @return the range of matching document library file ranks 367 * @throws SystemException if a system exception occurred 368 */ 369 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 370 long groupId, long userId, int start, int end) 371 throws com.liferay.portal.kernel.exception.SystemException; 372 373 /** 374 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?. 375 * 376 * <p> 377 * 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. 378 * </p> 379 * 380 * @param groupId the group ID 381 * @param userId the user ID 382 * @param start the lower bound of the range of document library file ranks 383 * @param end the upper bound of the range of document library file ranks (not inclusive) 384 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 385 * @return the ordered range of matching document library file ranks 386 * @throws SystemException if a system exception occurred 387 */ 388 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 389 long groupId, long userId, int start, int end, 390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 391 throws com.liferay.portal.kernel.exception.SystemException; 392 393 /** 394 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 395 * 396 * @param groupId the group ID 397 * @param userId the user ID 398 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 399 * @return the first matching document library file rank 400 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 401 * @throws SystemException if a system exception occurred 402 */ 403 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First( 404 long groupId, long userId, 405 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 406 throws com.liferay.portal.kernel.exception.SystemException, 407 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 408 409 /** 410 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 411 * 412 * @param groupId the group ID 413 * @param userId the user ID 414 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 415 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 416 * @throws SystemException if a system exception occurred 417 */ 418 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_First( 419 long groupId, long userId, 420 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 421 throws com.liferay.portal.kernel.exception.SystemException; 422 423 /** 424 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 425 * 426 * @param groupId the group ID 427 * @param userId the user ID 428 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 429 * @return the last matching document library file rank 430 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last( 434 long groupId, long userId, 435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 436 throws com.liferay.portal.kernel.exception.SystemException, 437 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 438 439 /** 440 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 441 * 442 * @param groupId the group ID 443 * @param userId the user ID 444 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 445 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_Last( 449 long groupId, long userId, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?. 455 * 456 * @param fileRankId the primary key of the current document library file rank 457 * @param groupId the group ID 458 * @param userId the user ID 459 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 460 * @return the previous, current, and next document library file rank 461 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 462 * @throws SystemException if a system exception occurred 463 */ 464 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext( 465 long fileRankId, long groupId, long userId, 466 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 467 throws com.liferay.portal.kernel.exception.SystemException, 468 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 469 470 /** 471 * Returns all the document library file ranks where groupId = ? and userId = ? and active = ?. 472 * 473 * @param groupId the group ID 474 * @param userId the user ID 475 * @param active the active 476 * @return the matching document library file ranks 477 * @throws SystemException if a system exception occurred 478 */ 479 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 480 long groupId, long userId, boolean active) 481 throws com.liferay.portal.kernel.exception.SystemException; 482 483 /** 484 * Returns a range of all the document library file ranks where groupId = ? and userId = ? and active = ?. 485 * 486 * <p> 487 * 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. 488 * </p> 489 * 490 * @param groupId the group ID 491 * @param userId the user ID 492 * @param active the active 493 * @param start the lower bound of the range of document library file ranks 494 * @param end the upper bound of the range of document library file ranks (not inclusive) 495 * @return the range of matching document library file ranks 496 * @throws SystemException if a system exception occurred 497 */ 498 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 499 long groupId, long userId, boolean active, int start, int end) 500 throws com.liferay.portal.kernel.exception.SystemException; 501 502 /** 503 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?. 504 * 505 * <p> 506 * 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. 507 * </p> 508 * 509 * @param groupId the group ID 510 * @param userId the user ID 511 * @param active the active 512 * @param start the lower bound of the range of document library file ranks 513 * @param end the upper bound of the range of document library file ranks (not inclusive) 514 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 515 * @return the ordered range of matching document library file ranks 516 * @throws SystemException if a system exception occurred 517 */ 518 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 519 long groupId, long userId, boolean active, int start, int end, 520 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 521 throws com.liferay.portal.kernel.exception.SystemException; 522 523 /** 524 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 525 * 526 * @param groupId the group ID 527 * @param userId the user ID 528 * @param active the active 529 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 530 * @return the first matching document library file rank 531 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 532 * @throws SystemException if a system exception occurred 533 */ 534 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_First( 535 long groupId, long userId, boolean active, 536 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 537 throws com.liferay.portal.kernel.exception.SystemException, 538 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 539 540 /** 541 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 542 * 543 * @param groupId the group ID 544 * @param userId the user ID 545 * @param active the active 546 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 547 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 548 * @throws SystemException if a system exception occurred 549 */ 550 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_First( 551 long groupId, long userId, boolean active, 552 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 553 throws com.liferay.portal.kernel.exception.SystemException; 554 555 /** 556 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 557 * 558 * @param groupId the group ID 559 * @param userId the user ID 560 * @param active the active 561 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 562 * @return the last matching document library file rank 563 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 564 * @throws SystemException if a system exception occurred 565 */ 566 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_Last( 567 long groupId, long userId, boolean active, 568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 569 throws com.liferay.portal.kernel.exception.SystemException, 570 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 571 572 /** 573 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 574 * 575 * @param groupId the group ID 576 * @param userId the user ID 577 * @param active the active 578 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 579 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_Last( 583 long groupId, long userId, boolean active, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.kernel.exception.SystemException; 586 587 /** 588 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 589 * 590 * @param fileRankId the primary key of the current document library file rank 591 * @param groupId the group ID 592 * @param userId the user ID 593 * @param active the active 594 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 595 * @return the previous, current, and next document library file rank 596 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 597 * @throws SystemException if a system exception occurred 598 */ 599 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_A_PrevAndNext( 600 long fileRankId, long groupId, long userId, boolean active, 601 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 602 throws com.liferay.portal.kernel.exception.SystemException, 603 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 604 605 /** 606 * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 607 * 608 * @param companyId the company ID 609 * @param userId the user ID 610 * @param fileEntryId the file entry ID 611 * @return the matching document library file rank 612 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 613 * @throws SystemException if a system exception occurred 614 */ 615 public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F( 616 long companyId, long userId, long fileEntryId) 617 throws com.liferay.portal.kernel.exception.SystemException, 618 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 619 620 /** 621 * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 622 * 623 * @param companyId the company ID 624 * @param userId the user ID 625 * @param fileEntryId the file entry ID 626 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 627 * @throws SystemException if a system exception occurred 628 */ 629 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 630 long companyId, long userId, long fileEntryId) 631 throws com.liferay.portal.kernel.exception.SystemException; 632 633 /** 634 * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 635 * 636 * @param companyId the company ID 637 * @param userId the user ID 638 * @param fileEntryId the file entry ID 639 * @param retrieveFromCache whether to use the finder cache 640 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 641 * @throws SystemException if a system exception occurred 642 */ 643 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 644 long companyId, long userId, long fileEntryId, boolean retrieveFromCache) 645 throws com.liferay.portal.kernel.exception.SystemException; 646 647 /** 648 * Returns all the document library file ranks. 649 * 650 * @return the document library file ranks 651 * @throws SystemException if a system exception occurred 652 */ 653 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll() 654 throws com.liferay.portal.kernel.exception.SystemException; 655 656 /** 657 * Returns a range of all the document library file ranks. 658 * 659 * <p> 660 * 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. 661 * </p> 662 * 663 * @param start the lower bound of the range of document library file ranks 664 * @param end the upper bound of the range of document library file ranks (not inclusive) 665 * @return the range of document library file ranks 666 * @throws SystemException if a system exception occurred 667 */ 668 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 669 int start, int end) 670 throws com.liferay.portal.kernel.exception.SystemException; 671 672 /** 673 * Returns an ordered range of all the document library file ranks. 674 * 675 * <p> 676 * 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. 677 * </p> 678 * 679 * @param start the lower bound of the range of document library file ranks 680 * @param end the upper bound of the range of document library file ranks (not inclusive) 681 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 682 * @return the ordered range of document library file ranks 683 * @throws SystemException if a system exception occurred 684 */ 685 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 686 int start, int end, 687 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 688 throws com.liferay.portal.kernel.exception.SystemException; 689 690 /** 691 * Removes all the document library file ranks where userId = ? from the database. 692 * 693 * @param userId the user ID 694 * @throws SystemException if a system exception occurred 695 */ 696 public void removeByUserId(long userId) 697 throws com.liferay.portal.kernel.exception.SystemException; 698 699 /** 700 * Removes all the document library file ranks where fileEntryId = ? from the database. 701 * 702 * @param fileEntryId the file entry ID 703 * @throws SystemException if a system exception occurred 704 */ 705 public void removeByFileEntryId(long fileEntryId) 706 throws com.liferay.portal.kernel.exception.SystemException; 707 708 /** 709 * Removes all the document library file ranks where groupId = ? and userId = ? from the database. 710 * 711 * @param groupId the group ID 712 * @param userId the user ID 713 * @throws SystemException if a system exception occurred 714 */ 715 public void removeByG_U(long groupId, long userId) 716 throws com.liferay.portal.kernel.exception.SystemException; 717 718 /** 719 * Removes all the document library file ranks where groupId = ? and userId = ? and active = ? from the database. 720 * 721 * @param groupId the group ID 722 * @param userId the user ID 723 * @param active the active 724 * @throws SystemException if a system exception occurred 725 */ 726 public void removeByG_U_A(long groupId, long userId, boolean active) 727 throws com.liferay.portal.kernel.exception.SystemException; 728 729 /** 730 * Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database. 731 * 732 * @param companyId the company ID 733 * @param userId the user ID 734 * @param fileEntryId the file entry ID 735 * @return the document library file rank that was removed 736 * @throws SystemException if a system exception occurred 737 */ 738 public com.liferay.portlet.documentlibrary.model.DLFileRank removeByC_U_F( 739 long companyId, long userId, long fileEntryId) 740 throws com.liferay.portal.kernel.exception.SystemException, 741 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 742 743 /** 744 * Removes all the document library file ranks from the database. 745 * 746 * @throws SystemException if a system exception occurred 747 */ 748 public void removeAll() 749 throws com.liferay.portal.kernel.exception.SystemException; 750 751 /** 752 * Returns the number of document library file ranks where userId = ?. 753 * 754 * @param userId the user ID 755 * @return the number of matching document library file ranks 756 * @throws SystemException if a system exception occurred 757 */ 758 public int countByUserId(long userId) 759 throws com.liferay.portal.kernel.exception.SystemException; 760 761 /** 762 * Returns the number of document library file ranks where fileEntryId = ?. 763 * 764 * @param fileEntryId the file entry ID 765 * @return the number of matching document library file ranks 766 * @throws SystemException if a system exception occurred 767 */ 768 public int countByFileEntryId(long fileEntryId) 769 throws com.liferay.portal.kernel.exception.SystemException; 770 771 /** 772 * Returns the number of document library file ranks where groupId = ? and userId = ?. 773 * 774 * @param groupId the group ID 775 * @param userId the user ID 776 * @return the number of matching document library file ranks 777 * @throws SystemException if a system exception occurred 778 */ 779 public int countByG_U(long groupId, long userId) 780 throws com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Returns the number of document library file ranks where groupId = ? and userId = ? and active = ?. 784 * 785 * @param groupId the group ID 786 * @param userId the user ID 787 * @param active the active 788 * @return the number of matching document library file ranks 789 * @throws SystemException if a system exception occurred 790 */ 791 public int countByG_U_A(long groupId, long userId, boolean active) 792 throws com.liferay.portal.kernel.exception.SystemException; 793 794 /** 795 * Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?. 796 * 797 * @param companyId the company ID 798 * @param userId the user ID 799 * @param fileEntryId the file entry ID 800 * @return the number of matching document library file ranks 801 * @throws SystemException if a system exception occurred 802 */ 803 public int countByC_U_F(long companyId, long userId, long fileEntryId) 804 throws com.liferay.portal.kernel.exception.SystemException; 805 806 /** 807 * Returns the number of document library file ranks. 808 * 809 * @return the number of document library file ranks 810 * @throws SystemException if a system exception occurred 811 */ 812 public int countAll() 813 throws com.liferay.portal.kernel.exception.SystemException; 814 }