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 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 * <p> 157 * 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. 158 * </p> 159 * 160 * @param userId the user ID 161 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 162 * @return the first matching document library file rank 163 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 164 * @throws SystemException if a system exception occurred 165 */ 166 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First( 167 long userId, 168 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 169 throws com.liferay.portal.kernel.exception.SystemException, 170 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 171 172 /** 173 * Returns the last document library file rank in the ordered set where userId = ?. 174 * 175 * <p> 176 * 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. 177 * </p> 178 * 179 * @param userId the user ID 180 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 181 * @return the last matching document library file rank 182 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 183 * @throws SystemException if a system exception occurred 184 */ 185 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last( 186 long userId, 187 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 188 throws com.liferay.portal.kernel.exception.SystemException, 189 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 190 191 /** 192 * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?. 193 * 194 * <p> 195 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 196 * </p> 197 * 198 * @param fileRankId the primary key of the current document library file rank 199 * @param userId the user ID 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the previous, current, and next document library file rank 202 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 203 * @throws SystemException if a system exception occurred 204 */ 205 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext( 206 long fileRankId, long userId, 207 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 208 throws com.liferay.portal.kernel.exception.SystemException, 209 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 210 211 /** 212 * Returns all the document library file ranks where fileEntryId = ?. 213 * 214 * @param fileEntryId the file entry ID 215 * @return the matching document library file ranks 216 * @throws SystemException if a system exception occurred 217 */ 218 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 219 long fileEntryId) 220 throws com.liferay.portal.kernel.exception.SystemException; 221 222 /** 223 * Returns a range of all the document library file ranks where fileEntryId = ?. 224 * 225 * <p> 226 * 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. 227 * </p> 228 * 229 * @param fileEntryId the file entry ID 230 * @param start the lower bound of the range of document library file ranks 231 * @param end the upper bound of the range of document library file ranks (not inclusive) 232 * @return the range of matching document library file ranks 233 * @throws SystemException if a system exception occurred 234 */ 235 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 236 long fileEntryId, int start, int end) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Returns an ordered range of all the document library file ranks where fileEntryId = ?. 241 * 242 * <p> 243 * 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. 244 * </p> 245 * 246 * @param fileEntryId the file entry ID 247 * @param start the lower bound of the range of document library file ranks 248 * @param end the upper bound of the range of document library file ranks (not inclusive) 249 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 250 * @return the ordered range of matching document library file ranks 251 * @throws SystemException if a system exception occurred 252 */ 253 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 254 long fileEntryId, int start, int end, 255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 256 throws com.liferay.portal.kernel.exception.SystemException; 257 258 /** 259 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 260 * 261 * <p> 262 * 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. 263 * </p> 264 * 265 * @param fileEntryId the file entry ID 266 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 267 * @return the first matching document library file rank 268 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 269 * @throws SystemException if a system exception occurred 270 */ 271 public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_First( 272 long fileEntryId, 273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 274 throws com.liferay.portal.kernel.exception.SystemException, 275 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 276 277 /** 278 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 279 * 280 * <p> 281 * 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. 282 * </p> 283 * 284 * @param fileEntryId the file entry ID 285 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 286 * @return the last matching document library file rank 287 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 288 * @throws SystemException if a system exception occurred 289 */ 290 public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_Last( 291 long fileEntryId, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException, 294 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 295 296 /** 297 * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?. 298 * 299 * <p> 300 * 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. 301 * </p> 302 * 303 * @param fileRankId the primary key of the current document library file rank 304 * @param fileEntryId the file entry ID 305 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 306 * @return the previous, current, and next document library file rank 307 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 308 * @throws SystemException if a system exception occurred 309 */ 310 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByFileEntryId_PrevAndNext( 311 long fileRankId, long fileEntryId, 312 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 313 throws com.liferay.portal.kernel.exception.SystemException, 314 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 315 316 /** 317 * Returns all the document library file ranks where groupId = ? and userId = ?. 318 * 319 * @param groupId the group ID 320 * @param userId the user ID 321 * @return the matching document library file ranks 322 * @throws SystemException if a system exception occurred 323 */ 324 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 325 long groupId, long userId) 326 throws com.liferay.portal.kernel.exception.SystemException; 327 328 /** 329 * Returns a range of all the document library file ranks where groupId = ? and userId = ?. 330 * 331 * <p> 332 * 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. 333 * </p> 334 * 335 * @param groupId the group ID 336 * @param userId the user ID 337 * @param start the lower bound of the range of document library file ranks 338 * @param end the upper bound of the range of document library file ranks (not inclusive) 339 * @return the range of matching document library file ranks 340 * @throws SystemException if a system exception occurred 341 */ 342 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 343 long groupId, long userId, int start, int end) 344 throws com.liferay.portal.kernel.exception.SystemException; 345 346 /** 347 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?. 348 * 349 * <p> 350 * 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. 351 * </p> 352 * 353 * @param groupId the group ID 354 * @param userId the user ID 355 * @param start the lower bound of the range of document library file ranks 356 * @param end the upper bound of the range of document library file ranks (not inclusive) 357 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 358 * @return the ordered range of matching document library file ranks 359 * @throws SystemException if a system exception occurred 360 */ 361 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 362 long groupId, long userId, int start, int end, 363 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 364 throws com.liferay.portal.kernel.exception.SystemException; 365 366 /** 367 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 368 * 369 * <p> 370 * 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. 371 * </p> 372 * 373 * @param groupId the group ID 374 * @param userId the user ID 375 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 376 * @return the first matching document library file rank 377 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 378 * @throws SystemException if a system exception occurred 379 */ 380 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First( 381 long groupId, long userId, 382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 383 throws com.liferay.portal.kernel.exception.SystemException, 384 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 385 386 /** 387 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 388 * 389 * <p> 390 * 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. 391 * </p> 392 * 393 * @param groupId the group ID 394 * @param userId the user ID 395 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 396 * @return the last matching document library file rank 397 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 398 * @throws SystemException if a system exception occurred 399 */ 400 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last( 401 long groupId, long userId, 402 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 403 throws com.liferay.portal.kernel.exception.SystemException, 404 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 405 406 /** 407 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?. 408 * 409 * <p> 410 * 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. 411 * </p> 412 * 413 * @param fileRankId the primary key of the current document library file rank 414 * @param groupId the group ID 415 * @param userId the user ID 416 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 417 * @return the previous, current, and next document library file rank 418 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 419 * @throws SystemException if a system exception occurred 420 */ 421 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext( 422 long fileRankId, long groupId, long userId, 423 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 424 throws com.liferay.portal.kernel.exception.SystemException, 425 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 426 427 /** 428 * 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. 429 * 430 * @param companyId the company ID 431 * @param userId the user ID 432 * @param fileEntryId the file entry ID 433 * @return the matching document library file rank 434 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 435 * @throws SystemException if a system exception occurred 436 */ 437 public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F( 438 long companyId, long userId, long fileEntryId) 439 throws com.liferay.portal.kernel.exception.SystemException, 440 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 441 442 /** 443 * 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. 444 * 445 * @param companyId the company ID 446 * @param userId the user ID 447 * @param fileEntryId the file entry ID 448 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 449 * @throws SystemException if a system exception occurred 450 */ 451 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 452 long companyId, long userId, long fileEntryId) 453 throws com.liferay.portal.kernel.exception.SystemException; 454 455 /** 456 * 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. 457 * 458 * @param companyId the company ID 459 * @param userId the user ID 460 * @param fileEntryId the file entry ID 461 * @param retrieveFromCache whether to use the finder cache 462 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 466 long companyId, long userId, long fileEntryId, boolean retrieveFromCache) 467 throws com.liferay.portal.kernel.exception.SystemException; 468 469 /** 470 * Returns all the document library file ranks. 471 * 472 * @return the document library file ranks 473 * @throws SystemException if a system exception occurred 474 */ 475 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll() 476 throws com.liferay.portal.kernel.exception.SystemException; 477 478 /** 479 * Returns a range of all the document library file ranks. 480 * 481 * <p> 482 * 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. 483 * </p> 484 * 485 * @param start the lower bound of the range of document library file ranks 486 * @param end the upper bound of the range of document library file ranks (not inclusive) 487 * @return the range of document library file ranks 488 * @throws SystemException if a system exception occurred 489 */ 490 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 491 int start, int end) 492 throws com.liferay.portal.kernel.exception.SystemException; 493 494 /** 495 * Returns an ordered range of all the document library file ranks. 496 * 497 * <p> 498 * 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. 499 * </p> 500 * 501 * @param start the lower bound of the range of document library file ranks 502 * @param end the upper bound of the range of document library file ranks (not inclusive) 503 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 504 * @return the ordered range of document library file ranks 505 * @throws SystemException if a system exception occurred 506 */ 507 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 508 int start, int end, 509 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 510 throws com.liferay.portal.kernel.exception.SystemException; 511 512 /** 513 * Removes all the document library file ranks where userId = ? from the database. 514 * 515 * @param userId the user ID 516 * @throws SystemException if a system exception occurred 517 */ 518 public void removeByUserId(long userId) 519 throws com.liferay.portal.kernel.exception.SystemException; 520 521 /** 522 * Removes all the document library file ranks where fileEntryId = ? from the database. 523 * 524 * @param fileEntryId the file entry ID 525 * @throws SystemException if a system exception occurred 526 */ 527 public void removeByFileEntryId(long fileEntryId) 528 throws com.liferay.portal.kernel.exception.SystemException; 529 530 /** 531 * Removes all the document library file ranks where groupId = ? and userId = ? from the database. 532 * 533 * @param groupId the group ID 534 * @param userId the user ID 535 * @throws SystemException if a system exception occurred 536 */ 537 public void removeByG_U(long groupId, long userId) 538 throws com.liferay.portal.kernel.exception.SystemException; 539 540 /** 541 * Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database. 542 * 543 * @param companyId the company ID 544 * @param userId the user ID 545 * @param fileEntryId the file entry ID 546 * @throws SystemException if a system exception occurred 547 */ 548 public void removeByC_U_F(long companyId, long userId, long fileEntryId) 549 throws com.liferay.portal.kernel.exception.SystemException, 550 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 551 552 /** 553 * Removes all the document library file ranks from the database. 554 * 555 * @throws SystemException if a system exception occurred 556 */ 557 public void removeAll() 558 throws com.liferay.portal.kernel.exception.SystemException; 559 560 /** 561 * Returns the number of document library file ranks where userId = ?. 562 * 563 * @param userId the user ID 564 * @return the number of matching document library file ranks 565 * @throws SystemException if a system exception occurred 566 */ 567 public int countByUserId(long userId) 568 throws com.liferay.portal.kernel.exception.SystemException; 569 570 /** 571 * Returns the number of document library file ranks where fileEntryId = ?. 572 * 573 * @param fileEntryId the file entry ID 574 * @return the number of matching document library file ranks 575 * @throws SystemException if a system exception occurred 576 */ 577 public int countByFileEntryId(long fileEntryId) 578 throws com.liferay.portal.kernel.exception.SystemException; 579 580 /** 581 * Returns the number of document library file ranks where groupId = ? and userId = ?. 582 * 583 * @param groupId the group ID 584 * @param userId the user ID 585 * @return the number of matching document library file ranks 586 * @throws SystemException if a system exception occurred 587 */ 588 public int countByG_U(long groupId, long userId) 589 throws com.liferay.portal.kernel.exception.SystemException; 590 591 /** 592 * Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?. 593 * 594 * @param companyId the company ID 595 * @param userId the user ID 596 * @param fileEntryId the file entry ID 597 * @return the number of matching document library file ranks 598 * @throws SystemException if a system exception occurred 599 */ 600 public int countByC_U_F(long companyId, long userId, long fileEntryId) 601 throws com.liferay.portal.kernel.exception.SystemException; 602 603 /** 604 * Returns the number of document library file ranks. 605 * 606 * @return the number of document library file ranks 607 * @throws SystemException if a system exception occurred 608 */ 609 public int countAll() 610 throws com.liferay.portal.kernel.exception.SystemException; 611 }