Class DLFileEntryMetadataUtil

Object
com.liferay.document.library.kernel.service.persistence.DLFileEntryMetadataUtil

public class DLFileEntryMetadataUtil extends Object
The persistence utility for the document library file entry metadata service. This utility wraps com.liferay.portlet.documentlibrary.service.persistence.impl.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.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Constructor Details

    • DLFileEntryMetadataUtil

      public DLFileEntryMetadataUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
    • clearCache

      public static void clearCache(DLFileEntryMetadata dlFileEntryMetadata)
      See Also:
    • countWithDynamicQuery

      public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • fetchByPrimaryKeys

      public static Map<Serializable,DLFileEntryMetadata> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
    • findWithDynamicQuery

      public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • findWithDynamicQuery

      public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      See Also:
    • findWithDynamicQuery

      public static List<DLFileEntryMetadata> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      See Also:
    • update

      public static DLFileEntryMetadata update(DLFileEntryMetadata dlFileEntryMetadata)
      See Also:
    • update

      public static DLFileEntryMetadata update(DLFileEntryMetadata dlFileEntryMetadata, ServiceContext serviceContext)
      See Also:
    • findByUuid

      public static List<DLFileEntryMetadata> findByUuid(String uuid)
      Returns all the document library file entry metadatas where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching document library file entry metadatas
    • findByUuid

      public static List<DLFileEntryMetadata> findByUuid(String uuid, int start, int end)
      Returns a range of all the document library file entry metadatas where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      Returns:
      the range of matching document library file entry metadatas
    • findByUuid

      public static List<DLFileEntryMetadata> findByUuid(String uuid, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns an ordered range of all the document library file entry metadatas where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching document library file entry metadatas
    • findByUuid

      public static List<DLFileEntryMetadata> findByUuid(String uuid, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas where uuid = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching document library file entry metadatas
    • findByUuid_First

      public static DLFileEntryMetadata findByUuid_First(String uuid, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the first document library file entry metadata in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByUuid_First

      public static DLFileEntryMetadata fetchByUuid_First(String uuid, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns the first document library file entry metadata in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • findByUuid_Last

      public static DLFileEntryMetadata findByUuid_Last(String uuid, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the last document library file entry metadata in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByUuid_Last

      public static DLFileEntryMetadata fetchByUuid_Last(String uuid, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns the last document library file entry metadata in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • findByUuid_PrevAndNext

      public static DLFileEntryMetadata[] findByUuid_PrevAndNext(long fileEntryMetadataId, String uuid, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ?.
      Parameters:
      fileEntryMetadataId - the primary key of the current document library file entry metadata
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
      NoSuchFileEntryMetadataException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the document library file entry metadatas where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of document library file entry metadatas where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching document library file entry metadatas
    • findByUuid_C

      public static List<DLFileEntryMetadata> findByUuid_C(String uuid, long companyId)
      Returns all the document library file entry metadatas where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching document library file entry metadatas
    • findByUuid_C

      public static List<DLFileEntryMetadata> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the document library file entry metadatas where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      Returns:
      the range of matching document library file entry metadatas
    • findByUuid_C

      public static List<DLFileEntryMetadata> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns an ordered range of all the document library file entry metadatas where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching document library file entry metadatas
    • findByUuid_C

      public static List<DLFileEntryMetadata> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas where uuid = ? and companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching document library file entry metadatas
    • findByUuid_C_First

      public static DLFileEntryMetadata findByUuid_C_First(String uuid, long companyId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the first document library file entry metadata in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByUuid_C_First

      public static DLFileEntryMetadata fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns the first document library file entry metadata in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • findByUuid_C_Last

      public static DLFileEntryMetadata findByUuid_C_Last(String uuid, long companyId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the last document library file entry metadata in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByUuid_C_Last

      public static DLFileEntryMetadata fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns the last document library file entry metadata in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • findByUuid_C_PrevAndNext

      public static DLFileEntryMetadata[] findByUuid_C_PrevAndNext(long fileEntryMetadataId, String uuid, long companyId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      fileEntryMetadataId - the primary key of the current document library file entry metadata
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
      NoSuchFileEntryMetadataException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the document library file entry metadatas where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of document library file entry metadatas where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching document library file entry metadatas
    • findByFileEntryId

      public static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId)
      Returns all the document library file entry metadatas where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      Returns:
      the matching document library file entry metadatas
    • findByFileEntryId

      public static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId, int start, int end)
      Returns a range of all the document library file entry metadatas where fileEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      fileEntryId - the file entry ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      Returns:
      the range of matching document library file entry metadatas
    • findByFileEntryId

      public static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      fileEntryId - the file entry ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching document library file entry metadatas
    • findByFileEntryId

      public static List<DLFileEntryMetadata> findByFileEntryId(long fileEntryId, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas where fileEntryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      fileEntryId - the file entry ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching document library file entry metadatas
    • findByFileEntryId_First

      public static DLFileEntryMetadata findByFileEntryId_First(long fileEntryId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByFileEntryId_First

      public static DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns the first document library file entry metadata in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • findByFileEntryId_Last

      public static DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the last document library file entry metadata in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByFileEntryId_Last

      public static DLFileEntryMetadata fetchByFileEntryId_Last(long fileEntryId, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns the last document library file entry metadata in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • findByFileEntryId_PrevAndNext

      public static DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(long fileEntryMetadataId, long fileEntryId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = ?.
      Parameters:
      fileEntryMetadataId - the primary key of the current document library file entry metadata
      fileEntryId - the file entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
      NoSuchFileEntryMetadataException
    • removeByFileEntryId

      public static void removeByFileEntryId(long fileEntryId)
      Removes all the document library file entry metadatas where fileEntryId = ? from the database.
      Parameters:
      fileEntryId - the file entry ID
    • countByFileEntryId

      public static int countByFileEntryId(long fileEntryId)
      Returns the number of document library file entry metadatas where fileEntryId = ?.
      Parameters:
      fileEntryId - the file entry ID
      Returns:
      the number of matching document library file entry metadatas
    • findByFileVersionId

      public static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId)
      Returns all the document library file entry metadatas where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      Returns:
      the matching document library file entry metadatas
    • findByFileVersionId

      public static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId, int start, int end)
      Returns a range of all the document library file entry metadatas where fileVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      fileVersionId - the file version ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      Returns:
      the range of matching document library file entry metadatas
    • findByFileVersionId

      public static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      fileVersionId - the file version ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching document library file entry metadatas
    • findByFileVersionId

      public static List<DLFileEntryMetadata> findByFileVersionId(long fileVersionId, int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas where fileVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      fileVersionId - the file version ID
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching document library file entry metadatas
    • findByFileVersionId_First

      public static DLFileEntryMetadata findByFileVersionId_First(long fileVersionId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByFileVersionId_First

      public static DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns the first document library file entry metadata in the ordered set where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • findByFileVersionId_Last

      public static DLFileEntryMetadata findByFileVersionId_Last(long fileVersionId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the last document library file entry metadata in the ordered set where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByFileVersionId_Last

      public static DLFileEntryMetadata fetchByFileVersionId_Last(long fileVersionId, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns the last document library file entry metadata in the ordered set where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • findByFileVersionId_PrevAndNext

      public static DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(long fileEntryMetadataId, long fileVersionId, OrderByComparator<DLFileEntryMetadata> orderByComparator) throws NoSuchFileEntryMetadataException
      Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = ?.
      Parameters:
      fileEntryMetadataId - the primary key of the current document library file entry metadata
      fileVersionId - the file version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
      NoSuchFileEntryMetadataException
    • removeByFileVersionId

      public static void removeByFileVersionId(long fileVersionId)
      Removes all the document library file entry metadatas where fileVersionId = ? from the database.
      Parameters:
      fileVersionId - the file version ID
    • countByFileVersionId

      public static int countByFileVersionId(long fileVersionId)
      Returns the number of document library file entry metadatas where fileVersionId = ?.
      Parameters:
      fileVersionId - the file version ID
      Returns:
      the number of matching document library file entry metadatas
    • findByD_F

      public static DLFileEntryMetadata findByD_F(long DDMStructureId, long fileVersionId) throws NoSuchFileEntryMetadataException
      Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or throws a NoSuchFileEntryMetadataException if it could not be found.
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      Returns:
      the matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByD_F

      public static DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId)
      Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      Returns:
      the matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • fetchByD_F

      public static DLFileEntryMetadata fetchByD_F(long DDMStructureId, long fileVersionId, boolean useFinderCache)
      Returns the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • removeByD_F

      public static DLFileEntryMetadata removeByD_F(long DDMStructureId, long fileVersionId) throws NoSuchFileEntryMetadataException
      Removes the document library file entry metadata where DDMStructureId = ? and fileVersionId = ? from the database.
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      Returns:
      the document library file entry metadata that was removed
      Throws:
      NoSuchFileEntryMetadataException
    • countByD_F

      public static int countByD_F(long DDMStructureId, long fileVersionId)
      Returns the number of document library file entry metadatas where DDMStructureId = ? and fileVersionId = ?.
      Parameters:
      DDMStructureId - the ddm structure ID
      fileVersionId - the file version ID
      Returns:
      the number of matching document library file entry metadatas
    • findByERC_C

      public static DLFileEntryMetadata findByERC_C(String externalReferenceCode, long companyId) throws NoSuchFileEntryMetadataException
      Returns the document library file entry metadata where externalReferenceCode = ? and companyId = ? or throws a NoSuchFileEntryMetadataException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a matching document library file entry metadata could not be found
      NoSuchFileEntryMetadataException
    • fetchByERC_C

      public static DLFileEntryMetadata fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the document library file entry metadata where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • fetchByERC_C

      public static DLFileEntryMetadata fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the document library file entry metadata where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching document library file entry metadata, or null if a matching document library file entry metadata could not be found
    • removeByERC_C

      public static DLFileEntryMetadata removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchFileEntryMetadataException
      Removes the document library file entry metadata where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the document library file entry metadata that was removed
      Throws:
      NoSuchFileEntryMetadataException
    • countByERC_C

      public static int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of document library file entry metadatas where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching document library file entry metadatas
    • cacheResult

      public static void cacheResult(DLFileEntryMetadata dlFileEntryMetadata)
      Caches the document library file entry metadata in the entity cache if it is enabled.
      Parameters:
      dlFileEntryMetadata - the document library file entry metadata
    • cacheResult

      public static void cacheResult(List<DLFileEntryMetadata> dlFileEntryMetadatas)
      Caches the document library file entry metadatas in the entity cache if it is enabled.
      Parameters:
      dlFileEntryMetadatas - the document library file entry metadatas
    • create

      public static DLFileEntryMetadata create(long fileEntryMetadataId)
      Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
      Parameters:
      fileEntryMetadataId - the primary key for the new document library file entry metadata
      Returns:
      the new document library file entry metadata
    • remove

      public static DLFileEntryMetadata remove(long fileEntryMetadataId) throws NoSuchFileEntryMetadataException
      Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      fileEntryMetadataId - the primary key of the document library file entry metadata
      Returns:
      the document library file entry metadata that was removed
      Throws:
      NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
      NoSuchFileEntryMetadataException
    • updateImpl

      public static DLFileEntryMetadata updateImpl(DLFileEntryMetadata dlFileEntryMetadata)
    • findByPrimaryKey

      public static DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId) throws NoSuchFileEntryMetadataException
      Returns the document library file entry metadata with the primary key or throws a NoSuchFileEntryMetadataException if it could not be found.
      Parameters:
      fileEntryMetadataId - the primary key of the document library file entry metadata
      Returns:
      the document library file entry metadata
      Throws:
      NoSuchFileEntryMetadataException - if a document library file entry metadata with the primary key could not be found
      NoSuchFileEntryMetadataException
    • fetchByPrimaryKey

      public static DLFileEntryMetadata fetchByPrimaryKey(long fileEntryMetadataId)
      Returns the document library file entry metadata with the primary key or returns null if it could not be found.
      Parameters:
      fileEntryMetadataId - the primary key of the document library file entry metadata
      Returns:
      the document library file entry metadata, or null if a document library file entry metadata with the primary key could not be found
    • findAll

      public static List<DLFileEntryMetadata> findAll()
      Returns all the document library file entry metadatas.
      Returns:
      the document library file entry metadatas
    • findAll

      public static List<DLFileEntryMetadata> findAll(int start, int end)
      Returns a range of all the document library file entry metadatas.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      Returns:
      the range of document library file entry metadatas
    • findAll

      public static List<DLFileEntryMetadata> findAll(int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator)
      Returns an ordered range of all the document library file entry metadatas.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of document library file entry metadatas
    • findAll

      public static List<DLFileEntryMetadata> findAll(int start, int end, OrderByComparator<DLFileEntryMetadata> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library file entry metadatas.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DLFileEntryMetadataModelImpl.

      Parameters:
      start - the lower bound of the range of document library file entry metadatas
      end - the upper bound of the range of document library file entry metadatas (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of document library file entry metadatas
    • removeAll

      public static void removeAll()
      Removes all the document library file entry metadatas from the database.
    • countAll

      public static int countAll()
      Returns the number of document library file entry metadatas.
      Returns:
      the number of document library file entry metadatas
    • getPersistence

      public static DLFileEntryMetadataPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DLFileEntryMetadataPersistence persistence)