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.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 uuid = ?. 115 * 116 * @param uuid the uuid 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> findByUuid( 121 java.lang.String uuid) 122 throws com.liferay.portal.kernel.exception.SystemException { 123 return getPersistence().findByUuid(uuid); 124 } 125 126 /** 127 * Returns a range of all the document library file ranks where uuid = ?. 128 * 129 * <p> 130 * 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. 131 * </p> 132 * 133 * @param uuid the uuid 134 * @param start the lower bound of the range of document library file ranks 135 * @param end the upper bound of the range of document library file ranks (not inclusive) 136 * @return the range of matching document library file ranks 137 * @throws SystemException if a system exception occurred 138 */ 139 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUuid( 140 java.lang.String uuid, int start, int end) 141 throws com.liferay.portal.kernel.exception.SystemException { 142 return getPersistence().findByUuid(uuid, start, end); 143 } 144 145 /** 146 * Returns an ordered range of all the document library file ranks where uuid = ?. 147 * 148 * <p> 149 * 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. 150 * </p> 151 * 152 * @param uuid the uuid 153 * @param start the lower bound of the range of document library file ranks 154 * @param end the upper bound of the range of document library file ranks (not inclusive) 155 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 156 * @return the ordered range of matching document library file ranks 157 * @throws SystemException if a system exception occurred 158 */ 159 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUuid( 160 java.lang.String uuid, int start, int end, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 164 } 165 166 /** 167 * Returns the first document library file rank in the ordered set where uuid = ?. 168 * 169 * @param uuid the uuid 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 findByUuid_First( 176 java.lang.String uuid, 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().findByUuid_First(uuid, orderByComparator); 181 } 182 183 /** 184 * Returns the first document library file rank in the ordered set where uuid = ?. 185 * 186 * @param uuid the uuid 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 fetchByUuid_First( 192 java.lang.String uuid, 193 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 194 throws com.liferay.portal.kernel.exception.SystemException { 195 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 196 } 197 198 /** 199 * Returns the last document library file rank in the ordered set where uuid = ?. 200 * 201 * @param uuid the uuid 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 findByUuid_Last( 208 java.lang.String uuid, 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().findByUuid_Last(uuid, orderByComparator); 213 } 214 215 /** 216 * Returns the last document library file rank in the ordered set where uuid = ?. 217 * 218 * @param uuid the uuid 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 fetchByUuid_Last( 224 java.lang.String uuid, 225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 226 throws com.liferay.portal.kernel.exception.SystemException { 227 return getPersistence().fetchByUuid_Last(uuid, 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 uuid = ?. 232 * 233 * @param fileRankId the primary key of the current document library file rank 234 * @param uuid the uuid 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[] findByUuid_PrevAndNext( 241 long fileRankId, java.lang.String uuid, 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 .findByUuid_PrevAndNext(fileRankId, uuid, orderByComparator); 247 } 248 249 /** 250 * Removes all the document library file ranks where uuid = ? from the database. 251 * 252 * @param uuid the uuid 253 * @throws SystemException if a system exception occurred 254 */ 255 public static void removeByUuid(java.lang.String uuid) 256 throws com.liferay.portal.kernel.exception.SystemException { 257 getPersistence().removeByUuid(uuid); 258 } 259 260 /** 261 * Returns the number of document library file ranks where uuid = ?. 262 * 263 * @param uuid the uuid 264 * @return the number of matching document library file ranks 265 * @throws SystemException if a system exception occurred 266 */ 267 public static int countByUuid(java.lang.String uuid) 268 throws com.liferay.portal.kernel.exception.SystemException { 269 return getPersistence().countByUuid(uuid); 270 } 271 272 /** 273 * Returns the document library file rank where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 274 * 275 * @param uuid the uuid 276 * @param groupId the group ID 277 * @return the matching document library file rank 278 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUUID_G( 282 java.lang.String uuid, long groupId) 283 throws com.liferay.portal.kernel.exception.SystemException, 284 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 285 return getPersistence().findByUUID_G(uuid, groupId); 286 } 287 288 /** 289 * Returns the document library file rank where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 290 * 291 * @param uuid the uuid 292 * @param groupId the group ID 293 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 294 * @throws SystemException if a system exception occurred 295 */ 296 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUUID_G( 297 java.lang.String uuid, long groupId) 298 throws com.liferay.portal.kernel.exception.SystemException { 299 return getPersistence().fetchByUUID_G(uuid, groupId); 300 } 301 302 /** 303 * Returns the document library file rank where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 304 * 305 * @param uuid the uuid 306 * @param groupId the group ID 307 * @param retrieveFromCache whether to use the finder cache 308 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUUID_G( 312 java.lang.String uuid, long groupId, boolean retrieveFromCache) 313 throws com.liferay.portal.kernel.exception.SystemException { 314 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 315 } 316 317 /** 318 * Removes the document library file rank where uuid = ? and groupId = ? from the database. 319 * 320 * @param uuid the uuid 321 * @param groupId the group ID 322 * @return the document library file rank that was removed 323 * @throws SystemException if a system exception occurred 324 */ 325 public static com.liferay.portlet.documentlibrary.model.DLFileRank removeByUUID_G( 326 java.lang.String uuid, long groupId) 327 throws com.liferay.portal.kernel.exception.SystemException, 328 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 329 return getPersistence().removeByUUID_G(uuid, groupId); 330 } 331 332 /** 333 * Returns the number of document library file ranks where uuid = ? and groupId = ?. 334 * 335 * @param uuid the uuid 336 * @param groupId the group ID 337 * @return the number of matching document library file ranks 338 * @throws SystemException if a system exception occurred 339 */ 340 public static int countByUUID_G(java.lang.String uuid, long groupId) 341 throws com.liferay.portal.kernel.exception.SystemException { 342 return getPersistence().countByUUID_G(uuid, groupId); 343 } 344 345 /** 346 * Returns all the document library file ranks where uuid = ? and companyId = ?. 347 * 348 * @param uuid the uuid 349 * @param companyId the company ID 350 * @return the matching document library file ranks 351 * @throws SystemException if a system exception occurred 352 */ 353 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUuid_C( 354 java.lang.String uuid, long companyId) 355 throws com.liferay.portal.kernel.exception.SystemException { 356 return getPersistence().findByUuid_C(uuid, companyId); 357 } 358 359 /** 360 * Returns a range of all the document library file ranks where uuid = ? and companyId = ?. 361 * 362 * <p> 363 * 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. 364 * </p> 365 * 366 * @param uuid the uuid 367 * @param companyId the company ID 368 * @param start the lower bound of the range of document library file ranks 369 * @param end the upper bound of the range of document library file ranks (not inclusive) 370 * @return the range of matching document library file ranks 371 * @throws SystemException if a system exception occurred 372 */ 373 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUuid_C( 374 java.lang.String uuid, long companyId, int start, int end) 375 throws com.liferay.portal.kernel.exception.SystemException { 376 return getPersistence().findByUuid_C(uuid, companyId, start, end); 377 } 378 379 /** 380 * Returns an ordered range of all the document library file ranks where uuid = ? and companyId = ?. 381 * 382 * <p> 383 * 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. 384 * </p> 385 * 386 * @param uuid the uuid 387 * @param companyId the company ID 388 * @param start the lower bound of the range of document library file ranks 389 * @param end the upper bound of the range of document library file ranks (not inclusive) 390 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 391 * @return the ordered range of matching document library file ranks 392 * @throws SystemException if a system exception occurred 393 */ 394 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUuid_C( 395 java.lang.String uuid, long companyId, int start, int end, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.kernel.exception.SystemException { 398 return getPersistence() 399 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 400 } 401 402 /** 403 * Returns the first document library file rank in the ordered set where uuid = ? and companyId = ?. 404 * 405 * @param uuid the uuid 406 * @param companyId the company ID 407 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 408 * @return the first matching document library file rank 409 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 410 * @throws SystemException if a system exception occurred 411 */ 412 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUuid_C_First( 413 java.lang.String uuid, long companyId, 414 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 415 throws com.liferay.portal.kernel.exception.SystemException, 416 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 417 return getPersistence() 418 .findByUuid_C_First(uuid, companyId, orderByComparator); 419 } 420 421 /** 422 * Returns the first document library file rank in the ordered set where uuid = ? and companyId = ?. 423 * 424 * @param uuid the uuid 425 * @param companyId the company ID 426 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 427 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 428 * @throws SystemException if a system exception occurred 429 */ 430 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUuid_C_First( 431 java.lang.String uuid, long companyId, 432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 433 throws com.liferay.portal.kernel.exception.SystemException { 434 return getPersistence() 435 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 436 } 437 438 /** 439 * Returns the last document library file rank in the ordered set where uuid = ? and companyId = ?. 440 * 441 * @param uuid the uuid 442 * @param companyId the company ID 443 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 444 * @return the last matching document library file rank 445 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUuid_C_Last( 449 java.lang.String uuid, long companyId, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException, 452 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 453 return getPersistence() 454 .findByUuid_C_Last(uuid, companyId, orderByComparator); 455 } 456 457 /** 458 * Returns the last document library file rank in the ordered set where uuid = ? and companyId = ?. 459 * 460 * @param uuid the uuid 461 * @param companyId the company ID 462 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 463 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 464 * @throws SystemException if a system exception occurred 465 */ 466 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUuid_C_Last( 467 java.lang.String uuid, long companyId, 468 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 469 throws com.liferay.portal.kernel.exception.SystemException { 470 return getPersistence() 471 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 472 } 473 474 /** 475 * Returns the document library file ranks before and after the current document library file rank in the ordered set where uuid = ? and companyId = ?. 476 * 477 * @param fileRankId the primary key of the current document library file rank 478 * @param uuid the uuid 479 * @param companyId the company ID 480 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 481 * @return the previous, current, and next document library file rank 482 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 483 * @throws SystemException if a system exception occurred 484 */ 485 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUuid_C_PrevAndNext( 486 long fileRankId, java.lang.String uuid, long companyId, 487 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 488 throws com.liferay.portal.kernel.exception.SystemException, 489 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 490 return getPersistence() 491 .findByUuid_C_PrevAndNext(fileRankId, uuid, companyId, 492 orderByComparator); 493 } 494 495 /** 496 * Removes all the document library file ranks where uuid = ? and companyId = ? from the database. 497 * 498 * @param uuid the uuid 499 * @param companyId the company ID 500 * @throws SystemException if a system exception occurred 501 */ 502 public static void removeByUuid_C(java.lang.String uuid, long companyId) 503 throws com.liferay.portal.kernel.exception.SystemException { 504 getPersistence().removeByUuid_C(uuid, companyId); 505 } 506 507 /** 508 * Returns the number of document library file ranks where uuid = ? and companyId = ?. 509 * 510 * @param uuid the uuid 511 * @param companyId the company ID 512 * @return the number of matching document library file ranks 513 * @throws SystemException if a system exception occurred 514 */ 515 public static int countByUuid_C(java.lang.String uuid, long companyId) 516 throws com.liferay.portal.kernel.exception.SystemException { 517 return getPersistence().countByUuid_C(uuid, companyId); 518 } 519 520 /** 521 * Returns all the document library file ranks where userId = ?. 522 * 523 * @param userId the user ID 524 * @return the matching document library file ranks 525 * @throws SystemException if a system exception occurred 526 */ 527 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 528 long userId) throws com.liferay.portal.kernel.exception.SystemException { 529 return getPersistence().findByUserId(userId); 530 } 531 532 /** 533 * Returns a range of all the document library file ranks where userId = ?. 534 * 535 * <p> 536 * 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. 537 * </p> 538 * 539 * @param userId the user ID 540 * @param start the lower bound of the range of document library file ranks 541 * @param end the upper bound of the range of document library file ranks (not inclusive) 542 * @return the range of matching document library file ranks 543 * @throws SystemException if a system exception occurred 544 */ 545 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 546 long userId, int start, int end) 547 throws com.liferay.portal.kernel.exception.SystemException { 548 return getPersistence().findByUserId(userId, start, end); 549 } 550 551 /** 552 * Returns an ordered range of all the document library file ranks where userId = ?. 553 * 554 * <p> 555 * 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. 556 * </p> 557 * 558 * @param userId the user ID 559 * @param start the lower bound of the range of document library file ranks 560 * @param end the upper bound of the range of document library file ranks (not inclusive) 561 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 562 * @return the ordered range of matching document library file ranks 563 * @throws SystemException if a system exception occurred 564 */ 565 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 566 long userId, int start, int end, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException { 569 return getPersistence() 570 .findByUserId(userId, start, end, orderByComparator); 571 } 572 573 /** 574 * Returns the first document library file rank in the ordered set where userId = ?. 575 * 576 * @param userId the user ID 577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 578 * @return the first matching document library file rank 579 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 580 * @throws SystemException if a system exception occurred 581 */ 582 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First( 583 long userId, 584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 585 throws com.liferay.portal.kernel.exception.SystemException, 586 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 587 return getPersistence().findByUserId_First(userId, orderByComparator); 588 } 589 590 /** 591 * Returns the first document library file rank in the ordered set where userId = ?. 592 * 593 * @param userId the user ID 594 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 595 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 596 * @throws SystemException if a system exception occurred 597 */ 598 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_First( 599 long userId, 600 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 601 throws com.liferay.portal.kernel.exception.SystemException { 602 return getPersistence().fetchByUserId_First(userId, orderByComparator); 603 } 604 605 /** 606 * Returns the last document library file rank in the ordered set where userId = ?. 607 * 608 * @param userId the user ID 609 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 610 * @return the last matching document library file rank 611 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 612 * @throws SystemException if a system exception occurred 613 */ 614 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last( 615 long userId, 616 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 617 throws com.liferay.portal.kernel.exception.SystemException, 618 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 619 return getPersistence().findByUserId_Last(userId, orderByComparator); 620 } 621 622 /** 623 * Returns the last document library file rank in the ordered set where userId = ?. 624 * 625 * @param userId the user ID 626 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 627 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 628 * @throws SystemException if a system exception occurred 629 */ 630 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_Last( 631 long userId, 632 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 633 throws com.liferay.portal.kernel.exception.SystemException { 634 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 635 } 636 637 /** 638 * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?. 639 * 640 * @param fileRankId the primary key of the current document library file rank 641 * @param userId the user ID 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the previous, current, and next document library file rank 644 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext( 648 long fileRankId, long userId, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.kernel.exception.SystemException, 651 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 652 return getPersistence() 653 .findByUserId_PrevAndNext(fileRankId, userId, 654 orderByComparator); 655 } 656 657 /** 658 * Removes all the document library file ranks where userId = ? from the database. 659 * 660 * @param userId the user ID 661 * @throws SystemException if a system exception occurred 662 */ 663 public static void removeByUserId(long userId) 664 throws com.liferay.portal.kernel.exception.SystemException { 665 getPersistence().removeByUserId(userId); 666 } 667 668 /** 669 * Returns the number of document library file ranks where userId = ?. 670 * 671 * @param userId the user ID 672 * @return the number of matching document library file ranks 673 * @throws SystemException if a system exception occurred 674 */ 675 public static int countByUserId(long userId) 676 throws com.liferay.portal.kernel.exception.SystemException { 677 return getPersistence().countByUserId(userId); 678 } 679 680 /** 681 * Returns all the document library file ranks where fileEntryId = ?. 682 * 683 * @param fileEntryId the file entry ID 684 * @return the matching document library file ranks 685 * @throws SystemException if a system exception occurred 686 */ 687 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 688 long fileEntryId) 689 throws com.liferay.portal.kernel.exception.SystemException { 690 return getPersistence().findByFileEntryId(fileEntryId); 691 } 692 693 /** 694 * Returns a range of all the document library file ranks where fileEntryId = ?. 695 * 696 * <p> 697 * 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. 698 * </p> 699 * 700 * @param fileEntryId the file entry ID 701 * @param start the lower bound of the range of document library file ranks 702 * @param end the upper bound of the range of document library file ranks (not inclusive) 703 * @return the range of matching document library file ranks 704 * @throws SystemException if a system exception occurred 705 */ 706 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 707 long fileEntryId, int start, int end) 708 throws com.liferay.portal.kernel.exception.SystemException { 709 return getPersistence().findByFileEntryId(fileEntryId, start, end); 710 } 711 712 /** 713 * Returns an ordered range of all the document library file ranks where fileEntryId = ?. 714 * 715 * <p> 716 * 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. 717 * </p> 718 * 719 * @param fileEntryId the file entry ID 720 * @param start the lower bound of the range of document library file ranks 721 * @param end the upper bound of the range of document library file ranks (not inclusive) 722 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 723 * @return the ordered range of matching document library file ranks 724 * @throws SystemException if a system exception occurred 725 */ 726 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 727 long fileEntryId, int start, int end, 728 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 729 throws com.liferay.portal.kernel.exception.SystemException { 730 return getPersistence() 731 .findByFileEntryId(fileEntryId, start, end, orderByComparator); 732 } 733 734 /** 735 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 736 * 737 * @param fileEntryId the file entry ID 738 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 739 * @return the first matching document library file rank 740 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException 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 findByFileEntryId_First( 744 long fileEntryId, 745 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 746 throws com.liferay.portal.kernel.exception.SystemException, 747 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 748 return getPersistence() 749 .findByFileEntryId_First(fileEntryId, orderByComparator); 750 } 751 752 /** 753 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 754 * 755 * @param fileEntryId the file entry ID 756 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 757 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 758 * @throws SystemException if a system exception occurred 759 */ 760 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_First( 761 long fileEntryId, 762 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 763 throws com.liferay.portal.kernel.exception.SystemException { 764 return getPersistence() 765 .fetchByFileEntryId_First(fileEntryId, orderByComparator); 766 } 767 768 /** 769 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 770 * 771 * @param fileEntryId the file entry ID 772 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 773 * @return the last matching document library file rank 774 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 775 * @throws SystemException if a system exception occurred 776 */ 777 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_Last( 778 long fileEntryId, 779 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 780 throws com.liferay.portal.kernel.exception.SystemException, 781 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 782 return getPersistence() 783 .findByFileEntryId_Last(fileEntryId, orderByComparator); 784 } 785 786 /** 787 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 788 * 789 * @param fileEntryId the file entry ID 790 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 791 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 792 * @throws SystemException if a system exception occurred 793 */ 794 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_Last( 795 long fileEntryId, 796 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 797 throws com.liferay.portal.kernel.exception.SystemException { 798 return getPersistence() 799 .fetchByFileEntryId_Last(fileEntryId, orderByComparator); 800 } 801 802 /** 803 * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?. 804 * 805 * @param fileRankId the primary key of the current document library file rank 806 * @param fileEntryId the file entry ID 807 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 808 * @return the previous, current, and next document library file rank 809 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 810 * @throws SystemException if a system exception occurred 811 */ 812 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByFileEntryId_PrevAndNext( 813 long fileRankId, long fileEntryId, 814 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 815 throws com.liferay.portal.kernel.exception.SystemException, 816 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 817 return getPersistence() 818 .findByFileEntryId_PrevAndNext(fileRankId, fileEntryId, 819 orderByComparator); 820 } 821 822 /** 823 * Removes all the document library file ranks where fileEntryId = ? from the database. 824 * 825 * @param fileEntryId the file entry ID 826 * @throws SystemException if a system exception occurred 827 */ 828 public static void removeByFileEntryId(long fileEntryId) 829 throws com.liferay.portal.kernel.exception.SystemException { 830 getPersistence().removeByFileEntryId(fileEntryId); 831 } 832 833 /** 834 * Returns the number of document library file ranks where fileEntryId = ?. 835 * 836 * @param fileEntryId the file entry ID 837 * @return the number of matching document library file ranks 838 * @throws SystemException if a system exception occurred 839 */ 840 public static int countByFileEntryId(long fileEntryId) 841 throws com.liferay.portal.kernel.exception.SystemException { 842 return getPersistence().countByFileEntryId(fileEntryId); 843 } 844 845 /** 846 * Returns all the document library file ranks where groupId = ? and userId = ?. 847 * 848 * @param groupId the group ID 849 * @param userId the user ID 850 * @return the matching document library file ranks 851 * @throws SystemException if a system exception occurred 852 */ 853 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 854 long groupId, long userId) 855 throws com.liferay.portal.kernel.exception.SystemException { 856 return getPersistence().findByG_U(groupId, userId); 857 } 858 859 /** 860 * Returns a range of all the document library file ranks where groupId = ? and userId = ?. 861 * 862 * <p> 863 * 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. 864 * </p> 865 * 866 * @param groupId the group ID 867 * @param userId the user ID 868 * @param start the lower bound of the range of document library file ranks 869 * @param end the upper bound of the range of document library file ranks (not inclusive) 870 * @return the range of matching document library file ranks 871 * @throws SystemException if a system exception occurred 872 */ 873 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 874 long groupId, long userId, int start, int end) 875 throws com.liferay.portal.kernel.exception.SystemException { 876 return getPersistence().findByG_U(groupId, userId, start, end); 877 } 878 879 /** 880 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?. 881 * 882 * <p> 883 * 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. 884 * </p> 885 * 886 * @param groupId the group ID 887 * @param userId the user ID 888 * @param start the lower bound of the range of document library file ranks 889 * @param end the upper bound of the range of document library file ranks (not inclusive) 890 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 891 * @return the ordered range of matching document library file ranks 892 * @throws SystemException if a system exception occurred 893 */ 894 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 895 long groupId, long userId, int start, int end, 896 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 897 throws com.liferay.portal.kernel.exception.SystemException { 898 return getPersistence() 899 .findByG_U(groupId, userId, start, end, orderByComparator); 900 } 901 902 /** 903 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 904 * 905 * @param groupId the group ID 906 * @param userId the user ID 907 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 908 * @return the first matching document library file rank 909 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 910 * @throws SystemException if a system exception occurred 911 */ 912 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First( 913 long groupId, long userId, 914 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 915 throws com.liferay.portal.kernel.exception.SystemException, 916 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 917 return getPersistence() 918 .findByG_U_First(groupId, userId, orderByComparator); 919 } 920 921 /** 922 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 923 * 924 * @param groupId the group ID 925 * @param userId the user ID 926 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 927 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 928 * @throws SystemException if a system exception occurred 929 */ 930 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_First( 931 long groupId, long userId, 932 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 933 throws com.liferay.portal.kernel.exception.SystemException { 934 return getPersistence() 935 .fetchByG_U_First(groupId, userId, orderByComparator); 936 } 937 938 /** 939 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 940 * 941 * @param groupId the group ID 942 * @param userId the user ID 943 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 944 * @return the last matching document library file rank 945 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 946 * @throws SystemException if a system exception occurred 947 */ 948 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last( 949 long groupId, long userId, 950 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 951 throws com.liferay.portal.kernel.exception.SystemException, 952 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 953 return getPersistence() 954 .findByG_U_Last(groupId, userId, orderByComparator); 955 } 956 957 /** 958 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 959 * 960 * @param groupId the group ID 961 * @param userId the user ID 962 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 963 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 964 * @throws SystemException if a system exception occurred 965 */ 966 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_Last( 967 long groupId, long userId, 968 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 969 throws com.liferay.portal.kernel.exception.SystemException { 970 return getPersistence() 971 .fetchByG_U_Last(groupId, userId, orderByComparator); 972 } 973 974 /** 975 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?. 976 * 977 * @param fileRankId the primary key of the current document library file rank 978 * @param groupId the group ID 979 * @param userId the user ID 980 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 981 * @return the previous, current, and next document library file rank 982 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 983 * @throws SystemException if a system exception occurred 984 */ 985 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext( 986 long fileRankId, long groupId, long userId, 987 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 988 throws com.liferay.portal.kernel.exception.SystemException, 989 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 990 return getPersistence() 991 .findByG_U_PrevAndNext(fileRankId, groupId, userId, 992 orderByComparator); 993 } 994 995 /** 996 * Removes all the document library file ranks where groupId = ? and userId = ? from the database. 997 * 998 * @param groupId the group ID 999 * @param userId the user ID 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public static void removeByG_U(long groupId, long userId) 1003 throws com.liferay.portal.kernel.exception.SystemException { 1004 getPersistence().removeByG_U(groupId, userId); 1005 } 1006 1007 /** 1008 * Returns the number of document library file ranks where groupId = ? and userId = ?. 1009 * 1010 * @param groupId the group ID 1011 * @param userId the user ID 1012 * @return the number of matching document library file ranks 1013 * @throws SystemException if a system exception occurred 1014 */ 1015 public static int countByG_U(long groupId, long userId) 1016 throws com.liferay.portal.kernel.exception.SystemException { 1017 return getPersistence().countByG_U(groupId, userId); 1018 } 1019 1020 /** 1021 * Returns all the document library file ranks where groupId = ? and userId = ? and active = ?. 1022 * 1023 * @param groupId the group ID 1024 * @param userId the user ID 1025 * @param active the active 1026 * @return the matching document library file ranks 1027 * @throws SystemException if a system exception occurred 1028 */ 1029 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 1030 long groupId, long userId, boolean active) 1031 throws com.liferay.portal.kernel.exception.SystemException { 1032 return getPersistence().findByG_U_A(groupId, userId, active); 1033 } 1034 1035 /** 1036 * Returns a range of all the document library file ranks where groupId = ? and userId = ? and active = ?. 1037 * 1038 * <p> 1039 * 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. 1040 * </p> 1041 * 1042 * @param groupId the group ID 1043 * @param userId the user ID 1044 * @param active the active 1045 * @param start the lower bound of the range of document library file ranks 1046 * @param end the upper bound of the range of document library file ranks (not inclusive) 1047 * @return the range of matching document library file ranks 1048 * @throws SystemException if a system exception occurred 1049 */ 1050 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 1051 long groupId, long userId, boolean active, int start, int end) 1052 throws com.liferay.portal.kernel.exception.SystemException { 1053 return getPersistence().findByG_U_A(groupId, userId, active, start, end); 1054 } 1055 1056 /** 1057 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?. 1058 * 1059 * <p> 1060 * 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. 1061 * </p> 1062 * 1063 * @param groupId the group ID 1064 * @param userId the user ID 1065 * @param active the active 1066 * @param start the lower bound of the range of document library file ranks 1067 * @param end the upper bound of the range of document library file ranks (not inclusive) 1068 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1069 * @return the ordered range of matching document library file ranks 1070 * @throws SystemException if a system exception occurred 1071 */ 1072 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 1073 long groupId, long userId, boolean active, int start, int end, 1074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1075 throws com.liferay.portal.kernel.exception.SystemException { 1076 return getPersistence() 1077 .findByG_U_A(groupId, userId, active, start, end, 1078 orderByComparator); 1079 } 1080 1081 /** 1082 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 1083 * 1084 * @param groupId the group ID 1085 * @param userId the user ID 1086 * @param active the active 1087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1088 * @return the first matching document library file rank 1089 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 1090 * @throws SystemException if a system exception occurred 1091 */ 1092 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_First( 1093 long groupId, long userId, boolean active, 1094 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1095 throws com.liferay.portal.kernel.exception.SystemException, 1096 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 1097 return getPersistence() 1098 .findByG_U_A_First(groupId, userId, active, orderByComparator); 1099 } 1100 1101 /** 1102 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 1103 * 1104 * @param groupId the group ID 1105 * @param userId the user ID 1106 * @param active the active 1107 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1108 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 1109 * @throws SystemException if a system exception occurred 1110 */ 1111 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_First( 1112 long groupId, long userId, boolean active, 1113 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1114 throws com.liferay.portal.kernel.exception.SystemException { 1115 return getPersistence() 1116 .fetchByG_U_A_First(groupId, userId, active, 1117 orderByComparator); 1118 } 1119 1120 /** 1121 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 1122 * 1123 * @param groupId the group ID 1124 * @param userId the user ID 1125 * @param active the active 1126 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1127 * @return the last matching document library file rank 1128 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 1129 * @throws SystemException if a system exception occurred 1130 */ 1131 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_Last( 1132 long groupId, long userId, boolean active, 1133 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1134 throws com.liferay.portal.kernel.exception.SystemException, 1135 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 1136 return getPersistence() 1137 .findByG_U_A_Last(groupId, userId, active, orderByComparator); 1138 } 1139 1140 /** 1141 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 1142 * 1143 * @param groupId the group ID 1144 * @param userId the user ID 1145 * @param active the active 1146 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1147 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 1148 * @throws SystemException if a system exception occurred 1149 */ 1150 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_Last( 1151 long groupId, long userId, boolean active, 1152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1153 throws com.liferay.portal.kernel.exception.SystemException { 1154 return getPersistence() 1155 .fetchByG_U_A_Last(groupId, userId, active, orderByComparator); 1156 } 1157 1158 /** 1159 * 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 = ?. 1160 * 1161 * @param fileRankId the primary key of the current document library file rank 1162 * @param groupId the group ID 1163 * @param userId the user ID 1164 * @param active the active 1165 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1166 * @return the previous, current, and next document library file rank 1167 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 1168 * @throws SystemException if a system exception occurred 1169 */ 1170 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_A_PrevAndNext( 1171 long fileRankId, long groupId, long userId, boolean active, 1172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1173 throws com.liferay.portal.kernel.exception.SystemException, 1174 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 1175 return getPersistence() 1176 .findByG_U_A_PrevAndNext(fileRankId, groupId, userId, 1177 active, orderByComparator); 1178 } 1179 1180 /** 1181 * Removes all the document library file ranks where groupId = ? and userId = ? and active = ? from the database. 1182 * 1183 * @param groupId the group ID 1184 * @param userId the user ID 1185 * @param active the active 1186 * @throws SystemException if a system exception occurred 1187 */ 1188 public static void removeByG_U_A(long groupId, long userId, boolean active) 1189 throws com.liferay.portal.kernel.exception.SystemException { 1190 getPersistence().removeByG_U_A(groupId, userId, active); 1191 } 1192 1193 /** 1194 * Returns the number of document library file ranks where groupId = ? and userId = ? and active = ?. 1195 * 1196 * @param groupId the group ID 1197 * @param userId the user ID 1198 * @param active the active 1199 * @return the number of matching document library file ranks 1200 * @throws SystemException if a system exception occurred 1201 */ 1202 public static int countByG_U_A(long groupId, long userId, boolean active) 1203 throws com.liferay.portal.kernel.exception.SystemException { 1204 return getPersistence().countByG_U_A(groupId, userId, active); 1205 } 1206 1207 /** 1208 * 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. 1209 * 1210 * @param companyId the company ID 1211 * @param userId the user ID 1212 * @param fileEntryId the file entry ID 1213 * @return the matching document library file rank 1214 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 1215 * @throws SystemException if a system exception occurred 1216 */ 1217 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F( 1218 long companyId, long userId, long fileEntryId) 1219 throws com.liferay.portal.kernel.exception.SystemException, 1220 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 1221 return getPersistence().findByC_U_F(companyId, userId, fileEntryId); 1222 } 1223 1224 /** 1225 * 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. 1226 * 1227 * @param companyId the company ID 1228 * @param userId the user ID 1229 * @param fileEntryId the file entry ID 1230 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 1231 * @throws SystemException if a system exception occurred 1232 */ 1233 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 1234 long companyId, long userId, long fileEntryId) 1235 throws com.liferay.portal.kernel.exception.SystemException { 1236 return getPersistence().fetchByC_U_F(companyId, userId, fileEntryId); 1237 } 1238 1239 /** 1240 * 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. 1241 * 1242 * @param companyId the company ID 1243 * @param userId the user ID 1244 * @param fileEntryId the file entry ID 1245 * @param retrieveFromCache whether to use the finder cache 1246 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 1247 * @throws SystemException if a system exception occurred 1248 */ 1249 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 1250 long companyId, long userId, long fileEntryId, boolean retrieveFromCache) 1251 throws com.liferay.portal.kernel.exception.SystemException { 1252 return getPersistence() 1253 .fetchByC_U_F(companyId, userId, fileEntryId, 1254 retrieveFromCache); 1255 } 1256 1257 /** 1258 * Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database. 1259 * 1260 * @param companyId the company ID 1261 * @param userId the user ID 1262 * @param fileEntryId the file entry ID 1263 * @return the document library file rank that was removed 1264 * @throws SystemException if a system exception occurred 1265 */ 1266 public static com.liferay.portlet.documentlibrary.model.DLFileRank removeByC_U_F( 1267 long companyId, long userId, long fileEntryId) 1268 throws com.liferay.portal.kernel.exception.SystemException, 1269 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 1270 return getPersistence().removeByC_U_F(companyId, userId, fileEntryId); 1271 } 1272 1273 /** 1274 * Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?. 1275 * 1276 * @param companyId the company ID 1277 * @param userId the user ID 1278 * @param fileEntryId the file entry ID 1279 * @return the number of matching document library file ranks 1280 * @throws SystemException if a system exception occurred 1281 */ 1282 public static int countByC_U_F(long companyId, long userId, long fileEntryId) 1283 throws com.liferay.portal.kernel.exception.SystemException { 1284 return getPersistence().countByC_U_F(companyId, userId, fileEntryId); 1285 } 1286 1287 /** 1288 * Caches the document library file rank in the entity cache if it is enabled. 1289 * 1290 * @param dlFileRank the document library file rank 1291 */ 1292 public static void cacheResult( 1293 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) { 1294 getPersistence().cacheResult(dlFileRank); 1295 } 1296 1297 /** 1298 * Caches the document library file ranks in the entity cache if it is enabled. 1299 * 1300 * @param dlFileRanks the document library file ranks 1301 */ 1302 public static void cacheResult( 1303 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks) { 1304 getPersistence().cacheResult(dlFileRanks); 1305 } 1306 1307 /** 1308 * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database. 1309 * 1310 * @param fileRankId the primary key for the new document library file rank 1311 * @return the new document library file rank 1312 */ 1313 public static com.liferay.portlet.documentlibrary.model.DLFileRank create( 1314 long fileRankId) { 1315 return getPersistence().create(fileRankId); 1316 } 1317 1318 /** 1319 * Removes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners. 1320 * 1321 * @param fileRankId the primary key of the document library file rank 1322 * @return the document library file rank that was removed 1323 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 1324 * @throws SystemException if a system exception occurred 1325 */ 1326 public static com.liferay.portlet.documentlibrary.model.DLFileRank remove( 1327 long fileRankId) 1328 throws com.liferay.portal.kernel.exception.SystemException, 1329 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 1330 return getPersistence().remove(fileRankId); 1331 } 1332 1333 public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl( 1334 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) 1335 throws com.liferay.portal.kernel.exception.SystemException { 1336 return getPersistence().updateImpl(dlFileRank); 1337 } 1338 1339 /** 1340 * 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. 1341 * 1342 * @param fileRankId the primary key of the document library file rank 1343 * @return the document library file rank 1344 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 1345 * @throws SystemException if a system exception occurred 1346 */ 1347 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey( 1348 long fileRankId) 1349 throws com.liferay.portal.kernel.exception.SystemException, 1350 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 1351 return getPersistence().findByPrimaryKey(fileRankId); 1352 } 1353 1354 /** 1355 * Returns the document library file rank with the primary key or returns <code>null</code> if it could not be found. 1356 * 1357 * @param fileRankId the primary key of the document library file rank 1358 * @return the document library file rank, or <code>null</code> if a document library file rank with the primary key could not be found 1359 * @throws SystemException if a system exception occurred 1360 */ 1361 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey( 1362 long fileRankId) 1363 throws com.liferay.portal.kernel.exception.SystemException { 1364 return getPersistence().fetchByPrimaryKey(fileRankId); 1365 } 1366 1367 /** 1368 * Returns all the document library file ranks. 1369 * 1370 * @return the document library file ranks 1371 * @throws SystemException if a system exception occurred 1372 */ 1373 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll() 1374 throws com.liferay.portal.kernel.exception.SystemException { 1375 return getPersistence().findAll(); 1376 } 1377 1378 /** 1379 * Returns a range of all the document library file ranks. 1380 * 1381 * <p> 1382 * 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. 1383 * </p> 1384 * 1385 * @param start the lower bound of the range of document library file ranks 1386 * @param end the upper bound of the range of document library file ranks (not inclusive) 1387 * @return the range of document library file ranks 1388 * @throws SystemException if a system exception occurred 1389 */ 1390 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 1391 int start, int end) 1392 throws com.liferay.portal.kernel.exception.SystemException { 1393 return getPersistence().findAll(start, end); 1394 } 1395 1396 /** 1397 * Returns an ordered range of all the document library file ranks. 1398 * 1399 * <p> 1400 * 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. 1401 * </p> 1402 * 1403 * @param start the lower bound of the range of document library file ranks 1404 * @param end the upper bound of the range of document library file ranks (not inclusive) 1405 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1406 * @return the ordered range of document library file ranks 1407 * @throws SystemException if a system exception occurred 1408 */ 1409 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 1410 int start, int end, 1411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1412 throws com.liferay.portal.kernel.exception.SystemException { 1413 return getPersistence().findAll(start, end, orderByComparator); 1414 } 1415 1416 /** 1417 * Removes all the document library file ranks from the database. 1418 * 1419 * @throws SystemException if a system exception occurred 1420 */ 1421 public static void removeAll() 1422 throws com.liferay.portal.kernel.exception.SystemException { 1423 getPersistence().removeAll(); 1424 } 1425 1426 /** 1427 * Returns the number of document library file ranks. 1428 * 1429 * @return the number of document library file ranks 1430 * @throws SystemException if a system exception occurred 1431 */ 1432 public static int countAll() 1433 throws com.liferay.portal.kernel.exception.SystemException { 1434 return getPersistence().countAll(); 1435 } 1436 1437 public static DLFileRankPersistence getPersistence() { 1438 if (_persistence == null) { 1439 _persistence = (DLFileRankPersistence)PortalBeanLocatorUtil.locate(DLFileRankPersistence.class.getName()); 1440 1441 ReferenceRegistry.registerReference(DLFileRankUtil.class, 1442 "_persistence"); 1443 } 1444 1445 return _persistence; 1446 } 1447 1448 /** 1449 * @deprecated 1450 */ 1451 public void setPersistence(DLFileRankPersistence persistence) { 1452 } 1453 1454 private static DLFileRankPersistence _persistence; 1455 }