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