001 /** 002 * Copyright (c) 2000-2010 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 d l file rank service. 023 * 024 * <p> 025 * Never modify or reference this interface directly. Always use {@link DLFileRankUtil} to access the d l file rank persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 026 * </p> 027 * 028 * <p> 029 * Caching information and settings can be found in <code>portal.properties</code> 030 * </p> 031 * 032 * @author Brian Wing Shun Chan 033 * @see DLFileRankPersistenceImpl 034 * @see DLFileRankUtil 035 * @generated 036 */ 037 public interface DLFileRankPersistence extends BasePersistence<DLFileRank> { 038 /** 039 * Caches the d l file rank in the entity cache if it is enabled. 040 * 041 * @param dlFileRank the d l file rank to cache 042 */ 043 public void cacheResult( 044 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank); 045 046 /** 047 * Caches the d l file ranks in the entity cache if it is enabled. 048 * 049 * @param dlFileRanks the d l file ranks to cache 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks); 053 054 /** 055 * Creates a new d l file rank with the primary key. Does not add the d l file rank to the database. 056 * 057 * @param fileRankId the primary key for the new d l file rank 058 * @return the new d l file rank 059 */ 060 public com.liferay.portlet.documentlibrary.model.DLFileRank create( 061 long fileRankId); 062 063 /** 064 * Removes the d l file rank with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param fileRankId the primary key of the d l file rank to remove 067 * @return the d l file rank that was removed 068 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portlet.documentlibrary.model.DLFileRank remove( 072 long fileRankId) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 075 076 public com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl( 077 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank, 078 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Finds the d l file rank with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 083 * 084 * @param fileRankId the primary key of the d l file rank to find 085 * @return the d l file rank 086 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey( 090 long fileRankId) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 093 094 /** 095 * Finds the d l file rank with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param fileRankId the primary key of the d l file rank to find 098 * @return the d l file rank, or <code>null</code> if a d l file rank with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey( 102 long fileRankId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Finds all the d l file ranks where userId = ?. 107 * 108 * @param userId the user id to search with 109 * @return the matching d l file ranks 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 113 long userId) throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Finds a range of all the d l file ranks where userId = ?. 117 * 118 * <p> 119 * 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. 120 * </p> 121 * 122 * @param userId the user id to search with 123 * @param start the lower bound of the range of d l file ranks to return 124 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 125 * @return the range of matching d l file ranks 126 * @throws SystemException if a system exception occurred 127 */ 128 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 129 long userId, int start, int end) 130 throws com.liferay.portal.kernel.exception.SystemException; 131 132 /** 133 * Finds an ordered range of all the d l file ranks where userId = ?. 134 * 135 * <p> 136 * 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. 137 * </p> 138 * 139 * @param userId the user id to search with 140 * @param start the lower bound of the range of d l file ranks to return 141 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 142 * @param orderByComparator the comparator to order the results by 143 * @return the ordered range of matching d l file ranks 144 * @throws SystemException if a system exception occurred 145 */ 146 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 147 long userId, int start, int end, 148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 149 throws com.liferay.portal.kernel.exception.SystemException; 150 151 /** 152 * Finds the first d l file rank in the ordered set where userId = ?. 153 * 154 * <p> 155 * 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. 156 * </p> 157 * 158 * @param userId the user id to search with 159 * @param orderByComparator the comparator to order the set by 160 * @return the first matching d l file rank 161 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 162 * @throws SystemException if a system exception occurred 163 */ 164 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First( 165 long userId, 166 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 167 throws com.liferay.portal.kernel.exception.SystemException, 168 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 169 170 /** 171 * Finds the last d l file rank in the ordered set where userId = ?. 172 * 173 * <p> 174 * 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. 175 * </p> 176 * 177 * @param userId the user id to search with 178 * @param orderByComparator the comparator to order the set by 179 * @return the last matching d l file rank 180 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last( 184 long userId, 185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 186 throws com.liferay.portal.kernel.exception.SystemException, 187 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 188 189 /** 190 * Finds the d l file ranks before and after the current d l file rank in the ordered set where userId = ?. 191 * 192 * <p> 193 * 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. 194 * </p> 195 * 196 * @param fileRankId the primary key of the current d l file rank 197 * @param userId the user id to search with 198 * @param orderByComparator the comparator to order the set by 199 * @return the previous, current, and next d l file rank 200 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 201 * @throws SystemException if a system exception occurred 202 */ 203 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext( 204 long fileRankId, long userId, 205 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 206 throws com.liferay.portal.kernel.exception.SystemException, 207 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 208 209 /** 210 * Finds all the d l file ranks where groupId = ? and userId = ?. 211 * 212 * @param groupId the group id to search with 213 * @param userId the user id to search with 214 * @return the matching d l file ranks 215 * @throws SystemException if a system exception occurred 216 */ 217 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 218 long groupId, long userId) 219 throws com.liferay.portal.kernel.exception.SystemException; 220 221 /** 222 * Finds a range of all the d l file ranks where groupId = ? and userId = ?. 223 * 224 * <p> 225 * 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. 226 * </p> 227 * 228 * @param groupId the group id to search with 229 * @param userId the user id to search with 230 * @param start the lower bound of the range of d l file ranks to return 231 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 232 * @return the range of matching d l file ranks 233 * @throws SystemException if a system exception occurred 234 */ 235 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 236 long groupId, long userId, int start, int end) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Finds an ordered range of all the d l file ranks where groupId = ? and userId = ?. 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 groupId the group id to search with 247 * @param userId the user id to search with 248 * @param start the lower bound of the range of d l file ranks to return 249 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 250 * @param orderByComparator the comparator to order the results by 251 * @return the ordered range of matching d l file ranks 252 * @throws SystemException if a system exception occurred 253 */ 254 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 255 long groupId, long userId, int start, int end, 256 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Finds the first d l file rank in the ordered set where groupId = ? and userId = ?. 261 * 262 * <p> 263 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 264 * </p> 265 * 266 * @param groupId the group id to search with 267 * @param userId the user id to search with 268 * @param orderByComparator the comparator to order the set by 269 * @return the first matching d l file rank 270 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 271 * @throws SystemException if a system exception occurred 272 */ 273 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First( 274 long groupId, long userId, 275 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 276 throws com.liferay.portal.kernel.exception.SystemException, 277 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 278 279 /** 280 * Finds the last d l file rank in the ordered set where groupId = ? and userId = ?. 281 * 282 * <p> 283 * 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. 284 * </p> 285 * 286 * @param groupId the group id to search with 287 * @param userId the user id to search with 288 * @param orderByComparator the comparator to order the set by 289 * @return the last matching d l file rank 290 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 291 * @throws SystemException if a system exception occurred 292 */ 293 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last( 294 long groupId, long userId, 295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 296 throws com.liferay.portal.kernel.exception.SystemException, 297 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 298 299 /** 300 * Finds the d l file ranks before and after the current d l file rank in the ordered set where groupId = ? and userId = ?. 301 * 302 * <p> 303 * 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. 304 * </p> 305 * 306 * @param fileRankId the primary key of the current d l file rank 307 * @param groupId the group id to search with 308 * @param userId the user id to search with 309 * @param orderByComparator the comparator to order the set by 310 * @return the previous, current, and next d l file rank 311 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext( 315 long fileRankId, long groupId, long userId, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException, 318 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 319 320 /** 321 * Finds all the d l file ranks where folderId = ? and name = ?. 322 * 323 * @param folderId the folder id to search with 324 * @param name the name to search with 325 * @return the matching d l file ranks 326 * @throws SystemException if a system exception occurred 327 */ 328 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N( 329 long folderId, java.lang.String name) 330 throws com.liferay.portal.kernel.exception.SystemException; 331 332 /** 333 * Finds a range of all the d l file ranks where folderId = ? and name = ?. 334 * 335 * <p> 336 * 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. 337 * </p> 338 * 339 * @param folderId the folder id to search with 340 * @param name the name to search with 341 * @param start the lower bound of the range of d l file ranks to return 342 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 343 * @return the range of matching d l file ranks 344 * @throws SystemException if a system exception occurred 345 */ 346 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N( 347 long folderId, java.lang.String name, int start, int end) 348 throws com.liferay.portal.kernel.exception.SystemException; 349 350 /** 351 * Finds an ordered range of all the d l file ranks where folderId = ? and name = ?. 352 * 353 * <p> 354 * 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. 355 * </p> 356 * 357 * @param folderId the folder id to search with 358 * @param name the name to search with 359 * @param start the lower bound of the range of d l file ranks to return 360 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 361 * @param orderByComparator the comparator to order the results by 362 * @return the ordered range of matching d l file ranks 363 * @throws SystemException if a system exception occurred 364 */ 365 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N( 366 long folderId, java.lang.String name, int start, int end, 367 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 368 throws com.liferay.portal.kernel.exception.SystemException; 369 370 /** 371 * Finds the first d l file rank in the ordered set where folderId = ? and name = ?. 372 * 373 * <p> 374 * 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. 375 * </p> 376 * 377 * @param folderId the folder id to search with 378 * @param name the name to search with 379 * @param orderByComparator the comparator to order the set by 380 * @return the first matching d l file rank 381 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 382 * @throws SystemException if a system exception occurred 383 */ 384 public com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First( 385 long folderId, java.lang.String name, 386 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 387 throws com.liferay.portal.kernel.exception.SystemException, 388 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 389 390 /** 391 * Finds the last d l file rank in the ordered set where folderId = ? and name = ?. 392 * 393 * <p> 394 * 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. 395 * </p> 396 * 397 * @param folderId the folder id to search with 398 * @param name the name to search with 399 * @param orderByComparator the comparator to order the set by 400 * @return the last matching d l file rank 401 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 402 * @throws SystemException if a system exception occurred 403 */ 404 public com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last( 405 long folderId, java.lang.String name, 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 * Finds the d l file ranks before and after the current d l file rank in the ordered set where folderId = ? and name = ?. 412 * 413 * <p> 414 * 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. 415 * </p> 416 * 417 * @param fileRankId the primary key of the current d l file rank 418 * @param folderId the folder id to search with 419 * @param name the name to search with 420 * @param orderByComparator the comparator to order the set by 421 * @return the previous, current, and next d l file rank 422 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 423 * @throws SystemException if a system exception occurred 424 */ 425 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext( 426 long fileRankId, long folderId, java.lang.String name, 427 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 428 throws com.liferay.portal.kernel.exception.SystemException, 429 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 430 431 /** 432 * Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 433 * 434 * @param companyId the company id to search with 435 * @param userId the user id to search with 436 * @param folderId the folder id to search with 437 * @param name the name to search with 438 * @return the matching d l file rank 439 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 440 * @throws SystemException if a system exception occurred 441 */ 442 public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N( 443 long companyId, long userId, long folderId, java.lang.String name) 444 throws com.liferay.portal.kernel.exception.SystemException, 445 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 446 447 /** 448 * Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 449 * 450 * @param companyId the company id to search with 451 * @param userId the user id to search with 452 * @param folderId the folder id to search with 453 * @param name the name to search with 454 * @return the matching d l file rank, or <code>null</code> if a matching d l file rank could not be found 455 * @throws SystemException if a system exception occurred 456 */ 457 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N( 458 long companyId, long userId, long folderId, java.lang.String name) 459 throws com.liferay.portal.kernel.exception.SystemException; 460 461 /** 462 * Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 463 * 464 * @param companyId the company id to search with 465 * @param userId the user id to search with 466 * @param folderId the folder id to search with 467 * @param name the name to search with 468 * @return the matching d l file rank, or <code>null</code> if a matching d l file rank could not be found 469 * @throws SystemException if a system exception occurred 470 */ 471 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N( 472 long companyId, long userId, long folderId, java.lang.String name, 473 boolean retrieveFromCache) 474 throws com.liferay.portal.kernel.exception.SystemException; 475 476 /** 477 * Finds all the d l file ranks. 478 * 479 * @return the d l file ranks 480 * @throws SystemException if a system exception occurred 481 */ 482 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll() 483 throws com.liferay.portal.kernel.exception.SystemException; 484 485 /** 486 * Finds a range of all the d l file ranks. 487 * 488 * <p> 489 * 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. 490 * </p> 491 * 492 * @param start the lower bound of the range of d l file ranks to return 493 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 494 * @return the range of d l file ranks 495 * @throws SystemException if a system exception occurred 496 */ 497 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 498 int start, int end) 499 throws com.liferay.portal.kernel.exception.SystemException; 500 501 /** 502 * Finds an ordered range of all the d l file ranks. 503 * 504 * <p> 505 * 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. 506 * </p> 507 * 508 * @param start the lower bound of the range of d l file ranks to return 509 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 510 * @param orderByComparator the comparator to order the results by 511 * @return the ordered range of d l file ranks 512 * @throws SystemException if a system exception occurred 513 */ 514 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 515 int start, int end, 516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Removes all the d l file ranks where userId = ? from the database. 521 * 522 * @param userId the user id to search with 523 * @throws SystemException if a system exception occurred 524 */ 525 public void removeByUserId(long userId) 526 throws com.liferay.portal.kernel.exception.SystemException; 527 528 /** 529 * Removes all the d l file ranks where groupId = ? and userId = ? from the database. 530 * 531 * @param groupId the group id to search with 532 * @param userId the user id to search with 533 * @throws SystemException if a system exception occurred 534 */ 535 public void removeByG_U(long groupId, long userId) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Removes all the d l file ranks where folderId = ? and name = ? from the database. 540 * 541 * @param folderId the folder id to search with 542 * @param name the name to search with 543 * @throws SystemException if a system exception occurred 544 */ 545 public void removeByF_N(long folderId, java.lang.String name) 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Removes the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? from the database. 550 * 551 * @param companyId the company id to search with 552 * @param userId the user id to search with 553 * @param folderId the folder id to search with 554 * @param name the name to search with 555 * @throws SystemException if a system exception occurred 556 */ 557 public void removeByC_U_F_N(long companyId, long userId, long folderId, 558 java.lang.String name) 559 throws com.liferay.portal.kernel.exception.SystemException, 560 com.liferay.portlet.documentlibrary.NoSuchFileRankException; 561 562 /** 563 * Removes all the d l file ranks from the database. 564 * 565 * @throws SystemException if a system exception occurred 566 */ 567 public void removeAll() 568 throws com.liferay.portal.kernel.exception.SystemException; 569 570 /** 571 * Counts all the d l file ranks where userId = ?. 572 * 573 * @param userId the user id to search with 574 * @return the number of matching d l file ranks 575 * @throws SystemException if a system exception occurred 576 */ 577 public int countByUserId(long userId) 578 throws com.liferay.portal.kernel.exception.SystemException; 579 580 /** 581 * Counts all the d l file ranks where groupId = ? and userId = ?. 582 * 583 * @param groupId the group id to search with 584 * @param userId the user id to search with 585 * @return the number of matching d l 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 * Counts all the d l file ranks where folderId = ? and name = ?. 593 * 594 * @param folderId the folder id to search with 595 * @param name the name to search with 596 * @return the number of matching d l file ranks 597 * @throws SystemException if a system exception occurred 598 */ 599 public int countByF_N(long folderId, java.lang.String name) 600 throws com.liferay.portal.kernel.exception.SystemException; 601 602 /** 603 * Counts all the d l file ranks where companyId = ? and userId = ? and folderId = ? and name = ?. 604 * 605 * @param companyId the company id to search with 606 * @param userId the user id to search with 607 * @param folderId the folder id to search with 608 * @param name the name to search with 609 * @return the number of matching d l file ranks 610 * @throws SystemException if a system exception occurred 611 */ 612 public int countByC_U_F_N(long companyId, long userId, long folderId, 613 java.lang.String name) 614 throws com.liferay.portal.kernel.exception.SystemException; 615 616 /** 617 * Counts all the d l file ranks. 618 * 619 * @return the number of d l file ranks 620 * @throws SystemException if a system exception occurred 621 */ 622 public int countAll() 623 throws com.liferay.portal.kernel.exception.SystemException; 624 }