/** * 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.knowledgebase.service.persistence; import com.liferay.knowledgebase.model.KBArticle; import com.liferay.portal.service.persistence.BasePersistence; /** * The persistence interface for the k b article service. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see KBArticlePersistenceImpl * @see KBArticleUtil * @generated */ public interface KBArticlePersistence extends BasePersistence<KBArticle> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link KBArticleUtil} to access the k b article persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the k b articles where uuid = ?. * * @param uuid the uuid * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByUuid( java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where uuid = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 uuid the uuid * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByUuid( java.lang.String uuid, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where uuid = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 uuid the uuid * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByUuid( java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByUuid_First( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByUuid_Last( java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where uuid = ?. * * @param kbArticleId the primary key of the current k b article * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByUuid_PrevAndNext( long kbArticleId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where uuid = ? from the database. * * @param uuid the uuid * @throws SystemException if a system exception occurred */ public void removeByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where uuid = ?. * * @param uuid the uuid * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b article where uuid = ? and groupId = ? or throws a {@link com.liferay.knowledgebase.NoSuchArticleException} if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b article where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b article where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param retrieveFromCache whether to use the finder cache * @return the matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByUUID_G( java.lang.String uuid, long groupId, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes the k b article where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the k b article that was removed * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle removeByUUID_G( java.lang.String uuid, long groupId) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByUUID_G(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByUuid_C( java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where uuid = ? and companyId = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByUuid_C( java.lang.String uuid, long companyId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where uuid = ? and companyId = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByUuid_C( java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByUuid_C_First( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByUuid_C_First( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByUuid_C_Last( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByUuid_C_Last( java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where uuid = ? and companyId = ?. * * @param kbArticleId the primary key of the current k b article * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByUuid_C_PrevAndNext( long kbArticleId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID * @throws SystemException if a system exception occurred */ public void removeByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByResourcePrimKey( long resourcePrimKey) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByResourcePrimKey( long resourcePrimKey, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByResourcePrimKey( long resourcePrimKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByResourcePrimKey_First( long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByResourcePrimKey_First( long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByResourcePrimKey_Last( long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByResourcePrimKey_Last( long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where resourcePrimKey = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByResourcePrimKey_PrevAndNext( long kbArticleId, long resourcePrimKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where resourcePrimKey = ? from the database. * * @param resourcePrimKey the resource prim key * @throws SystemException if a system exception occurred */ public void removeByResourcePrimKey(long resourcePrimKey) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ?. * * @param resourcePrimKey the resource prim key * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByResourcePrimKey(long resourcePrimKey) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G( long resourcePrimKey, long groupId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = ? and groupId = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G( long resourcePrimKey, long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = ? and groupId = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G( long resourcePrimKey, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_G_First( long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_G_First( long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_G_Last( long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_G_Last( long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where resourcePrimKey = ? and groupId = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByR_G_PrevAndNext( long kbArticleId, long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G( long resourcePrimKey, long groupId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G( long resourcePrimKey, long groupId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where resourcePrimKey = ? and groupId = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G( long resourcePrimKey, long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByR_G_PrevAndNext( long kbArticleId, long resourcePrimKey, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where resourcePrimKey = ? and groupId = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @throws SystemException if a system exception occurred */ public void removeByR_G(long resourcePrimKey, long groupId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_G(long resourcePrimKey, long groupId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByR_G(long resourcePrimKey, long groupId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b article where resourcePrimKey = ? and version = ? or throws a {@link com.liferay.knowledgebase.NoSuchArticleException} if it could not be found. * * @param resourcePrimKey the resource prim key * @param version the version * @return the matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_V( long resourcePrimKey, int version) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b article where resourcePrimKey = ? and version = ? or returns <code>null</code> if it could not be found. Uses the finder cache. * * @param resourcePrimKey the resource prim key * @param version the version * @return the matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_V( long resourcePrimKey, int version) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b article where resourcePrimKey = ? and version = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. * * @param resourcePrimKey the resource prim key * @param version the version * @param retrieveFromCache whether to use the finder cache * @return the matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_V( long resourcePrimKey, int version, boolean retrieveFromCache) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes the k b article where resourcePrimKey = ? and version = ? from the database. * * @param resourcePrimKey the resource prim key * @param version the version * @return the k b article that was removed * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle removeByR_V( long resourcePrimKey, int version) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ? and version = ?. * * @param resourcePrimKey the resource prim key * @param version the version * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_V(long resourcePrimKey, int version) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_L( long resourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_L( long resourcePrimKey, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_L( long resourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_L_First( long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_L_First( long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_L_Last( long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_L_Last( long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where resourcePrimKey = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByR_L_PrevAndNext( long kbArticleId, long resourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_L( long[] resourcePrimKeies, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_L( long[] resourcePrimKeies, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_L( long[] resourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where resourcePrimKey = ? and latest = ? from the database. * * @param resourcePrimKey the resource prim key * @param latest the latest * @throws SystemException if a system exception occurred */ public void removeByR_L(long resourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_L(long resourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = any ? and latest = ?. * * @param resourcePrimKeies the resource prim keies * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_L(long[] resourcePrimKeies, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_M( long resourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_M( long resourcePrimKey, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_M( long resourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_M_First( long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_M_First( long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_M_Last( long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_M_Last( long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where resourcePrimKey = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByR_M_PrevAndNext( long kbArticleId, long resourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_M( long[] resourcePrimKeies, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_M( long[] resourcePrimKeies, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_M( long[] resourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where resourcePrimKey = ? and main = ? from the database. * * @param resourcePrimKey the resource prim key * @param main the main * @throws SystemException if a system exception occurred */ public void removeByR_M(long resourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_M(long resourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = any ? and main = ?. * * @param resourcePrimKeies the resource prim keies * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_M(long[] resourcePrimKeies, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_S( long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_S( long resourcePrimKey, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_S( long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_S_First( long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_S_First( long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_S_Last( long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_S_Last( long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where resourcePrimKey = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByR_S_PrevAndNext( long kbArticleId, long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_S( long[] resourcePrimKeies, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_S( long[] resourcePrimKeies, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_S( long[] resourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where resourcePrimKey = ? and status = ? from the database. * * @param resourcePrimKey the resource prim key * @param status the status * @throws SystemException if a system exception occurred */ public void removeByR_S(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_S(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = any ? and status = ?. * * @param resourcePrimKeies the resource prim keies * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_S(long[] resourcePrimKeies, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_L( long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_L( long groupId, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_L( long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_L_First( long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_L_First( long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_L_Last( long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_L_Last( long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_L_PrevAndNext( long kbArticleId, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_L( long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_L( long groupId, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_L( long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_L_PrevAndNext( long kbArticleId, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and latest = ? from the database. * * @param groupId the group ID * @param latest the latest * @throws SystemException if a system exception occurred */ public void removeByG_L(long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_L(long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and latest = ?. * * @param groupId the group ID * @param latest the latest * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_L(long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_M( long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_M( long groupId, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_M( long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_M_First( long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_M_First( long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_M_Last( long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_M_Last( long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_M_PrevAndNext( long kbArticleId, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_M( long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_M( long groupId, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_M( long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_M_PrevAndNext( long kbArticleId, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and main = ? from the database. * * @param groupId the group ID * @param main the main * @throws SystemException if a system exception occurred */ public void removeByG_M(long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_M(long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and main = ?. * * @param groupId the group ID * @param main the main * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_M(long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_S( long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_S( long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_S( long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_S_First( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_S_First( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_S_Last( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_S_Last( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_S_PrevAndNext( long kbArticleId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_S( long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_S( long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_S( long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_S_PrevAndNext( long kbArticleId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and status = ? from the database. * * @param groupId the group ID * @param status the status * @throws SystemException if a system exception occurred */ public void removeByG_S(long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_S(long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_S(long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_L( long companyId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where companyId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_L( long companyId, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where companyId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_L( long companyId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByC_L_First( long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByC_L_First( long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByC_L_Last( long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByC_L_Last( long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where companyId = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param companyId the company ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByC_L_PrevAndNext( long kbArticleId, long companyId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where companyId = ? and latest = ? from the database. * * @param companyId the company ID * @param latest the latest * @throws SystemException if a system exception occurred */ public void removeByC_L(long companyId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where companyId = ? and latest = ?. * * @param companyId the company ID * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByC_L(long companyId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_M( long companyId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where companyId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_M( long companyId, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where companyId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_M( long companyId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByC_M_First( long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByC_M_First( long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByC_M_Last( long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByC_M_Last( long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where companyId = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param companyId the company ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByC_M_PrevAndNext( long kbArticleId, long companyId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where companyId = ? and main = ? from the database. * * @param companyId the company ID * @param main the main * @throws SystemException if a system exception occurred */ public void removeByC_M(long companyId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where companyId = ? and main = ?. * * @param companyId the company ID * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByC_M(long companyId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_S( long companyId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where companyId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_S( long companyId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where companyId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByC_S( long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByC_S_First( long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByC_S_First( long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByC_S_Last( long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByC_S_Last( long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where companyId = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param companyId the company ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByC_S_PrevAndNext( long kbArticleId, long companyId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where companyId = ? and status = ? from the database. * * @param companyId the company ID * @param status the status * @throws SystemException if a system exception occurred */ public void removeByC_S(long companyId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where companyId = ? and status = ?. * * @param companyId the company ID * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByC_S(long companyId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_L( long parentResourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where parentResourcePrimKey = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_L( long parentResourcePrimKey, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where parentResourcePrimKey = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_L( long parentResourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByP_L_First( long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByP_L_First( long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByP_L_Last( long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByP_L_Last( long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where parentResourcePrimKey = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByP_L_PrevAndNext( long kbArticleId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where parentResourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_L( long[] parentResourcePrimKeies, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where parentResourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_L( long[] parentResourcePrimKeies, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where parentResourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_L( long[] parentResourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where parentResourcePrimKey = ? and latest = ? from the database. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @throws SystemException if a system exception occurred */ public void removeByP_L(long parentResourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where parentResourcePrimKey = ? and latest = ?. * * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByP_L(long parentResourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where parentResourcePrimKey = any ? and latest = ?. * * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByP_L(long[] parentResourcePrimKeies, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_M( long parentResourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where parentResourcePrimKey = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_M( long parentResourcePrimKey, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where parentResourcePrimKey = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_M( long parentResourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByP_M_First( long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByP_M_First( long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByP_M_Last( long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByP_M_Last( long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where parentResourcePrimKey = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByP_M_PrevAndNext( long kbArticleId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where parentResourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_M( long[] parentResourcePrimKeies, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where parentResourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_M( long[] parentResourcePrimKeies, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where parentResourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_M( long[] parentResourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where parentResourcePrimKey = ? and main = ? from the database. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @throws SystemException if a system exception occurred */ public void removeByP_M(long parentResourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where parentResourcePrimKey = ? and main = ?. * * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByP_M(long parentResourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where parentResourcePrimKey = any ? and main = ?. * * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByP_M(long[] parentResourcePrimKeies, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_S( long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where parentResourcePrimKey = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_S( long parentResourcePrimKey, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where parentResourcePrimKey = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_S( long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByP_S_First( long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByP_S_First( long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByP_S_Last( long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByP_S_Last( long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where parentResourcePrimKey = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByP_S_PrevAndNext( long kbArticleId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where parentResourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_S( long[] parentResourcePrimKeies, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where parentResourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_S( long[] parentResourcePrimKeies, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where parentResourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByP_S( long[] parentResourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where parentResourcePrimKey = ? and status = ? from the database. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @throws SystemException if a system exception occurred */ public void removeByP_S(long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where parentResourcePrimKey = ? and status = ?. * * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByP_S(long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where parentResourcePrimKey = any ? and status = ?. * * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByP_S(long[] parentResourcePrimKeies, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_L( long resourcePrimKey, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_L( long resourcePrimKey, long groupId, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_L( long resourcePrimKey, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_G_L_First( long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_G_L_First( long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_G_L_Last( long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_G_L_Last( long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByR_G_L_PrevAndNext( long kbArticleId, long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_L( long resourcePrimKey, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_L( long resourcePrimKey, long groupId, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_L( long resourcePrimKey, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByR_G_L_PrevAndNext( long kbArticleId, long resourcePrimKey, long groupId, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and latest = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = any ? and groupId = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_L( long[] resourcePrimKeies, long groupId, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where resourcePrimKey = ? and groupId = ? and latest = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @throws SystemException if a system exception occurred */ public void removeByR_G_L(long resourcePrimKey, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_G_L(long resourcePrimKey, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = any ? and groupId = ? and latest = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_G_L(long[] resourcePrimKeies, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and latest = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param latest the latest * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByR_G_L(long resourcePrimKey, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and latest = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param latest the latest * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByR_G_L(long[] resourcePrimKeies, long groupId, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_M( long resourcePrimKey, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_M( long resourcePrimKey, long groupId, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_M( long resourcePrimKey, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_G_M_First( long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_G_M_First( long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_G_M_Last( long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_G_M_Last( long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where resourcePrimKey = ? and groupId = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByR_G_M_PrevAndNext( long kbArticleId, long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_M( long resourcePrimKey, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_M( long resourcePrimKey, long groupId, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where resourcePrimKey = ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_M( long resourcePrimKey, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByR_G_M_PrevAndNext( long kbArticleId, long resourcePrimKey, long groupId, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and main = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_M( long[] resourcePrimKeies, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_M( long[] resourcePrimKeies, long groupId, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_M( long[] resourcePrimKeies, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = any ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_M( long[] resourcePrimKeies, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = any ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_M( long[] resourcePrimKeies, long groupId, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = any ? and groupId = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_M( long[] resourcePrimKeies, long groupId, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where resourcePrimKey = ? and groupId = ? and main = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @throws SystemException if a system exception occurred */ public void removeByR_G_M(long resourcePrimKey, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_G_M(long resourcePrimKey, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = any ? and groupId = ? and main = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_G_M(long[] resourcePrimKeies, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and main = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param main the main * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByR_G_M(long resourcePrimKey, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and main = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param main the main * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByR_G_M(long[] resourcePrimKeies, long groupId, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_S( long resourcePrimKey, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_S( long resourcePrimKey, long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_S( long resourcePrimKey, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_G_S_First( long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_G_S_First( long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByR_G_S_Last( long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByR_G_S_Last( long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where resourcePrimKey = ? and groupId = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByR_G_S_PrevAndNext( long kbArticleId, long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_S( long resourcePrimKey, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_S( long resourcePrimKey, long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where resourcePrimKey = ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_S( long resourcePrimKey, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByR_G_S_PrevAndNext( long kbArticleId, long resourcePrimKey, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and status = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_S( long[] resourcePrimKeies, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_S( long[] resourcePrimKeies, long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByR_G_S( long[] resourcePrimKeies, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where resourcePrimKey = any ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_S( long[] resourcePrimKeies, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where resourcePrimKey = any ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_S( long[] resourcePrimKeies, long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where resourcePrimKey = any ? and groupId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByR_G_S( long[] resourcePrimKeies, long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where resourcePrimKey = ? and groupId = ? and status = ? from the database. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @throws SystemException if a system exception occurred */ public void removeByR_G_S(long resourcePrimKey, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_G_S(long resourcePrimKey, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where resourcePrimKey = any ? and groupId = ? and status = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByR_G_S(long[] resourcePrimKeies, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where resourcePrimKey = ? and groupId = ? and status = ?. * * @param resourcePrimKey the resource prim key * @param groupId the group ID * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByR_G_S(long resourcePrimKey, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where resourcePrimKey = any ? and groupId = ? and status = ?. * * @param resourcePrimKeies the resource prim keies * @param groupId the group ID * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByR_G_S(long[] resourcePrimKeies, long groupId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_L( long groupId, long parentResourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_L( long groupId, long parentResourcePrimKey, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_L( long groupId, long parentResourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_L_First( long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_L_First( long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_L_Last( long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_L_Last( long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_P_L_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_L( long groupId, long parentResourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_L( long groupId, long parentResourcePrimKey, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_L( long groupId, long parentResourcePrimKey, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_P_L_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_L( long groupId, long[] parentResourcePrimKeies, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_L( long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_L( long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_L( long groupId, long[] parentResourcePrimKeies, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_L( long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_L( long groupId, long[] parentResourcePrimKeies, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and parentResourcePrimKey = ? and latest = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @throws SystemException if a system exception occurred */ public void removeByG_P_L(long groupId, long parentResourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_L(long groupId, long parentResourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param latest the latest * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_L(long groupId, long parentResourcePrimKey, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param latest the latest * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_L(long groupId, long[] parentResourcePrimKeies, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_M( long groupId, long parentResourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_M( long groupId, long parentResourcePrimKey, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_M( long groupId, long parentResourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_M_First( long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_M_First( long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_M_Last( long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_M_Last( long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_P_M_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_M( long groupId, long parentResourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_M( long groupId, long parentResourcePrimKey, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_M( long groupId, long parentResourcePrimKey, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_P_M_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_M( long groupId, long[] parentResourcePrimKeies, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_M( long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_M( long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_M( long groupId, long[] parentResourcePrimKeies, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_M( long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_M( long groupId, long[] parentResourcePrimKeies, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and parentResourcePrimKey = ? and main = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @throws SystemException if a system exception occurred */ public void removeByG_P_M(long groupId, long parentResourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_M(long groupId, long parentResourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param main the main * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_M(long groupId, long parentResourcePrimKey, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param main the main * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_M(long groupId, long[] parentResourcePrimKeies, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S( long groupId, long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S( long groupId, long parentResourcePrimKey, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S( long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_S_First( long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_S_First( long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_S_Last( long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_S_Last( long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_P_S_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S( long groupId, long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S( long groupId, long parentResourcePrimKey, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S( long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_P_S_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S( long groupId, long[] parentResourcePrimKeies, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S( long groupId, long[] parentResourcePrimKeies, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S( long groupId, long[] parentResourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S( long groupId, long[] parentResourcePrimKeies, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S( long groupId, long[] parentResourcePrimKeies, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S( long groupId, long[] parentResourcePrimKeies, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and parentResourcePrimKey = ? and status = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @throws SystemException if a system exception occurred */ public void removeByG_P_S(long groupId, long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_S(long groupId, long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_S(long groupId, long[] parentResourcePrimKeies, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_S(long groupId, long parentResourcePrimKey, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKeies the parent resource prim keies * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_S(long groupId, long[] parentResourcePrimKeies, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT( long groupId, long kbFolderId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT( long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT( long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_KBFI_UT_First( long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_KBFI_UT_First( long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_KBFI_UT_Last( long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_KBFI_UT_Last( long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_KBFI_UT_PrevAndNext( long kbArticleId, long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT( long groupId, long kbFolderId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT( long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT( long groupId, long kbFolderId, java.lang.String urlTitle, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_KBFI_UT_PrevAndNext( long kbArticleId, long groupId, long kbFolderId, java.lang.String urlTitle, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? from the database. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @throws SystemException if a system exception occurred */ public void removeByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_KBFI_UT(long groupId, long kbFolderId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_S( long groupId, long kbFolderId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and kbFolderId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_S( long groupId, long kbFolderId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and kbFolderId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_S( long groupId, long kbFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_KBFI_S_First( long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_KBFI_S_First( long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_KBFI_S_Last( long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_KBFI_S_Last( long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and kbFolderId = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_KBFI_S_PrevAndNext( long kbArticleId, long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_S( long groupId, long kbFolderId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_S( long groupId, long kbFolderId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and kbFolderId = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_S( long groupId, long kbFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_KBFI_S_PrevAndNext( long kbArticleId, long groupId, long kbFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and kbFolderId = ? and status = ? from the database. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @throws SystemException if a system exception occurred */ public void removeByG_KBFI_S(long groupId, long kbFolderId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_KBFI_S(long groupId, long kbFolderId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_KBFI_S(long groupId, long kbFolderId, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_S_L_First( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_S_L_First( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_S_L_Last( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_S_L_Last( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_P_S_L_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_P_S_L_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param latest the latest * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param latest the latest * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean latest, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and latest = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param latest the latest * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_L( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean latest, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @throws SystemException if a system exception occurred */ public void removeByG_P_S_L(long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_S_L(long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param latest the latest * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_S_L(long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param latest the latest * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_S_L(long groupId, long parentResourcePrimKey, java.lang.String sections, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and latest = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param latest the latest * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_S_L(long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean latest) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_S_M_First( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_S_M_First( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_S_M_Last( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_S_M_Last( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_P_S_M_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_P_S_M_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param main the main * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param main the main * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean main, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and main = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param main the main * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_M( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean main, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @throws SystemException if a system exception occurred */ public void removeByG_P_S_M(long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_S_M(long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param main the main * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_S_M(long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param main the main * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_S_M(long groupId, long parentResourcePrimKey, java.lang.String sections, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and main = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param main the main * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_S_M(long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, boolean main) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String sections, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String sections, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String sections, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_S_S_First( long groupId, long parentResourcePrimKey, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_S_S_First( long groupId, long parentResourcePrimKey, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_P_S_S_Last( long groupId, long parentResourcePrimKey, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_P_S_S_Last( long groupId, long parentResourcePrimKey, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_P_S_S_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String sections, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String sections, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String sections, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_P_S_S_PrevAndNext( long kbArticleId, long groupId, long parentResourcePrimKey, java.lang.String sections, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_P_S_S( long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ? from the database. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @throws SystemException if a system exception occurred */ public void removeByG_P_S_S(long groupId, long parentResourcePrimKey, java.lang.String sections, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_S_S(long groupId, long parentResourcePrimKey, java.lang.String sections, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_P_S_S(long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sections the sections * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_S_S(long groupId, long parentResourcePrimKey, java.lang.String sections, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and parentResourcePrimKey = ? and sections LIKE any ? and status = ?. * * @param groupId the group ID * @param parentResourcePrimKey the parent resource prim key * @param sectionses the sectionses * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_P_S_S(long groupId, long parentResourcePrimKey, java.lang.String[] sectionses, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_KBFI_UT_ST_First( long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the first k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_KBFI_UT_ST_First( long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByG_KBFI_UT_ST_Last( long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the last k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching k b article, or <code>null</code> if a matching k b article could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByG_KBFI_UT_ST_Last( long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] findByG_KBFI_UT_ST_PrevAndNext( long kbArticleId, long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permissions to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b articles before and after the current k b article in the ordered set of k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param kbArticleId the primary key of the current k b article * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle[] filterFindByG_KBFI_UT_ST_PrevAndNext( long kbArticleId, long groupId, long kbFolderId, java.lang.String urlTitle, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @return the matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> filterFindByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @return the matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @param start the lower bound of the range of k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findByG_KBFI_UT_ST( long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ? from the database. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @throws SystemException if a system exception occurred */ public void removeByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @return the number of matching k b articles * @throws SystemException if a system exception occurred */ public int countByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param status the status * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles that the user has permission to view where groupId = ? and kbFolderId = ? and urlTitle = ? and status = any ?. * * @param groupId the group ID * @param kbFolderId the kb folder ID * @param urlTitle the url title * @param statuses the statuses * @return the number of matching k b articles that the user has permission to view * @throws SystemException if a system exception occurred */ public int filterCountByG_KBFI_UT_ST(long groupId, long kbFolderId, java.lang.String urlTitle, int[] statuses) throws com.liferay.portal.kernel.exception.SystemException; /** * Caches the k b article in the entity cache if it is enabled. * * @param kbArticle the k b article */ public void cacheResult(com.liferay.knowledgebase.model.KBArticle kbArticle); /** * Caches the k b articles in the entity cache if it is enabled. * * @param kbArticles the k b articles */ public void cacheResult( java.util.List<com.liferay.knowledgebase.model.KBArticle> kbArticles); /** * Creates a new k b article with the primary key. Does not add the k b article to the database. * * @param kbArticleId the primary key for the new k b article * @return the new k b article */ public com.liferay.knowledgebase.model.KBArticle create(long kbArticleId); /** * Removes the k b article with the primary key from the database. Also notifies the appropriate model listeners. * * @param kbArticleId the primary key of the k b article * @return the k b article that was removed * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle remove(long kbArticleId) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; public com.liferay.knowledgebase.model.KBArticle updateImpl( com.liferay.knowledgebase.model.KBArticle kbArticle) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b article with the primary key or throws a {@link com.liferay.knowledgebase.NoSuchArticleException} if it could not be found. * * @param kbArticleId the primary key of the k b article * @return the k b article * @throws com.liferay.knowledgebase.NoSuchArticleException if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle findByPrimaryKey( long kbArticleId) throws com.liferay.knowledgebase.NoSuchArticleException, com.liferay.portal.kernel.exception.SystemException; /** * Returns the k b article with the primary key or returns <code>null</code> if it could not be found. * * @param kbArticleId the primary key of the k b article * @return the k b article, or <code>null</code> if a k b article with the primary key could not be found * @throws SystemException if a system exception occurred */ public com.liferay.knowledgebase.model.KBArticle fetchByPrimaryKey( long kbArticleId) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns all the k b articles. * * @return the k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns a range of all the k b articles. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @return the range of k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** * Returns an ordered range of all the k b articles. * * <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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.knowledgebase.model.impl.KBArticleModelImpl}. 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 k b articles * @param end the upper bound of the range of k b articles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of k b articles * @throws SystemException if a system exception occurred */ public java.util.List<com.liferay.knowledgebase.model.KBArticle> findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** * Removes all the k b articles from the database. * * @throws SystemException if a system exception occurred */ public void removeAll() throws com.liferay.portal.kernel.exception.SystemException; /** * Returns the number of k b articles. * * @return the number of k b articles * @throws SystemException if a system exception occurred */ public int countAll() throws com.liferay.portal.kernel.exception.SystemException; }