/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.document.library.kernel.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.document.library.kernel.exception.NoSuchContentException; import com.liferay.document.library.kernel.model.DLContent; import com.liferay.portal.kernel.service.persistence.BasePersistence; /** * The persistence interface for the document library content service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see com.liferay.portlet.documentlibrary.service.persistence.impl.DLContentPersistenceImpl * @see DLContentUtil * @generated */ @ProviderType public interface DLContentPersistence extends BasePersistence<DLContent> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link DLContentUtil} to access the document library content persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the document library contents where companyId = ? and repositoryId = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @return the matching document library contents */ public java.util.List<DLContent> findByC_R(long companyId, long repositoryId); /** * Returns a range of all the document library contents where companyId = ? and repositoryId = ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @return the range of matching document library contents */ public java.util.List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end); /** * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching document library contents */ public java.util.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 = ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching document library contents */ public java.util.List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean retrieveFromCache); /** * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library content * @throws NoSuchContentException if a matching document library content could not be found */ public 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 = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found */ public DLContent fetchByC_R_First(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 = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library content * @throws NoSuchContentException if a matching document library content could not be found */ public 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 = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found */ public DLContent fetchByC_R_Last(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 = ?. * * @param contentId the primary key of the current document library content * @param companyId the company ID * @param repositoryId the repository ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next document library content * @throws NoSuchContentException if a document library content with the primary key could not be found */ public DLContent[] findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException; /** * Removes all the document library contents where companyId = ? and repositoryId = ? from the database. * * @param companyId the company ID * @param repositoryId the repository ID */ public void removeByC_R(long companyId, long repositoryId); /** * Returns the number of document library contents where companyId = ? and repositoryId = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @return the number of matching document library contents */ public int countByC_R(long companyId, long repositoryId); /** * Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @return the matching document library contents */ public java.util.List<DLContent> findByC_R_P(long companyId, long repositoryId, java.lang.String path); /** * Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @return the range of matching document library contents */ public java.util.List<DLContent> findByC_R_P(long companyId, long repositoryId, java.lang.String path, int start, int end); /** * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching document library contents */ public java.util.List<DLContent> findByC_R_P(long companyId, long repositoryId, java.lang.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 = ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching document library contents */ public java.util.List<DLContent> findByC_R_P(long companyId, long repositoryId, java.lang.String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean retrieveFromCache); /** * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library content * @throws NoSuchContentException if a matching document library content could not be found */ public DLContent findByC_R_P_First(long companyId, long repositoryId, java.lang.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 = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found */ public DLContent fetchByC_R_P_First(long companyId, long repositoryId, java.lang.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 = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library content * @throws NoSuchContentException if a matching document library content could not be found */ public DLContent findByC_R_P_Last(long companyId, long repositoryId, java.lang.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 = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found */ public DLContent fetchByC_R_P_Last(long companyId, long repositoryId, java.lang.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 = ?. * * @param contentId the primary key of the current document library content * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next document library content * @throws NoSuchContentException if a document library content with the primary key could not be found */ public DLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException; /** * Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path */ public void removeByC_R_P(long companyId, long repositoryId, java.lang.String path); /** * Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @return the number of matching document library contents */ public int countByC_R_P(long companyId, long repositoryId, java.lang.String path); /** * Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @return the matching document library contents */ public java.util.List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, java.lang.String path); /** * Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @return the range of matching document library contents */ public java.util.List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, java.lang.String path, int start, int end); /** * Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching document library contents */ public java.util.List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, java.lang.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 ?. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching document library contents */ public java.util.List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, java.lang.String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean retrieveFromCache); /** * Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library content * @throws NoSuchContentException if a matching document library content could not be found */ public DLContent findByC_R_LikeP_First(long companyId, long repositoryId, java.lang.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 ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found */ public DLContent fetchByC_R_LikeP_First(long companyId, long repositoryId, java.lang.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 ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library content * @throws NoSuchContentException if a matching document library content could not be found */ public DLContent findByC_R_LikeP_Last(long companyId, long repositoryId, java.lang.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 ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found */ public DLContent fetchByC_R_LikeP_Last(long companyId, long repositoryId, java.lang.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 ?. * * @param contentId the primary key of the current document library content * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next document library content * @throws NoSuchContentException if a document library content with the primary key could not be found */ public DLContent[] findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException; /** * Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path */ public void removeByC_R_LikeP(long companyId, long repositoryId, java.lang.String path); /** * Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @return the number of matching document library contents */ public int countByC_R_LikeP(long companyId, long repositoryId, java.lang.String path); /** * Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a {@link NoSuchContentException} if it could not be found. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param version the version * @return the matching document library content * @throws NoSuchContentException if a matching document library content could not be found */ public DLContent findByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version) throws NoSuchContentException; /** * Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param version the version * @return the matching document library content, or <code>null</code> if a matching document library content could not be found */ public DLContent fetchByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version); /** * Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param version the version * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching document library content, or <code>null</code> if a matching document library content could not be found */ public DLContent fetchByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version, boolean retrieveFromCache); /** * Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param version the version * @return the document library content that was removed */ public DLContent removeByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version) throws NoSuchContentException; /** * Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?. * * @param companyId the company ID * @param repositoryId the repository ID * @param path the path * @param version the version * @return the number of matching document library contents */ public int countByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version); /** * Caches the document library content in the entity cache if it is enabled. * * @param dlContent the document library content */ public void cacheResult(DLContent dlContent); /** * Caches the document library contents in the entity cache if it is enabled. * * @param dlContents the document library contents */ public void cacheResult(java.util.List<DLContent> dlContents); /** * Creates a new document library content with the primary key. Does not add the document library content to the database. * * @param contentId the primary key for the new document library content * @return the new document library content */ public DLContent create(long contentId); /** * Removes the document library content with the primary key from the database. Also notifies the appropriate model listeners. * * @param contentId the primary key of the document library content * @return the document library content that was removed * @throws NoSuchContentException if a document library content with the primary key could not be found */ public DLContent remove(long contentId) throws NoSuchContentException; public DLContent updateImpl(DLContent dlContent); /** * Returns the document library content with the primary key or throws a {@link NoSuchContentException} if it could not be found. * * @param contentId the primary key of the document library content * @return the document library content * @throws NoSuchContentException if a document library content with the primary key could not be found */ public DLContent findByPrimaryKey(long contentId) throws NoSuchContentException; /** * Returns the document library content with the primary key or returns <code>null</code> if it could not be found. * * @param contentId the primary key of the document library content * @return the document library content, or <code>null</code> if a document library content with the primary key could not be found */ public DLContent fetchByPrimaryKey(long contentId); @Override public java.util.Map<java.io.Serializable, DLContent> fetchByPrimaryKeys( java.util.Set<java.io.Serializable> primaryKeys); /** * Returns all the document library contents. * * @return the document library contents */ public java.util.List<DLContent> findAll(); /** * Returns a range of all the document library contents. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @return the range of document library contents */ public java.util.List<DLContent> findAll(int start, int end); /** * Returns an ordered range of all the document library contents. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of document library contents */ public java.util.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. * * <p> * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLContentModelImpl}. 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. * </p> * * @param start the lower bound of the range of document library contents * @param end the upper bound of the range of document library contents (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of document library contents */ public java.util.List<DLContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean retrieveFromCache); /** * Removes all the document library contents from the database. */ public void removeAll(); /** * Returns the number of document library contents. * * @return the number of document library contents */ public int countAll(); @Override public java.util.Set<java.lang.String> getBadColumnNames(); }