001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.exception.SystemException; 022 import com.liferay.portal.kernel.util.OrderByComparator; 023 import com.liferay.portal.kernel.util.ReferenceRegistry; 024 import com.liferay.portal.service.ServiceContext; 025 026 import com.liferay.portlet.documentlibrary.model.DLFileEntry; 027 028 import java.util.List; 029 030 /** 031 * The persistence utility for the document library file entry service. This utility wraps {@link DLFileEntryPersistenceImpl} 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. 032 * 033 * <p> 034 * Caching information and settings can be found in <code>portal.properties</code> 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see DLFileEntryPersistence 039 * @see DLFileEntryPersistenceImpl 040 * @generated 041 */ 042 @ProviderType 043 public class DLFileEntryUtil { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 048 */ 049 050 /** 051 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 052 */ 053 public static void clearCache() { 054 getPersistence().clearCache(); 055 } 056 057 /** 058 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 059 */ 060 public static void clearCache(DLFileEntry dlFileEntry) { 061 getPersistence().clearCache(dlFileEntry); 062 } 063 064 /** 065 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 066 */ 067 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 068 throws SystemException { 069 return getPersistence().countWithDynamicQuery(dynamicQuery); 070 } 071 072 /** 073 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 074 */ 075 public static List<DLFileEntry> findWithDynamicQuery( 076 DynamicQuery dynamicQuery) throws SystemException { 077 return getPersistence().findWithDynamicQuery(dynamicQuery); 078 } 079 080 /** 081 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 082 */ 083 public static List<DLFileEntry> findWithDynamicQuery( 084 DynamicQuery dynamicQuery, int start, int end) 085 throws SystemException { 086 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 087 } 088 089 /** 090 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 091 */ 092 public static List<DLFileEntry> findWithDynamicQuery( 093 DynamicQuery dynamicQuery, int start, int end, 094 OrderByComparator orderByComparator) throws SystemException { 095 return getPersistence() 096 .findWithDynamicQuery(dynamicQuery, start, end, 097 orderByComparator); 098 } 099 100 /** 101 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 102 */ 103 public static DLFileEntry update(DLFileEntry dlFileEntry) 104 throws SystemException { 105 return getPersistence().update(dlFileEntry); 106 } 107 108 /** 109 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 110 */ 111 public static DLFileEntry update(DLFileEntry dlFileEntry, 112 ServiceContext serviceContext) throws SystemException { 113 return getPersistence().update(dlFileEntry, serviceContext); 114 } 115 116 /** 117 * Returns all the document library file entries where uuid = ?. 118 * 119 * @param uuid the uuid 120 * @return the matching document library file entries 121 * @throws SystemException if a system exception occurred 122 */ 123 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid( 124 java.lang.String uuid) 125 throws com.liferay.portal.kernel.exception.SystemException { 126 return getPersistence().findByUuid(uuid); 127 } 128 129 /** 130 * Returns a range of all the document library file entries where uuid = ?. 131 * 132 * <p> 133 * 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.DLFileEntryModelImpl}. 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. 134 * </p> 135 * 136 * @param uuid the uuid 137 * @param start the lower bound of the range of document library file entries 138 * @param end the upper bound of the range of document library file entries (not inclusive) 139 * @return the range of matching document library file entries 140 * @throws SystemException if a system exception occurred 141 */ 142 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid( 143 java.lang.String uuid, int start, int end) 144 throws com.liferay.portal.kernel.exception.SystemException { 145 return getPersistence().findByUuid(uuid, start, end); 146 } 147 148 /** 149 * Returns an ordered range of all the document library file entries where uuid = ?. 150 * 151 * <p> 152 * 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.DLFileEntryModelImpl}. 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. 153 * </p> 154 * 155 * @param uuid the uuid 156 * @param start the lower bound of the range of document library file entries 157 * @param end the upper bound of the range of document library file entries (not inclusive) 158 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 159 * @return the ordered range of matching document library file entries 160 * @throws SystemException if a system exception occurred 161 */ 162 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid( 163 java.lang.String uuid, int start, int end, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 167 } 168 169 /** 170 * Returns the first document library file entry in the ordered set where uuid = ?. 171 * 172 * @param uuid the uuid 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @return the first matching document library file entry 175 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First( 179 java.lang.String uuid, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.kernel.exception.SystemException, 182 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 183 return getPersistence().findByUuid_First(uuid, orderByComparator); 184 } 185 186 /** 187 * Returns the first document library file entry in the ordered set where uuid = ?. 188 * 189 * @param uuid the uuid 190 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 191 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 192 * @throws SystemException if a system exception occurred 193 */ 194 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUuid_First( 195 java.lang.String uuid, 196 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 197 throws com.liferay.portal.kernel.exception.SystemException { 198 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 199 } 200 201 /** 202 * Returns the last document library file entry in the ordered set where uuid = ?. 203 * 204 * @param uuid the uuid 205 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 206 * @return the last matching document library file entry 207 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 208 * @throws SystemException if a system exception occurred 209 */ 210 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last( 211 java.lang.String uuid, 212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 213 throws com.liferay.portal.kernel.exception.SystemException, 214 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 215 return getPersistence().findByUuid_Last(uuid, orderByComparator); 216 } 217 218 /** 219 * Returns the last document library file entry in the ordered set where uuid = ?. 220 * 221 * @param uuid the uuid 222 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 223 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 224 * @throws SystemException if a system exception occurred 225 */ 226 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUuid_Last( 227 java.lang.String uuid, 228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 229 throws com.liferay.portal.kernel.exception.SystemException { 230 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 231 } 232 233 /** 234 * Returns the document library file entries before and after the current document library file entry in the ordered set where uuid = ?. 235 * 236 * @param fileEntryId the primary key of the current document library file entry 237 * @param uuid the uuid 238 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 239 * @return the previous, current, and next document library file entry 240 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 241 * @throws SystemException if a system exception occurred 242 */ 243 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext( 244 long fileEntryId, java.lang.String uuid, 245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 246 throws com.liferay.portal.kernel.exception.SystemException, 247 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 248 return getPersistence() 249 .findByUuid_PrevAndNext(fileEntryId, uuid, orderByComparator); 250 } 251 252 /** 253 * Removes all the document library file entries where uuid = ? from the database. 254 * 255 * @param uuid the uuid 256 * @throws SystemException if a system exception occurred 257 */ 258 public static void removeByUuid(java.lang.String uuid) 259 throws com.liferay.portal.kernel.exception.SystemException { 260 getPersistence().removeByUuid(uuid); 261 } 262 263 /** 264 * Returns the number of document library file entries where uuid = ?. 265 * 266 * @param uuid the uuid 267 * @return the number of matching document library file entries 268 * @throws SystemException if a system exception occurred 269 */ 270 public static int countByUuid(java.lang.String uuid) 271 throws com.liferay.portal.kernel.exception.SystemException { 272 return getPersistence().countByUuid(uuid); 273 } 274 275 /** 276 * Returns the document library file entry where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryException} if it could not be found. 277 * 278 * @param uuid the uuid 279 * @param groupId the group ID 280 * @return the matching document library file entry 281 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G( 285 java.lang.String uuid, long groupId) 286 throws com.liferay.portal.kernel.exception.SystemException, 287 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 288 return getPersistence().findByUUID_G(uuid, groupId); 289 } 290 291 /** 292 * Returns the document library file entry where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 293 * 294 * @param uuid the uuid 295 * @param groupId the group ID 296 * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 297 * @throws SystemException if a system exception occurred 298 */ 299 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G( 300 java.lang.String uuid, long groupId) 301 throws com.liferay.portal.kernel.exception.SystemException { 302 return getPersistence().fetchByUUID_G(uuid, groupId); 303 } 304 305 /** 306 * Returns the document library file entry where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 307 * 308 * @param uuid the uuid 309 * @param groupId the group ID 310 * @param retrieveFromCache whether to use the finder cache 311 * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G( 315 java.lang.String uuid, long groupId, boolean retrieveFromCache) 316 throws com.liferay.portal.kernel.exception.SystemException { 317 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 318 } 319 320 /** 321 * Removes the document library file entry where uuid = ? and groupId = ? from the database. 322 * 323 * @param uuid the uuid 324 * @param groupId the group ID 325 * @return the document library file entry that was removed 326 * @throws SystemException if a system exception occurred 327 */ 328 public static com.liferay.portlet.documentlibrary.model.DLFileEntry removeByUUID_G( 329 java.lang.String uuid, long groupId) 330 throws com.liferay.portal.kernel.exception.SystemException, 331 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 332 return getPersistence().removeByUUID_G(uuid, groupId); 333 } 334 335 /** 336 * Returns the number of document library file entries where uuid = ? and groupId = ?. 337 * 338 * @param uuid the uuid 339 * @param groupId the group ID 340 * @return the number of matching document library file entries 341 * @throws SystemException if a system exception occurred 342 */ 343 public static int countByUUID_G(java.lang.String uuid, long groupId) 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return getPersistence().countByUUID_G(uuid, groupId); 346 } 347 348 /** 349 * Returns all the document library file entries where uuid = ? and companyId = ?. 350 * 351 * @param uuid the uuid 352 * @param companyId the company ID 353 * @return the matching document library file entries 354 * @throws SystemException if a system exception occurred 355 */ 356 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid_C( 357 java.lang.String uuid, long companyId) 358 throws com.liferay.portal.kernel.exception.SystemException { 359 return getPersistence().findByUuid_C(uuid, companyId); 360 } 361 362 /** 363 * Returns a range of all the document library file entries where uuid = ? and companyId = ?. 364 * 365 * <p> 366 * 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.DLFileEntryModelImpl}. 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. 367 * </p> 368 * 369 * @param uuid the uuid 370 * @param companyId the company ID 371 * @param start the lower bound of the range of document library file entries 372 * @param end the upper bound of the range of document library file entries (not inclusive) 373 * @return the range of matching document library file entries 374 * @throws SystemException if a system exception occurred 375 */ 376 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid_C( 377 java.lang.String uuid, long companyId, int start, int end) 378 throws com.liferay.portal.kernel.exception.SystemException { 379 return getPersistence().findByUuid_C(uuid, companyId, start, end); 380 } 381 382 /** 383 * Returns an ordered range of all the document library file entries where uuid = ? and companyId = ?. 384 * 385 * <p> 386 * 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.DLFileEntryModelImpl}. 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. 387 * </p> 388 * 389 * @param uuid the uuid 390 * @param companyId the company ID 391 * @param start the lower bound of the range of document library file entries 392 * @param end the upper bound of the range of document library file entries (not inclusive) 393 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 394 * @return the ordered range of matching document library file entries 395 * @throws SystemException if a system exception occurred 396 */ 397 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid_C( 398 java.lang.String uuid, long companyId, int start, int end, 399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 400 throws com.liferay.portal.kernel.exception.SystemException { 401 return getPersistence() 402 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 403 } 404 405 /** 406 * Returns the first document library file entry in the ordered set where uuid = ? and companyId = ?. 407 * 408 * @param uuid the uuid 409 * @param companyId the company ID 410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 411 * @return the first matching document library file entry 412 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 413 * @throws SystemException if a system exception occurred 414 */ 415 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_C_First( 416 java.lang.String uuid, long companyId, 417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 418 throws com.liferay.portal.kernel.exception.SystemException, 419 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 420 return getPersistence() 421 .findByUuid_C_First(uuid, companyId, orderByComparator); 422 } 423 424 /** 425 * Returns the first document library file entry in the ordered set where uuid = ? and companyId = ?. 426 * 427 * @param uuid the uuid 428 * @param companyId the company ID 429 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 430 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUuid_C_First( 434 java.lang.String uuid, long companyId, 435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 436 throws com.liferay.portal.kernel.exception.SystemException { 437 return getPersistence() 438 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 439 } 440 441 /** 442 * Returns the last document library file entry in the ordered set where uuid = ? and companyId = ?. 443 * 444 * @param uuid the uuid 445 * @param companyId the company ID 446 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 447 * @return the last matching document library file entry 448 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 449 * @throws SystemException if a system exception occurred 450 */ 451 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_C_Last( 452 java.lang.String uuid, long companyId, 453 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 454 throws com.liferay.portal.kernel.exception.SystemException, 455 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 456 return getPersistence() 457 .findByUuid_C_Last(uuid, companyId, orderByComparator); 458 } 459 460 /** 461 * Returns the last document library file entry in the ordered set where uuid = ? and companyId = ?. 462 * 463 * @param uuid the uuid 464 * @param companyId the company ID 465 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 466 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 467 * @throws SystemException if a system exception occurred 468 */ 469 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUuid_C_Last( 470 java.lang.String uuid, long companyId, 471 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 472 throws com.liferay.portal.kernel.exception.SystemException { 473 return getPersistence() 474 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 475 } 476 477 /** 478 * Returns the document library file entries before and after the current document library file entry in the ordered set where uuid = ? and companyId = ?. 479 * 480 * @param fileEntryId the primary key of the current document library file entry 481 * @param uuid the uuid 482 * @param companyId the company ID 483 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 484 * @return the previous, current, and next document library file entry 485 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 486 * @throws SystemException if a system exception occurred 487 */ 488 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_C_PrevAndNext( 489 long fileEntryId, java.lang.String uuid, long companyId, 490 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 491 throws com.liferay.portal.kernel.exception.SystemException, 492 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 493 return getPersistence() 494 .findByUuid_C_PrevAndNext(fileEntryId, uuid, companyId, 495 orderByComparator); 496 } 497 498 /** 499 * Removes all the document library file entries where uuid = ? and companyId = ? from the database. 500 * 501 * @param uuid the uuid 502 * @param companyId the company ID 503 * @throws SystemException if a system exception occurred 504 */ 505 public static void removeByUuid_C(java.lang.String uuid, long companyId) 506 throws com.liferay.portal.kernel.exception.SystemException { 507 getPersistence().removeByUuid_C(uuid, companyId); 508 } 509 510 /** 511 * Returns the number of document library file entries where uuid = ? and companyId = ?. 512 * 513 * @param uuid the uuid 514 * @param companyId the company ID 515 * @return the number of matching document library file entries 516 * @throws SystemException if a system exception occurred 517 */ 518 public static int countByUuid_C(java.lang.String uuid, long companyId) 519 throws com.liferay.portal.kernel.exception.SystemException { 520 return getPersistence().countByUuid_C(uuid, companyId); 521 } 522 523 /** 524 * Returns all the document library file entries where groupId = ?. 525 * 526 * @param groupId the group ID 527 * @return the matching document library file entries 528 * @throws SystemException if a system exception occurred 529 */ 530 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId( 531 long groupId) 532 throws com.liferay.portal.kernel.exception.SystemException { 533 return getPersistence().findByGroupId(groupId); 534 } 535 536 /** 537 * Returns a range of all the document library file entries where groupId = ?. 538 * 539 * <p> 540 * 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.DLFileEntryModelImpl}. 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. 541 * </p> 542 * 543 * @param groupId the group ID 544 * @param start the lower bound of the range of document library file entries 545 * @param end the upper bound of the range of document library file entries (not inclusive) 546 * @return the range of matching document library file entries 547 * @throws SystemException if a system exception occurred 548 */ 549 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId( 550 long groupId, int start, int end) 551 throws com.liferay.portal.kernel.exception.SystemException { 552 return getPersistence().findByGroupId(groupId, start, end); 553 } 554 555 /** 556 * Returns an ordered range of all the document library file entries where groupId = ?. 557 * 558 * <p> 559 * 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.DLFileEntryModelImpl}. 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. 560 * </p> 561 * 562 * @param groupId the group ID 563 * @param start the lower bound of the range of document library file entries 564 * @param end the upper bound of the range of document library file entries (not inclusive) 565 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 566 * @return the ordered range of matching document library file entries 567 * @throws SystemException if a system exception occurred 568 */ 569 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId( 570 long groupId, int start, int end, 571 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 572 throws com.liferay.portal.kernel.exception.SystemException { 573 return getPersistence() 574 .findByGroupId(groupId, start, end, orderByComparator); 575 } 576 577 /** 578 * Returns the first document library file entry in the ordered set where groupId = ?. 579 * 580 * @param groupId the group ID 581 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 582 * @return the first matching document library file entry 583 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 584 * @throws SystemException if a system exception occurred 585 */ 586 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_First( 587 long groupId, 588 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 589 throws com.liferay.portal.kernel.exception.SystemException, 590 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 591 return getPersistence().findByGroupId_First(groupId, orderByComparator); 592 } 593 594 /** 595 * Returns the first document library file entry in the ordered set where groupId = ?. 596 * 597 * @param groupId the group ID 598 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 599 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 600 * @throws SystemException if a system exception occurred 601 */ 602 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByGroupId_First( 603 long groupId, 604 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 605 throws com.liferay.portal.kernel.exception.SystemException { 606 return getPersistence().fetchByGroupId_First(groupId, orderByComparator); 607 } 608 609 /** 610 * Returns the last document library file entry in the ordered set where groupId = ?. 611 * 612 * @param groupId the group ID 613 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 614 * @return the last matching document library file entry 615 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 616 * @throws SystemException if a system exception occurred 617 */ 618 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_Last( 619 long groupId, 620 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 621 throws com.liferay.portal.kernel.exception.SystemException, 622 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 623 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 624 } 625 626 /** 627 * Returns the last document library file entry in the ordered set where groupId = ?. 628 * 629 * @param groupId the group ID 630 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 631 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 632 * @throws SystemException if a system exception occurred 633 */ 634 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByGroupId_Last( 635 long groupId, 636 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 637 throws com.liferay.portal.kernel.exception.SystemException { 638 return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); 639 } 640 641 /** 642 * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = ?. 643 * 644 * @param fileEntryId the primary key of the current document library file entry 645 * @param groupId the group ID 646 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 647 * @return the previous, current, and next document library file entry 648 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 649 * @throws SystemException if a system exception occurred 650 */ 651 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByGroupId_PrevAndNext( 652 long fileEntryId, long groupId, 653 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 654 throws com.liferay.portal.kernel.exception.SystemException, 655 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 656 return getPersistence() 657 .findByGroupId_PrevAndNext(fileEntryId, groupId, 658 orderByComparator); 659 } 660 661 /** 662 * Returns all the document library file entries that the user has permission to view where groupId = ?. 663 * 664 * @param groupId the group ID 665 * @return the matching document library file entries that the user has permission to view 666 * @throws SystemException if a system exception occurred 667 */ 668 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByGroupId( 669 long groupId) 670 throws com.liferay.portal.kernel.exception.SystemException { 671 return getPersistence().filterFindByGroupId(groupId); 672 } 673 674 /** 675 * Returns a range of all the document library file entries that the user has permission to view where groupId = ?. 676 * 677 * <p> 678 * 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.DLFileEntryModelImpl}. 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. 679 * </p> 680 * 681 * @param groupId the group ID 682 * @param start the lower bound of the range of document library file entries 683 * @param end the upper bound of the range of document library file entries (not inclusive) 684 * @return the range of matching document library file entries that the user has permission to view 685 * @throws SystemException if a system exception occurred 686 */ 687 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByGroupId( 688 long groupId, int start, int end) 689 throws com.liferay.portal.kernel.exception.SystemException { 690 return getPersistence().filterFindByGroupId(groupId, start, end); 691 } 692 693 /** 694 * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = ?. 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.DLFileEntryModelImpl}. 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 groupId the group ID 701 * @param start the lower bound of the range of document library file entries 702 * @param end the upper bound of the range of document library file entries (not inclusive) 703 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 704 * @return the ordered range of matching document library file entries that the user has permission to view 705 * @throws SystemException if a system exception occurred 706 */ 707 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByGroupId( 708 long groupId, int start, int end, 709 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 710 throws com.liferay.portal.kernel.exception.SystemException { 711 return getPersistence() 712 .filterFindByGroupId(groupId, start, end, orderByComparator); 713 } 714 715 /** 716 * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = ?. 717 * 718 * @param fileEntryId the primary key of the current document library file entry 719 * @param groupId the group ID 720 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 721 * @return the previous, current, and next document library file entry 722 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 723 * @throws SystemException if a system exception occurred 724 */ 725 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByGroupId_PrevAndNext( 726 long fileEntryId, long groupId, 727 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 728 throws com.liferay.portal.kernel.exception.SystemException, 729 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 730 return getPersistence() 731 .filterFindByGroupId_PrevAndNext(fileEntryId, groupId, 732 orderByComparator); 733 } 734 735 /** 736 * Removes all the document library file entries where groupId = ? from the database. 737 * 738 * @param groupId the group ID 739 * @throws SystemException if a system exception occurred 740 */ 741 public static void removeByGroupId(long groupId) 742 throws com.liferay.portal.kernel.exception.SystemException { 743 getPersistence().removeByGroupId(groupId); 744 } 745 746 /** 747 * Returns the number of document library file entries where groupId = ?. 748 * 749 * @param groupId the group ID 750 * @return the number of matching document library file entries 751 * @throws SystemException if a system exception occurred 752 */ 753 public static int countByGroupId(long groupId) 754 throws com.liferay.portal.kernel.exception.SystemException { 755 return getPersistence().countByGroupId(groupId); 756 } 757 758 /** 759 * Returns the number of document library file entries that the user has permission to view where groupId = ?. 760 * 761 * @param groupId the group ID 762 * @return the number of matching document library file entries that the user has permission to view 763 * @throws SystemException if a system exception occurred 764 */ 765 public static int filterCountByGroupId(long groupId) 766 throws com.liferay.portal.kernel.exception.SystemException { 767 return getPersistence().filterCountByGroupId(groupId); 768 } 769 770 /** 771 * Returns all the document library file entries where companyId = ?. 772 * 773 * @param companyId the company ID 774 * @return the matching document library file entries 775 * @throws SystemException if a system exception occurred 776 */ 777 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId( 778 long companyId) 779 throws com.liferay.portal.kernel.exception.SystemException { 780 return getPersistence().findByCompanyId(companyId); 781 } 782 783 /** 784 * Returns a range of all the document library file entries where companyId = ?. 785 * 786 * <p> 787 * 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.DLFileEntryModelImpl}. 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. 788 * </p> 789 * 790 * @param companyId the company ID 791 * @param start the lower bound of the range of document library file entries 792 * @param end the upper bound of the range of document library file entries (not inclusive) 793 * @return the range of matching document library file entries 794 * @throws SystemException if a system exception occurred 795 */ 796 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId( 797 long companyId, int start, int end) 798 throws com.liferay.portal.kernel.exception.SystemException { 799 return getPersistence().findByCompanyId(companyId, start, end); 800 } 801 802 /** 803 * Returns an ordered range of all the document library file entries where companyId = ?. 804 * 805 * <p> 806 * 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.DLFileEntryModelImpl}. 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. 807 * </p> 808 * 809 * @param companyId the company ID 810 * @param start the lower bound of the range of document library file entries 811 * @param end the upper bound of the range of document library file entries (not inclusive) 812 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 813 * @return the ordered range of matching document library file entries 814 * @throws SystemException if a system exception occurred 815 */ 816 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId( 817 long companyId, int start, int end, 818 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 819 throws com.liferay.portal.kernel.exception.SystemException { 820 return getPersistence() 821 .findByCompanyId(companyId, start, end, orderByComparator); 822 } 823 824 /** 825 * Returns the first document library file entry in the ordered set where companyId = ?. 826 * 827 * @param companyId the company ID 828 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 829 * @return the first matching document library file entry 830 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 831 * @throws SystemException if a system exception occurred 832 */ 833 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First( 834 long companyId, 835 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 836 throws com.liferay.portal.kernel.exception.SystemException, 837 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 838 return getPersistence() 839 .findByCompanyId_First(companyId, orderByComparator); 840 } 841 842 /** 843 * Returns the first document library file entry in the ordered set where companyId = ?. 844 * 845 * @param companyId the company ID 846 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 847 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 848 * @throws SystemException if a system exception occurred 849 */ 850 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByCompanyId_First( 851 long companyId, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException { 854 return getPersistence() 855 .fetchByCompanyId_First(companyId, orderByComparator); 856 } 857 858 /** 859 * Returns the last document library file entry in the ordered set where companyId = ?. 860 * 861 * @param companyId the company ID 862 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 863 * @return the last matching document library file entry 864 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 865 * @throws SystemException if a system exception occurred 866 */ 867 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last( 868 long companyId, 869 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 870 throws com.liferay.portal.kernel.exception.SystemException, 871 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 872 return getPersistence() 873 .findByCompanyId_Last(companyId, orderByComparator); 874 } 875 876 /** 877 * Returns the last document library file entry in the ordered set where companyId = ?. 878 * 879 * @param companyId the company ID 880 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 881 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 882 * @throws SystemException if a system exception occurred 883 */ 884 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByCompanyId_Last( 885 long companyId, 886 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 887 throws com.liferay.portal.kernel.exception.SystemException { 888 return getPersistence() 889 .fetchByCompanyId_Last(companyId, orderByComparator); 890 } 891 892 /** 893 * Returns the document library file entries before and after the current document library file entry in the ordered set where companyId = ?. 894 * 895 * @param fileEntryId the primary key of the current document library file entry 896 * @param companyId the company ID 897 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 898 * @return the previous, current, and next document library file entry 899 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 900 * @throws SystemException if a system exception occurred 901 */ 902 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext( 903 long fileEntryId, long companyId, 904 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 905 throws com.liferay.portal.kernel.exception.SystemException, 906 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 907 return getPersistence() 908 .findByCompanyId_PrevAndNext(fileEntryId, companyId, 909 orderByComparator); 910 } 911 912 /** 913 * Removes all the document library file entries where companyId = ? from the database. 914 * 915 * @param companyId the company ID 916 * @throws SystemException if a system exception occurred 917 */ 918 public static void removeByCompanyId(long companyId) 919 throws com.liferay.portal.kernel.exception.SystemException { 920 getPersistence().removeByCompanyId(companyId); 921 } 922 923 /** 924 * Returns the number of document library file entries where companyId = ?. 925 * 926 * @param companyId the company ID 927 * @return the number of matching document library file entries 928 * @throws SystemException if a system exception occurred 929 */ 930 public static int countByCompanyId(long companyId) 931 throws com.liferay.portal.kernel.exception.SystemException { 932 return getPersistence().countByCompanyId(companyId); 933 } 934 935 /** 936 * Returns all the document library file entries where mimeType = ?. 937 * 938 * @param mimeType the mime type 939 * @return the matching document library file entries 940 * @throws SystemException if a system exception occurred 941 */ 942 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMimeType( 943 java.lang.String mimeType) 944 throws com.liferay.portal.kernel.exception.SystemException { 945 return getPersistence().findByMimeType(mimeType); 946 } 947 948 /** 949 * Returns a range of all the document library file entries where mimeType = ?. 950 * 951 * <p> 952 * 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.DLFileEntryModelImpl}. 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. 953 * </p> 954 * 955 * @param mimeType the mime type 956 * @param start the lower bound of the range of document library file entries 957 * @param end the upper bound of the range of document library file entries (not inclusive) 958 * @return the range of matching document library file entries 959 * @throws SystemException if a system exception occurred 960 */ 961 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMimeType( 962 java.lang.String mimeType, int start, int end) 963 throws com.liferay.portal.kernel.exception.SystemException { 964 return getPersistence().findByMimeType(mimeType, start, end); 965 } 966 967 /** 968 * Returns an ordered range of all the document library file entries where mimeType = ?. 969 * 970 * <p> 971 * 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.DLFileEntryModelImpl}. 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. 972 * </p> 973 * 974 * @param mimeType the mime type 975 * @param start the lower bound of the range of document library file entries 976 * @param end the upper bound of the range of document library file entries (not inclusive) 977 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 978 * @return the ordered range of matching document library file entries 979 * @throws SystemException if a system exception occurred 980 */ 981 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMimeType( 982 java.lang.String mimeType, int start, int end, 983 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 984 throws com.liferay.portal.kernel.exception.SystemException { 985 return getPersistence() 986 .findByMimeType(mimeType, start, end, orderByComparator); 987 } 988 989 /** 990 * Returns the first document library file entry in the ordered set where mimeType = ?. 991 * 992 * @param mimeType the mime type 993 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 994 * @return the first matching document library file entry 995 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 996 * @throws SystemException if a system exception occurred 997 */ 998 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByMimeType_First( 999 java.lang.String mimeType, 1000 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1001 throws com.liferay.portal.kernel.exception.SystemException, 1002 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1003 return getPersistence().findByMimeType_First(mimeType, orderByComparator); 1004 } 1005 1006 /** 1007 * Returns the first document library file entry in the ordered set where mimeType = ?. 1008 * 1009 * @param mimeType the mime type 1010 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1011 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1012 * @throws SystemException if a system exception occurred 1013 */ 1014 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByMimeType_First( 1015 java.lang.String mimeType, 1016 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1017 throws com.liferay.portal.kernel.exception.SystemException { 1018 return getPersistence() 1019 .fetchByMimeType_First(mimeType, orderByComparator); 1020 } 1021 1022 /** 1023 * Returns the last document library file entry in the ordered set where mimeType = ?. 1024 * 1025 * @param mimeType the mime type 1026 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1027 * @return the last matching document library file entry 1028 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1029 * @throws SystemException if a system exception occurred 1030 */ 1031 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByMimeType_Last( 1032 java.lang.String mimeType, 1033 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1034 throws com.liferay.portal.kernel.exception.SystemException, 1035 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1036 return getPersistence().findByMimeType_Last(mimeType, orderByComparator); 1037 } 1038 1039 /** 1040 * Returns the last document library file entry in the ordered set where mimeType = ?. 1041 * 1042 * @param mimeType the mime type 1043 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1044 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByMimeType_Last( 1048 java.lang.String mimeType, 1049 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1050 throws com.liferay.portal.kernel.exception.SystemException { 1051 return getPersistence().fetchByMimeType_Last(mimeType, orderByComparator); 1052 } 1053 1054 /** 1055 * Returns the document library file entries before and after the current document library file entry in the ordered set where mimeType = ?. 1056 * 1057 * @param fileEntryId the primary key of the current document library file entry 1058 * @param mimeType the mime type 1059 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1060 * @return the previous, current, and next document library file entry 1061 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 1062 * @throws SystemException if a system exception occurred 1063 */ 1064 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByMimeType_PrevAndNext( 1065 long fileEntryId, java.lang.String mimeType, 1066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1067 throws com.liferay.portal.kernel.exception.SystemException, 1068 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1069 return getPersistence() 1070 .findByMimeType_PrevAndNext(fileEntryId, mimeType, 1071 orderByComparator); 1072 } 1073 1074 /** 1075 * Removes all the document library file entries where mimeType = ? from the database. 1076 * 1077 * @param mimeType the mime type 1078 * @throws SystemException if a system exception occurred 1079 */ 1080 public static void removeByMimeType(java.lang.String mimeType) 1081 throws com.liferay.portal.kernel.exception.SystemException { 1082 getPersistence().removeByMimeType(mimeType); 1083 } 1084 1085 /** 1086 * Returns the number of document library file entries where mimeType = ?. 1087 * 1088 * @param mimeType the mime type 1089 * @return the number of matching document library file entries 1090 * @throws SystemException if a system exception occurred 1091 */ 1092 public static int countByMimeType(java.lang.String mimeType) 1093 throws com.liferay.portal.kernel.exception.SystemException { 1094 return getPersistence().countByMimeType(mimeType); 1095 } 1096 1097 /** 1098 * Returns all the document library file entries where fileEntryTypeId = ?. 1099 * 1100 * @param fileEntryTypeId the file entry type ID 1101 * @return the matching document library file entries 1102 * @throws SystemException if a system exception occurred 1103 */ 1104 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFileEntryTypeId( 1105 long fileEntryTypeId) 1106 throws com.liferay.portal.kernel.exception.SystemException { 1107 return getPersistence().findByFileEntryTypeId(fileEntryTypeId); 1108 } 1109 1110 /** 1111 * Returns a range of all the document library file entries where fileEntryTypeId = ?. 1112 * 1113 * <p> 1114 * 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.DLFileEntryModelImpl}. 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. 1115 * </p> 1116 * 1117 * @param fileEntryTypeId the file entry type ID 1118 * @param start the lower bound of the range of document library file entries 1119 * @param end the upper bound of the range of document library file entries (not inclusive) 1120 * @return the range of matching document library file entries 1121 * @throws SystemException if a system exception occurred 1122 */ 1123 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFileEntryTypeId( 1124 long fileEntryTypeId, int start, int end) 1125 throws com.liferay.portal.kernel.exception.SystemException { 1126 return getPersistence() 1127 .findByFileEntryTypeId(fileEntryTypeId, start, end); 1128 } 1129 1130 /** 1131 * Returns an ordered range of all the document library file entries where fileEntryTypeId = ?. 1132 * 1133 * <p> 1134 * 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.DLFileEntryModelImpl}. 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. 1135 * </p> 1136 * 1137 * @param fileEntryTypeId the file entry type ID 1138 * @param start the lower bound of the range of document library file entries 1139 * @param end the upper bound of the range of document library file entries (not inclusive) 1140 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1141 * @return the ordered range of matching document library file entries 1142 * @throws SystemException if a system exception occurred 1143 */ 1144 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFileEntryTypeId( 1145 long fileEntryTypeId, int start, int end, 1146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1147 throws com.liferay.portal.kernel.exception.SystemException { 1148 return getPersistence() 1149 .findByFileEntryTypeId(fileEntryTypeId, start, end, 1150 orderByComparator); 1151 } 1152 1153 /** 1154 * Returns the first document library file entry in the ordered set where fileEntryTypeId = ?. 1155 * 1156 * @param fileEntryTypeId the file entry type ID 1157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1158 * @return the first matching document library file entry 1159 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1160 * @throws SystemException if a system exception occurred 1161 */ 1162 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFileEntryTypeId_First( 1163 long fileEntryTypeId, 1164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1165 throws com.liferay.portal.kernel.exception.SystemException, 1166 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1167 return getPersistence() 1168 .findByFileEntryTypeId_First(fileEntryTypeId, 1169 orderByComparator); 1170 } 1171 1172 /** 1173 * Returns the first document library file entry in the ordered set where fileEntryTypeId = ?. 1174 * 1175 * @param fileEntryTypeId the file entry type ID 1176 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1177 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1178 * @throws SystemException if a system exception occurred 1179 */ 1180 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByFileEntryTypeId_First( 1181 long fileEntryTypeId, 1182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1183 throws com.liferay.portal.kernel.exception.SystemException { 1184 return getPersistence() 1185 .fetchByFileEntryTypeId_First(fileEntryTypeId, 1186 orderByComparator); 1187 } 1188 1189 /** 1190 * Returns the last document library file entry in the ordered set where fileEntryTypeId = ?. 1191 * 1192 * @param fileEntryTypeId the file entry type ID 1193 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1194 * @return the last matching document library file entry 1195 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1196 * @throws SystemException if a system exception occurred 1197 */ 1198 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFileEntryTypeId_Last( 1199 long fileEntryTypeId, 1200 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1201 throws com.liferay.portal.kernel.exception.SystemException, 1202 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1203 return getPersistence() 1204 .findByFileEntryTypeId_Last(fileEntryTypeId, 1205 orderByComparator); 1206 } 1207 1208 /** 1209 * Returns the last document library file entry in the ordered set where fileEntryTypeId = ?. 1210 * 1211 * @param fileEntryTypeId the file entry type ID 1212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1213 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1214 * @throws SystemException if a system exception occurred 1215 */ 1216 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByFileEntryTypeId_Last( 1217 long fileEntryTypeId, 1218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1219 throws com.liferay.portal.kernel.exception.SystemException { 1220 return getPersistence() 1221 .fetchByFileEntryTypeId_Last(fileEntryTypeId, 1222 orderByComparator); 1223 } 1224 1225 /** 1226 * Returns the document library file entries before and after the current document library file entry in the ordered set where fileEntryTypeId = ?. 1227 * 1228 * @param fileEntryId the primary key of the current document library file entry 1229 * @param fileEntryTypeId the file entry type ID 1230 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1231 * @return the previous, current, and next document library file entry 1232 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 1233 * @throws SystemException if a system exception occurred 1234 */ 1235 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFileEntryTypeId_PrevAndNext( 1236 long fileEntryId, long fileEntryTypeId, 1237 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1238 throws com.liferay.portal.kernel.exception.SystemException, 1239 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1240 return getPersistence() 1241 .findByFileEntryTypeId_PrevAndNext(fileEntryId, 1242 fileEntryTypeId, orderByComparator); 1243 } 1244 1245 /** 1246 * Removes all the document library file entries where fileEntryTypeId = ? from the database. 1247 * 1248 * @param fileEntryTypeId the file entry type ID 1249 * @throws SystemException if a system exception occurred 1250 */ 1251 public static void removeByFileEntryTypeId(long fileEntryTypeId) 1252 throws com.liferay.portal.kernel.exception.SystemException { 1253 getPersistence().removeByFileEntryTypeId(fileEntryTypeId); 1254 } 1255 1256 /** 1257 * Returns the number of document library file entries where fileEntryTypeId = ?. 1258 * 1259 * @param fileEntryTypeId the file entry type ID 1260 * @return the number of matching document library file entries 1261 * @throws SystemException if a system exception occurred 1262 */ 1263 public static int countByFileEntryTypeId(long fileEntryTypeId) 1264 throws com.liferay.portal.kernel.exception.SystemException { 1265 return getPersistence().countByFileEntryTypeId(fileEntryTypeId); 1266 } 1267 1268 /** 1269 * Returns all the document library file entries where folderId = ? and name = ?. 1270 * 1271 * @param folderId the folder ID 1272 * @param name the name 1273 * @return the matching document library file entries 1274 * @throws SystemException if a system exception occurred 1275 */ 1276 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_N( 1277 long folderId, java.lang.String name) 1278 throws com.liferay.portal.kernel.exception.SystemException { 1279 return getPersistence().findByF_N(folderId, name); 1280 } 1281 1282 /** 1283 * Returns a range of all the document library file entries where folderId = ? and name = ?. 1284 * 1285 * <p> 1286 * 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.DLFileEntryModelImpl}. 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. 1287 * </p> 1288 * 1289 * @param folderId the folder ID 1290 * @param name the name 1291 * @param start the lower bound of the range of document library file entries 1292 * @param end the upper bound of the range of document library file entries (not inclusive) 1293 * @return the range of matching document library file entries 1294 * @throws SystemException if a system exception occurred 1295 */ 1296 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_N( 1297 long folderId, java.lang.String name, int start, int end) 1298 throws com.liferay.portal.kernel.exception.SystemException { 1299 return getPersistence().findByF_N(folderId, name, start, end); 1300 } 1301 1302 /** 1303 * Returns an ordered range of all the document library file entries where folderId = ? and name = ?. 1304 * 1305 * <p> 1306 * 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.DLFileEntryModelImpl}. 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. 1307 * </p> 1308 * 1309 * @param folderId the folder ID 1310 * @param name the name 1311 * @param start the lower bound of the range of document library file entries 1312 * @param end the upper bound of the range of document library file entries (not inclusive) 1313 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1314 * @return the ordered range of matching document library file entries 1315 * @throws SystemException if a system exception occurred 1316 */ 1317 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_N( 1318 long folderId, java.lang.String name, int start, int end, 1319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1320 throws com.liferay.portal.kernel.exception.SystemException { 1321 return getPersistence() 1322 .findByF_N(folderId, name, start, end, orderByComparator); 1323 } 1324 1325 /** 1326 * Returns the first document library file entry in the ordered set where folderId = ? and name = ?. 1327 * 1328 * @param folderId the folder ID 1329 * @param name the name 1330 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1331 * @return the first matching document library file entry 1332 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1333 * @throws SystemException if a system exception occurred 1334 */ 1335 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N_First( 1336 long folderId, java.lang.String name, 1337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1338 throws com.liferay.portal.kernel.exception.SystemException, 1339 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1340 return getPersistence() 1341 .findByF_N_First(folderId, name, orderByComparator); 1342 } 1343 1344 /** 1345 * Returns the first document library file entry in the ordered set where folderId = ? and name = ?. 1346 * 1347 * @param folderId the folder ID 1348 * @param name the name 1349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1350 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1351 * @throws SystemException if a system exception occurred 1352 */ 1353 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N_First( 1354 long folderId, java.lang.String name, 1355 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1356 throws com.liferay.portal.kernel.exception.SystemException { 1357 return getPersistence() 1358 .fetchByF_N_First(folderId, name, orderByComparator); 1359 } 1360 1361 /** 1362 * Returns the last document library file entry in the ordered set where folderId = ? and name = ?. 1363 * 1364 * @param folderId the folder ID 1365 * @param name the name 1366 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1367 * @return the last matching document library file entry 1368 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1369 * @throws SystemException if a system exception occurred 1370 */ 1371 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N_Last( 1372 long folderId, java.lang.String name, 1373 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1374 throws com.liferay.portal.kernel.exception.SystemException, 1375 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1376 return getPersistence().findByF_N_Last(folderId, name, orderByComparator); 1377 } 1378 1379 /** 1380 * Returns the last document library file entry in the ordered set where folderId = ? and name = ?. 1381 * 1382 * @param folderId the folder ID 1383 * @param name the name 1384 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1385 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1386 * @throws SystemException if a system exception occurred 1387 */ 1388 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N_Last( 1389 long folderId, java.lang.String name, 1390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1391 throws com.liferay.portal.kernel.exception.SystemException { 1392 return getPersistence() 1393 .fetchByF_N_Last(folderId, name, orderByComparator); 1394 } 1395 1396 /** 1397 * Returns the document library file entries before and after the current document library file entry in the ordered set where folderId = ? and name = ?. 1398 * 1399 * @param fileEntryId the primary key of the current document library file entry 1400 * @param folderId the folder ID 1401 * @param name the name 1402 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1403 * @return the previous, current, and next document library file entry 1404 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 1405 * @throws SystemException if a system exception occurred 1406 */ 1407 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_N_PrevAndNext( 1408 long fileEntryId, long folderId, java.lang.String name, 1409 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1410 throws com.liferay.portal.kernel.exception.SystemException, 1411 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1412 return getPersistence() 1413 .findByF_N_PrevAndNext(fileEntryId, folderId, name, 1414 orderByComparator); 1415 } 1416 1417 /** 1418 * Removes all the document library file entries where folderId = ? and name = ? from the database. 1419 * 1420 * @param folderId the folder ID 1421 * @param name the name 1422 * @throws SystemException if a system exception occurred 1423 */ 1424 public static void removeByF_N(long folderId, java.lang.String name) 1425 throws com.liferay.portal.kernel.exception.SystemException { 1426 getPersistence().removeByF_N(folderId, name); 1427 } 1428 1429 /** 1430 * Returns the number of document library file entries where folderId = ? and name = ?. 1431 * 1432 * @param folderId the folder ID 1433 * @param name the name 1434 * @return the number of matching document library file entries 1435 * @throws SystemException if a system exception occurred 1436 */ 1437 public static int countByF_N(long folderId, java.lang.String name) 1438 throws com.liferay.portal.kernel.exception.SystemException { 1439 return getPersistence().countByF_N(folderId, name); 1440 } 1441 1442 /** 1443 * Returns all the document library file entries where groupId = ? and userId = ?. 1444 * 1445 * @param groupId the group ID 1446 * @param userId the user ID 1447 * @return the matching document library file entries 1448 * @throws SystemException if a system exception occurred 1449 */ 1450 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U( 1451 long groupId, long userId) 1452 throws com.liferay.portal.kernel.exception.SystemException { 1453 return getPersistence().findByG_U(groupId, userId); 1454 } 1455 1456 /** 1457 * Returns a range of all the document library file entries where groupId = ? and userId = ?. 1458 * 1459 * <p> 1460 * 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.DLFileEntryModelImpl}. 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. 1461 * </p> 1462 * 1463 * @param groupId the group ID 1464 * @param userId the user ID 1465 * @param start the lower bound of the range of document library file entries 1466 * @param end the upper bound of the range of document library file entries (not inclusive) 1467 * @return the range of matching document library file entries 1468 * @throws SystemException if a system exception occurred 1469 */ 1470 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U( 1471 long groupId, long userId, int start, int end) 1472 throws com.liferay.portal.kernel.exception.SystemException { 1473 return getPersistence().findByG_U(groupId, userId, start, end); 1474 } 1475 1476 /** 1477 * Returns an ordered range of all the document library file entries where groupId = ? and userId = ?. 1478 * 1479 * <p> 1480 * 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.DLFileEntryModelImpl}. 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. 1481 * </p> 1482 * 1483 * @param groupId the group ID 1484 * @param userId the user ID 1485 * @param start the lower bound of the range of document library file entries 1486 * @param end the upper bound of the range of document library file entries (not inclusive) 1487 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1488 * @return the ordered range of matching document library file entries 1489 * @throws SystemException if a system exception occurred 1490 */ 1491 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U( 1492 long groupId, long userId, int start, int end, 1493 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1494 throws com.liferay.portal.kernel.exception.SystemException { 1495 return getPersistence() 1496 .findByG_U(groupId, userId, start, end, orderByComparator); 1497 } 1498 1499 /** 1500 * Returns the first document library file entry in the ordered set where groupId = ? and userId = ?. 1501 * 1502 * @param groupId the group ID 1503 * @param userId the user ID 1504 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1505 * @return the first matching document library file entry 1506 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1507 * @throws SystemException if a system exception occurred 1508 */ 1509 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_First( 1510 long groupId, long userId, 1511 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1512 throws com.liferay.portal.kernel.exception.SystemException, 1513 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1514 return getPersistence() 1515 .findByG_U_First(groupId, userId, orderByComparator); 1516 } 1517 1518 /** 1519 * Returns the first document library file entry in the ordered set where groupId = ? and userId = ?. 1520 * 1521 * @param groupId the group ID 1522 * @param userId the user ID 1523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1524 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1525 * @throws SystemException if a system exception occurred 1526 */ 1527 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_U_First( 1528 long groupId, long userId, 1529 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1530 throws com.liferay.portal.kernel.exception.SystemException { 1531 return getPersistence() 1532 .fetchByG_U_First(groupId, userId, orderByComparator); 1533 } 1534 1535 /** 1536 * Returns the last document library file entry in the ordered set where groupId = ? and userId = ?. 1537 * 1538 * @param groupId the group ID 1539 * @param userId the user ID 1540 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1541 * @return the last matching document library file entry 1542 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1543 * @throws SystemException if a system exception occurred 1544 */ 1545 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last( 1546 long groupId, long userId, 1547 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1548 throws com.liferay.portal.kernel.exception.SystemException, 1549 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1550 return getPersistence() 1551 .findByG_U_Last(groupId, userId, orderByComparator); 1552 } 1553 1554 /** 1555 * Returns the last document library file entry in the ordered set where groupId = ? and userId = ?. 1556 * 1557 * @param groupId the group ID 1558 * @param userId the user ID 1559 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1560 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1561 * @throws SystemException if a system exception occurred 1562 */ 1563 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_U_Last( 1564 long groupId, long userId, 1565 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1566 throws com.liferay.portal.kernel.exception.SystemException { 1567 return getPersistence() 1568 .fetchByG_U_Last(groupId, userId, orderByComparator); 1569 } 1570 1571 /** 1572 * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = ? and userId = ?. 1573 * 1574 * @param fileEntryId the primary key of the current document library file entry 1575 * @param groupId the group ID 1576 * @param userId the user ID 1577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1578 * @return the previous, current, and next document library file entry 1579 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 1580 * @throws SystemException if a system exception occurred 1581 */ 1582 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext( 1583 long fileEntryId, long groupId, long userId, 1584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1585 throws com.liferay.portal.kernel.exception.SystemException, 1586 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1587 return getPersistence() 1588 .findByG_U_PrevAndNext(fileEntryId, groupId, userId, 1589 orderByComparator); 1590 } 1591 1592 /** 1593 * Returns all the document library file entries that the user has permission to view where groupId = ? and userId = ?. 1594 * 1595 * @param groupId the group ID 1596 * @param userId the user ID 1597 * @return the matching document library file entries that the user has permission to view 1598 * @throws SystemException if a system exception occurred 1599 */ 1600 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U( 1601 long groupId, long userId) 1602 throws com.liferay.portal.kernel.exception.SystemException { 1603 return getPersistence().filterFindByG_U(groupId, userId); 1604 } 1605 1606 /** 1607 * Returns a range of all the document library file entries that the user has permission to view where groupId = ? and userId = ?. 1608 * 1609 * <p> 1610 * 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.DLFileEntryModelImpl}. 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. 1611 * </p> 1612 * 1613 * @param groupId the group ID 1614 * @param userId the user ID 1615 * @param start the lower bound of the range of document library file entries 1616 * @param end the upper bound of the range of document library file entries (not inclusive) 1617 * @return the range of matching document library file entries that the user has permission to view 1618 * @throws SystemException if a system exception occurred 1619 */ 1620 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U( 1621 long groupId, long userId, int start, int end) 1622 throws com.liferay.portal.kernel.exception.SystemException { 1623 return getPersistence().filterFindByG_U(groupId, userId, start, end); 1624 } 1625 1626 /** 1627 * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = ? and userId = ?. 1628 * 1629 * <p> 1630 * 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.DLFileEntryModelImpl}. 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. 1631 * </p> 1632 * 1633 * @param groupId the group ID 1634 * @param userId the user ID 1635 * @param start the lower bound of the range of document library file entries 1636 * @param end the upper bound of the range of document library file entries (not inclusive) 1637 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1638 * @return the ordered range of matching document library file entries that the user has permission to view 1639 * @throws SystemException if a system exception occurred 1640 */ 1641 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U( 1642 long groupId, long userId, int start, int end, 1643 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1644 throws com.liferay.portal.kernel.exception.SystemException { 1645 return getPersistence() 1646 .filterFindByG_U(groupId, userId, start, end, 1647 orderByComparator); 1648 } 1649 1650 /** 1651 * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = ? and userId = ?. 1652 * 1653 * @param fileEntryId the primary key of the current document library file entry 1654 * @param groupId the group ID 1655 * @param userId the user ID 1656 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1657 * @return the previous, current, and next document library file entry 1658 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 1659 * @throws SystemException if a system exception occurred 1660 */ 1661 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByG_U_PrevAndNext( 1662 long fileEntryId, long groupId, long userId, 1663 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1664 throws com.liferay.portal.kernel.exception.SystemException, 1665 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1666 return getPersistence() 1667 .filterFindByG_U_PrevAndNext(fileEntryId, groupId, userId, 1668 orderByComparator); 1669 } 1670 1671 /** 1672 * Removes all the document library file entries where groupId = ? and userId = ? from the database. 1673 * 1674 * @param groupId the group ID 1675 * @param userId the user ID 1676 * @throws SystemException if a system exception occurred 1677 */ 1678 public static void removeByG_U(long groupId, long userId) 1679 throws com.liferay.portal.kernel.exception.SystemException { 1680 getPersistence().removeByG_U(groupId, userId); 1681 } 1682 1683 /** 1684 * Returns the number of document library file entries where groupId = ? and userId = ?. 1685 * 1686 * @param groupId the group ID 1687 * @param userId the user ID 1688 * @return the number of matching document library file entries 1689 * @throws SystemException if a system exception occurred 1690 */ 1691 public static int countByG_U(long groupId, long userId) 1692 throws com.liferay.portal.kernel.exception.SystemException { 1693 return getPersistence().countByG_U(groupId, userId); 1694 } 1695 1696 /** 1697 * Returns the number of document library file entries that the user has permission to view where groupId = ? and userId = ?. 1698 * 1699 * @param groupId the group ID 1700 * @param userId the user ID 1701 * @return the number of matching document library file entries that the user has permission to view 1702 * @throws SystemException if a system exception occurred 1703 */ 1704 public static int filterCountByG_U(long groupId, long userId) 1705 throws com.liferay.portal.kernel.exception.SystemException { 1706 return getPersistence().filterCountByG_U(groupId, userId); 1707 } 1708 1709 /** 1710 * Returns all the document library file entries where groupId = ? and folderId = ?. 1711 * 1712 * @param groupId the group ID 1713 * @param folderId the folder ID 1714 * @return the matching document library file entries 1715 * @throws SystemException if a system exception occurred 1716 */ 1717 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F( 1718 long groupId, long folderId) 1719 throws com.liferay.portal.kernel.exception.SystemException { 1720 return getPersistence().findByG_F(groupId, folderId); 1721 } 1722 1723 /** 1724 * Returns a range of all the document library file entries where groupId = ? and folderId = ?. 1725 * 1726 * <p> 1727 * 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.DLFileEntryModelImpl}. 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. 1728 * </p> 1729 * 1730 * @param groupId the group ID 1731 * @param folderId the folder ID 1732 * @param start the lower bound of the range of document library file entries 1733 * @param end the upper bound of the range of document library file entries (not inclusive) 1734 * @return the range of matching document library file entries 1735 * @throws SystemException if a system exception occurred 1736 */ 1737 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F( 1738 long groupId, long folderId, int start, int end) 1739 throws com.liferay.portal.kernel.exception.SystemException { 1740 return getPersistence().findByG_F(groupId, folderId, start, end); 1741 } 1742 1743 /** 1744 * Returns an ordered range of all the document library file entries where groupId = ? and folderId = ?. 1745 * 1746 * <p> 1747 * 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.DLFileEntryModelImpl}. 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. 1748 * </p> 1749 * 1750 * @param groupId the group ID 1751 * @param folderId the folder ID 1752 * @param start the lower bound of the range of document library file entries 1753 * @param end the upper bound of the range of document library file entries (not inclusive) 1754 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1755 * @return the ordered range of matching document library file entries 1756 * @throws SystemException if a system exception occurred 1757 */ 1758 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F( 1759 long groupId, long folderId, int start, int end, 1760 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1761 throws com.liferay.portal.kernel.exception.SystemException { 1762 return getPersistence() 1763 .findByG_F(groupId, folderId, start, end, orderByComparator); 1764 } 1765 1766 /** 1767 * Returns the first document library file entry in the ordered set where groupId = ? and folderId = ?. 1768 * 1769 * @param groupId the group ID 1770 * @param folderId the folder ID 1771 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1772 * @return the first matching document library file entry 1773 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1774 * @throws SystemException if a system exception occurred 1775 */ 1776 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_First( 1777 long groupId, long folderId, 1778 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1779 throws com.liferay.portal.kernel.exception.SystemException, 1780 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1781 return getPersistence() 1782 .findByG_F_First(groupId, folderId, orderByComparator); 1783 } 1784 1785 /** 1786 * Returns the first document library file entry in the ordered set where groupId = ? and folderId = ?. 1787 * 1788 * @param groupId the group ID 1789 * @param folderId the folder ID 1790 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1791 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1792 * @throws SystemException if a system exception occurred 1793 */ 1794 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_First( 1795 long groupId, long folderId, 1796 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1797 throws com.liferay.portal.kernel.exception.SystemException { 1798 return getPersistence() 1799 .fetchByG_F_First(groupId, folderId, orderByComparator); 1800 } 1801 1802 /** 1803 * Returns the last document library file entry in the ordered set where groupId = ? and folderId = ?. 1804 * 1805 * @param groupId the group ID 1806 * @param folderId the folder ID 1807 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1808 * @return the last matching document library file entry 1809 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 1810 * @throws SystemException if a system exception occurred 1811 */ 1812 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_Last( 1813 long groupId, long folderId, 1814 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1815 throws com.liferay.portal.kernel.exception.SystemException, 1816 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1817 return getPersistence() 1818 .findByG_F_Last(groupId, folderId, orderByComparator); 1819 } 1820 1821 /** 1822 * Returns the last document library file entry in the ordered set where groupId = ? and folderId = ?. 1823 * 1824 * @param groupId the group ID 1825 * @param folderId the folder ID 1826 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1827 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 1828 * @throws SystemException if a system exception occurred 1829 */ 1830 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_Last( 1831 long groupId, long folderId, 1832 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1833 throws com.liferay.portal.kernel.exception.SystemException { 1834 return getPersistence() 1835 .fetchByG_F_Last(groupId, folderId, orderByComparator); 1836 } 1837 1838 /** 1839 * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = ? and folderId = ?. 1840 * 1841 * @param fileEntryId the primary key of the current document library file entry 1842 * @param groupId the group ID 1843 * @param folderId the folder ID 1844 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1845 * @return the previous, current, and next document library file entry 1846 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 1847 * @throws SystemException if a system exception occurred 1848 */ 1849 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_F_PrevAndNext( 1850 long fileEntryId, long groupId, long folderId, 1851 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1852 throws com.liferay.portal.kernel.exception.SystemException, 1853 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1854 return getPersistence() 1855 .findByG_F_PrevAndNext(fileEntryId, groupId, folderId, 1856 orderByComparator); 1857 } 1858 1859 /** 1860 * Returns all the document library file entries that the user has permission to view where groupId = ? and folderId = ?. 1861 * 1862 * @param groupId the group ID 1863 * @param folderId the folder ID 1864 * @return the matching document library file entries that the user has permission to view 1865 * @throws SystemException if a system exception occurred 1866 */ 1867 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F( 1868 long groupId, long folderId) 1869 throws com.liferay.portal.kernel.exception.SystemException { 1870 return getPersistence().filterFindByG_F(groupId, folderId); 1871 } 1872 1873 /** 1874 * Returns a range of all the document library file entries that the user has permission to view where groupId = ? and folderId = ?. 1875 * 1876 * <p> 1877 * 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.DLFileEntryModelImpl}. 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. 1878 * </p> 1879 * 1880 * @param groupId the group ID 1881 * @param folderId the folder ID 1882 * @param start the lower bound of the range of document library file entries 1883 * @param end the upper bound of the range of document library file entries (not inclusive) 1884 * @return the range of matching document library file entries that the user has permission to view 1885 * @throws SystemException if a system exception occurred 1886 */ 1887 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F( 1888 long groupId, long folderId, int start, int end) 1889 throws com.liferay.portal.kernel.exception.SystemException { 1890 return getPersistence().filterFindByG_F(groupId, folderId, start, end); 1891 } 1892 1893 /** 1894 * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = ? and folderId = ?. 1895 * 1896 * <p> 1897 * 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.DLFileEntryModelImpl}. 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. 1898 * </p> 1899 * 1900 * @param groupId the group ID 1901 * @param folderId the folder ID 1902 * @param start the lower bound of the range of document library file entries 1903 * @param end the upper bound of the range of document library file entries (not inclusive) 1904 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1905 * @return the ordered range of matching document library file entries that the user has permission to view 1906 * @throws SystemException if a system exception occurred 1907 */ 1908 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F( 1909 long groupId, long folderId, int start, int end, 1910 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1911 throws com.liferay.portal.kernel.exception.SystemException { 1912 return getPersistence() 1913 .filterFindByG_F(groupId, folderId, start, end, 1914 orderByComparator); 1915 } 1916 1917 /** 1918 * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = ? and folderId = ?. 1919 * 1920 * @param fileEntryId the primary key of the current document library file entry 1921 * @param groupId the group ID 1922 * @param folderId the folder ID 1923 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1924 * @return the previous, current, and next document library file entry 1925 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 1926 * @throws SystemException if a system exception occurred 1927 */ 1928 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByG_F_PrevAndNext( 1929 long fileEntryId, long groupId, long folderId, 1930 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1931 throws com.liferay.portal.kernel.exception.SystemException, 1932 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 1933 return getPersistence() 1934 .filterFindByG_F_PrevAndNext(fileEntryId, groupId, folderId, 1935 orderByComparator); 1936 } 1937 1938 /** 1939 * Returns all the document library file entries that the user has permission to view where groupId = ? and folderId = any ?. 1940 * 1941 * @param groupId the group ID 1942 * @param folderIds the folder IDs 1943 * @return the matching document library file entries that the user has permission to view 1944 * @throws SystemException if a system exception occurred 1945 */ 1946 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F( 1947 long groupId, long[] folderIds) 1948 throws com.liferay.portal.kernel.exception.SystemException { 1949 return getPersistence().filterFindByG_F(groupId, folderIds); 1950 } 1951 1952 /** 1953 * Returns a range of all the document library file entries that the user has permission to view where groupId = ? and folderId = any ?. 1954 * 1955 * <p> 1956 * 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.DLFileEntryModelImpl}. 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. 1957 * </p> 1958 * 1959 * @param groupId the group ID 1960 * @param folderIds the folder IDs 1961 * @param start the lower bound of the range of document library file entries 1962 * @param end the upper bound of the range of document library file entries (not inclusive) 1963 * @return the range of matching document library file entries that the user has permission to view 1964 * @throws SystemException if a system exception occurred 1965 */ 1966 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F( 1967 long groupId, long[] folderIds, int start, int end) 1968 throws com.liferay.portal.kernel.exception.SystemException { 1969 return getPersistence().filterFindByG_F(groupId, folderIds, start, end); 1970 } 1971 1972 /** 1973 * Returns an ordered range of all the document library file entries that the user has permission to view where groupId = ? and folderId = any ?. 1974 * 1975 * <p> 1976 * 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.DLFileEntryModelImpl}. 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. 1977 * </p> 1978 * 1979 * @param groupId the group ID 1980 * @param folderIds the folder IDs 1981 * @param start the lower bound of the range of document library file entries 1982 * @param end the upper bound of the range of document library file entries (not inclusive) 1983 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1984 * @return the ordered range of matching document library file entries that the user has permission to view 1985 * @throws SystemException if a system exception occurred 1986 */ 1987 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F( 1988 long groupId, long[] folderIds, int start, int end, 1989 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1990 throws com.liferay.portal.kernel.exception.SystemException { 1991 return getPersistence() 1992 .filterFindByG_F(groupId, folderIds, start, end, 1993 orderByComparator); 1994 } 1995 1996 /** 1997 * Returns all the document library file entries where groupId = ? and folderId = any ?. 1998 * 1999 * <p> 2000 * 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.DLFileEntryModelImpl}. 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. 2001 * </p> 2002 * 2003 * @param groupId the group ID 2004 * @param folderIds the folder IDs 2005 * @return the matching document library file entries 2006 * @throws SystemException if a system exception occurred 2007 */ 2008 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F( 2009 long groupId, long[] folderIds) 2010 throws com.liferay.portal.kernel.exception.SystemException { 2011 return getPersistence().findByG_F(groupId, folderIds); 2012 } 2013 2014 /** 2015 * Returns a range of all the document library file entries where groupId = ? and folderId = any ?. 2016 * 2017 * <p> 2018 * 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.DLFileEntryModelImpl}. 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. 2019 * </p> 2020 * 2021 * @param groupId the group ID 2022 * @param folderIds the folder IDs 2023 * @param start the lower bound of the range of document library file entries 2024 * @param end the upper bound of the range of document library file entries (not inclusive) 2025 * @return the range of matching document library file entries 2026 * @throws SystemException if a system exception occurred 2027 */ 2028 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F( 2029 long groupId, long[] folderIds, int start, int end) 2030 throws com.liferay.portal.kernel.exception.SystemException { 2031 return getPersistence().findByG_F(groupId, folderIds, start, end); 2032 } 2033 2034 /** 2035 * Returns an ordered range of all the document library file entries where groupId = ? and folderId = any ?. 2036 * 2037 * <p> 2038 * 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.DLFileEntryModelImpl}. 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. 2039 * </p> 2040 * 2041 * @param groupId the group ID 2042 * @param folderIds the folder IDs 2043 * @param start the lower bound of the range of document library file entries 2044 * @param end the upper bound of the range of document library file entries (not inclusive) 2045 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2046 * @return the ordered range of matching document library file entries 2047 * @throws SystemException if a system exception occurred 2048 */ 2049 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F( 2050 long groupId, long[] folderIds, int start, int end, 2051 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2052 throws com.liferay.portal.kernel.exception.SystemException { 2053 return getPersistence() 2054 .findByG_F(groupId, folderIds, start, end, orderByComparator); 2055 } 2056 2057 /** 2058 * Removes all the document library file entries where groupId = ? and folderId = ? from the database. 2059 * 2060 * @param groupId the group ID 2061 * @param folderId the folder ID 2062 * @throws SystemException if a system exception occurred 2063 */ 2064 public static void removeByG_F(long groupId, long folderId) 2065 throws com.liferay.portal.kernel.exception.SystemException { 2066 getPersistence().removeByG_F(groupId, folderId); 2067 } 2068 2069 /** 2070 * Returns the number of document library file entries where groupId = ? and folderId = ?. 2071 * 2072 * @param groupId the group ID 2073 * @param folderId the folder ID 2074 * @return the number of matching document library file entries 2075 * @throws SystemException if a system exception occurred 2076 */ 2077 public static int countByG_F(long groupId, long folderId) 2078 throws com.liferay.portal.kernel.exception.SystemException { 2079 return getPersistence().countByG_F(groupId, folderId); 2080 } 2081 2082 /** 2083 * Returns the number of document library file entries where groupId = ? and folderId = any ?. 2084 * 2085 * @param groupId the group ID 2086 * @param folderIds the folder IDs 2087 * @return the number of matching document library file entries 2088 * @throws SystemException if a system exception occurred 2089 */ 2090 public static int countByG_F(long groupId, long[] folderIds) 2091 throws com.liferay.portal.kernel.exception.SystemException { 2092 return getPersistence().countByG_F(groupId, folderIds); 2093 } 2094 2095 /** 2096 * Returns the number of document library file entries that the user has permission to view where groupId = ? and folderId = ?. 2097 * 2098 * @param groupId the group ID 2099 * @param folderId the folder ID 2100 * @return the number of matching document library file entries that the user has permission to view 2101 * @throws SystemException if a system exception occurred 2102 */ 2103 public static int filterCountByG_F(long groupId, long folderId) 2104 throws com.liferay.portal.kernel.exception.SystemException { 2105 return getPersistence().filterCountByG_F(groupId, folderId); 2106 } 2107 2108 /** 2109 * Returns the number of document library file entries that the user has permission to view where groupId = ? and folderId = any ?. 2110 * 2111 * @param groupId the group ID 2112 * @param folderIds the folder IDs 2113 * @return the number of matching document library file entries that the user has permission to view 2114 * @throws SystemException if a system exception occurred 2115 */ 2116 public static int filterCountByG_F(long groupId, long[] folderIds) 2117 throws com.liferay.portal.kernel.exception.SystemException { 2118 return getPersistence().filterCountByG_F(groupId, folderIds); 2119 } 2120 2121 /** 2122 * Returns all the document library file entries where repositoryId = ? and folderId = ?. 2123 * 2124 * @param repositoryId the repository ID 2125 * @param folderId the folder ID 2126 * @return the matching document library file entries 2127 * @throws SystemException if a system exception occurred 2128 */ 2129 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByR_F( 2130 long repositoryId, long folderId) 2131 throws com.liferay.portal.kernel.exception.SystemException { 2132 return getPersistence().findByR_F(repositoryId, folderId); 2133 } 2134 2135 /** 2136 * Returns a range of all the document library file entries where repositoryId = ? and folderId = ?. 2137 * 2138 * <p> 2139 * 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.DLFileEntryModelImpl}. 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. 2140 * </p> 2141 * 2142 * @param repositoryId the repository ID 2143 * @param folderId the folder ID 2144 * @param start the lower bound of the range of document library file entries 2145 * @param end the upper bound of the range of document library file entries (not inclusive) 2146 * @return the range of matching document library file entries 2147 * @throws SystemException if a system exception occurred 2148 */ 2149 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByR_F( 2150 long repositoryId, long folderId, int start, int end) 2151 throws com.liferay.portal.kernel.exception.SystemException { 2152 return getPersistence().findByR_F(repositoryId, folderId, start, end); 2153 } 2154 2155 /** 2156 * Returns an ordered range of all the document library file entries where repositoryId = ? and folderId = ?. 2157 * 2158 * <p> 2159 * 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.DLFileEntryModelImpl}. 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. 2160 * </p> 2161 * 2162 * @param repositoryId the repository ID 2163 * @param folderId the folder ID 2164 * @param start the lower bound of the range of document library file entries 2165 * @param end the upper bound of the range of document library file entries (not inclusive) 2166 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2167 * @return the ordered range of matching document library file entries 2168 * @throws SystemException if a system exception occurred 2169 */ 2170 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByR_F( 2171 long repositoryId, long folderId, int start, int end, 2172 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2173 throws com.liferay.portal.kernel.exception.SystemException { 2174 return getPersistence() 2175 .findByR_F(repositoryId, folderId, start, end, 2176 orderByComparator); 2177 } 2178 2179 /** 2180 * Returns the first document library file entry in the ordered set where repositoryId = ? and folderId = ?. 2181 * 2182 * @param repositoryId the repository ID 2183 * @param folderId the folder ID 2184 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2185 * @return the first matching document library file entry 2186 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 2187 * @throws SystemException if a system exception occurred 2188 */ 2189 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByR_F_First( 2190 long repositoryId, long folderId, 2191 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2192 throws com.liferay.portal.kernel.exception.SystemException, 2193 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2194 return getPersistence() 2195 .findByR_F_First(repositoryId, folderId, orderByComparator); 2196 } 2197 2198 /** 2199 * Returns the first document library file entry in the ordered set where repositoryId = ? and folderId = ?. 2200 * 2201 * @param repositoryId the repository ID 2202 * @param folderId the folder ID 2203 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2204 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2205 * @throws SystemException if a system exception occurred 2206 */ 2207 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByR_F_First( 2208 long repositoryId, long folderId, 2209 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2210 throws com.liferay.portal.kernel.exception.SystemException { 2211 return getPersistence() 2212 .fetchByR_F_First(repositoryId, folderId, orderByComparator); 2213 } 2214 2215 /** 2216 * Returns the last document library file entry in the ordered set where repositoryId = ? and folderId = ?. 2217 * 2218 * @param repositoryId the repository ID 2219 * @param folderId the folder ID 2220 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2221 * @return the last matching document library file entry 2222 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 2223 * @throws SystemException if a system exception occurred 2224 */ 2225 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByR_F_Last( 2226 long repositoryId, long folderId, 2227 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2228 throws com.liferay.portal.kernel.exception.SystemException, 2229 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2230 return getPersistence() 2231 .findByR_F_Last(repositoryId, folderId, orderByComparator); 2232 } 2233 2234 /** 2235 * Returns the last document library file entry in the ordered set where repositoryId = ? and folderId = ?. 2236 * 2237 * @param repositoryId the repository ID 2238 * @param folderId the folder ID 2239 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2240 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2241 * @throws SystemException if a system exception occurred 2242 */ 2243 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByR_F_Last( 2244 long repositoryId, long folderId, 2245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2246 throws com.liferay.portal.kernel.exception.SystemException { 2247 return getPersistence() 2248 .fetchByR_F_Last(repositoryId, folderId, orderByComparator); 2249 } 2250 2251 /** 2252 * Returns the document library file entries before and after the current document library file entry in the ordered set where repositoryId = ? and folderId = ?. 2253 * 2254 * @param fileEntryId the primary key of the current document library file entry 2255 * @param repositoryId the repository ID 2256 * @param folderId the folder ID 2257 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2258 * @return the previous, current, and next document library file entry 2259 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 2260 * @throws SystemException if a system exception occurred 2261 */ 2262 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByR_F_PrevAndNext( 2263 long fileEntryId, long repositoryId, long folderId, 2264 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2265 throws com.liferay.portal.kernel.exception.SystemException, 2266 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2267 return getPersistence() 2268 .findByR_F_PrevAndNext(fileEntryId, repositoryId, folderId, 2269 orderByComparator); 2270 } 2271 2272 /** 2273 * Removes all the document library file entries where repositoryId = ? and folderId = ? from the database. 2274 * 2275 * @param repositoryId the repository ID 2276 * @param folderId the folder ID 2277 * @throws SystemException if a system exception occurred 2278 */ 2279 public static void removeByR_F(long repositoryId, long folderId) 2280 throws com.liferay.portal.kernel.exception.SystemException { 2281 getPersistence().removeByR_F(repositoryId, folderId); 2282 } 2283 2284 /** 2285 * Returns the number of document library file entries where repositoryId = ? and folderId = ?. 2286 * 2287 * @param repositoryId the repository ID 2288 * @param folderId the folder ID 2289 * @return the number of matching document library file entries 2290 * @throws SystemException if a system exception occurred 2291 */ 2292 public static int countByR_F(long repositoryId, long folderId) 2293 throws com.liferay.portal.kernel.exception.SystemException { 2294 return getPersistence().countByR_F(repositoryId, folderId); 2295 } 2296 2297 /** 2298 * Returns all the document library file entries where groupId = ? and userId = ? and folderId = ?. 2299 * 2300 * @param groupId the group ID 2301 * @param userId the user ID 2302 * @param folderId the folder ID 2303 * @return the matching document library file entries 2304 * @throws SystemException if a system exception occurred 2305 */ 2306 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F( 2307 long groupId, long userId, long folderId) 2308 throws com.liferay.portal.kernel.exception.SystemException { 2309 return getPersistence().findByG_U_F(groupId, userId, folderId); 2310 } 2311 2312 /** 2313 * Returns a range of all the document library file entries where groupId = ? and userId = ? and folderId = ?. 2314 * 2315 * <p> 2316 * 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.DLFileEntryModelImpl}. 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. 2317 * </p> 2318 * 2319 * @param groupId the group ID 2320 * @param userId the user ID 2321 * @param folderId the folder ID 2322 * @param start the lower bound of the range of document library file entries 2323 * @param end the upper bound of the range of document library file entries (not inclusive) 2324 * @return the range of matching document library file entries 2325 * @throws SystemException if a system exception occurred 2326 */ 2327 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F( 2328 long groupId, long userId, long folderId, int start, int end) 2329 throws com.liferay.portal.kernel.exception.SystemException { 2330 return getPersistence() 2331 .findByG_U_F(groupId, userId, folderId, start, end); 2332 } 2333 2334 /** 2335 * Returns an ordered range of all the document library file entries where groupId = ? and userId = ? and folderId = ?. 2336 * 2337 * <p> 2338 * 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.DLFileEntryModelImpl}. 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. 2339 * </p> 2340 * 2341 * @param groupId the group ID 2342 * @param userId the user ID 2343 * @param folderId the folder ID 2344 * @param start the lower bound of the range of document library file entries 2345 * @param end the upper bound of the range of document library file entries (not inclusive) 2346 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2347 * @return the ordered range of matching document library file entries 2348 * @throws SystemException if a system exception occurred 2349 */ 2350 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F( 2351 long groupId, long userId, long folderId, int start, int end, 2352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2353 throws com.liferay.portal.kernel.exception.SystemException { 2354 return getPersistence() 2355 .findByG_U_F(groupId, userId, folderId, start, end, 2356 orderByComparator); 2357 } 2358 2359 /** 2360 * Returns the first document library file entry in the ordered set where groupId = ? and userId = ? and folderId = ?. 2361 * 2362 * @param groupId the group ID 2363 * @param userId the user ID 2364 * @param folderId the folder ID 2365 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2366 * @return the first matching document library file entry 2367 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 2368 * @throws SystemException if a system exception occurred 2369 */ 2370 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_F_First( 2371 long groupId, long userId, long folderId, 2372 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2373 throws com.liferay.portal.kernel.exception.SystemException, 2374 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2375 return getPersistence() 2376 .findByG_U_F_First(groupId, userId, folderId, 2377 orderByComparator); 2378 } 2379 2380 /** 2381 * Returns the first document library file entry in the ordered set where groupId = ? and userId = ? and folderId = ?. 2382 * 2383 * @param groupId the group ID 2384 * @param userId the user ID 2385 * @param folderId the folder ID 2386 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2387 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2388 * @throws SystemException if a system exception occurred 2389 */ 2390 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_U_F_First( 2391 long groupId, long userId, long folderId, 2392 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2393 throws com.liferay.portal.kernel.exception.SystemException { 2394 return getPersistence() 2395 .fetchByG_U_F_First(groupId, userId, folderId, 2396 orderByComparator); 2397 } 2398 2399 /** 2400 * Returns the last document library file entry in the ordered set where groupId = ? and userId = ? and folderId = ?. 2401 * 2402 * @param groupId the group ID 2403 * @param userId the user ID 2404 * @param folderId the folder ID 2405 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2406 * @return the last matching document library file entry 2407 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 2408 * @throws SystemException if a system exception occurred 2409 */ 2410 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_F_Last( 2411 long groupId, long userId, long folderId, 2412 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2413 throws com.liferay.portal.kernel.exception.SystemException, 2414 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2415 return getPersistence() 2416 .findByG_U_F_Last(groupId, userId, folderId, 2417 orderByComparator); 2418 } 2419 2420 /** 2421 * Returns the last document library file entry in the ordered set where groupId = ? and userId = ? and folderId = ?. 2422 * 2423 * @param groupId the group ID 2424 * @param userId the user ID 2425 * @param folderId the folder ID 2426 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2427 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2428 * @throws SystemException if a system exception occurred 2429 */ 2430 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_U_F_Last( 2431 long groupId, long userId, long folderId, 2432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2433 throws com.liferay.portal.kernel.exception.SystemException { 2434 return getPersistence() 2435 .fetchByG_U_F_Last(groupId, userId, folderId, 2436 orderByComparator); 2437 } 2438 2439 /** 2440 * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = ? and userId = ? and folderId = ?. 2441 * 2442 * @param fileEntryId the primary key of the current document library file entry 2443 * @param groupId the group ID 2444 * @param userId the user ID 2445 * @param folderId the folder ID 2446 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2447 * @return the previous, current, and next document library file entry 2448 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 2449 * @throws SystemException if a system exception occurred 2450 */ 2451 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_F_PrevAndNext( 2452 long fileEntryId, long groupId, long userId, long folderId, 2453 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2454 throws com.liferay.portal.kernel.exception.SystemException, 2455 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2456 return getPersistence() 2457 .findByG_U_F_PrevAndNext(fileEntryId, groupId, userId, 2458 folderId, orderByComparator); 2459 } 2460 2461 /** 2462 * Returns all the document library file entries that the user has permission to view where groupId = ? and userId = ? and folderId = ?. 2463 * 2464 * @param groupId the group ID 2465 * @param userId the user ID 2466 * @param folderId the folder ID 2467 * @return the matching document library file entries that the user has permission to view 2468 * @throws SystemException if a system exception occurred 2469 */ 2470 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F( 2471 long groupId, long userId, long folderId) 2472 throws com.liferay.portal.kernel.exception.SystemException { 2473 return getPersistence().filterFindByG_U_F(groupId, userId, folderId); 2474 } 2475 2476 /** 2477 * Returns a range of all the document library file entries that the user has permission to view where groupId = ? and userId = ? and folderId = ?. 2478 * 2479 * <p> 2480 * 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.DLFileEntryModelImpl}. 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. 2481 * </p> 2482 * 2483 * @param groupId the group ID 2484 * @param userId the user ID 2485 * @param folderId the folder ID 2486 * @param start the lower bound of the range of document library file entries 2487 * @param end the upper bound of the range of document library file entries (not inclusive) 2488 * @return the range of matching document library file entries that the user has permission to view 2489 * @throws SystemException if a system exception occurred 2490 */ 2491 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F( 2492 long groupId, long userId, long folderId, int start, int end) 2493 throws com.liferay.portal.kernel.exception.SystemException { 2494 return getPersistence() 2495 .filterFindByG_U_F(groupId, userId, folderId, start, end); 2496 } 2497 2498 /** 2499 * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = ? and userId = ? and folderId = ?. 2500 * 2501 * <p> 2502 * 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.DLFileEntryModelImpl}. 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. 2503 * </p> 2504 * 2505 * @param groupId the group ID 2506 * @param userId the user ID 2507 * @param folderId the folder ID 2508 * @param start the lower bound of the range of document library file entries 2509 * @param end the upper bound of the range of document library file entries (not inclusive) 2510 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2511 * @return the ordered range of matching document library file entries that the user has permission to view 2512 * @throws SystemException if a system exception occurred 2513 */ 2514 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F( 2515 long groupId, long userId, long folderId, int start, int end, 2516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2517 throws com.liferay.portal.kernel.exception.SystemException { 2518 return getPersistence() 2519 .filterFindByG_U_F(groupId, userId, folderId, start, end, 2520 orderByComparator); 2521 } 2522 2523 /** 2524 * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = ? and userId = ? and folderId = ?. 2525 * 2526 * @param fileEntryId the primary key of the current document library file entry 2527 * @param groupId the group ID 2528 * @param userId the user ID 2529 * @param folderId the folder ID 2530 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2531 * @return the previous, current, and next document library file entry 2532 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 2533 * @throws SystemException if a system exception occurred 2534 */ 2535 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByG_U_F_PrevAndNext( 2536 long fileEntryId, long groupId, long userId, long folderId, 2537 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2538 throws com.liferay.portal.kernel.exception.SystemException, 2539 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2540 return getPersistence() 2541 .filterFindByG_U_F_PrevAndNext(fileEntryId, groupId, userId, 2542 folderId, orderByComparator); 2543 } 2544 2545 /** 2546 * Returns all the document library file entries that the user has permission to view where groupId = ? and userId = ? and folderId = any ?. 2547 * 2548 * @param groupId the group ID 2549 * @param userId the user ID 2550 * @param folderIds the folder IDs 2551 * @return the matching document library file entries that the user has permission to view 2552 * @throws SystemException if a system exception occurred 2553 */ 2554 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F( 2555 long groupId, long userId, long[] folderIds) 2556 throws com.liferay.portal.kernel.exception.SystemException { 2557 return getPersistence().filterFindByG_U_F(groupId, userId, folderIds); 2558 } 2559 2560 /** 2561 * Returns a range of all the document library file entries that the user has permission to view where groupId = ? and userId = ? and folderId = any ?. 2562 * 2563 * <p> 2564 * 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.DLFileEntryModelImpl}. 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. 2565 * </p> 2566 * 2567 * @param groupId the group ID 2568 * @param userId the user ID 2569 * @param folderIds the folder IDs 2570 * @param start the lower bound of the range of document library file entries 2571 * @param end the upper bound of the range of document library file entries (not inclusive) 2572 * @return the range of matching document library file entries that the user has permission to view 2573 * @throws SystemException if a system exception occurred 2574 */ 2575 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F( 2576 long groupId, long userId, long[] folderIds, int start, int end) 2577 throws com.liferay.portal.kernel.exception.SystemException { 2578 return getPersistence() 2579 .filterFindByG_U_F(groupId, userId, folderIds, start, end); 2580 } 2581 2582 /** 2583 * Returns an ordered range of all the document library file entries that the user has permission to view where groupId = ? and userId = ? and folderId = any ?. 2584 * 2585 * <p> 2586 * 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.DLFileEntryModelImpl}. 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. 2587 * </p> 2588 * 2589 * @param groupId the group ID 2590 * @param userId the user ID 2591 * @param folderIds the folder IDs 2592 * @param start the lower bound of the range of document library file entries 2593 * @param end the upper bound of the range of document library file entries (not inclusive) 2594 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2595 * @return the ordered range of matching document library file entries that the user has permission to view 2596 * @throws SystemException if a system exception occurred 2597 */ 2598 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F( 2599 long groupId, long userId, long[] folderIds, int start, int end, 2600 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2601 throws com.liferay.portal.kernel.exception.SystemException { 2602 return getPersistence() 2603 .filterFindByG_U_F(groupId, userId, folderIds, start, end, 2604 orderByComparator); 2605 } 2606 2607 /** 2608 * Returns all the document library file entries where groupId = ? and userId = ? and folderId = any ?. 2609 * 2610 * <p> 2611 * 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.DLFileEntryModelImpl}. 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. 2612 * </p> 2613 * 2614 * @param groupId the group ID 2615 * @param userId the user ID 2616 * @param folderIds the folder IDs 2617 * @return the matching document library file entries 2618 * @throws SystemException if a system exception occurred 2619 */ 2620 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F( 2621 long groupId, long userId, long[] folderIds) 2622 throws com.liferay.portal.kernel.exception.SystemException { 2623 return getPersistence().findByG_U_F(groupId, userId, folderIds); 2624 } 2625 2626 /** 2627 * Returns a range of all the document library file entries where groupId = ? and userId = ? and folderId = any ?. 2628 * 2629 * <p> 2630 * 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.DLFileEntryModelImpl}. 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. 2631 * </p> 2632 * 2633 * @param groupId the group ID 2634 * @param userId the user ID 2635 * @param folderIds the folder IDs 2636 * @param start the lower bound of the range of document library file entries 2637 * @param end the upper bound of the range of document library file entries (not inclusive) 2638 * @return the range of matching document library file entries 2639 * @throws SystemException if a system exception occurred 2640 */ 2641 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F( 2642 long groupId, long userId, long[] folderIds, int start, int end) 2643 throws com.liferay.portal.kernel.exception.SystemException { 2644 return getPersistence() 2645 .findByG_U_F(groupId, userId, folderIds, start, end); 2646 } 2647 2648 /** 2649 * Returns an ordered range of all the document library file entries where groupId = ? and userId = ? and folderId = any ?. 2650 * 2651 * <p> 2652 * 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.DLFileEntryModelImpl}. 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. 2653 * </p> 2654 * 2655 * @param groupId the group ID 2656 * @param userId the user ID 2657 * @param folderIds the folder IDs 2658 * @param start the lower bound of the range of document library file entries 2659 * @param end the upper bound of the range of document library file entries (not inclusive) 2660 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2661 * @return the ordered range of matching document library file entries 2662 * @throws SystemException if a system exception occurred 2663 */ 2664 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F( 2665 long groupId, long userId, long[] folderIds, int start, int end, 2666 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2667 throws com.liferay.portal.kernel.exception.SystemException { 2668 return getPersistence() 2669 .findByG_U_F(groupId, userId, folderIds, start, end, 2670 orderByComparator); 2671 } 2672 2673 /** 2674 * Removes all the document library file entries where groupId = ? and userId = ? and folderId = ? from the database. 2675 * 2676 * @param groupId the group ID 2677 * @param userId the user ID 2678 * @param folderId the folder ID 2679 * @throws SystemException if a system exception occurred 2680 */ 2681 public static void removeByG_U_F(long groupId, long userId, long folderId) 2682 throws com.liferay.portal.kernel.exception.SystemException { 2683 getPersistence().removeByG_U_F(groupId, userId, folderId); 2684 } 2685 2686 /** 2687 * Returns the number of document library file entries where groupId = ? and userId = ? and folderId = ?. 2688 * 2689 * @param groupId the group ID 2690 * @param userId the user ID 2691 * @param folderId the folder ID 2692 * @return the number of matching document library file entries 2693 * @throws SystemException if a system exception occurred 2694 */ 2695 public static int countByG_U_F(long groupId, long userId, long folderId) 2696 throws com.liferay.portal.kernel.exception.SystemException { 2697 return getPersistence().countByG_U_F(groupId, userId, folderId); 2698 } 2699 2700 /** 2701 * Returns the number of document library file entries where groupId = ? and userId = ? and folderId = any ?. 2702 * 2703 * @param groupId the group ID 2704 * @param userId the user ID 2705 * @param folderIds the folder IDs 2706 * @return the number of matching document library file entries 2707 * @throws SystemException if a system exception occurred 2708 */ 2709 public static int countByG_U_F(long groupId, long userId, long[] folderIds) 2710 throws com.liferay.portal.kernel.exception.SystemException { 2711 return getPersistence().countByG_U_F(groupId, userId, folderIds); 2712 } 2713 2714 /** 2715 * Returns the number of document library file entries that the user has permission to view where groupId = ? and userId = ? and folderId = ?. 2716 * 2717 * @param groupId the group ID 2718 * @param userId the user ID 2719 * @param folderId the folder ID 2720 * @return the number of matching document library file entries that the user has permission to view 2721 * @throws SystemException if a system exception occurred 2722 */ 2723 public static int filterCountByG_U_F(long groupId, long userId, 2724 long folderId) 2725 throws com.liferay.portal.kernel.exception.SystemException { 2726 return getPersistence().filterCountByG_U_F(groupId, userId, folderId); 2727 } 2728 2729 /** 2730 * Returns the number of document library file entries that the user has permission to view where groupId = ? and userId = ? and folderId = any ?. 2731 * 2732 * @param groupId the group ID 2733 * @param userId the user ID 2734 * @param folderIds the folder IDs 2735 * @return the number of matching document library file entries that the user has permission to view 2736 * @throws SystemException if a system exception occurred 2737 */ 2738 public static int filterCountByG_U_F(long groupId, long userId, 2739 long[] folderIds) 2740 throws com.liferay.portal.kernel.exception.SystemException { 2741 return getPersistence().filterCountByG_U_F(groupId, userId, folderIds); 2742 } 2743 2744 /** 2745 * Returns the document library file entry where groupId = ? and folderId = ? and name = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryException} if it could not be found. 2746 * 2747 * @param groupId the group ID 2748 * @param folderId the folder ID 2749 * @param name the name 2750 * @return the matching document library file entry 2751 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 2752 * @throws SystemException if a system exception occurred 2753 */ 2754 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_N( 2755 long groupId, long folderId, java.lang.String name) 2756 throws com.liferay.portal.kernel.exception.SystemException, 2757 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2758 return getPersistence().findByG_F_N(groupId, folderId, name); 2759 } 2760 2761 /** 2762 * Returns the document library file entry where groupId = ? and folderId = ? and name = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 2763 * 2764 * @param groupId the group ID 2765 * @param folderId the folder ID 2766 * @param name the name 2767 * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2768 * @throws SystemException if a system exception occurred 2769 */ 2770 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N( 2771 long groupId, long folderId, java.lang.String name) 2772 throws com.liferay.portal.kernel.exception.SystemException { 2773 return getPersistence().fetchByG_F_N(groupId, folderId, name); 2774 } 2775 2776 /** 2777 * Returns the document library file entry where groupId = ? and folderId = ? and name = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 2778 * 2779 * @param groupId the group ID 2780 * @param folderId the folder ID 2781 * @param name the name 2782 * @param retrieveFromCache whether to use the finder cache 2783 * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2784 * @throws SystemException if a system exception occurred 2785 */ 2786 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N( 2787 long groupId, long folderId, java.lang.String name, 2788 boolean retrieveFromCache) 2789 throws com.liferay.portal.kernel.exception.SystemException { 2790 return getPersistence() 2791 .fetchByG_F_N(groupId, folderId, name, retrieveFromCache); 2792 } 2793 2794 /** 2795 * Removes the document library file entry where groupId = ? and folderId = ? and name = ? from the database. 2796 * 2797 * @param groupId the group ID 2798 * @param folderId the folder ID 2799 * @param name the name 2800 * @return the document library file entry that was removed 2801 * @throws SystemException if a system exception occurred 2802 */ 2803 public static com.liferay.portlet.documentlibrary.model.DLFileEntry removeByG_F_N( 2804 long groupId, long folderId, java.lang.String name) 2805 throws com.liferay.portal.kernel.exception.SystemException, 2806 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2807 return getPersistence().removeByG_F_N(groupId, folderId, name); 2808 } 2809 2810 /** 2811 * Returns the number of document library file entries where groupId = ? and folderId = ? and name = ?. 2812 * 2813 * @param groupId the group ID 2814 * @param folderId the folder ID 2815 * @param name the name 2816 * @return the number of matching document library file entries 2817 * @throws SystemException if a system exception occurred 2818 */ 2819 public static int countByG_F_N(long groupId, long folderId, 2820 java.lang.String name) 2821 throws com.liferay.portal.kernel.exception.SystemException { 2822 return getPersistence().countByG_F_N(groupId, folderId, name); 2823 } 2824 2825 /** 2826 * Returns the document library file entry where groupId = ? and folderId = ? and title = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryException} if it could not be found. 2827 * 2828 * @param groupId the group ID 2829 * @param folderId the folder ID 2830 * @param title the title 2831 * @return the matching document library file entry 2832 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 2833 * @throws SystemException if a system exception occurred 2834 */ 2835 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_T( 2836 long groupId, long folderId, java.lang.String title) 2837 throws com.liferay.portal.kernel.exception.SystemException, 2838 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2839 return getPersistence().findByG_F_T(groupId, folderId, title); 2840 } 2841 2842 /** 2843 * Returns the document library file entry where groupId = ? and folderId = ? and title = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 2844 * 2845 * @param groupId the group ID 2846 * @param folderId the folder ID 2847 * @param title the title 2848 * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2849 * @throws SystemException if a system exception occurred 2850 */ 2851 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T( 2852 long groupId, long folderId, java.lang.String title) 2853 throws com.liferay.portal.kernel.exception.SystemException { 2854 return getPersistence().fetchByG_F_T(groupId, folderId, title); 2855 } 2856 2857 /** 2858 * Returns the document library file entry where groupId = ? and folderId = ? and title = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 2859 * 2860 * @param groupId the group ID 2861 * @param folderId the folder ID 2862 * @param title the title 2863 * @param retrieveFromCache whether to use the finder cache 2864 * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2865 * @throws SystemException if a system exception occurred 2866 */ 2867 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T( 2868 long groupId, long folderId, java.lang.String title, 2869 boolean retrieveFromCache) 2870 throws com.liferay.portal.kernel.exception.SystemException { 2871 return getPersistence() 2872 .fetchByG_F_T(groupId, folderId, title, retrieveFromCache); 2873 } 2874 2875 /** 2876 * Removes the document library file entry where groupId = ? and folderId = ? and title = ? from the database. 2877 * 2878 * @param groupId the group ID 2879 * @param folderId the folder ID 2880 * @param title the title 2881 * @return the document library file entry that was removed 2882 * @throws SystemException if a system exception occurred 2883 */ 2884 public static com.liferay.portlet.documentlibrary.model.DLFileEntry removeByG_F_T( 2885 long groupId, long folderId, java.lang.String title) 2886 throws com.liferay.portal.kernel.exception.SystemException, 2887 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2888 return getPersistence().removeByG_F_T(groupId, folderId, title); 2889 } 2890 2891 /** 2892 * Returns the number of document library file entries where groupId = ? and folderId = ? and title = ?. 2893 * 2894 * @param groupId the group ID 2895 * @param folderId the folder ID 2896 * @param title the title 2897 * @return the number of matching document library file entries 2898 * @throws SystemException if a system exception occurred 2899 */ 2900 public static int countByG_F_T(long groupId, long folderId, 2901 java.lang.String title) 2902 throws com.liferay.portal.kernel.exception.SystemException { 2903 return getPersistence().countByG_F_T(groupId, folderId, title); 2904 } 2905 2906 /** 2907 * Returns all the document library file entries where groupId = ? and folderId = ? and fileEntryTypeId = ?. 2908 * 2909 * @param groupId the group ID 2910 * @param folderId the folder ID 2911 * @param fileEntryTypeId the file entry type ID 2912 * @return the matching document library file entries 2913 * @throws SystemException if a system exception occurred 2914 */ 2915 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F( 2916 long groupId, long folderId, long fileEntryTypeId) 2917 throws com.liferay.portal.kernel.exception.SystemException { 2918 return getPersistence().findByG_F_F(groupId, folderId, fileEntryTypeId); 2919 } 2920 2921 /** 2922 * Returns a range of all the document library file entries where groupId = ? and folderId = ? and fileEntryTypeId = ?. 2923 * 2924 * <p> 2925 * 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.DLFileEntryModelImpl}. 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. 2926 * </p> 2927 * 2928 * @param groupId the group ID 2929 * @param folderId the folder ID 2930 * @param fileEntryTypeId the file entry type ID 2931 * @param start the lower bound of the range of document library file entries 2932 * @param end the upper bound of the range of document library file entries (not inclusive) 2933 * @return the range of matching document library file entries 2934 * @throws SystemException if a system exception occurred 2935 */ 2936 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F( 2937 long groupId, long folderId, long fileEntryTypeId, int start, int end) 2938 throws com.liferay.portal.kernel.exception.SystemException { 2939 return getPersistence() 2940 .findByG_F_F(groupId, folderId, fileEntryTypeId, start, end); 2941 } 2942 2943 /** 2944 * Returns an ordered range of all the document library file entries where groupId = ? and folderId = ? and fileEntryTypeId = ?. 2945 * 2946 * <p> 2947 * 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.DLFileEntryModelImpl}. 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. 2948 * </p> 2949 * 2950 * @param groupId the group ID 2951 * @param folderId the folder ID 2952 * @param fileEntryTypeId the file entry type ID 2953 * @param start the lower bound of the range of document library file entries 2954 * @param end the upper bound of the range of document library file entries (not inclusive) 2955 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 2956 * @return the ordered range of matching document library file entries 2957 * @throws SystemException if a system exception occurred 2958 */ 2959 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F( 2960 long groupId, long folderId, long fileEntryTypeId, int start, int end, 2961 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2962 throws com.liferay.portal.kernel.exception.SystemException { 2963 return getPersistence() 2964 .findByG_F_F(groupId, folderId, fileEntryTypeId, start, end, 2965 orderByComparator); 2966 } 2967 2968 /** 2969 * Returns the first document library file entry in the ordered set where groupId = ? and folderId = ? and fileEntryTypeId = ?. 2970 * 2971 * @param groupId the group ID 2972 * @param folderId the folder ID 2973 * @param fileEntryTypeId the file entry type ID 2974 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2975 * @return the first matching document library file entry 2976 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 2977 * @throws SystemException if a system exception occurred 2978 */ 2979 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_F_First( 2980 long groupId, long folderId, long fileEntryTypeId, 2981 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 2982 throws com.liferay.portal.kernel.exception.SystemException, 2983 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 2984 return getPersistence() 2985 .findByG_F_F_First(groupId, folderId, fileEntryTypeId, 2986 orderByComparator); 2987 } 2988 2989 /** 2990 * Returns the first document library file entry in the ordered set where groupId = ? and folderId = ? and fileEntryTypeId = ?. 2991 * 2992 * @param groupId the group ID 2993 * @param folderId the folder ID 2994 * @param fileEntryTypeId the file entry type ID 2995 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 2996 * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 2997 * @throws SystemException if a system exception occurred 2998 */ 2999 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_F_First( 3000 long groupId, long folderId, long fileEntryTypeId, 3001 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3002 throws com.liferay.portal.kernel.exception.SystemException { 3003 return getPersistence() 3004 .fetchByG_F_F_First(groupId, folderId, fileEntryTypeId, 3005 orderByComparator); 3006 } 3007 3008 /** 3009 * Returns the last document library file entry in the ordered set where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3010 * 3011 * @param groupId the group ID 3012 * @param folderId the folder ID 3013 * @param fileEntryTypeId the file entry type ID 3014 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3015 * @return the last matching document library file entry 3016 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found 3017 * @throws SystemException if a system exception occurred 3018 */ 3019 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_F_Last( 3020 long groupId, long folderId, long fileEntryTypeId, 3021 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3022 throws com.liferay.portal.kernel.exception.SystemException, 3023 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 3024 return getPersistence() 3025 .findByG_F_F_Last(groupId, folderId, fileEntryTypeId, 3026 orderByComparator); 3027 } 3028 3029 /** 3030 * Returns the last document library file entry in the ordered set where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3031 * 3032 * @param groupId the group ID 3033 * @param folderId the folder ID 3034 * @param fileEntryTypeId the file entry type ID 3035 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3036 * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found 3037 * @throws SystemException if a system exception occurred 3038 */ 3039 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_F_Last( 3040 long groupId, long folderId, long fileEntryTypeId, 3041 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3042 throws com.liferay.portal.kernel.exception.SystemException { 3043 return getPersistence() 3044 .fetchByG_F_F_Last(groupId, folderId, fileEntryTypeId, 3045 orderByComparator); 3046 } 3047 3048 /** 3049 * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3050 * 3051 * @param fileEntryId the primary key of the current document library file entry 3052 * @param groupId the group ID 3053 * @param folderId the folder ID 3054 * @param fileEntryTypeId the file entry type ID 3055 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3056 * @return the previous, current, and next document library file entry 3057 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 3058 * @throws SystemException if a system exception occurred 3059 */ 3060 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_F_F_PrevAndNext( 3061 long fileEntryId, long groupId, long folderId, long fileEntryTypeId, 3062 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3063 throws com.liferay.portal.kernel.exception.SystemException, 3064 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 3065 return getPersistence() 3066 .findByG_F_F_PrevAndNext(fileEntryId, groupId, folderId, 3067 fileEntryTypeId, orderByComparator); 3068 } 3069 3070 /** 3071 * Returns all the document library file entries that the user has permission to view where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3072 * 3073 * @param groupId the group ID 3074 * @param folderId the folder ID 3075 * @param fileEntryTypeId the file entry type ID 3076 * @return the matching document library file entries that the user has permission to view 3077 * @throws SystemException if a system exception occurred 3078 */ 3079 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F( 3080 long groupId, long folderId, long fileEntryTypeId) 3081 throws com.liferay.portal.kernel.exception.SystemException { 3082 return getPersistence() 3083 .filterFindByG_F_F(groupId, folderId, fileEntryTypeId); 3084 } 3085 3086 /** 3087 * Returns a range of all the document library file entries that the user has permission to view where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3088 * 3089 * <p> 3090 * 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.DLFileEntryModelImpl}. 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. 3091 * </p> 3092 * 3093 * @param groupId the group ID 3094 * @param folderId the folder ID 3095 * @param fileEntryTypeId the file entry type ID 3096 * @param start the lower bound of the range of document library file entries 3097 * @param end the upper bound of the range of document library file entries (not inclusive) 3098 * @return the range of matching document library file entries that the user has permission to view 3099 * @throws SystemException if a system exception occurred 3100 */ 3101 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F( 3102 long groupId, long folderId, long fileEntryTypeId, int start, int end) 3103 throws com.liferay.portal.kernel.exception.SystemException { 3104 return getPersistence() 3105 .filterFindByG_F_F(groupId, folderId, fileEntryTypeId, 3106 start, end); 3107 } 3108 3109 /** 3110 * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3111 * 3112 * <p> 3113 * 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.DLFileEntryModelImpl}. 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. 3114 * </p> 3115 * 3116 * @param groupId the group ID 3117 * @param folderId the folder ID 3118 * @param fileEntryTypeId the file entry type ID 3119 * @param start the lower bound of the range of document library file entries 3120 * @param end the upper bound of the range of document library file entries (not inclusive) 3121 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3122 * @return the ordered range of matching document library file entries that the user has permission to view 3123 * @throws SystemException if a system exception occurred 3124 */ 3125 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F( 3126 long groupId, long folderId, long fileEntryTypeId, int start, int end, 3127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3128 throws com.liferay.portal.kernel.exception.SystemException { 3129 return getPersistence() 3130 .filterFindByG_F_F(groupId, folderId, fileEntryTypeId, 3131 start, end, orderByComparator); 3132 } 3133 3134 /** 3135 * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3136 * 3137 * @param fileEntryId the primary key of the current document library file entry 3138 * @param groupId the group ID 3139 * @param folderId the folder ID 3140 * @param fileEntryTypeId the file entry type ID 3141 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 3142 * @return the previous, current, and next document library file entry 3143 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 3144 * @throws SystemException if a system exception occurred 3145 */ 3146 public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByG_F_F_PrevAndNext( 3147 long fileEntryId, long groupId, long folderId, long fileEntryTypeId, 3148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3149 throws com.liferay.portal.kernel.exception.SystemException, 3150 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 3151 return getPersistence() 3152 .filterFindByG_F_F_PrevAndNext(fileEntryId, groupId, 3153 folderId, fileEntryTypeId, orderByComparator); 3154 } 3155 3156 /** 3157 * Returns all the document library file entries that the user has permission to view where groupId = ? and folderId = any ? and fileEntryTypeId = ?. 3158 * 3159 * @param groupId the group ID 3160 * @param folderIds the folder IDs 3161 * @param fileEntryTypeId the file entry type ID 3162 * @return the matching document library file entries that the user has permission to view 3163 * @throws SystemException if a system exception occurred 3164 */ 3165 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F( 3166 long groupId, long[] folderIds, long fileEntryTypeId) 3167 throws com.liferay.portal.kernel.exception.SystemException { 3168 return getPersistence() 3169 .filterFindByG_F_F(groupId, folderIds, fileEntryTypeId); 3170 } 3171 3172 /** 3173 * Returns a range of all the document library file entries that the user has permission to view where groupId = ? and folderId = any ? and fileEntryTypeId = ?. 3174 * 3175 * <p> 3176 * 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.DLFileEntryModelImpl}. 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. 3177 * </p> 3178 * 3179 * @param groupId the group ID 3180 * @param folderIds the folder IDs 3181 * @param fileEntryTypeId the file entry type ID 3182 * @param start the lower bound of the range of document library file entries 3183 * @param end the upper bound of the range of document library file entries (not inclusive) 3184 * @return the range of matching document library file entries that the user has permission to view 3185 * @throws SystemException if a system exception occurred 3186 */ 3187 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F( 3188 long groupId, long[] folderIds, long fileEntryTypeId, int start, int end) 3189 throws com.liferay.portal.kernel.exception.SystemException { 3190 return getPersistence() 3191 .filterFindByG_F_F(groupId, folderIds, fileEntryTypeId, 3192 start, end); 3193 } 3194 3195 /** 3196 * Returns an ordered range of all the document library file entries that the user has permission to view where groupId = ? and folderId = any ? and fileEntryTypeId = ?. 3197 * 3198 * <p> 3199 * 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.DLFileEntryModelImpl}. 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. 3200 * </p> 3201 * 3202 * @param groupId the group ID 3203 * @param folderIds the folder IDs 3204 * @param fileEntryTypeId the file entry type ID 3205 * @param start the lower bound of the range of document library file entries 3206 * @param end the upper bound of the range of document library file entries (not inclusive) 3207 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3208 * @return the ordered range of matching document library file entries that the user has permission to view 3209 * @throws SystemException if a system exception occurred 3210 */ 3211 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F( 3212 long groupId, long[] folderIds, long fileEntryTypeId, int start, 3213 int end, 3214 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3215 throws com.liferay.portal.kernel.exception.SystemException { 3216 return getPersistence() 3217 .filterFindByG_F_F(groupId, folderIds, fileEntryTypeId, 3218 start, end, orderByComparator); 3219 } 3220 3221 /** 3222 * Returns all the document library file entries where groupId = ? and folderId = any ? and fileEntryTypeId = ?. 3223 * 3224 * <p> 3225 * 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.DLFileEntryModelImpl}. 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. 3226 * </p> 3227 * 3228 * @param groupId the group ID 3229 * @param folderIds the folder IDs 3230 * @param fileEntryTypeId the file entry type ID 3231 * @return the matching document library file entries 3232 * @throws SystemException if a system exception occurred 3233 */ 3234 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F( 3235 long groupId, long[] folderIds, long fileEntryTypeId) 3236 throws com.liferay.portal.kernel.exception.SystemException { 3237 return getPersistence().findByG_F_F(groupId, folderIds, fileEntryTypeId); 3238 } 3239 3240 /** 3241 * Returns a range of all the document library file entries where groupId = ? and folderId = any ? and fileEntryTypeId = ?. 3242 * 3243 * <p> 3244 * 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.DLFileEntryModelImpl}. 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. 3245 * </p> 3246 * 3247 * @param groupId the group ID 3248 * @param folderIds the folder IDs 3249 * @param fileEntryTypeId the file entry type ID 3250 * @param start the lower bound of the range of document library file entries 3251 * @param end the upper bound of the range of document library file entries (not inclusive) 3252 * @return the range of matching document library file entries 3253 * @throws SystemException if a system exception occurred 3254 */ 3255 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F( 3256 long groupId, long[] folderIds, long fileEntryTypeId, int start, int end) 3257 throws com.liferay.portal.kernel.exception.SystemException { 3258 return getPersistence() 3259 .findByG_F_F(groupId, folderIds, fileEntryTypeId, start, end); 3260 } 3261 3262 /** 3263 * Returns an ordered range of all the document library file entries where groupId = ? and folderId = any ? and fileEntryTypeId = ?. 3264 * 3265 * <p> 3266 * 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.DLFileEntryModelImpl}. 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. 3267 * </p> 3268 * 3269 * @param groupId the group ID 3270 * @param folderIds the folder IDs 3271 * @param fileEntryTypeId the file entry type ID 3272 * @param start the lower bound of the range of document library file entries 3273 * @param end the upper bound of the range of document library file entries (not inclusive) 3274 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3275 * @return the ordered range of matching document library file entries 3276 * @throws SystemException if a system exception occurred 3277 */ 3278 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F( 3279 long groupId, long[] folderIds, long fileEntryTypeId, int start, 3280 int end, 3281 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3282 throws com.liferay.portal.kernel.exception.SystemException { 3283 return getPersistence() 3284 .findByG_F_F(groupId, folderIds, fileEntryTypeId, start, 3285 end, orderByComparator); 3286 } 3287 3288 /** 3289 * Removes all the document library file entries where groupId = ? and folderId = ? and fileEntryTypeId = ? from the database. 3290 * 3291 * @param groupId the group ID 3292 * @param folderId the folder ID 3293 * @param fileEntryTypeId the file entry type ID 3294 * @throws SystemException if a system exception occurred 3295 */ 3296 public static void removeByG_F_F(long groupId, long folderId, 3297 long fileEntryTypeId) 3298 throws com.liferay.portal.kernel.exception.SystemException { 3299 getPersistence().removeByG_F_F(groupId, folderId, fileEntryTypeId); 3300 } 3301 3302 /** 3303 * Returns the number of document library file entries where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3304 * 3305 * @param groupId the group ID 3306 * @param folderId the folder ID 3307 * @param fileEntryTypeId the file entry type ID 3308 * @return the number of matching document library file entries 3309 * @throws SystemException if a system exception occurred 3310 */ 3311 public static int countByG_F_F(long groupId, long folderId, 3312 long fileEntryTypeId) 3313 throws com.liferay.portal.kernel.exception.SystemException { 3314 return getPersistence().countByG_F_F(groupId, folderId, fileEntryTypeId); 3315 } 3316 3317 /** 3318 * Returns the number of document library file entries where groupId = ? and folderId = any ? and fileEntryTypeId = ?. 3319 * 3320 * @param groupId the group ID 3321 * @param folderIds the folder IDs 3322 * @param fileEntryTypeId the file entry type ID 3323 * @return the number of matching document library file entries 3324 * @throws SystemException if a system exception occurred 3325 */ 3326 public static int countByG_F_F(long groupId, long[] folderIds, 3327 long fileEntryTypeId) 3328 throws com.liferay.portal.kernel.exception.SystemException { 3329 return getPersistence().countByG_F_F(groupId, folderIds, fileEntryTypeId); 3330 } 3331 3332 /** 3333 * Returns the number of document library file entries that the user has permission to view where groupId = ? and folderId = ? and fileEntryTypeId = ?. 3334 * 3335 * @param groupId the group ID 3336 * @param folderId the folder ID 3337 * @param fileEntryTypeId the file entry type ID 3338 * @return the number of matching document library file entries that the user has permission to view 3339 * @throws SystemException if a system exception occurred 3340 */ 3341 public static int filterCountByG_F_F(long groupId, long folderId, 3342 long fileEntryTypeId) 3343 throws com.liferay.portal.kernel.exception.SystemException { 3344 return getPersistence() 3345 .filterCountByG_F_F(groupId, folderId, fileEntryTypeId); 3346 } 3347 3348 /** 3349 * Returns the number of document library file entries that the user has permission to view where groupId = ? and folderId = any ? and fileEntryTypeId = ?. 3350 * 3351 * @param groupId the group ID 3352 * @param folderIds the folder IDs 3353 * @param fileEntryTypeId the file entry type ID 3354 * @return the number of matching document library file entries that the user has permission to view 3355 * @throws SystemException if a system exception occurred 3356 */ 3357 public static int filterCountByG_F_F(long groupId, long[] folderIds, 3358 long fileEntryTypeId) 3359 throws com.liferay.portal.kernel.exception.SystemException { 3360 return getPersistence() 3361 .filterCountByG_F_F(groupId, folderIds, fileEntryTypeId); 3362 } 3363 3364 /** 3365 * Caches the document library file entry in the entity cache if it is enabled. 3366 * 3367 * @param dlFileEntry the document library file entry 3368 */ 3369 public static void cacheResult( 3370 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) { 3371 getPersistence().cacheResult(dlFileEntry); 3372 } 3373 3374 /** 3375 * Caches the document library file entries in the entity cache if it is enabled. 3376 * 3377 * @param dlFileEntries the document library file entries 3378 */ 3379 public static void cacheResult( 3380 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dlFileEntries) { 3381 getPersistence().cacheResult(dlFileEntries); 3382 } 3383 3384 /** 3385 * Creates a new document library file entry with the primary key. Does not add the document library file entry to the database. 3386 * 3387 * @param fileEntryId the primary key for the new document library file entry 3388 * @return the new document library file entry 3389 */ 3390 public static com.liferay.portlet.documentlibrary.model.DLFileEntry create( 3391 long fileEntryId) { 3392 return getPersistence().create(fileEntryId); 3393 } 3394 3395 /** 3396 * Removes the document library file entry with the primary key from the database. Also notifies the appropriate model listeners. 3397 * 3398 * @param fileEntryId the primary key of the document library file entry 3399 * @return the document library file entry that was removed 3400 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 3401 * @throws SystemException if a system exception occurred 3402 */ 3403 public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove( 3404 long fileEntryId) 3405 throws com.liferay.portal.kernel.exception.SystemException, 3406 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 3407 return getPersistence().remove(fileEntryId); 3408 } 3409 3410 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl( 3411 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) 3412 throws com.liferay.portal.kernel.exception.SystemException { 3413 return getPersistence().updateImpl(dlFileEntry); 3414 } 3415 3416 /** 3417 * Returns the document library file entry with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryException} if it could not be found. 3418 * 3419 * @param fileEntryId the primary key of the document library file entry 3420 * @return the document library file entry 3421 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found 3422 * @throws SystemException if a system exception occurred 3423 */ 3424 public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey( 3425 long fileEntryId) 3426 throws com.liferay.portal.kernel.exception.SystemException, 3427 com.liferay.portlet.documentlibrary.NoSuchFileEntryException { 3428 return getPersistence().findByPrimaryKey(fileEntryId); 3429 } 3430 3431 /** 3432 * Returns the document library file entry with the primary key or returns <code>null</code> if it could not be found. 3433 * 3434 * @param fileEntryId the primary key of the document library file entry 3435 * @return the document library file entry, or <code>null</code> if a document library file entry with the primary key could not be found 3436 * @throws SystemException if a system exception occurred 3437 */ 3438 public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey( 3439 long fileEntryId) 3440 throws com.liferay.portal.kernel.exception.SystemException { 3441 return getPersistence().fetchByPrimaryKey(fileEntryId); 3442 } 3443 3444 /** 3445 * Returns all the document library file entries. 3446 * 3447 * @return the document library file entries 3448 * @throws SystemException if a system exception occurred 3449 */ 3450 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll() 3451 throws com.liferay.portal.kernel.exception.SystemException { 3452 return getPersistence().findAll(); 3453 } 3454 3455 /** 3456 * Returns a range of all the document library file entries. 3457 * 3458 * <p> 3459 * 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.DLFileEntryModelImpl}. 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. 3460 * </p> 3461 * 3462 * @param start the lower bound of the range of document library file entries 3463 * @param end the upper bound of the range of document library file entries (not inclusive) 3464 * @return the range of document library file entries 3465 * @throws SystemException if a system exception occurred 3466 */ 3467 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll( 3468 int start, int end) 3469 throws com.liferay.portal.kernel.exception.SystemException { 3470 return getPersistence().findAll(start, end); 3471 } 3472 3473 /** 3474 * Returns an ordered range of all the document library file entries. 3475 * 3476 * <p> 3477 * 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.DLFileEntryModelImpl}. 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. 3478 * </p> 3479 * 3480 * @param start the lower bound of the range of document library file entries 3481 * @param end the upper bound of the range of document library file entries (not inclusive) 3482 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 3483 * @return the ordered range of document library file entries 3484 * @throws SystemException if a system exception occurred 3485 */ 3486 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll( 3487 int start, int end, 3488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 3489 throws com.liferay.portal.kernel.exception.SystemException { 3490 return getPersistence().findAll(start, end, orderByComparator); 3491 } 3492 3493 /** 3494 * Removes all the document library file entries from the database. 3495 * 3496 * @throws SystemException if a system exception occurred 3497 */ 3498 public static void removeAll() 3499 throws com.liferay.portal.kernel.exception.SystemException { 3500 getPersistence().removeAll(); 3501 } 3502 3503 /** 3504 * Returns the number of document library file entries. 3505 * 3506 * @return the number of document library file entries 3507 * @throws SystemException if a system exception occurred 3508 */ 3509 public static int countAll() 3510 throws com.liferay.portal.kernel.exception.SystemException { 3511 return getPersistence().countAll(); 3512 } 3513 3514 public static DLFileEntryPersistence getPersistence() { 3515 if (_persistence == null) { 3516 _persistence = (DLFileEntryPersistence)PortalBeanLocatorUtil.locate(DLFileEntryPersistence.class.getName()); 3517 3518 ReferenceRegistry.registerReference(DLFileEntryUtil.class, 3519 "_persistence"); 3520 } 3521 3522 return _persistence; 3523 } 3524 3525 /** 3526 * @deprecated As of 6.2.0 3527 */ 3528 public void setPersistence(DLFileEntryPersistence persistence) { 3529 } 3530 3531 private static DLFileEntryPersistence _persistence; 3532 }