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.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 boolean merge) 081 throws com.liferay.portal.kernel.exception.SystemException; 082 083 /** 084 * 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. 085 * 086 * @param fileRankId the primary key of the document library file rank 087 * @return the document library file rank 088 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 089 * @throws SystemException if a system exception occurred 090 */ 091 public com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey( 092 long fileRankId) 093 throws com.liferay.portal.kernel.exception.SystemException, 094 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 095 096 /** 097 * Returns the document library file rank with the primary key or returns <code>null</code> if it could not be found. 098 * 099 * @param fileRankId the primary key of the document library file rank 100 * @return the document library file rank, or <code>null</code> if a document library file rank with the primary key could not be found 101 * @throws SystemException if a system exception occurred 102 */ 103 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey( 104 long fileRankId) 105 throws com.liferay.portal.kernel.exception.SystemException; 106 107 /** 108 * Returns all the document library file ranks where userId = ?. 109 * 110 * @param userId the user ID 111 * @return the matching document library file ranks 112 * @throws SystemException if a system exception occurred 113 */ 114 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 115 long userId) throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the document library file ranks where userId = ?. 119 * 120 * <p> 121 * 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. 122 * </p> 123 * 124 * @param userId the user ID 125 * @param start the lower bound of the range of document library file ranks 126 * @param end the upper bound of the range of document library file ranks (not inclusive) 127 * @return the range of matching document library file ranks 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 131 long userId, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the document library file ranks where userId = ?. 136 * 137 * <p> 138 * 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. 139 * </p> 140 * 141 * @param userId the user ID 142 * @param start the lower bound of the range of document library file ranks 143 * @param end the upper bound of the range of document library file ranks (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching document library file ranks 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 149 long userId, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first document library file rank in the ordered set where userId = ?. 155 * 156 * @param userId the user ID 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching document library file rank 159 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First( 163 long userId, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 167 168 /** 169 * Returns the first document library file rank in the ordered set where userId = ?. 170 * 171 * @param userId the user ID 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_First( 177 long userId, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last document library file rank in the ordered set where userId = ?. 183 * 184 * @param userId the user ID 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching document library file rank 187 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last( 191 long userId, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 195 196 /** 197 * Returns the last document library file rank in the ordered set where userId = ?. 198 * 199 * @param userId the user ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_Last( 205 long userId, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?. 211 * 212 * @param fileRankId the primary key of the current document library file rank 213 * @param userId the user ID 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next document library file rank 216 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext( 220 long fileRankId, long userId, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 224 225 /** 226 * Returns all the document library file ranks where fileEntryId = ?. 227 * 228 * @param fileEntryId the file entry ID 229 * @return the matching document library file ranks 230 * @throws SystemException if a system exception occurred 231 */ 232 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 233 long fileEntryId) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Returns a range of all the document library file ranks where fileEntryId = ?. 238 * 239 * <p> 240 * 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. 241 * </p> 242 * 243 * @param fileEntryId the file entry ID 244 * @param start the lower bound of the range of document library file ranks 245 * @param end the upper bound of the range of document library file ranks (not inclusive) 246 * @return the range of matching document library file ranks 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 250 long fileEntryId, int start, int end) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns an ordered range of all the document library file ranks where fileEntryId = ?. 255 * 256 * <p> 257 * 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. 258 * </p> 259 * 260 * @param fileEntryId the file entry ID 261 * @param start the lower bound of the range of document library file ranks 262 * @param end the upper bound of the range of document library file ranks (not inclusive) 263 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 264 * @return the ordered range of matching document library file ranks 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 268 long fileEntryId, int start, int end, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 274 * 275 * @param fileEntryId the file entry ID 276 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 277 * @return the first matching document library file rank 278 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_First( 282 long fileEntryId, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 286 287 /** 288 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 289 * 290 * @param fileEntryId the file entry ID 291 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 292 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 293 * @throws SystemException if a system exception occurred 294 */ 295 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_First( 296 long fileEntryId, 297 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 298 throws com.liferay.portal.kernel.exception.SystemException; 299 300 /** 301 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 302 * 303 * @param fileEntryId the file entry ID 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the last matching document library file rank 306 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 307 * @throws SystemException if a system exception occurred 308 */ 309 public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_Last( 310 long fileEntryId, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException, 313 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 314 315 /** 316 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 317 * 318 * @param fileEntryId the file entry ID 319 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 320 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 321 * @throws SystemException if a system exception occurred 322 */ 323 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_Last( 324 long fileEntryId, 325 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 326 throws com.liferay.portal.kernel.exception.SystemException; 327 328 /** 329 * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?. 330 * 331 * @param fileRankId the primary key of the current document library file rank 332 * @param fileEntryId the file entry ID 333 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 334 * @return the previous, current, and next document library file rank 335 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByFileEntryId_PrevAndNext( 339 long fileRankId, long fileEntryId, 340 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 341 throws com.liferay.portal.kernel.exception.SystemException, 342 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 343 344 /** 345 * Returns all the document library file ranks where groupId = ? and userId = ?. 346 * 347 * @param groupId the group ID 348 * @param userId the user ID 349 * @return the matching document library file ranks 350 * @throws SystemException if a system exception occurred 351 */ 352 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 353 long groupId, long userId) 354 throws com.liferay.portal.kernel.exception.SystemException; 355 356 /** 357 * Returns a range of all the document library file ranks where groupId = ? and userId = ?. 358 * 359 * <p> 360 * 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. 361 * </p> 362 * 363 * @param groupId the group ID 364 * @param userId the user ID 365 * @param start the lower bound of the range of document library file ranks 366 * @param end the upper bound of the range of document library file ranks (not inclusive) 367 * @return the range of matching document library file ranks 368 * @throws SystemException if a system exception occurred 369 */ 370 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 371 long groupId, long userId, int start, int end) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?. 376 * 377 * <p> 378 * 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. 379 * </p> 380 * 381 * @param groupId the group ID 382 * @param userId the user ID 383 * @param start the lower bound of the range of document library file ranks 384 * @param end the upper bound of the range of document library file ranks (not inclusive) 385 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 386 * @return the ordered range of matching document library file ranks 387 * @throws SystemException if a system exception occurred 388 */ 389 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 390 long groupId, long userId, int start, int end, 391 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 392 throws com.liferay.portal.kernel.exception.SystemException; 393 394 /** 395 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 396 * 397 * @param groupId the group ID 398 * @param userId the user ID 399 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 400 * @return the first matching document library file rank 401 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 402 * @throws SystemException if a system exception occurred 403 */ 404 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First( 405 long groupId, long userId, 406 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 407 throws com.liferay.portal.kernel.exception.SystemException, 408 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 409 410 /** 411 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 412 * 413 * @param groupId the group ID 414 * @param userId the user ID 415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 416 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 417 * @throws SystemException if a system exception occurred 418 */ 419 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_First( 420 long groupId, long userId, 421 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 422 throws com.liferay.portal.kernel.exception.SystemException; 423 424 /** 425 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 426 * 427 * @param groupId the group ID 428 * @param userId the user ID 429 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 430 * @return the last matching document library file rank 431 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 432 * @throws SystemException if a system exception occurred 433 */ 434 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last( 435 long groupId, long userId, 436 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 437 throws com.liferay.portal.kernel.exception.SystemException, 438 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 439 440 /** 441 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 442 * 443 * @param groupId the group ID 444 * @param userId the user ID 445 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 446 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 447 * @throws SystemException if a system exception occurred 448 */ 449 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_Last( 450 long groupId, long userId, 451 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 452 throws com.liferay.portal.kernel.exception.SystemException; 453 454 /** 455 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?. 456 * 457 * @param fileRankId the primary key of the current document library file rank 458 * @param groupId the group ID 459 * @param userId the user ID 460 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 461 * @return the previous, current, and next document library file rank 462 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext( 466 long fileRankId, long groupId, long userId, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException, 469 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 470 471 /** 472 * 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. 473 * 474 * @param companyId the company ID 475 * @param userId the user ID 476 * @param fileEntryId the file entry ID 477 * @return the matching document library file rank 478 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 479 * @throws SystemException if a system exception occurred 480 */ 481 public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F( 482 long companyId, long userId, long fileEntryId) 483 throws com.liferay.portal.kernel.exception.SystemException, 484 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 485 486 /** 487 * 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. 488 * 489 * @param companyId the company ID 490 * @param userId the user ID 491 * @param fileEntryId the file entry ID 492 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 493 * @throws SystemException if a system exception occurred 494 */ 495 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 496 long companyId, long userId, long fileEntryId) 497 throws com.liferay.portal.kernel.exception.SystemException; 498 499 /** 500 * 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. 501 * 502 * @param companyId the company ID 503 * @param userId the user ID 504 * @param fileEntryId the file entry ID 505 * @param retrieveFromCache whether to use the finder cache 506 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 507 * @throws SystemException if a system exception occurred 508 */ 509 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 510 long companyId, long userId, long fileEntryId, boolean retrieveFromCache) 511 throws com.liferay.portal.kernel.exception.SystemException; 512 513 /** 514 * Returns all the document library file ranks. 515 * 516 * @return the document library file ranks 517 * @throws SystemException if a system exception occurred 518 */ 519 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll() 520 throws com.liferay.portal.kernel.exception.SystemException; 521 522 /** 523 * Returns a range of all the document library file ranks. 524 * 525 * <p> 526 * 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. 527 * </p> 528 * 529 * @param start the lower bound of the range of document library file ranks 530 * @param end the upper bound of the range of document library file ranks (not inclusive) 531 * @return the range of document library file ranks 532 * @throws SystemException if a system exception occurred 533 */ 534 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 535 int start, int end) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Returns an ordered range of all the document library file ranks. 540 * 541 * <p> 542 * 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. 543 * </p> 544 * 545 * @param start the lower bound of the range of document library file ranks 546 * @param end the upper bound of the range of document library file ranks (not inclusive) 547 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 548 * @return the ordered range of document library file ranks 549 * @throws SystemException if a system exception occurred 550 */ 551 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 552 int start, int end, 553 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 554 throws com.liferay.portal.kernel.exception.SystemException; 555 556 /** 557 * Removes all the document library file ranks where userId = ? from the database. 558 * 559 * @param userId the user ID 560 * @throws SystemException if a system exception occurred 561 */ 562 public void removeByUserId(long userId) 563 throws com.liferay.portal.kernel.exception.SystemException; 564 565 /** 566 * Removes all the document library file ranks where fileEntryId = ? from the database. 567 * 568 * @param fileEntryId the file entry ID 569 * @throws SystemException if a system exception occurred 570 */ 571 public void removeByFileEntryId(long fileEntryId) 572 throws com.liferay.portal.kernel.exception.SystemException; 573 574 /** 575 * Removes all the document library file ranks where groupId = ? and userId = ? from the database. 576 * 577 * @param groupId the group ID 578 * @param userId the user ID 579 * @throws SystemException if a system exception occurred 580 */ 581 public void removeByG_U(long groupId, long userId) 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database. 586 * 587 * @param companyId the company ID 588 * @param userId the user ID 589 * @param fileEntryId the file entry ID 590 * @return the document library file rank that was removed 591 * @throws SystemException if a system exception occurred 592 */ 593 public com.liferay.portlet.documentlibrary.model.DLFileRank removeByC_U_F( 594 long companyId, long userId, long fileEntryId) 595 throws com.liferay.portal.kernel.exception.SystemException, 596 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 597 598 /** 599 * Removes all the document library file ranks from the database. 600 * 601 * @throws SystemException if a system exception occurred 602 */ 603 public void removeAll() 604 throws com.liferay.portal.kernel.exception.SystemException; 605 606 /** 607 * Returns the number of document library file ranks where userId = ?. 608 * 609 * @param userId the user ID 610 * @return the number of matching document library file ranks 611 * @throws SystemException if a system exception occurred 612 */ 613 public int countByUserId(long userId) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Returns the number of document library file ranks where fileEntryId = ?. 618 * 619 * @param fileEntryId the file entry ID 620 * @return the number of matching document library file ranks 621 * @throws SystemException if a system exception occurred 622 */ 623 public int countByFileEntryId(long fileEntryId) 624 throws com.liferay.portal.kernel.exception.SystemException; 625 626 /** 627 * Returns the number of document library file ranks where groupId = ? and userId = ?. 628 * 629 * @param groupId the group ID 630 * @param userId the user ID 631 * @return the number of matching document library file ranks 632 * @throws SystemException if a system exception occurred 633 */ 634 public int countByG_U(long groupId, long userId) 635 throws com.liferay.portal.kernel.exception.SystemException; 636 637 /** 638 * Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?. 639 * 640 * @param companyId the company ID 641 * @param userId the user ID 642 * @param fileEntryId the file entry ID 643 * @return the number of matching document library file ranks 644 * @throws SystemException if a system exception occurred 645 */ 646 public int countByC_U_F(long companyId, long userId, long fileEntryId) 647 throws com.liferay.portal.kernel.exception.SystemException; 648 649 /** 650 * Returns the number of document library file ranks. 651 * 652 * @return the number of document library file ranks 653 * @throws SystemException if a system exception occurred 654 */ 655 public int countAll() 656 throws com.liferay.portal.kernel.exception.SystemException; 657 }