001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import com.liferay.portal.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.service.ServiceContext; 022 023 import com.liferay.portlet.documentlibrary.model.DLFileRank; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the d l file rank service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see DLFileRankPersistence 036 * @see DLFileRankPersistenceImpl 037 * @generated 038 */ 039 public class DLFileRankUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(DLFileRank dlFileRank) { 051 getPersistence().clearCache(dlFileRank); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<DLFileRank> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<DLFileRank> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<DLFileRank> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static DLFileRank remove(DLFileRank dlFileRank) 094 throws SystemException { 095 return getPersistence().remove(dlFileRank); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static DLFileRank update(DLFileRank dlFileRank, boolean merge) 102 throws SystemException { 103 return getPersistence().update(dlFileRank, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static DLFileRank update(DLFileRank dlFileRank, boolean merge, 110 ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(dlFileRank, merge, serviceContext); 112 } 113 114 /** 115 * Caches the d l file rank in the entity cache if it is enabled. 116 * 117 * @param dlFileRank the d l file rank to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank) { 121 getPersistence().cacheResult(dlFileRank); 122 } 123 124 /** 125 * Caches the d l file ranks in the entity cache if it is enabled. 126 * 127 * @param dlFileRanks the d l file ranks to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks) { 131 getPersistence().cacheResult(dlFileRanks); 132 } 133 134 /** 135 * Creates a new d l file rank with the primary key. 136 * 137 * @param fileRankId the primary key for the new d l file rank 138 * @return the new d l file rank 139 */ 140 public static com.liferay.portlet.documentlibrary.model.DLFileRank create( 141 long fileRankId) { 142 return getPersistence().create(fileRankId); 143 } 144 145 /** 146 * Removes the d l file rank with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param fileRankId the primary key of the d l file rank to remove 149 * @return the d l file rank that was removed 150 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.documentlibrary.model.DLFileRank remove( 154 long fileRankId) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 157 return getPersistence().remove(fileRankId); 158 } 159 160 public static com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl( 161 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank, 162 boolean merge) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().updateImpl(dlFileRank, merge); 165 } 166 167 /** 168 * Finds the d l file rank with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 169 * 170 * @param fileRankId the primary key of the d l file rank to find 171 * @return the d l file rank 172 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey( 176 long fileRankId) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 179 return getPersistence().findByPrimaryKey(fileRankId); 180 } 181 182 /** 183 * Finds the d l file rank with the primary key or returns <code>null</code> if it could not be found. 184 * 185 * @param fileRankId the primary key of the d l file rank to find 186 * @return the d l file rank, or <code>null</code> if a d l file rank with the primary key could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey( 190 long fileRankId) 191 throws com.liferay.portal.kernel.exception.SystemException { 192 return getPersistence().fetchByPrimaryKey(fileRankId); 193 } 194 195 /** 196 * Finds all the d l file ranks where userId = ?. 197 * 198 * @param userId the user id to search with 199 * @return the matching d l file ranks 200 * @throws SystemException if a system exception occurred 201 */ 202 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 203 long userId) throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUserId(userId); 205 } 206 207 /** 208 * Finds a range of all the d l file ranks where userId = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param userId the user id to search with 215 * @param start the lower bound of the range of d l file ranks to return 216 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 217 * @return the range of matching d l file ranks 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 221 long userId, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUserId(userId, start, end); 224 } 225 226 /** 227 * Finds an ordered range of all the d l file ranks where userId = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param userId the user id to search with 234 * @param start the lower bound of the range of d l file ranks to return 235 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 236 * @param orderByComparator the comparator to order the results by 237 * @return the ordered range of matching d l file ranks 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 241 long userId, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByUserId(userId, start, end, orderByComparator); 246 } 247 248 /** 249 * Finds the first d l file rank in the ordered set where userId = ?. 250 * 251 * <p> 252 * 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. 253 * </p> 254 * 255 * @param userId the user id to search with 256 * @param orderByComparator the comparator to order the set by 257 * @return the first matching d l file rank 258 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First( 262 long userId, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 266 return getPersistence().findByUserId_First(userId, orderByComparator); 267 } 268 269 /** 270 * Finds the last d l file rank in the ordered set where userId = ?. 271 * 272 * <p> 273 * 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. 274 * </p> 275 * 276 * @param userId the user id to search with 277 * @param orderByComparator the comparator to order the set by 278 * @return the last matching d l file rank 279 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last( 283 long userId, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.kernel.exception.SystemException, 286 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 287 return getPersistence().findByUserId_Last(userId, orderByComparator); 288 } 289 290 /** 291 * Finds the d l file ranks before and after the current d l file rank in the ordered set where userId = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param fileRankId the primary key of the current d l file rank 298 * @param userId the user id to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the previous, current, and next d l file rank 301 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext( 305 long fileRankId, long userId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 309 return getPersistence() 310 .findByUserId_PrevAndNext(fileRankId, userId, 311 orderByComparator); 312 } 313 314 /** 315 * Finds all the d l file ranks where groupId = ? and userId = ?. 316 * 317 * @param groupId the group id to search with 318 * @param userId the user id to search with 319 * @return the matching d l file ranks 320 * @throws SystemException if a system exception occurred 321 */ 322 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 323 long groupId, long userId) 324 throws com.liferay.portal.kernel.exception.SystemException { 325 return getPersistence().findByG_U(groupId, userId); 326 } 327 328 /** 329 * Finds a range of all the d l file ranks where groupId = ? and userId = ?. 330 * 331 * <p> 332 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 333 * </p> 334 * 335 * @param groupId the group id to search with 336 * @param userId the user id to search with 337 * @param start the lower bound of the range of d l file ranks to return 338 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 339 * @return the range of matching d l file ranks 340 * @throws SystemException if a system exception occurred 341 */ 342 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 343 long groupId, long userId, int start, int end) 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return getPersistence().findByG_U(groupId, userId, start, end); 346 } 347 348 /** 349 * Finds an ordered range of all the d l file ranks where groupId = ? and userId = ?. 350 * 351 * <p> 352 * 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. 353 * </p> 354 * 355 * @param groupId the group id to search with 356 * @param userId the user id to search with 357 * @param start the lower bound of the range of d l file ranks to return 358 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 359 * @param orderByComparator the comparator to order the results by 360 * @return the ordered range of matching d l file ranks 361 * @throws SystemException if a system exception occurred 362 */ 363 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 364 long groupId, long userId, int start, int end, 365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 366 throws com.liferay.portal.kernel.exception.SystemException { 367 return getPersistence() 368 .findByG_U(groupId, userId, start, end, orderByComparator); 369 } 370 371 /** 372 * Finds the first d l file rank in the ordered set where groupId = ? and userId = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param groupId the group id to search with 379 * @param userId the user id to search with 380 * @param orderByComparator the comparator to order the set by 381 * @return the first matching d l file rank 382 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 383 * @throws SystemException if a system exception occurred 384 */ 385 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First( 386 long groupId, long userId, 387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 388 throws com.liferay.portal.kernel.exception.SystemException, 389 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 390 return getPersistence() 391 .findByG_U_First(groupId, userId, orderByComparator); 392 } 393 394 /** 395 * Finds the last d l file rank in the ordered set where groupId = ? and userId = ?. 396 * 397 * <p> 398 * 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. 399 * </p> 400 * 401 * @param groupId the group id to search with 402 * @param userId the user id to search with 403 * @param orderByComparator the comparator to order the set by 404 * @return the last matching d l file rank 405 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 406 * @throws SystemException if a system exception occurred 407 */ 408 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last( 409 long groupId, long userId, 410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 411 throws com.liferay.portal.kernel.exception.SystemException, 412 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 413 return getPersistence() 414 .findByG_U_Last(groupId, userId, orderByComparator); 415 } 416 417 /** 418 * Finds the d l file ranks before and after the current d l file rank in the ordered set where groupId = ? and userId = ?. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param fileRankId the primary key of the current d l file rank 425 * @param groupId the group id to search with 426 * @param userId the user id to search with 427 * @param orderByComparator the comparator to order the set by 428 * @return the previous, current, and next d l file rank 429 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 430 * @throws SystemException if a system exception occurred 431 */ 432 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext( 433 long fileRankId, long groupId, long userId, 434 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 435 throws com.liferay.portal.kernel.exception.SystemException, 436 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 437 return getPersistence() 438 .findByG_U_PrevAndNext(fileRankId, groupId, userId, 439 orderByComparator); 440 } 441 442 /** 443 * Finds all the d l file ranks where folderId = ? and name = ?. 444 * 445 * @param folderId the folder id to search with 446 * @param name the name to search with 447 * @return the matching d l file ranks 448 * @throws SystemException if a system exception occurred 449 */ 450 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N( 451 long folderId, java.lang.String name) 452 throws com.liferay.portal.kernel.exception.SystemException { 453 return getPersistence().findByF_N(folderId, name); 454 } 455 456 /** 457 * Finds a range of all the d l file ranks where folderId = ? and name = ?. 458 * 459 * <p> 460 * 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. 461 * </p> 462 * 463 * @param folderId the folder id to search with 464 * @param name the name to search with 465 * @param start the lower bound of the range of d l file ranks to return 466 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 467 * @return the range of matching d l file ranks 468 * @throws SystemException if a system exception occurred 469 */ 470 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N( 471 long folderId, java.lang.String name, int start, int end) 472 throws com.liferay.portal.kernel.exception.SystemException { 473 return getPersistence().findByF_N(folderId, name, start, end); 474 } 475 476 /** 477 * Finds an ordered range of all the d l file ranks where folderId = ? and name = ?. 478 * 479 * <p> 480 * 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. 481 * </p> 482 * 483 * @param folderId the folder id to search with 484 * @param name the name to search with 485 * @param start the lower bound of the range of d l file ranks to return 486 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 487 * @param orderByComparator the comparator to order the results by 488 * @return the ordered range of matching d l file ranks 489 * @throws SystemException if a system exception occurred 490 */ 491 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByF_N( 492 long folderId, java.lang.String name, int start, int end, 493 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 494 throws com.liferay.portal.kernel.exception.SystemException { 495 return getPersistence() 496 .findByF_N(folderId, name, start, end, orderByComparator); 497 } 498 499 /** 500 * Finds the first d l file rank in the ordered set where folderId = ? and name = ?. 501 * 502 * <p> 503 * 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. 504 * </p> 505 * 506 * @param folderId the folder id to search with 507 * @param name the name to search with 508 * @param orderByComparator the comparator to order the set by 509 * @return the first matching d l file rank 510 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 511 * @throws SystemException if a system exception occurred 512 */ 513 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_First( 514 long folderId, java.lang.String name, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.kernel.exception.SystemException, 517 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 518 return getPersistence() 519 .findByF_N_First(folderId, name, orderByComparator); 520 } 521 522 /** 523 * Finds the last d l file rank in the ordered set where folderId = ? and name = ?. 524 * 525 * <p> 526 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 527 * </p> 528 * 529 * @param folderId the folder id to search with 530 * @param name the name to search with 531 * @param orderByComparator the comparator to order the set by 532 * @return the last matching d l file rank 533 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 534 * @throws SystemException if a system exception occurred 535 */ 536 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByF_N_Last( 537 long folderId, java.lang.String name, 538 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 539 throws com.liferay.portal.kernel.exception.SystemException, 540 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 541 return getPersistence().findByF_N_Last(folderId, name, orderByComparator); 542 } 543 544 /** 545 * Finds the d l file ranks before and after the current d l file rank in the ordered set where folderId = ? and name = ?. 546 * 547 * <p> 548 * 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. 549 * </p> 550 * 551 * @param fileRankId the primary key of the current d l file rank 552 * @param folderId the folder id to search with 553 * @param name the name to search with 554 * @param orderByComparator the comparator to order the set by 555 * @return the previous, current, and next d l file rank 556 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a d l file rank with the primary key could not be found 557 * @throws SystemException if a system exception occurred 558 */ 559 public static com.liferay.portlet.documentlibrary.model.DLFileRank[] findByF_N_PrevAndNext( 560 long fileRankId, long folderId, java.lang.String name, 561 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 562 throws com.liferay.portal.kernel.exception.SystemException, 563 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 564 return getPersistence() 565 .findByF_N_PrevAndNext(fileRankId, folderId, name, 566 orderByComparator); 567 } 568 569 /** 570 * Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 571 * 572 * @param companyId the company id to search with 573 * @param userId the user id to search with 574 * @param folderId the folder id to search with 575 * @param name the name to search with 576 * @return the matching d l file rank 577 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching d l file rank could not be found 578 * @throws SystemException if a system exception occurred 579 */ 580 public static com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F_N( 581 long companyId, long userId, long folderId, java.lang.String name) 582 throws com.liferay.portal.kernel.exception.SystemException, 583 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 584 return getPersistence().findByC_U_F_N(companyId, userId, folderId, name); 585 } 586 587 /** 588 * Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 589 * 590 * @param companyId the company id to search with 591 * @param userId the user id to search with 592 * @param folderId the folder id to search with 593 * @param name the name to search with 594 * @return the matching d l file rank, or <code>null</code> if a matching d l file rank could not be found 595 * @throws SystemException if a system exception occurred 596 */ 597 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N( 598 long companyId, long userId, long folderId, java.lang.String name) 599 throws com.liferay.portal.kernel.exception.SystemException { 600 return getPersistence().fetchByC_U_F_N(companyId, userId, folderId, name); 601 } 602 603 /** 604 * Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 605 * 606 * @param companyId the company id to search with 607 * @param userId the user id to search with 608 * @param folderId the folder id to search with 609 * @param name the name to search with 610 * @return the matching d l file rank, or <code>null</code> if a matching d l file rank could not be found 611 * @throws SystemException if a system exception occurred 612 */ 613 public static com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F_N( 614 long companyId, long userId, long folderId, java.lang.String name, 615 boolean retrieveFromCache) 616 throws com.liferay.portal.kernel.exception.SystemException { 617 return getPersistence() 618 .fetchByC_U_F_N(companyId, userId, folderId, name, 619 retrieveFromCache); 620 } 621 622 /** 623 * Finds all the d l file ranks. 624 * 625 * @return the d l file ranks 626 * @throws SystemException if a system exception occurred 627 */ 628 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll() 629 throws com.liferay.portal.kernel.exception.SystemException { 630 return getPersistence().findAll(); 631 } 632 633 /** 634 * Finds a range of all the d l file ranks. 635 * 636 * <p> 637 * 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. 638 * </p> 639 * 640 * @param start the lower bound of the range of d l file ranks to return 641 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 642 * @return the range of d l file ranks 643 * @throws SystemException if a system exception occurred 644 */ 645 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 646 int start, int end) 647 throws com.liferay.portal.kernel.exception.SystemException { 648 return getPersistence().findAll(start, end); 649 } 650 651 /** 652 * Finds an ordered range of all the d l file ranks. 653 * 654 * <p> 655 * 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. 656 * </p> 657 * 658 * @param start the lower bound of the range of d l file ranks to return 659 * @param end the upper bound of the range of d l file ranks to return (not inclusive) 660 * @param orderByComparator the comparator to order the results by 661 * @return the ordered range of d l file ranks 662 * @throws SystemException if a system exception occurred 663 */ 664 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 665 int start, int end, 666 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 667 throws com.liferay.portal.kernel.exception.SystemException { 668 return getPersistence().findAll(start, end, orderByComparator); 669 } 670 671 /** 672 * Removes all the d l file ranks where userId = ? from the database. 673 * 674 * @param userId the user id to search with 675 * @throws SystemException if a system exception occurred 676 */ 677 public static void removeByUserId(long userId) 678 throws com.liferay.portal.kernel.exception.SystemException { 679 getPersistence().removeByUserId(userId); 680 } 681 682 /** 683 * Removes all the d l file ranks where groupId = ? and userId = ? from the database. 684 * 685 * @param groupId the group id to search with 686 * @param userId the user id to search with 687 * @throws SystemException if a system exception occurred 688 */ 689 public static void removeByG_U(long groupId, long userId) 690 throws com.liferay.portal.kernel.exception.SystemException { 691 getPersistence().removeByG_U(groupId, userId); 692 } 693 694 /** 695 * Removes all the d l file ranks where folderId = ? and name = ? from the database. 696 * 697 * @param folderId the folder id to search with 698 * @param name the name to search with 699 * @throws SystemException if a system exception occurred 700 */ 701 public static void removeByF_N(long folderId, java.lang.String name) 702 throws com.liferay.portal.kernel.exception.SystemException { 703 getPersistence().removeByF_N(folderId, name); 704 } 705 706 /** 707 * Removes the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? from the database. 708 * 709 * @param companyId the company id to search with 710 * @param userId the user id to search with 711 * @param folderId the folder id to search with 712 * @param name the name to search with 713 * @throws SystemException if a system exception occurred 714 */ 715 public static void removeByC_U_F_N(long companyId, long userId, 716 long folderId, java.lang.String name) 717 throws com.liferay.portal.kernel.exception.SystemException, 718 com.liferay.portlet.documentlibrary.NoSuchFileRankException { 719 getPersistence().removeByC_U_F_N(companyId, userId, folderId, name); 720 } 721 722 /** 723 * Removes all the d l file ranks from the database. 724 * 725 * @throws SystemException if a system exception occurred 726 */ 727 public static void removeAll() 728 throws com.liferay.portal.kernel.exception.SystemException { 729 getPersistence().removeAll(); 730 } 731 732 /** 733 * Counts all the d l file ranks where userId = ?. 734 * 735 * @param userId the user id to search with 736 * @return the number of matching d l file ranks 737 * @throws SystemException if a system exception occurred 738 */ 739 public static int countByUserId(long userId) 740 throws com.liferay.portal.kernel.exception.SystemException { 741 return getPersistence().countByUserId(userId); 742 } 743 744 /** 745 * Counts all the d l file ranks where groupId = ? and userId = ?. 746 * 747 * @param groupId the group id to search with 748 * @param userId the user id to search with 749 * @return the number of matching d l file ranks 750 * @throws SystemException if a system exception occurred 751 */ 752 public static int countByG_U(long groupId, long userId) 753 throws com.liferay.portal.kernel.exception.SystemException { 754 return getPersistence().countByG_U(groupId, userId); 755 } 756 757 /** 758 * Counts all the d l file ranks where folderId = ? and name = ?. 759 * 760 * @param folderId the folder id to search with 761 * @param name the name to search with 762 * @return the number of matching d l file ranks 763 * @throws SystemException if a system exception occurred 764 */ 765 public static int countByF_N(long folderId, java.lang.String name) 766 throws com.liferay.portal.kernel.exception.SystemException { 767 return getPersistence().countByF_N(folderId, name); 768 } 769 770 /** 771 * Counts all the d l file ranks where companyId = ? and userId = ? and folderId = ? and name = ?. 772 * 773 * @param companyId the company id to search with 774 * @param userId the user id to search with 775 * @param folderId the folder id to search with 776 * @param name the name to search with 777 * @return the number of matching d l file ranks 778 * @throws SystemException if a system exception occurred 779 */ 780 public static int countByC_U_F_N(long companyId, long userId, 781 long folderId, java.lang.String name) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 return getPersistence().countByC_U_F_N(companyId, userId, folderId, name); 784 } 785 786 /** 787 * Counts all the d l file ranks. 788 * 789 * @return the number of d l file ranks 790 * @throws SystemException if a system exception occurred 791 */ 792 public static int countAll() 793 throws com.liferay.portal.kernel.exception.SystemException { 794 return getPersistence().countAll(); 795 } 796 797 public static DLFileRankPersistence getPersistence() { 798 if (_persistence == null) { 799 _persistence = (DLFileRankPersistence)PortalBeanLocatorUtil.locate(DLFileRankPersistence.class.getName()); 800 } 801 802 return _persistence; 803 } 804 805 public void setPersistence(DLFileRankPersistence persistence) { 806 _persistence = persistence; 807 } 808 809 private static DLFileRankPersistence _persistence; 810 }