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.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.documentlibrary.model.DLFileRank; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the document library file rank service. This utility wraps {@link DLFileRankPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see DLFileRankPersistence 037 * @see DLFileRankPersistenceImpl 038 * @generated 039 */ 040 public class DLFileRankUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(DLFileRank dlFileRank) { 058 getPersistence().clearCache(dlFileRank); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<DLFileRank> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<DLFileRank> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<DLFileRank> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static DLFileRank update(DLFileRank dlFileRank) 101 throws SystemException { 102 return getPersistence().update(dlFileRank); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static DLFileRank update(DLFileRank dlFileRank, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(dlFileRank, serviceContext); 111 } 112 113 /** 114 * Returns all the document library file ranks where userId = ?. 115 * 116 * @param userId the user ID 117 * @return the matching document library file ranks 118 * @throws SystemException if a system exception occurred 119 */ 120 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 121 long userId) throws com.liferay.portal.kernel.exception.SystemException { 122 return getPersistence().findByUserId(userId); 123 } 124 125 /** 126 * Returns a range of all the document library file ranks where userId = ?. 127 * 128 * <p> 129 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 130 * </p> 131 * 132 * @param userId the user ID 133 * @param start the lower bound of the range of document library file ranks 134 * @param end the upper bound of the range of document library file ranks (not inclusive) 135 * @return the range of matching document library file ranks 136 * @throws SystemException if a system exception occurred 137 */ 138 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 139 long userId, int start, int end) 140 throws com.liferay.portal.kernel.exception.SystemException { 141 return getPersistence().findByUserId(userId, start, end); 142 } 143 144 /** 145 * Returns an ordered range of all the document library file ranks where userId = ?. 146 * 147 * <p> 148 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 149 * </p> 150 * 151 * @param userId the user ID 152 * @param start the lower bound of the range of document library file ranks 153 * @param end the upper bound of the range of document library file ranks (not inclusive) 154 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 155 * @return the ordered range of matching document library file ranks 156 * @throws SystemException if a system exception occurred 157 */ 158 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 159 long userId, int start, int end, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence() 163 .findByUserId(userId, start, end, orderByComparator); 164 } 165 166 /** 167 * Returns the first document library file rank in the ordered set where userId = ?. 168 * 169 * @param userId the user ID 170 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 171 * @return the first matching document library file rank 172 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First( 176 long userId, 177 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 178 throws com.liferay.portal.kernel.exception.SystemException, 179 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 180 return getPersistence().findByUserId_First(userId, orderByComparator); 181 } 182 183 /** 184 * Returns the first document library file rank in the ordered set where userId = ?. 185 * 186 * @param userId the user ID 187 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 188 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_First( 192 long userId, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException { 195 return getPersistence().fetchByUserId_First(userId, orderByComparator); 196 } 197 198 /** 199 * Returns the last document library file rank in the ordered set where userId = ?. 200 * 201 * @param userId the user ID 202 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 203 * @return the last matching document library file rank 204 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 205 * @throws SystemException if a system exception occurred 206 */ 207 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last( 208 long userId, 209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 210 throws com.liferay.portal.kernel.exception.SystemException, 211 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 212 return getPersistence().findByUserId_Last(userId, orderByComparator); 213 } 214 215 /** 216 * Returns the last document library file rank in the ordered set where userId = ?. 217 * 218 * @param userId the user ID 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 221 * @throws SystemException if a system exception occurred 222 */ 223 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_Last( 224 long userId, 225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 226 throws com.liferay.portal.kernel.exception.SystemException { 227 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 228 } 229 230 /** 231 * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?. 232 * 233 * @param fileRankId the primary key of the current document library file rank 234 * @param userId the user ID 235 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 236 * @return the previous, current, and next document library file rank 237 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 238 * @throws SystemException if a system exception occurred 239 */ 240 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext( 241 long fileRankId, long userId, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException, 244 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 245 return getPersistence() 246 .findByUserId_PrevAndNext(fileRankId, userId, 247 orderByComparator); 248 } 249 250 /** 251 * Removes all the document library file ranks where userId = ? from the database. 252 * 253 * @param userId the user ID 254 * @throws SystemException if a system exception occurred 255 */ 256 public static void removeByUserId(long userId) 257 throws com.liferay.portal.kernel.exception.SystemException { 258 getPersistence().removeByUserId(userId); 259 } 260 261 /** 262 * Returns the number of document library file ranks where userId = ?. 263 * 264 * @param userId the user ID 265 * @return the number of matching document library file ranks 266 * @throws SystemException if a system exception occurred 267 */ 268 public static int countByUserId(long userId) 269 throws com.liferay.portal.kernel.exception.SystemException { 270 return getPersistence().countByUserId(userId); 271 } 272 273 /** 274 * Returns all the document library file ranks where fileEntryId = ?. 275 * 276 * @param fileEntryId the file entry ID 277 * @return the matching document library file ranks 278 * @throws SystemException if a system exception occurred 279 */ 280 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 281 long fileEntryId) 282 throws com.liferay.portal.kernel.exception.SystemException { 283 return getPersistence().findByFileEntryId(fileEntryId); 284 } 285 286 /** 287 * Returns a range of all the document library file ranks where fileEntryId = ?. 288 * 289 * <p> 290 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 291 * </p> 292 * 293 * @param fileEntryId the file entry ID 294 * @param start the lower bound of the range of document library file ranks 295 * @param end the upper bound of the range of document library file ranks (not inclusive) 296 * @return the range of matching document library file ranks 297 * @throws SystemException if a system exception occurred 298 */ 299 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 300 long fileEntryId, int start, int end) 301 throws com.liferay.portal.kernel.exception.SystemException { 302 return getPersistence().findByFileEntryId(fileEntryId, start, end); 303 } 304 305 /** 306 * Returns an ordered range of all the document library file ranks where fileEntryId = ?. 307 * 308 * <p> 309 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 310 * </p> 311 * 312 * @param fileEntryId the file entry ID 313 * @param start the lower bound of the range of document library file ranks 314 * @param end the upper bound of the range of document library file ranks (not inclusive) 315 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 316 * @return the ordered range of matching document library file ranks 317 * @throws SystemException if a system exception occurred 318 */ 319 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 320 long fileEntryId, int start, int end, 321 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 322 throws com.liferay.portal.kernel.exception.SystemException { 323 return getPersistence() 324 .findByFileEntryId(fileEntryId, start, end, orderByComparator); 325 } 326 327 /** 328 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 329 * 330 * @param fileEntryId the file entry ID 331 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 332 * @return the first matching document library file rank 333 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 334 * @throws SystemException if a system exception occurred 335 */ 336 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_First( 337 long fileEntryId, 338 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 339 throws com.liferay.portal.kernel.exception.SystemException, 340 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 341 return getPersistence() 342 .findByFileEntryId_First(fileEntryId, orderByComparator); 343 } 344 345 /** 346 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 347 * 348 * @param fileEntryId the file entry ID 349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 350 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 351 * @throws SystemException if a system exception occurred 352 */ 353 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_First( 354 long fileEntryId, 355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence() 358 .fetchByFileEntryId_First(fileEntryId, orderByComparator); 359 } 360 361 /** 362 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 363 * 364 * @param fileEntryId the file entry ID 365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 366 * @return the last matching document library file rank 367 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 368 * @throws SystemException if a system exception occurred 369 */ 370 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_Last( 371 long fileEntryId, 372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 373 throws com.liferay.portal.kernel.exception.SystemException, 374 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 375 return getPersistence() 376 .findByFileEntryId_Last(fileEntryId, orderByComparator); 377 } 378 379 /** 380 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 381 * 382 * @param fileEntryId the file entry ID 383 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 384 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 385 * @throws SystemException if a system exception occurred 386 */ 387 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_Last( 388 long fileEntryId, 389 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 390 throws com.liferay.portal.kernel.exception.SystemException { 391 return getPersistence() 392 .fetchByFileEntryId_Last(fileEntryId, orderByComparator); 393 } 394 395 /** 396 * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?. 397 * 398 * @param fileRankId the primary key of the current document library file rank 399 * @param fileEntryId the file entry ID 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the previous, current, and next document library file rank 402 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 403 * @throws SystemException if a system exception occurred 404 */ 405 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByFileEntryId_PrevAndNext( 406 long fileRankId, long fileEntryId, 407 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 408 throws com.liferay.portal.kernel.exception.SystemException, 409 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 410 return getPersistence() 411 .findByFileEntryId_PrevAndNext(fileRankId, fileEntryId, 412 orderByComparator); 413 } 414 415 /** 416 * Removes all the document library file ranks where fileEntryId = ? from the database. 417 * 418 * @param fileEntryId the file entry ID 419 * @throws SystemException if a system exception occurred 420 */ 421 public static void removeByFileEntryId(long fileEntryId) 422 throws com.liferay.portal.kernel.exception.SystemException { 423 getPersistence().removeByFileEntryId(fileEntryId); 424 } 425 426 /** 427 * Returns the number of document library file ranks where fileEntryId = ?. 428 * 429 * @param fileEntryId the file entry ID 430 * @return the number of matching document library file ranks 431 * @throws SystemException if a system exception occurred 432 */ 433 public static int countByFileEntryId(long fileEntryId) 434 throws com.liferay.portal.kernel.exception.SystemException { 435 return getPersistence().countByFileEntryId(fileEntryId); 436 } 437 438 /** 439 * Returns all the document library file ranks where groupId = ? and userId = ?. 440 * 441 * @param groupId the group ID 442 * @param userId the user ID 443 * @return the matching document library file ranks 444 * @throws SystemException if a system exception occurred 445 */ 446 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 447 long groupId, long userId) 448 throws com.liferay.portal.kernel.exception.SystemException { 449 return getPersistence().findByG_U(groupId, userId); 450 } 451 452 /** 453 * Returns a range of all the document library file ranks where groupId = ? and userId = ?. 454 * 455 * <p> 456 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 457 * </p> 458 * 459 * @param groupId the group ID 460 * @param userId the user ID 461 * @param start the lower bound of the range of document library file ranks 462 * @param end the upper bound of the range of document library file ranks (not inclusive) 463 * @return the range of matching document library file ranks 464 * @throws SystemException if a system exception occurred 465 */ 466 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 467 long groupId, long userId, int start, int end) 468 throws com.liferay.portal.kernel.exception.SystemException { 469 return getPersistence().findByG_U(groupId, userId, start, end); 470 } 471 472 /** 473 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?. 474 * 475 * <p> 476 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 477 * </p> 478 * 479 * @param groupId the group ID 480 * @param userId the user ID 481 * @param start the lower bound of the range of document library file ranks 482 * @param end the upper bound of the range of document library file ranks (not inclusive) 483 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 484 * @return the ordered range of matching document library file ranks 485 * @throws SystemException if a system exception occurred 486 */ 487 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 488 long groupId, long userId, int start, int end, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException { 491 return getPersistence() 492 .findByG_U(groupId, userId, start, end, orderByComparator); 493 } 494 495 /** 496 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 497 * 498 * @param groupId the group ID 499 * @param userId the user ID 500 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 501 * @return the first matching document library file rank 502 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 503 * @throws SystemException if a system exception occurred 504 */ 505 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First( 506 long groupId, long userId, 507 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 508 throws com.liferay.portal.kernel.exception.SystemException, 509 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 510 return getPersistence() 511 .findByG_U_First(groupId, userId, orderByComparator); 512 } 513 514 /** 515 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 516 * 517 * @param groupId the group ID 518 * @param userId the user ID 519 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 520 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 521 * @throws SystemException if a system exception occurred 522 */ 523 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_First( 524 long groupId, long userId, 525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 526 throws com.liferay.portal.kernel.exception.SystemException { 527 return getPersistence() 528 .fetchByG_U_First(groupId, userId, orderByComparator); 529 } 530 531 /** 532 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 533 * 534 * @param groupId the group ID 535 * @param userId the user ID 536 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 537 * @return the last matching document library file rank 538 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 539 * @throws SystemException if a system exception occurred 540 */ 541 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last( 542 long groupId, long userId, 543 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 544 throws com.liferay.portal.kernel.exception.SystemException, 545 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 546 return getPersistence() 547 .findByG_U_Last(groupId, userId, orderByComparator); 548 } 549 550 /** 551 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 552 * 553 * @param groupId the group ID 554 * @param userId the user ID 555 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 556 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 557 * @throws SystemException if a system exception occurred 558 */ 559 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_Last( 560 long groupId, long userId, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException { 563 return getPersistence() 564 .fetchByG_U_Last(groupId, userId, orderByComparator); 565 } 566 567 /** 568 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?. 569 * 570 * @param fileRankId the primary key of the current document library file rank 571 * @param groupId the group ID 572 * @param userId the user ID 573 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 574 * @return the previous, current, and next document library file rank 575 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 576 * @throws SystemException if a system exception occurred 577 */ 578 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext( 579 long fileRankId, long groupId, long userId, 580 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 581 throws com.liferay.portal.kernel.exception.SystemException, 582 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 583 return getPersistence() 584 .findByG_U_PrevAndNext(fileRankId, groupId, userId, 585 orderByComparator); 586 } 587 588 /** 589 * Removes all the document library file ranks where groupId = ? and userId = ? from the database. 590 * 591 * @param groupId the group ID 592 * @param userId the user ID 593 * @throws SystemException if a system exception occurred 594 */ 595 public static void removeByG_U(long groupId, long userId) 596 throws com.liferay.portal.kernel.exception.SystemException { 597 getPersistence().removeByG_U(groupId, userId); 598 } 599 600 /** 601 * Returns the number of document library file ranks where groupId = ? and userId = ?. 602 * 603 * @param groupId the group ID 604 * @param userId the user ID 605 * @return the number of matching document library file ranks 606 * @throws SystemException if a system exception occurred 607 */ 608 public static int countByG_U(long groupId, long userId) 609 throws com.liferay.portal.kernel.exception.SystemException { 610 return getPersistence().countByG_U(groupId, userId); 611 } 612 613 /** 614 * Returns all the document library file ranks where groupId = ? and userId = ? and active = ?. 615 * 616 * @param groupId the group ID 617 * @param userId the user ID 618 * @param active the active 619 * @return the matching document library file ranks 620 * @throws SystemException if a system exception occurred 621 */ 622 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 623 long groupId, long userId, boolean active) 624 throws com.liferay.portal.kernel.exception.SystemException { 625 return getPersistence().findByG_U_A(groupId, userId, active); 626 } 627 628 /** 629 * Returns a range of all the document library file ranks where groupId = ? and userId = ? and active = ?. 630 * 631 * <p> 632 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 633 * </p> 634 * 635 * @param groupId the group ID 636 * @param userId the user ID 637 * @param active the active 638 * @param start the lower bound of the range of document library file ranks 639 * @param end the upper bound of the range of document library file ranks (not inclusive) 640 * @return the range of matching document library file ranks 641 * @throws SystemException if a system exception occurred 642 */ 643 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 644 long groupId, long userId, boolean active, int start, int end) 645 throws com.liferay.portal.kernel.exception.SystemException { 646 return getPersistence().findByG_U_A(groupId, userId, active, start, end); 647 } 648 649 /** 650 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?. 651 * 652 * <p> 653 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 654 * </p> 655 * 656 * @param groupId the group ID 657 * @param userId the user ID 658 * @param active the active 659 * @param start the lower bound of the range of document library file ranks 660 * @param end the upper bound of the range of document library file ranks (not inclusive) 661 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 662 * @return the ordered range of matching document library file ranks 663 * @throws SystemException if a system exception occurred 664 */ 665 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 666 long groupId, long userId, boolean active, int start, int end, 667 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 668 throws com.liferay.portal.kernel.exception.SystemException { 669 return getPersistence() 670 .findByG_U_A(groupId, userId, active, start, end, 671 orderByComparator); 672 } 673 674 /** 675 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 676 * 677 * @param groupId the group ID 678 * @param userId the user ID 679 * @param active the active 680 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 681 * @return the first matching document library file rank 682 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 683 * @throws SystemException if a system exception occurred 684 */ 685 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_First( 686 long groupId, long userId, boolean active, 687 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 688 throws com.liferay.portal.kernel.exception.SystemException, 689 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 690 return getPersistence() 691 .findByG_U_A_First(groupId, userId, active, orderByComparator); 692 } 693 694 /** 695 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 696 * 697 * @param groupId the group ID 698 * @param userId the user ID 699 * @param active the active 700 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 701 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 702 * @throws SystemException if a system exception occurred 703 */ 704 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_First( 705 long groupId, long userId, boolean active, 706 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 707 throws com.liferay.portal.kernel.exception.SystemException { 708 return getPersistence() 709 .fetchByG_U_A_First(groupId, userId, active, 710 orderByComparator); 711 } 712 713 /** 714 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 715 * 716 * @param groupId the group ID 717 * @param userId the user ID 718 * @param active the active 719 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 720 * @return the last matching document library file rank 721 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 722 * @throws SystemException if a system exception occurred 723 */ 724 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_Last( 725 long groupId, long userId, boolean active, 726 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 727 throws com.liferay.portal.kernel.exception.SystemException, 728 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 729 return getPersistence() 730 .findByG_U_A_Last(groupId, userId, active, orderByComparator); 731 } 732 733 /** 734 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 735 * 736 * @param groupId the group ID 737 * @param userId the user ID 738 * @param active the active 739 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 740 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 741 * @throws SystemException if a system exception occurred 742 */ 743 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_Last( 744 long groupId, long userId, boolean active, 745 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 746 throws com.liferay.portal.kernel.exception.SystemException { 747 return getPersistence() 748 .fetchByG_U_A_Last(groupId, userId, active, orderByComparator); 749 } 750 751 /** 752 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 753 * 754 * @param fileRankId the primary key of the current document library file rank 755 * @param groupId the group ID 756 * @param userId the user ID 757 * @param active the active 758 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 759 * @return the previous, current, and next document library file rank 760 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 761 * @throws SystemException if a system exception occurred 762 */ 763 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_A_PrevAndNext( 764 long fileRankId, long groupId, long userId, boolean active, 765 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 766 throws com.liferay.portal.kernel.exception.SystemException, 767 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 768 return getPersistence() 769 .findByG_U_A_PrevAndNext(fileRankId, groupId, userId, 770 active, orderByComparator); 771 } 772 773 /** 774 * Removes all the document library file ranks where groupId = ? and userId = ? and active = ? from the database. 775 * 776 * @param groupId the group ID 777 * @param userId the user ID 778 * @param active the active 779 * @throws SystemException if a system exception occurred 780 */ 781 public static void removeByG_U_A(long groupId, long userId, boolean active) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 getPersistence().removeByG_U_A(groupId, userId, active); 784 } 785 786 /** 787 * Returns the number of document library file ranks where groupId = ? and userId = ? and active = ?. 788 * 789 * @param groupId the group ID 790 * @param userId the user ID 791 * @param active the active 792 * @return the number of matching document library file ranks 793 * @throws SystemException if a system exception occurred 794 */ 795 public static int countByG_U_A(long groupId, long userId, boolean active) 796 throws com.liferay.portal.kernel.exception.SystemException { 797 return getPersistence().countByG_U_A(groupId, userId, active); 798 } 799 800 /** 801 * 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. 802 * 803 * @param companyId the company ID 804 * @param userId the user ID 805 * @param fileEntryId the file entry ID 806 * @return the matching document library file rank 807 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 808 * @throws SystemException if a system exception occurred 809 */ 810 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F( 811 long companyId, long userId, long fileEntryId) 812 throws com.liferay.portal.kernel.exception.SystemException, 813 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 814 return getPersistence().findByC_U_F(companyId, userId, fileEntryId); 815 } 816 817 /** 818 * 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. 819 * 820 * @param companyId the company ID 821 * @param userId the user ID 822 * @param fileEntryId the file entry ID 823 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 824 * @throws SystemException if a system exception occurred 825 */ 826 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 827 long companyId, long userId, long fileEntryId) 828 throws com.liferay.portal.kernel.exception.SystemException { 829 return getPersistence().fetchByC_U_F(companyId, userId, fileEntryId); 830 } 831 832 /** 833 * 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. 834 * 835 * @param companyId the company ID 836 * @param userId the user ID 837 * @param fileEntryId the file entry ID 838 * @param retrieveFromCache whether to use the finder cache 839 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 840 * @throws SystemException if a system exception occurred 841 */ 842 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 843 long companyId, long userId, long fileEntryId, boolean retrieveFromCache) 844 throws com.liferay.portal.kernel.exception.SystemException { 845 return getPersistence() 846 .fetchByC_U_F(companyId, userId, fileEntryId, 847 retrieveFromCache); 848 } 849 850 /** 851 * Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database. 852 * 853 * @param companyId the company ID 854 * @param userId the user ID 855 * @param fileEntryId the file entry ID 856 * @return the document library file rank that was removed 857 * @throws SystemException if a system exception occurred 858 */ 859 public static com.liferay.portlet.documentlibrary.model.DLFileRank removeByC_U_F( 860 long companyId, long userId, long fileEntryId) 861 throws com.liferay.portal.kernel.exception.SystemException, 862 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 863 return getPersistence().removeByC_U_F(companyId, userId, fileEntryId); 864 } 865 866 /** 867 * Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?. 868 * 869 * @param companyId the company ID 870 * @param userId the user ID 871 * @param fileEntryId the file entry ID 872 * @return the number of matching document library file ranks 873 * @throws SystemException if a system exception occurred 874 */ 875 public static int countByC_U_F(long companyId, long userId, long fileEntryId) 876 throws com.liferay.portal.kernel.exception.SystemException { 877 return getPersistence().countByC_U_F(companyId, userId, fileEntryId); 878 } 879 880 /** 881 * Caches the document library file rank in the entity cache if it is enabled. 882 * 883 * @param dlFileRank the document library file rank 884 */ 885 public static void cacheResult( 886 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) { 887 getPersistence().cacheResult(dlFileRank); 888 } 889 890 /** 891 * Caches the document library file ranks in the entity cache if it is enabled. 892 * 893 * @param dlFileRanks the document library file ranks 894 */ 895 public static void cacheResult( 896 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks) { 897 getPersistence().cacheResult(dlFileRanks); 898 } 899 900 /** 901 * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database. 902 * 903 * @param fileRankId the primary key for the new document library file rank 904 * @return the new document library file rank 905 */ 906 public static com.liferay.portlet.documentlibrary.model.DLFileRank create( 907 long fileRankId) { 908 return getPersistence().create(fileRankId); 909 } 910 911 /** 912 * Removes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners. 913 * 914 * @param fileRankId the primary key of the document library file rank 915 * @return the document library file rank that was removed 916 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 917 * @throws SystemException if a system exception occurred 918 */ 919 public static com.liferay.portlet.documentlibrary.model.DLFileRank remove( 920 long fileRankId) 921 throws com.liferay.portal.kernel.exception.SystemException, 922 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 923 return getPersistence().remove(fileRankId); 924 } 925 926 public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl( 927 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) 928 throws com.liferay.portal.kernel.exception.SystemException { 929 return getPersistence().updateImpl(dlFileRank); 930 } 931 932 /** 933 * 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. 934 * 935 * @param fileRankId the primary key of the document library file rank 936 * @return the document library file rank 937 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 938 * @throws SystemException if a system exception occurred 939 */ 940 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey( 941 long fileRankId) 942 throws com.liferay.portal.kernel.exception.SystemException, 943 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 944 return getPersistence().findByPrimaryKey(fileRankId); 945 } 946 947 /** 948 * Returns the document library file rank with the primary key or returns <code>null</code> if it could not be found. 949 * 950 * @param fileRankId the primary key of the document library file rank 951 * @return the document library file rank, or <code>null</code> if a document library file rank with the primary key could not be found 952 * @throws SystemException if a system exception occurred 953 */ 954 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey( 955 long fileRankId) 956 throws com.liferay.portal.kernel.exception.SystemException { 957 return getPersistence().fetchByPrimaryKey(fileRankId); 958 } 959 960 /** 961 * Returns all the document library file ranks. 962 * 963 * @return the document library file ranks 964 * @throws SystemException if a system exception occurred 965 */ 966 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll() 967 throws com.liferay.portal.kernel.exception.SystemException { 968 return getPersistence().findAll(); 969 } 970 971 /** 972 * Returns a range of all the document library file ranks. 973 * 974 * <p> 975 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 976 * </p> 977 * 978 * @param start the lower bound of the range of document library file ranks 979 * @param end the upper bound of the range of document library file ranks (not inclusive) 980 * @return the range of document library file ranks 981 * @throws SystemException if a system exception occurred 982 */ 983 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 984 int start, int end) 985 throws com.liferay.portal.kernel.exception.SystemException { 986 return getPersistence().findAll(start, end); 987 } 988 989 /** 990 * Returns an ordered range of all the document library file ranks. 991 * 992 * <p> 993 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 994 * </p> 995 * 996 * @param start the lower bound of the range of document library file ranks 997 * @param end the upper bound of the range of document library file ranks (not inclusive) 998 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 999 * @return the ordered range of document library file ranks 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 1003 int start, int end, 1004 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1005 throws com.liferay.portal.kernel.exception.SystemException { 1006 return getPersistence().findAll(start, end, orderByComparator); 1007 } 1008 1009 /** 1010 * Removes all the document library file ranks from the database. 1011 * 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public static void removeAll() 1015 throws com.liferay.portal.kernel.exception.SystemException { 1016 getPersistence().removeAll(); 1017 } 1018 1019 /** 1020 * Returns the number of document library file ranks. 1021 * 1022 * @return the number of document library file ranks 1023 * @throws SystemException if a system exception occurred 1024 */ 1025 public static int countAll() 1026 throws com.liferay.portal.kernel.exception.SystemException { 1027 return getPersistence().countAll(); 1028 } 1029 1030 public static DLFileRankPersistence getPersistence() { 1031 if (_persistence == null) { 1032 _persistence = (DLFileRankPersistence)PortalBeanLocatorUtil.locate(DLFileRankPersistence.class.getName()); 1033 1034 ReferenceRegistry.registerReference(DLFileRankUtil.class, 1035 "_persistence"); 1036 } 1037 1038 return _persistence; 1039 } 1040 1041 /** 1042 * @deprecated As of 6.2.0 1043 */ 1044 public void setPersistence(DLFileRankPersistence persistence) { 1045 } 1046 1047 private static DLFileRankPersistence _persistence; 1048 }