001 /** 002 * Copyright (c) 2000-present 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.util.OrderByComparator; 022 import com.liferay.portal.kernel.util.ReferenceRegistry; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata; 026 027 import java.util.List; 028 029 /** 030 * The persistence utility for the document library file entry metadata service. This utility wraps {@link DLFileEntryMetadataPersistenceImpl} 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. 031 * 032 * <p> 033 * Caching information and settings can be found in <code>portal.properties</code> 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see DLFileEntryMetadataPersistence 038 * @see DLFileEntryMetadataPersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class DLFileEntryMetadataUtil { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 047 */ 048 049 /** 050 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 051 */ 052 public static void clearCache() { 053 getPersistence().clearCache(); 054 } 055 056 /** 057 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 058 */ 059 public static void clearCache(DLFileEntryMetadata dlFileEntryMetadata) { 060 getPersistence().clearCache(dlFileEntryMetadata); 061 } 062 063 /** 064 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 065 */ 066 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { 067 return getPersistence().countWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 072 */ 073 public static List<DLFileEntryMetadata> findWithDynamicQuery( 074 DynamicQuery dynamicQuery) { 075 return getPersistence().findWithDynamicQuery(dynamicQuery); 076 } 077 078 /** 079 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 080 */ 081 public static List<DLFileEntryMetadata> findWithDynamicQuery( 082 DynamicQuery dynamicQuery, int start, int end) { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<DLFileEntryMetadata> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator<DLFileEntryMetadata> orderByComparator) { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 099 */ 100 public static DLFileEntryMetadata update( 101 DLFileEntryMetadata dlFileEntryMetadata) { 102 return getPersistence().update(dlFileEntryMetadata); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 107 */ 108 public static DLFileEntryMetadata update( 109 DLFileEntryMetadata dlFileEntryMetadata, ServiceContext serviceContext) { 110 return getPersistence().update(dlFileEntryMetadata, serviceContext); 111 } 112 113 /** 114 * Returns all the document library file entry metadatas where uuid = ?. 115 * 116 * @param uuid the uuid 117 * @return the matching document library file entry metadatas 118 */ 119 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 120 java.lang.String uuid) { 121 return getPersistence().findByUuid(uuid); 122 } 123 124 /** 125 * Returns a range of all the document library file entry metadatas where uuid = ?. 126 * 127 * <p> 128 * 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.DLFileEntryMetadataModelImpl}. 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. 129 * </p> 130 * 131 * @param uuid the uuid 132 * @param start the lower bound of the range of document library file entry metadatas 133 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 134 * @return the range of matching document library file entry metadatas 135 */ 136 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 137 java.lang.String uuid, int start, int end) { 138 return getPersistence().findByUuid(uuid, start, end); 139 } 140 141 /** 142 * Returns an ordered range of all the document library file entry metadatas where uuid = ?. 143 * 144 * <p> 145 * 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.DLFileEntryMetadataModelImpl}. 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. 146 * </p> 147 * 148 * @param uuid the uuid 149 * @param start the lower bound of the range of document library file entry metadatas 150 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 151 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 152 * @return the ordered range of matching document library file entry metadatas 153 */ 154 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid( 155 java.lang.String uuid, int start, int end, 156 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 157 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 158 } 159 160 /** 161 * Returns the first document library file entry metadata in the ordered set where uuid = ?. 162 * 163 * @param uuid the uuid 164 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 165 * @return the first matching document library file entry metadata 166 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 167 */ 168 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_First( 169 java.lang.String uuid, 170 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 171 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 172 return getPersistence().findByUuid_First(uuid, orderByComparator); 173 } 174 175 /** 176 * Returns the first document library file entry metadata in the ordered set where uuid = ?. 177 * 178 * @param uuid the uuid 179 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 180 * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 181 */ 182 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_First( 183 java.lang.String uuid, 184 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 185 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 186 } 187 188 /** 189 * Returns the last document library file entry metadata in the ordered set where uuid = ?. 190 * 191 * @param uuid the uuid 192 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 193 * @return the last matching document library file entry metadata 194 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 195 */ 196 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_Last( 197 java.lang.String uuid, 198 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 199 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 200 return getPersistence().findByUuid_Last(uuid, orderByComparator); 201 } 202 203 /** 204 * Returns the last document library file entry metadata in the ordered set where uuid = ?. 205 * 206 * @param uuid the uuid 207 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 208 * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 209 */ 210 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_Last( 211 java.lang.String uuid, 212 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 213 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 214 } 215 216 /** 217 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ?. 218 * 219 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 220 * @param uuid the uuid 221 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 222 * @return the previous, current, and next document library file entry metadata 223 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 224 */ 225 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByUuid_PrevAndNext( 226 long fileEntryMetadataId, java.lang.String uuid, 227 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 228 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 229 return getPersistence() 230 .findByUuid_PrevAndNext(fileEntryMetadataId, uuid, 231 orderByComparator); 232 } 233 234 /** 235 * Removes all the document library file entry metadatas where uuid = ? from the database. 236 * 237 * @param uuid the uuid 238 */ 239 public static void removeByUuid(java.lang.String uuid) { 240 getPersistence().removeByUuid(uuid); 241 } 242 243 /** 244 * Returns the number of document library file entry metadatas where uuid = ?. 245 * 246 * @param uuid the uuid 247 * @return the number of matching document library file entry metadatas 248 */ 249 public static int countByUuid(java.lang.String uuid) { 250 return getPersistence().countByUuid(uuid); 251 } 252 253 /** 254 * Returns all the document library file entry metadatas where fileEntryTypeId = ?. 255 * 256 * @param fileEntryTypeId the file entry type ID 257 * @return the matching document library file entry metadatas 258 */ 259 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 260 long fileEntryTypeId) { 261 return getPersistence().findByFileEntryTypeId(fileEntryTypeId); 262 } 263 264 /** 265 * Returns a range of all the document library file entry metadatas where fileEntryTypeId = ?. 266 * 267 * <p> 268 * 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.DLFileEntryMetadataModelImpl}. 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. 269 * </p> 270 * 271 * @param fileEntryTypeId the file entry type ID 272 * @param start the lower bound of the range of document library file entry metadatas 273 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 274 * @return the range of matching document library file entry metadatas 275 */ 276 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 277 long fileEntryTypeId, int start, int end) { 278 return getPersistence() 279 .findByFileEntryTypeId(fileEntryTypeId, start, end); 280 } 281 282 /** 283 * Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = ?. 284 * 285 * <p> 286 * 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.DLFileEntryMetadataModelImpl}. 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. 287 * </p> 288 * 289 * @param fileEntryTypeId the file entry type ID 290 * @param start the lower bound of the range of document library file entry metadatas 291 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 292 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 293 * @return the ordered range of matching document library file entry metadatas 294 */ 295 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId( 296 long fileEntryTypeId, int start, int end, 297 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 298 return getPersistence() 299 .findByFileEntryTypeId(fileEntryTypeId, start, end, 300 orderByComparator); 301 } 302 303 /** 304 * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. 305 * 306 * @param fileEntryTypeId the file entry type ID 307 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 308 * @return the first matching document library file entry metadata 309 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 310 */ 311 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_First( 312 long fileEntryTypeId, 313 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 314 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 315 return getPersistence() 316 .findByFileEntryTypeId_First(fileEntryTypeId, 317 orderByComparator); 318 } 319 320 /** 321 * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = ?. 322 * 323 * @param fileEntryTypeId the file entry type ID 324 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 325 * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 326 */ 327 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_First( 328 long fileEntryTypeId, 329 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 330 return getPersistence() 331 .fetchByFileEntryTypeId_First(fileEntryTypeId, 332 orderByComparator); 333 } 334 335 /** 336 * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. 337 * 338 * @param fileEntryTypeId the file entry type ID 339 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 340 * @return the last matching document library file entry metadata 341 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 342 */ 343 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_Last( 344 long fileEntryTypeId, 345 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 346 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 347 return getPersistence() 348 .findByFileEntryTypeId_Last(fileEntryTypeId, 349 orderByComparator); 350 } 351 352 /** 353 * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = ?. 354 * 355 * @param fileEntryTypeId the file entry type ID 356 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 357 * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 358 */ 359 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_Last( 360 long fileEntryTypeId, 361 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 362 return getPersistence() 363 .fetchByFileEntryTypeId_Last(fileEntryTypeId, 364 orderByComparator); 365 } 366 367 /** 368 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = ?. 369 * 370 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 371 * @param fileEntryTypeId the file entry type ID 372 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 373 * @return the previous, current, and next document library file entry metadata 374 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 375 */ 376 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext( 377 long fileEntryMetadataId, long fileEntryTypeId, 378 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 379 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 380 return getPersistence() 381 .findByFileEntryTypeId_PrevAndNext(fileEntryMetadataId, 382 fileEntryTypeId, orderByComparator); 383 } 384 385 /** 386 * Removes all the document library file entry metadatas where fileEntryTypeId = ? from the database. 387 * 388 * @param fileEntryTypeId the file entry type ID 389 */ 390 public static void removeByFileEntryTypeId(long fileEntryTypeId) { 391 getPersistence().removeByFileEntryTypeId(fileEntryTypeId); 392 } 393 394 /** 395 * Returns the number of document library file entry metadatas where fileEntryTypeId = ?. 396 * 397 * @param fileEntryTypeId the file entry type ID 398 * @return the number of matching document library file entry metadatas 399 */ 400 public static int countByFileEntryTypeId(long fileEntryTypeId) { 401 return getPersistence().countByFileEntryTypeId(fileEntryTypeId); 402 } 403 404 /** 405 * Returns all the document library file entry metadatas where fileEntryId = ?. 406 * 407 * @param fileEntryId the file entry ID 408 * @return the matching document library file entry metadatas 409 */ 410 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 411 long fileEntryId) { 412 return getPersistence().findByFileEntryId(fileEntryId); 413 } 414 415 /** 416 * Returns a range of all the document library file entry metadatas where fileEntryId = ?. 417 * 418 * <p> 419 * 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.DLFileEntryMetadataModelImpl}. 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. 420 * </p> 421 * 422 * @param fileEntryId the file entry ID 423 * @param start the lower bound of the range of document library file entry metadatas 424 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 425 * @return the range of matching document library file entry metadatas 426 */ 427 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 428 long fileEntryId, int start, int end) { 429 return getPersistence().findByFileEntryId(fileEntryId, start, end); 430 } 431 432 /** 433 * Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?. 434 * 435 * <p> 436 * 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.DLFileEntryMetadataModelImpl}. 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. 437 * </p> 438 * 439 * @param fileEntryId the file entry ID 440 * @param start the lower bound of the range of document library file entry metadatas 441 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 442 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 443 * @return the ordered range of matching document library file entry metadatas 444 */ 445 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId( 446 long fileEntryId, int start, int end, 447 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 448 return getPersistence() 449 .findByFileEntryId(fileEntryId, start, end, orderByComparator); 450 } 451 452 /** 453 * Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. 454 * 455 * @param fileEntryId the file entry ID 456 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 457 * @return the first matching document library file entry metadata 458 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 459 */ 460 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_First( 461 long fileEntryId, 462 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 463 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 464 return getPersistence() 465 .findByFileEntryId_First(fileEntryId, orderByComparator); 466 } 467 468 /** 469 * Returns the first document library file entry metadata in the ordered set where fileEntryId = ?. 470 * 471 * @param fileEntryId the file entry ID 472 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 473 * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 474 */ 475 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_First( 476 long fileEntryId, 477 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 478 return getPersistence() 479 .fetchByFileEntryId_First(fileEntryId, orderByComparator); 480 } 481 482 /** 483 * Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. 484 * 485 * @param fileEntryId the file entry ID 486 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 487 * @return the last matching document library file entry metadata 488 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 489 */ 490 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_Last( 491 long fileEntryId, 492 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 493 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 494 return getPersistence() 495 .findByFileEntryId_Last(fileEntryId, orderByComparator); 496 } 497 498 /** 499 * Returns the last document library file entry metadata in the ordered set where fileEntryId = ?. 500 * 501 * @param fileEntryId the file entry ID 502 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 503 * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 504 */ 505 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_Last( 506 long fileEntryId, 507 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 508 return getPersistence() 509 .fetchByFileEntryId_Last(fileEntryId, orderByComparator); 510 } 511 512 /** 513 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = ?. 514 * 515 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 516 * @param fileEntryId the file entry ID 517 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 518 * @return the previous, current, and next document library file entry metadata 519 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 520 */ 521 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryId_PrevAndNext( 522 long fileEntryMetadataId, long fileEntryId, 523 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 524 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 525 return getPersistence() 526 .findByFileEntryId_PrevAndNext(fileEntryMetadataId, 527 fileEntryId, orderByComparator); 528 } 529 530 /** 531 * Removes all the document library file entry metadatas where fileEntryId = ? from the database. 532 * 533 * @param fileEntryId the file entry ID 534 */ 535 public static void removeByFileEntryId(long fileEntryId) { 536 getPersistence().removeByFileEntryId(fileEntryId); 537 } 538 539 /** 540 * Returns the number of document library file entry metadatas where fileEntryId = ?. 541 * 542 * @param fileEntryId the file entry ID 543 * @return the number of matching document library file entry metadatas 544 */ 545 public static int countByFileEntryId(long fileEntryId) { 546 return getPersistence().countByFileEntryId(fileEntryId); 547 } 548 549 /** 550 * Returns all the document library file entry metadatas where fileVersionId = ?. 551 * 552 * @param fileVersionId the file version ID 553 * @return the matching document library file entry metadatas 554 */ 555 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 556 long fileVersionId) { 557 return getPersistence().findByFileVersionId(fileVersionId); 558 } 559 560 /** 561 * Returns a range of all the document library file entry metadatas where fileVersionId = ?. 562 * 563 * <p> 564 * 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.DLFileEntryMetadataModelImpl}. 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. 565 * </p> 566 * 567 * @param fileVersionId the file version ID 568 * @param start the lower bound of the range of document library file entry metadatas 569 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 570 * @return the range of matching document library file entry metadatas 571 */ 572 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 573 long fileVersionId, int start, int end) { 574 return getPersistence().findByFileVersionId(fileVersionId, start, end); 575 } 576 577 /** 578 * Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?. 579 * 580 * <p> 581 * 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.DLFileEntryMetadataModelImpl}. 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. 582 * </p> 583 * 584 * @param fileVersionId the file version ID 585 * @param start the lower bound of the range of document library file entry metadatas 586 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 587 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 588 * @return the ordered range of matching document library file entry metadatas 589 */ 590 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId( 591 long fileVersionId, int start, int end, 592 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 593 return getPersistence() 594 .findByFileVersionId(fileVersionId, start, end, 595 orderByComparator); 596 } 597 598 /** 599 * Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. 600 * 601 * @param fileVersionId the file version ID 602 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 603 * @return the first matching document library file entry metadata 604 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 605 */ 606 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_First( 607 long fileVersionId, 608 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 609 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 610 return getPersistence() 611 .findByFileVersionId_First(fileVersionId, orderByComparator); 612 } 613 614 /** 615 * Returns the first document library file entry metadata in the ordered set where fileVersionId = ?. 616 * 617 * @param fileVersionId the file version ID 618 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 619 * @return the first matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 620 */ 621 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_First( 622 long fileVersionId, 623 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 624 return getPersistence() 625 .fetchByFileVersionId_First(fileVersionId, orderByComparator); 626 } 627 628 /** 629 * Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. 630 * 631 * @param fileVersionId the file version ID 632 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 633 * @return the last matching document library file entry metadata 634 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 635 */ 636 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_Last( 637 long fileVersionId, 638 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 639 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 640 return getPersistence() 641 .findByFileVersionId_Last(fileVersionId, orderByComparator); 642 } 643 644 /** 645 * Returns the last document library file entry metadata in the ordered set where fileVersionId = ?. 646 * 647 * @param fileVersionId the file version ID 648 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 649 * @return the last matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 650 */ 651 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_Last( 652 long fileVersionId, 653 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 654 return getPersistence() 655 .fetchByFileVersionId_Last(fileVersionId, orderByComparator); 656 } 657 658 /** 659 * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = ?. 660 * 661 * @param fileEntryMetadataId the primary key of the current document library file entry metadata 662 * @param fileVersionId the file version ID 663 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 664 * @return the previous, current, and next document library file entry metadata 665 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 666 */ 667 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileVersionId_PrevAndNext( 668 long fileEntryMetadataId, long fileVersionId, 669 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) 670 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 671 return getPersistence() 672 .findByFileVersionId_PrevAndNext(fileEntryMetadataId, 673 fileVersionId, orderByComparator); 674 } 675 676 /** 677 * Removes all the document library file entry metadatas where fileVersionId = ? from the database. 678 * 679 * @param fileVersionId the file version ID 680 */ 681 public static void removeByFileVersionId(long fileVersionId) { 682 getPersistence().removeByFileVersionId(fileVersionId); 683 } 684 685 /** 686 * Returns the number of document library file entry metadatas where fileVersionId = ?. 687 * 688 * @param fileVersionId the file version ID 689 * @return the number of matching document library file entry metadatas 690 */ 691 public static int countByFileVersionId(long fileVersionId) { 692 return getPersistence().countByFileVersionId(fileVersionId); 693 } 694 695 /** 696 * Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found. 697 * 698 * @param DDMStructureId the d d m structure ID 699 * @param fileVersionId the file version ID 700 * @return the matching document library file entry metadata 701 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found 702 */ 703 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByD_F( 704 long DDMStructureId, long fileVersionId) 705 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 706 return getPersistence().findByD_F(DDMStructureId, fileVersionId); 707 } 708 709 /** 710 * Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 711 * 712 * @param DDMStructureId the d d m structure ID 713 * @param fileVersionId the file version ID 714 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 715 */ 716 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F( 717 long DDMStructureId, long fileVersionId) { 718 return getPersistence().fetchByD_F(DDMStructureId, fileVersionId); 719 } 720 721 /** 722 * Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 723 * 724 * @param DDMStructureId the d d m structure ID 725 * @param fileVersionId the file version ID 726 * @param retrieveFromCache whether to use the finder cache 727 * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found 728 */ 729 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F( 730 long DDMStructureId, long fileVersionId, boolean retrieveFromCache) { 731 return getPersistence() 732 .fetchByD_F(DDMStructureId, fileVersionId, retrieveFromCache); 733 } 734 735 /** 736 * Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database. 737 * 738 * @param DDMStructureId the d d m structure ID 739 * @param fileVersionId the file version ID 740 * @return the document library file entry metadata that was removed 741 */ 742 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata removeByD_F( 743 long DDMStructureId, long fileVersionId) 744 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 745 return getPersistence().removeByD_F(DDMStructureId, fileVersionId); 746 } 747 748 /** 749 * Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?. 750 * 751 * @param DDMStructureId the d d m structure ID 752 * @param fileVersionId the file version ID 753 * @return the number of matching document library file entry metadatas 754 */ 755 public static int countByD_F(long DDMStructureId, long fileVersionId) { 756 return getPersistence().countByD_F(DDMStructureId, fileVersionId); 757 } 758 759 /** 760 * Caches the document library file entry metadata in the entity cache if it is enabled. 761 * 762 * @param dlFileEntryMetadata the document library file entry metadata 763 */ 764 public static void cacheResult( 765 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata) { 766 getPersistence().cacheResult(dlFileEntryMetadata); 767 } 768 769 /** 770 * Caches the document library file entry metadatas in the entity cache if it is enabled. 771 * 772 * @param dlFileEntryMetadatas the document library file entry metadatas 773 */ 774 public static void cacheResult( 775 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> dlFileEntryMetadatas) { 776 getPersistence().cacheResult(dlFileEntryMetadatas); 777 } 778 779 /** 780 * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database. 781 * 782 * @param fileEntryMetadataId the primary key for the new document library file entry metadata 783 * @return the new document library file entry metadata 784 */ 785 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata create( 786 long fileEntryMetadataId) { 787 return getPersistence().create(fileEntryMetadataId); 788 } 789 790 /** 791 * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners. 792 * 793 * @param fileEntryMetadataId the primary key of the document library file entry metadata 794 * @return the document library file entry metadata that was removed 795 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 796 */ 797 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata remove( 798 long fileEntryMetadataId) 799 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 800 return getPersistence().remove(fileEntryMetadataId); 801 } 802 803 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateImpl( 804 com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata) { 805 return getPersistence().updateImpl(dlFileEntryMetadata); 806 } 807 808 /** 809 * Returns the document library file entry metadata with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found. 810 * 811 * @param fileEntryMetadataId the primary key of the document library file entry metadata 812 * @return the document library file entry metadata 813 * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found 814 */ 815 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByPrimaryKey( 816 long fileEntryMetadataId) 817 throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException { 818 return getPersistence().findByPrimaryKey(fileEntryMetadataId); 819 } 820 821 /** 822 * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found. 823 * 824 * @param fileEntryMetadataId the primary key of the document library file entry metadata 825 * @return the document library file entry metadata, or <code>null</code> if a document library file entry metadata with the primary key could not be found 826 */ 827 public static com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByPrimaryKey( 828 long fileEntryMetadataId) { 829 return getPersistence().fetchByPrimaryKey(fileEntryMetadataId); 830 } 831 832 public static java.util.Map<java.io.Serializable, com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> fetchByPrimaryKeys( 833 java.util.Set<java.io.Serializable> primaryKeys) { 834 return getPersistence().fetchByPrimaryKeys(primaryKeys); 835 } 836 837 /** 838 * Returns all the document library file entry metadatas. 839 * 840 * @return the document library file entry metadatas 841 */ 842 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll() { 843 return getPersistence().findAll(); 844 } 845 846 /** 847 * Returns a range of all the document library file entry metadatas. 848 * 849 * <p> 850 * 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.DLFileEntryMetadataModelImpl}. 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. 851 * </p> 852 * 853 * @param start the lower bound of the range of document library file entry metadatas 854 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 855 * @return the range of document library file entry metadatas 856 */ 857 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll( 858 int start, int end) { 859 return getPersistence().findAll(start, end); 860 } 861 862 /** 863 * Returns an ordered range of all the document library file entry metadatas. 864 * 865 * <p> 866 * 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.DLFileEntryMetadataModelImpl}. 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. 867 * </p> 868 * 869 * @param start the lower bound of the range of document library file entry metadatas 870 * @param end the upper bound of the range of document library file entry metadatas (not inclusive) 871 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 872 * @return the ordered range of document library file entry metadatas 873 */ 874 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll( 875 int start, int end, 876 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator) { 877 return getPersistence().findAll(start, end, orderByComparator); 878 } 879 880 /** 881 * Removes all the document library file entry metadatas from the database. 882 */ 883 public static void removeAll() { 884 getPersistence().removeAll(); 885 } 886 887 /** 888 * Returns the number of document library file entry metadatas. 889 * 890 * @return the number of document library file entry metadatas 891 */ 892 public static int countAll() { 893 return getPersistence().countAll(); 894 } 895 896 public static DLFileEntryMetadataPersistence getPersistence() { 897 if (_persistence == null) { 898 _persistence = (DLFileEntryMetadataPersistence)PortalBeanLocatorUtil.locate(DLFileEntryMetadataPersistence.class.getName()); 899 900 ReferenceRegistry.registerReference(DLFileEntryMetadataUtil.class, 901 "_persistence"); 902 } 903 904 return _persistence; 905 } 906 907 /** 908 * @deprecated As of 6.2.0 909 */ 910 @Deprecated 911 public void setPersistence(DLFileEntryMetadataPersistence persistence) { 912 } 913 914 private static DLFileEntryMetadataPersistence _persistence; 915 }