Class KBCommentUtil

java.lang.Object
com.liferay.knowledge.base.service.persistence.KBCommentUtil

public class KBCommentUtil extends Object
The persistence utility for the kb comment service. This utility wraps com.liferay.knowledge.base.service.persistence.impl.KBCommentPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Caches the kb comment in the entity cache if it is enabled.
    static void
    cacheResult(List<KBComment> kbComments)
    Caches the kb comments in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(KBComment kbComment)
     
    static int
    Returns the number of kb comments.
    static int
    countByC_C(long classNameId, long classPK)
    Returns the number of kb comments where classNameId = ? and classPK = ?.
    static int
    countByC_C_S(long classNameId, long classPK, int status)
    Returns the number of kb comments where classNameId = ? and classPK = ? and status = ?.
    static int
    countByC_C_S(long classNameId, long classPK, int[] statuses)
    Returns the number of kb comments where classNameId = ? and classPK = ? and status = any ?.
    static int
    countByG_C(long groupId, long classNameId)
    Returns the number of kb comments where groupId = ? and classNameId = ?.
    static int
    countByG_S(long groupId, int status)
    Returns the number of kb comments where groupId = ? and status = ?.
    static int
    countByGroupId(long groupId)
    Returns the number of kb comments where groupId = ?.
    static int
    countByU_C_C(long userId, long classNameId, long classPK)
    Returns the number of kb comments where userId = ? and classNameId = ? and classPK = ?.
    static int
    Returns the number of kb comments where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of kb comments where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of kb comments where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static KBComment
    create(long kbCommentId)
    Creates a new kb comment with the primary key.
    static KBComment
    fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where classNameId = ? and classPK = ?.
    static KBComment
    fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where classNameId = ? and classPK = ?.
    static KBComment
    fetchByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
    static KBComment
    fetchByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
    static KBComment
    fetchByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where groupId = ? and classNameId = ?.
    static KBComment
    fetchByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where groupId = ? and classNameId = ?.
    static KBComment
    fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where groupId = ? and status = ?.
    static KBComment
    fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where groupId = ? and status = ?.
    static KBComment
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where groupId = ?.
    static KBComment
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where groupId = ?.
    static KBComment
    fetchByPrimaryKey(long kbCommentId)
    Returns the kb comment with the primary key or returns null if it could not be found.
     
    static KBComment
    fetchByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
    static KBComment
    fetchByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
    static KBComment
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where uuid = ? and companyId = ?.
    static KBComment
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where uuid = ? and companyId = ?.
    static KBComment
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where uuid = ?.
    static KBComment
    fetchByUUID_G(String uuid, long groupId)
    Returns the kb comment where uuid = ? and groupId = ? or returns null if it could not be found.
    static KBComment
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the kb comment where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    static KBComment
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where uuid = ?.
    static List<KBComment>
    Returns all the kb comments.
    static List<KBComment>
    findAll(int start, int end)
    Returns a range of all the kb comments.
    static List<KBComment>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments.
    static List<KBComment>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments.
    static List<KBComment>
    findByC_C(long classNameId, long classPK)
    Returns all the kb comments where classNameId = ? and classPK = ?.
    static List<KBComment>
    findByC_C(long classNameId, long classPK, int start, int end)
    Returns a range of all the kb comments where classNameId = ? and classPK = ?.
    static List<KBComment>
    findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where classNameId = ? and classPK = ?.
    static List<KBComment>
    findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where classNameId = ? and classPK = ?.
    static KBComment
    findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where classNameId = ? and classPK = ?.
    static KBComment
    findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where classNameId = ? and classPK = ?.
    static KBComment[]
    findByC_C_PrevAndNext(long kbCommentId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the kb comments before and after the current kb comment in the ordered set where classNameId = ? and classPK = ?.
    static List<KBComment>
    findByC_C_S(long classNameId, long classPK, int status)
    Returns all the kb comments where classNameId = ? and classPK = ? and status = ?.
    static List<KBComment>
    findByC_C_S(long classNameId, long classPK, int[] statuses)
    Returns all the kb comments where classNameId = ? and classPK = ? and status = any ?.
    static List<KBComment>
    findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end)
    Returns a range of all the kb comments where classNameId = ? and classPK = ? and status = any ?.
    static List<KBComment>
    findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = any ?.
    static List<KBComment>
    findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?, optionally using the finder cache.
    static List<KBComment>
    findByC_C_S(long classNameId, long classPK, int status, int start, int end)
    Returns a range of all the kb comments where classNameId = ? and classPK = ? and status = ?.
    static List<KBComment>
    findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?.
    static List<KBComment>
    findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?.
    static KBComment
    findByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
    static KBComment
    findByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
    static KBComment[]
    findByC_C_S_PrevAndNext(long kbCommentId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the kb comments before and after the current kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
    static List<KBComment>
    findByG_C(long groupId, long classNameId)
    Returns all the kb comments where groupId = ? and classNameId = ?.
    static List<KBComment>
    findByG_C(long groupId, long classNameId, int start, int end)
    Returns a range of all the kb comments where groupId = ? and classNameId = ?.
    static List<KBComment>
    findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where groupId = ? and classNameId = ?.
    static List<KBComment>
    findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where groupId = ? and classNameId = ?.
    static KBComment
    findByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where groupId = ? and classNameId = ?.
    static KBComment
    findByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where groupId = ? and classNameId = ?.
    static KBComment[]
    findByG_C_PrevAndNext(long kbCommentId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the kb comments before and after the current kb comment in the ordered set where groupId = ? and classNameId = ?.
    static List<KBComment>
    findByG_S(long groupId, int status)
    Returns all the kb comments where groupId = ? and status = ?.
    static List<KBComment>
    findByG_S(long groupId, int status, int start, int end)
    Returns a range of all the kb comments where groupId = ? and status = ?.
    static List<KBComment>
    findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where groupId = ? and status = ?.
    static List<KBComment>
    findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where groupId = ? and status = ?.
    static KBComment
    findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where groupId = ? and status = ?.
    static KBComment
    findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where groupId = ? and status = ?.
    static KBComment[]
    findByG_S_PrevAndNext(long kbCommentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the kb comments before and after the current kb comment in the ordered set where groupId = ? and status = ?.
    static List<KBComment>
    findByGroupId(long groupId)
    Returns all the kb comments where groupId = ?.
    static List<KBComment>
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the kb comments where groupId = ?.
    static List<KBComment>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where groupId = ?.
    static List<KBComment>
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where groupId = ?.
    static KBComment
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where groupId = ?.
    static KBComment
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where groupId = ?.
    static KBComment[]
    findByGroupId_PrevAndNext(long kbCommentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the kb comments before and after the current kb comment in the ordered set where groupId = ?.
    static KBComment
    findByPrimaryKey(long kbCommentId)
    Returns the kb comment with the primary key or throws a NoSuchCommentException if it could not be found.
    static List<KBComment>
    findByU_C_C(long userId, long classNameId, long classPK)
    Returns all the kb comments where userId = ? and classNameId = ? and classPK = ?.
    static List<KBComment>
    findByU_C_C(long userId, long classNameId, long classPK, int start, int end)
    Returns a range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.
    static List<KBComment>
    findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.
    static List<KBComment>
    findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.
    static KBComment
    findByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
    static KBComment
    findByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
    static KBComment[]
    findByU_C_C_PrevAndNext(long kbCommentId, long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the kb comments before and after the current kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
    static List<KBComment>
    Returns all the kb comments where uuid = ?.
    static List<KBComment>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the kb comments where uuid = ?.
    static List<KBComment>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where uuid = ?.
    static List<KBComment>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where uuid = ?.
    static List<KBComment>
    findByUuid_C(String uuid, long companyId)
    Returns all the kb comments where uuid = ? and companyId = ?.
    static List<KBComment>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the kb comments where uuid = ? and companyId = ?.
    static List<KBComment>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns an ordered range of all the kb comments where uuid = ? and companyId = ?.
    static List<KBComment>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb comments where uuid = ? and companyId = ?.
    static KBComment
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where uuid = ? and companyId = ?.
    static KBComment
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where uuid = ? and companyId = ?.
    static KBComment[]
    findByUuid_C_PrevAndNext(long kbCommentId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the kb comments before and after the current kb comment in the ordered set where uuid = ? and companyId = ?.
    static KBComment
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the first kb comment in the ordered set where uuid = ?.
    static KBComment
    findByUUID_G(String uuid, long groupId)
    Returns the kb comment where uuid = ? and groupId = ? or throws a NoSuchCommentException if it could not be found.
    static KBComment
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the last kb comment in the ordered set where uuid = ?.
    static KBComment[]
    findByUuid_PrevAndNext(long kbCommentId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
    Returns the kb comments before and after the current kb comment in the ordered set where uuid = ?.
    static List<KBComment>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<KBComment>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<KBComment>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
     
     
    static KBComment
    remove(long kbCommentId)
    Removes the kb comment with the primary key from the database.
    static void
    Removes all the kb comments from the database.
    static void
    removeByC_C(long classNameId, long classPK)
    Removes all the kb comments where classNameId = ? and classPK = ? from the database.
    static void
    removeByC_C_S(long classNameId, long classPK, int status)
    Removes all the kb comments where classNameId = ? and classPK = ? and status = ? from the database.
    static void
    removeByG_C(long groupId, long classNameId)
    Removes all the kb comments where groupId = ? and classNameId = ? from the database.
    static void
    removeByG_S(long groupId, int status)
    Removes all the kb comments where groupId = ? and status = ? from the database.
    static void
    removeByGroupId(long groupId)
    Removes all the kb comments where groupId = ? from the database.
    static void
    removeByU_C_C(long userId, long classNameId, long classPK)
    Removes all the kb comments where userId = ? and classNameId = ? and classPK = ? from the database.
    static void
    Removes all the kb comments where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the kb comments where uuid = ? and companyId = ? from the database.
    static KBComment
    removeByUUID_G(String uuid, long groupId)
    Removes the kb comment where uuid = ? and groupId = ? from the database.
    static void
     
    static KBComment
    update(KBComment kbComment)
     
    static KBComment
    update(KBComment kbComment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static KBComment
    updateImpl(KBComment kbComment)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KBCommentUtil

      public KBCommentUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(KBComment kbComment)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

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

      public static List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<KBComment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static KBComment update(KBComment kbComment)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static KBComment update(KBComment kbComment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<KBComment> findByUuid(String uuid)
      Returns all the kb comments where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching kb comments
    • findByUuid

      public static List<KBComment> findByUuid(String uuid, int start, int end)
      Returns a range of all the kb comments where uuid = ?.

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

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByUuid

      public static List<KBComment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where uuid = ?.

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

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

      public static List<KBComment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where uuid = ?.

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

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

      public static KBComment findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the first kb comment in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByUuid_First

      public static KBComment fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the first kb comment in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment, or null if a matching kb comment could not be found
    • findByUuid_Last

      public static KBComment findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the last kb comment in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByUuid_Last

      public static KBComment fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the last kb comment in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment, or null if a matching kb comment could not be found
    • findByUuid_PrevAndNext

      public static KBComment[] findByUuid_PrevAndNext(long kbCommentId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the kb comments before and after the current kb comment in the ordered set where uuid = ?.
      Parameters:
      kbCommentId - the primary key of the current kb comment
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the kb comments where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of kb comments where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching kb comments
    • findByUUID_G

      public static KBComment findByUUID_G(String uuid, long groupId) throws NoSuchCommentException
      Returns the kb comment where uuid = ? and groupId = ? or throws a NoSuchCommentException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByUUID_G

      public static KBComment fetchByUUID_G(String uuid, long groupId)
      Returns the kb comment where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching kb comment, or null if a matching kb comment could not be found
    • fetchByUUID_G

      public static KBComment fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the kb comment where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kb comment, or null if a matching kb comment could not be found
    • removeByUUID_G

      public static KBComment removeByUUID_G(String uuid, long groupId) throws NoSuchCommentException
      Removes the kb comment where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the kb comment that was removed
      Throws:
      NoSuchCommentException
    • countByUUID_G

      public static int countByUUID_G(String uuid, long groupId)
      Returns the number of kb comments where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching kb comments
    • findByUuid_C

      public static List<KBComment> findByUuid_C(String uuid, long companyId)
      Returns all the kb comments where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching kb comments
    • findByUuid_C

      public static List<KBComment> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the kb comments where uuid = ? and companyId = ?.

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

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByUuid_C

      public static List<KBComment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where uuid = ? and companyId = ?.

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

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

      public static List<KBComment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where uuid = ? and companyId = ?.

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

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

      public static KBComment findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the first kb comment in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByUuid_C_First

      public static KBComment fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the first kb comment in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment, or null if a matching kb comment could not be found
    • findByUuid_C_Last

      public static KBComment findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the last kb comment in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByUuid_C_Last

      public static KBComment fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the last kb comment in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment, or null if a matching kb comment could not be found
    • findByUuid_C_PrevAndNext

      public static KBComment[] findByUuid_C_PrevAndNext(long kbCommentId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the kb comments before and after the current kb comment in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      kbCommentId - the primary key of the current kb comment
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • removeByUuid_C

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

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of kb comments where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching kb comments
    • findByGroupId

      public static List<KBComment> findByGroupId(long groupId)
      Returns all the kb comments where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching kb comments
    • findByGroupId

      public static List<KBComment> findByGroupId(long groupId, int start, int end)
      Returns a range of all the kb comments where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByGroupId

      public static List<KBComment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb comments
    • findByGroupId

      public static List<KBComment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kb comments
    • findByGroupId_First

      public static KBComment findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the first kb comment in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByGroupId_First

      public static KBComment fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the first kb comment in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment, or null if a matching kb comment could not be found
    • findByGroupId_Last

      public static KBComment findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the last kb comment in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByGroupId_Last

      public static KBComment fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the last kb comment in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment, or null if a matching kb comment could not be found
    • findByGroupId_PrevAndNext

      public static KBComment[] findByGroupId_PrevAndNext(long kbCommentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the kb comments before and after the current kb comment in the ordered set where groupId = ?.
      Parameters:
      kbCommentId - the primary key of the current kb comment
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the kb comments where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of kb comments where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching kb comments
    • findByG_C

      public static List<KBComment> findByG_C(long groupId, long classNameId)
      Returns all the kb comments where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      Returns:
      the matching kb comments
    • findByG_C

      public static List<KBComment> findByG_C(long groupId, long classNameId, int start, int end)
      Returns a range of all the kb comments where groupId = ? and classNameId = ?.

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

      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByG_C

      public static List<KBComment> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where groupId = ? and classNameId = ?.

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

      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb comments
    • findByG_C

      public static List<KBComment> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where groupId = ? and classNameId = ?.

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

      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kb comments
    • findByG_C_First

      public static KBComment findByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the first kb comment in the ordered set where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByG_C_First

      public static KBComment fetchByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the first kb comment in the ordered set where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment, or null if a matching kb comment could not be found
    • findByG_C_Last

      public static KBComment findByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the last kb comment in the ordered set where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByG_C_Last

      public static KBComment fetchByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the last kb comment in the ordered set where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment, or null if a matching kb comment could not be found
    • findByG_C_PrevAndNext

      public static KBComment[] findByG_C_PrevAndNext(long kbCommentId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the kb comments before and after the current kb comment in the ordered set where groupId = ? and classNameId = ?.
      Parameters:
      kbCommentId - the primary key of the current kb comment
      groupId - the group ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • removeByG_C

      public static void removeByG_C(long groupId, long classNameId)
      Removes all the kb comments where groupId = ? and classNameId = ? from the database.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
    • countByG_C

      public static int countByG_C(long groupId, long classNameId)
      Returns the number of kb comments where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      Returns:
      the number of matching kb comments
    • findByG_S

      public static List<KBComment> findByG_S(long groupId, int status)
      Returns all the kb comments where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      Returns:
      the matching kb comments
    • findByG_S

      public static List<KBComment> findByG_S(long groupId, int status, int start, int end)
      Returns a range of all the kb comments where groupId = ? and status = ?.

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

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByG_S

      public static List<KBComment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where groupId = ? and status = ?.

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

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb comments
    • findByG_S

      public static List<KBComment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where groupId = ? and status = ?.

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

      Parameters:
      groupId - the group ID
      status - the status
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kb comments
    • findByG_S_First

      public static KBComment findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the first kb comment in the ordered set where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByG_S_First

      public static KBComment fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the first kb comment in the ordered set where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment, or null if a matching kb comment could not be found
    • findByG_S_Last

      public static KBComment findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the last kb comment in the ordered set where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByG_S_Last

      public static KBComment fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the last kb comment in the ordered set where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment, or null if a matching kb comment could not be found
    • findByG_S_PrevAndNext

      public static KBComment[] findByG_S_PrevAndNext(long kbCommentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the kb comments before and after the current kb comment in the ordered set where groupId = ? and status = ?.
      Parameters:
      kbCommentId - the primary key of the current kb comment
      groupId - the group ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • removeByG_S

      public static void removeByG_S(long groupId, int status)
      Removes all the kb comments where groupId = ? and status = ? from the database.
      Parameters:
      groupId - the group ID
      status - the status
    • countByG_S

      public static int countByG_S(long groupId, int status)
      Returns the number of kb comments where groupId = ? and status = ?.
      Parameters:
      groupId - the group ID
      status - the status
      Returns:
      the number of matching kb comments
    • findByC_C

      public static List<KBComment> findByC_C(long classNameId, long classPK)
      Returns all the kb comments where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching kb comments
    • findByC_C

      public static List<KBComment> findByC_C(long classNameId, long classPK, int start, int end)
      Returns a range of all the kb comments where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByC_C

      public static List<KBComment> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb comments
    • findByC_C

      public static List<KBComment> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where classNameId = ? and classPK = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kb comments
    • findByC_C_First

      public static KBComment findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the first kb comment in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByC_C_First

      public static KBComment fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the first kb comment in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment, or null if a matching kb comment could not be found
    • findByC_C_Last

      public static KBComment findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the last kb comment in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByC_C_Last

      public static KBComment fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the last kb comment in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment, or null if a matching kb comment could not be found
    • findByC_C_PrevAndNext

      public static KBComment[] findByC_C_PrevAndNext(long kbCommentId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the kb comments before and after the current kb comment in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      kbCommentId - the primary key of the current kb comment
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • removeByC_C

      public static void removeByC_C(long classNameId, long classPK)
      Removes all the kb comments where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
    • countByC_C

      public static int countByC_C(long classNameId, long classPK)
      Returns the number of kb comments where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching kb comments
    • findByU_C_C

      public static List<KBComment> findByU_C_C(long userId, long classNameId, long classPK)
      Returns all the kb comments where userId = ? and classNameId = ? and classPK = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching kb comments
    • findByU_C_C

      public static List<KBComment> findByU_C_C(long userId, long classNameId, long classPK, int start, int end)
      Returns a range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.

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

      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByU_C_C

      public static List<KBComment> findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.

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

      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb comments
    • findByU_C_C

      public static List<KBComment> findByU_C_C(long userId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where userId = ? and classNameId = ? and classPK = ?.

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

      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kb comments
    • findByU_C_C_First

      public static KBComment findByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the first kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByU_C_C_First

      public static KBComment fetchByU_C_C_First(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the first kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment, or null if a matching kb comment could not be found
    • findByU_C_C_Last

      public static KBComment findByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the last kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByU_C_C_Last

      public static KBComment fetchByU_C_C_Last(long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the last kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment, or null if a matching kb comment could not be found
    • findByU_C_C_PrevAndNext

      public static KBComment[] findByU_C_C_PrevAndNext(long kbCommentId, long userId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the kb comments before and after the current kb comment in the ordered set where userId = ? and classNameId = ? and classPK = ?.
      Parameters:
      kbCommentId - the primary key of the current kb comment
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • removeByU_C_C

      public static void removeByU_C_C(long userId, long classNameId, long classPK)
      Removes all the kb comments where userId = ? and classNameId = ? and classPK = ? from the database.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
    • countByU_C_C

      public static int countByU_C_C(long userId, long classNameId, long classPK)
      Returns the number of kb comments where userId = ? and classNameId = ? and classPK = ?.
      Parameters:
      userId - the user ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching kb comments
    • findByC_C_S

      public static List<KBComment> findByC_C_S(long classNameId, long classPK, int status)
      Returns all the kb comments where classNameId = ? and classPK = ? and status = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      Returns:
      the matching kb comments
    • findByC_C_S

      public static List<KBComment> findByC_C_S(long classNameId, long classPK, int status, int start, int end)
      Returns a range of all the kb comments where classNameId = ? and classPK = ? and status = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByC_C_S

      public static List<KBComment> findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb comments
    • findByC_C_S

      public static List<KBComment> findByC_C_S(long classNameId, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kb comments
    • findByC_C_S_First

      public static KBComment findByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the first kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByC_C_S_First

      public static KBComment fetchByC_C_S_First(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the first kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb comment, or null if a matching kb comment could not be found
    • findByC_C_S_Last

      public static KBComment findByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the last kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment
      Throws:
      NoSuchCommentException - if a matching kb comment could not be found
      NoSuchCommentException
    • fetchByC_C_S_Last

      public static KBComment fetchByC_C_S_Last(long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns the last kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb comment, or null if a matching kb comment could not be found
    • findByC_C_S_PrevAndNext

      public static KBComment[] findByC_C_S_PrevAndNext(long kbCommentId, long classNameId, long classPK, int status, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws NoSuchCommentException
      Returns the kb comments before and after the current kb comment in the ordered set where classNameId = ? and classPK = ? and status = ?.
      Parameters:
      kbCommentId - the primary key of the current kb comment
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • findByC_C_S

      public static List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses)
      Returns all the kb comments where classNameId = ? and classPK = ? and status = any ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      statuses - the statuses
      Returns:
      the matching kb comments
    • findByC_C_S

      public static List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end)
      Returns a range of all the kb comments where classNameId = ? and classPK = ? and status = any ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      statuses - the statuses
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of matching kb comments
    • findByC_C_S

      public static List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = any ?.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      statuses - the statuses
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb comments
    • findByC_C_S

      public static List<KBComment> findByC_C_S(long classNameId, long classPK, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments where classNameId = ? and classPK = ? and status = ?, optionally using the finder cache.

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

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      statuses - the statuses
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching kb comments
    • removeByC_C_S

      public static void removeByC_C_S(long classNameId, long classPK, int status)
      Removes all the kb comments where classNameId = ? and classPK = ? and status = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
    • countByC_C_S

      public static int countByC_C_S(long classNameId, long classPK, int status)
      Returns the number of kb comments where classNameId = ? and classPK = ? and status = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      status - the status
      Returns:
      the number of matching kb comments
    • countByC_C_S

      public static int countByC_C_S(long classNameId, long classPK, int[] statuses)
      Returns the number of kb comments where classNameId = ? and classPK = ? and status = any ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      statuses - the statuses
      Returns:
      the number of matching kb comments
    • cacheResult

      public static void cacheResult(KBComment kbComment)
      Caches the kb comment in the entity cache if it is enabled.
      Parameters:
      kbComment - the kb comment
    • cacheResult

      public static void cacheResult(List<KBComment> kbComments)
      Caches the kb comments in the entity cache if it is enabled.
      Parameters:
      kbComments - the kb comments
    • create

      public static KBComment create(long kbCommentId)
      Creates a new kb comment with the primary key. Does not add the kb comment to the database.
      Parameters:
      kbCommentId - the primary key for the new kb comment
      Returns:
      the new kb comment
    • remove

      public static KBComment remove(long kbCommentId) throws NoSuchCommentException
      Removes the kb comment with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      kbCommentId - the primary key of the kb comment
      Returns:
      the kb comment that was removed
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • updateImpl

      public static KBComment updateImpl(KBComment kbComment)
    • findByPrimaryKey

      public static KBComment findByPrimaryKey(long kbCommentId) throws NoSuchCommentException
      Returns the kb comment with the primary key or throws a NoSuchCommentException if it could not be found.
      Parameters:
      kbCommentId - the primary key of the kb comment
      Returns:
      the kb comment
      Throws:
      NoSuchCommentException - if a kb comment with the primary key could not be found
      NoSuchCommentException
    • fetchByPrimaryKey

      public static KBComment fetchByPrimaryKey(long kbCommentId)
      Returns the kb comment with the primary key or returns null if it could not be found.
      Parameters:
      kbCommentId - the primary key of the kb comment
      Returns:
      the kb comment, or null if a kb comment with the primary key could not be found
    • findAll

      public static List<KBComment> findAll()
      Returns all the kb comments.
      Returns:
      the kb comments
    • findAll

      public static List<KBComment> findAll(int start, int end)
      Returns a range of all the kb comments.

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

      Parameters:
      start - the lower bound of the range of kb comments
      end - the upper bound of the range of kb comments (not inclusive)
      Returns:
      the range of kb comments
    • findAll

      public static List<KBComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator)
      Returns an ordered range of all the kb comments.

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

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

      public static List<KBComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb comments.

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

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

      public static void removeAll()
      Removes all the kb comments from the database.
    • countAll

      public static int countAll()
      Returns the number of kb comments.
      Returns:
      the number of kb comments
    • getPersistence

      public static KBCommentPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KBCommentPersistence persistence)