Interface DLContentPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DLContent>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLContent>

@ProviderType public interface DLContentPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<DLContent>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLContent>
The persistence interface for the document library content service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Caches the document library content in the entity cache if it is enabled.
    void
    cacheResult(List<DLContent> dlContents)
    Caches the document library contents in the entity cache if it is enabled.
    int
    Returns the number of document library contents.
    int
    countByC_R(long companyId, long repositoryId)
    Returns the number of document library contents where companyId = ? and repositoryId = ?.
    int
    countByC_R_LikeP(long companyId, long repositoryId, String path)
    Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
    int
    countByC_R_P(long companyId, long repositoryId, String path)
    Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.
    int
    countByC_R_P_V(long companyId, long repositoryId, String path, String version)
    Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?.
    create(long contentId)
    Creates a new document library content with the primary key.
    fetchByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
    fetchByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
    fetchByC_R_LikeP_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
    fetchByC_R_LikeP_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
    fetchByC_R_P_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
    fetchByC_R_P_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
    fetchByC_R_P_V(long companyId, long repositoryId, String path, String version)
    Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found.
    fetchByC_R_P_V(long companyId, long repositoryId, String path, String version, boolean useFinderCache)
    Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long contentId)
    Returns the document library content with the primary key or returns null if it could not be found.
    Returns all the document library contents.
    findAll(int start, int end)
    Returns a range of all the document library contents.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns an ordered range of all the document library contents.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the document library contents.
    findByC_R(long companyId, long repositoryId)
    Returns all the document library contents where companyId = ? and repositoryId = ?.
    findByC_R(long companyId, long repositoryId, int start, int end)
    Returns a range of all the document library contents where companyId = ? and repositoryId = ?.
    findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.
    findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.
    findByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
    findByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
    findByC_R_LikeP(long companyId, long repositoryId, String path)
    Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
    findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end)
    Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
    findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
    findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
    findByC_R_LikeP_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
    findByC_R_LikeP_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
    findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
    findByC_R_P(long companyId, long repositoryId, String path)
    Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.
    findByC_R_P(long companyId, long repositoryId, String path, int start, int end)
    Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
    findByC_R_P(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
    findByC_R_P(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
    findByC_R_P_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
    findByC_R_P_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
    findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
    findByC_R_P_V(long companyId, long repositoryId, String path, String version)
    Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a NoSuchContentException if it could not be found.
    findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
    Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.
    findByPrimaryKey(long contentId)
    Returns the document library content with the primary key or throws a NoSuchContentException if it could not be found.
    remove(long contentId)
    Removes the document library content with the primary key from the database.
    void
    Removes all the document library contents from the database.
    void
    removeByC_R(long companyId, long repositoryId)
    Removes all the document library contents where companyId = ? and repositoryId = ? from the database.
    void
    removeByC_R_LikeP(long companyId, long repositoryId, String path)
    Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.
    void
    removeByC_R_P(long companyId, long repositoryId, String path)
    Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database.
    removeByC_R_P_V(long companyId, long repositoryId, String path, String version)
    Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database.
    updateImpl(DLContent dlContent)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence

    getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
  • Method Details

    • findByC_R

      List<DLContent> findByC_R(long companyId, long repositoryId)
      Returns all the document library contents where companyId = ? and repositoryId = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      Returns:
      the matching document library contents
    • findByC_R

      List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end)
      Returns a range of all the document library contents where companyId = ? and repositoryId = ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (not inclusive)
      Returns:
      the range of matching document library contents
    • findByC_R

      List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching document library contents
    • findByC_R

      List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (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 contents
    • findByC_R_First

      DLContent findByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library content
      Throws:
      NoSuchContentException - if a matching document library content could not be found
    • fetchByC_R_First

      DLContent fetchByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library content, or null if a matching document library content could not be found
    • findByC_R_Last

      DLContent findByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library content
      Throws:
      NoSuchContentException - if a matching document library content could not be found
    • fetchByC_R_Last

      DLContent fetchByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library content, or null if a matching document library content could not be found
    • findByC_R_PrevAndNext

      DLContent[] findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.
      Parameters:
      contentId - the primary key of the current document library content
      companyId - the company ID
      repositoryId - the repository ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next document library content
      Throws:
      NoSuchContentException - if a document library content with the primary key could not be found
    • removeByC_R

      void removeByC_R(long companyId, long repositoryId)
      Removes all the document library contents where companyId = ? and repositoryId = ? from the database.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
    • countByC_R

      int countByC_R(long companyId, long repositoryId)
      Returns the number of document library contents where companyId = ? and repositoryId = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      Returns:
      the number of matching document library contents
    • findByC_R_P

      List<DLContent> findByC_R_P(long companyId, long repositoryId, String path)
      Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      Returns:
      the matching document library contents
    • findByC_R_P

      List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end)
      Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (not inclusive)
      Returns:
      the range of matching document library contents
    • findByC_R_P

      List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching document library contents
    • findByC_R_P

      List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (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 contents
    • findByC_R_P_First

      DLContent findByC_R_P_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library content
      Throws:
      NoSuchContentException - if a matching document library content could not be found
    • fetchByC_R_P_First

      DLContent fetchByC_R_P_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library content, or null if a matching document library content could not be found
    • findByC_R_P_Last

      DLContent findByC_R_P_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library content
      Throws:
      NoSuchContentException - if a matching document library content could not be found
    • fetchByC_R_P_Last

      DLContent fetchByC_R_P_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library content, or null if a matching document library content could not be found
    • findByC_R_P_PrevAndNext

      DLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
      Parameters:
      contentId - the primary key of the current document library content
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next document library content
      Throws:
      NoSuchContentException - if a document library content with the primary key could not be found
    • removeByC_R_P

      void removeByC_R_P(long companyId, long repositoryId, String path)
      Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
    • countByC_R_P

      int countByC_R_P(long companyId, long repositoryId, String path)
      Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      Returns:
      the number of matching document library contents
    • findByC_R_LikeP

      List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path)
      Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      Returns:
      the matching document library contents
    • findByC_R_LikeP

      List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end)
      Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (not inclusive)
      Returns:
      the range of matching document library contents
    • findByC_R_LikeP

      List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching document library contents
    • findByC_R_LikeP

      List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

      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 DLContentModelImpl.

      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (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 contents
    • findByC_R_LikeP_First

      DLContent findByC_R_LikeP_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library content
      Throws:
      NoSuchContentException - if a matching document library content could not be found
    • fetchByC_R_LikeP_First

      DLContent fetchByC_R_LikeP_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching document library content, or null if a matching document library content could not be found
    • findByC_R_LikeP_Last

      DLContent findByC_R_LikeP_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library content
      Throws:
      NoSuchContentException - if a matching document library content could not be found
    • fetchByC_R_LikeP_Last

      DLContent fetchByC_R_LikeP_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching document library content, or null if a matching document library content could not be found
    • findByC_R_LikeP_PrevAndNext

      DLContent[] findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
      Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
      Parameters:
      contentId - the primary key of the current document library content
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next document library content
      Throws:
      NoSuchContentException - if a document library content with the primary key could not be found
    • removeByC_R_LikeP

      void removeByC_R_LikeP(long companyId, long repositoryId, String path)
      Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
    • countByC_R_LikeP

      int countByC_R_LikeP(long companyId, long repositoryId, String path)
      Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      Returns:
      the number of matching document library contents
    • findByC_R_P_V

      DLContent findByC_R_P_V(long companyId, long repositoryId, String path, String version) throws NoSuchContentException
      Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a NoSuchContentException if it could not be found.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      Returns:
      the matching document library content
      Throws:
      NoSuchContentException - if a matching document library content could not be found
    • fetchByC_R_P_V

      DLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version)
      Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      Returns:
      the matching document library content, or null if a matching document library content could not be found
    • fetchByC_R_P_V

      DLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version, boolean useFinderCache)
      Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      useFinderCache - whether to use the finder cache
      Returns:
      the matching document library content, or null if a matching document library content could not be found
    • removeByC_R_P_V

      DLContent removeByC_R_P_V(long companyId, long repositoryId, String path, String version) throws NoSuchContentException
      Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      Returns:
      the document library content that was removed
      Throws:
      NoSuchContentException
    • countByC_R_P_V

      int countByC_R_P_V(long companyId, long repositoryId, String path, String version)
      Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?.
      Parameters:
      companyId - the company ID
      repositoryId - the repository ID
      path - the path
      version - the version
      Returns:
      the number of matching document library contents
    • cacheResult

      void cacheResult(DLContent dlContent)
      Caches the document library content in the entity cache if it is enabled.
      Parameters:
      dlContent - the document library content
    • cacheResult

      void cacheResult(List<DLContent> dlContents)
      Caches the document library contents in the entity cache if it is enabled.
      Parameters:
      dlContents - the document library contents
    • create

      DLContent create(long contentId)
      Creates a new document library content with the primary key. Does not add the document library content to the database.
      Parameters:
      contentId - the primary key for the new document library content
      Returns:
      the new document library content
    • remove

      DLContent remove(long contentId) throws NoSuchContentException
      Removes the document library content with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      contentId - the primary key of the document library content
      Returns:
      the document library content that was removed
      Throws:
      NoSuchContentException - if a document library content with the primary key could not be found
    • updateImpl

      DLContent updateImpl(DLContent dlContent)
    • findByPrimaryKey

      DLContent findByPrimaryKey(long contentId) throws NoSuchContentException
      Returns the document library content with the primary key or throws a NoSuchContentException if it could not be found.
      Parameters:
      contentId - the primary key of the document library content
      Returns:
      the document library content
      Throws:
      NoSuchContentException - if a document library content with the primary key could not be found
    • fetchByPrimaryKey

      DLContent fetchByPrimaryKey(long contentId)
      Returns the document library content with the primary key or returns null if it could not be found.
      Parameters:
      contentId - the primary key of the document library content
      Returns:
      the document library content, or null if a document library content with the primary key could not be found
    • findAll

      List<DLContent> findAll()
      Returns all the document library contents.
      Returns:
      the document library contents
    • findAll

      List<DLContent> findAll(int start, int end)
      Returns a range of all the document library contents.

      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 DLContentModelImpl.

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

      List<DLContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator)
      Returns an ordered range of all the document library contents.

      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 DLContentModelImpl.

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

      List<DLContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the document library contents.

      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 DLContentModelImpl.

      Parameters:
      start - the lower bound of the range of document library contents
      end - the upper bound of the range of document library contents (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 contents
    • removeAll

      void removeAll()
      Removes all the document library contents from the database.
    • countAll

      int countAll()
      Returns the number of document library contents.
      Returns:
      the number of document library contents