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

public class KBFolderUtil extends Object
The persistence utility for the kb folder service. This utility wraps com.liferay.knowledge.base.service.persistence.impl.KBFolderPersistenceImpl 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 folder in the entity cache if it is enabled.
    static void
    Caches the kb folders in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(KBFolder kbFolder)
     
    static int
    Returns the number of kb folders.
    static int
    countByCompanyId(long companyId)
    Returns the number of kb folders where companyId = ?.
    static int
    countByERC_G(String externalReferenceCode, long groupId)
    Returns the number of kb folders where externalReferenceCode = ? and groupId = ?.
    static int
    countByG_P(long groupId, long parentKBFolderId)
    Returns the number of kb folders where groupId = ? and parentKBFolderId = ?.
    static int
    countByG_P_N(long groupId, long parentKBFolderId, String name)
    Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and name = ?.
    static int
    countByG_P_S(long groupId, long parentKBFolderId, int status)
    Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and status = ?.
    static int
    countByG_P_UT(long groupId, long parentKBFolderId, String urlTitle)
    Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and urlTitle = ?.
    static int
    Returns the number of kb folders where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of kb folders where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of kb folders where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static KBFolder
    create(long kbFolderId)
    Creates a new kb folder with the primary key.
    static KBFolder
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where companyId = ?.
    static KBFolder
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where companyId = ?.
    static KBFolder
    fetchByERC_G(String externalReferenceCode, long groupId)
    Returns the kb folder where externalReferenceCode = ? and groupId = ? or returns null if it could not be found.
    static KBFolder
    fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
    Returns the kb folder where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    static KBFolder
    fetchByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
    static KBFolder
    fetchByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
    static KBFolder
    fetchByG_P_N(long groupId, long parentKBFolderId, String name)
    Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or returns null if it could not be found.
    static KBFolder
    fetchByG_P_N(long groupId, long parentKBFolderId, String name, boolean useFinderCache)
    Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
    static KBFolder
    fetchByG_P_S_First(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.
    static KBFolder
    fetchByG_P_S_Last(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.
    static KBFolder
    fetchByG_P_UT(long groupId, long parentKBFolderId, String urlTitle)
    Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returns null if it could not be found.
    static KBFolder
    fetchByG_P_UT(long groupId, long parentKBFolderId, String urlTitle, boolean useFinderCache)
    Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returns null if it could not be found, optionally using the finder cache.
    static KBFolder
    fetchByPrimaryKey(long kbFolderId)
    Returns the kb folder with the primary key or returns null if it could not be found.
     
    static KBFolder
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where uuid = ? and companyId = ?.
    static KBFolder
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where uuid = ? and companyId = ?.
    static KBFolder
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where uuid = ?.
    static KBFolder
    fetchByUUID_G(String uuid, long groupId)
    Returns the kb folder where uuid = ? and groupId = ? or returns null if it could not be found.
    static KBFolder
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the kb folder where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    static KBFolder
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where uuid = ?.
    static int
    filterCountByG_P(long groupId, long parentKBFolderId)
    Returns the number of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
    static int
    filterCountByG_P_S(long groupId, long parentKBFolderId, int status)
    Returns the number of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.
    static List<KBFolder>
    filterFindByG_P(long groupId, long parentKBFolderId)
    Returns all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
    static List<KBFolder>
    filterFindByG_P(long groupId, long parentKBFolderId, int start, int end)
    Returns a range of all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
    static List<KBFolder>
    filterFindByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns an ordered range of all the kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ?.
    static KBFolder[]
    filterFindByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the kb folders before and after the current kb folder in the ordered set of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
    static List<KBFolder>
    filterFindByG_P_S(long groupId, long parentKBFolderId, int status)
    Returns all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.
    static List<KBFolder>
    filterFindByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end)
    Returns a range of all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.
    static List<KBFolder>
    filterFindByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns an ordered range of all the kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ? and status = ?.
    static KBFolder[]
    filterFindByG_P_S_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the kb folders before and after the current kb folder in the ordered set of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.
    static List<KBFolder>
    Returns all the kb folders.
    static List<KBFolder>
    findAll(int start, int end)
    Returns a range of all the kb folders.
    static List<KBFolder>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns an ordered range of all the kb folders.
    static List<KBFolder>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb folders.
    static List<KBFolder>
    findByCompanyId(long companyId)
    Returns all the kb folders where companyId = ?.
    static List<KBFolder>
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the kb folders where companyId = ?.
    static List<KBFolder>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns an ordered range of all the kb folders where companyId = ?.
    static List<KBFolder>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb folders where companyId = ?.
    static KBFolder
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where companyId = ?.
    static KBFolder
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where companyId = ?.
    static KBFolder[]
    findByCompanyId_PrevAndNext(long kbFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the kb folders before and after the current kb folder in the ordered set where companyId = ?.
    static KBFolder
    findByERC_G(String externalReferenceCode, long groupId)
    Returns the kb folder where externalReferenceCode = ? and groupId = ? or throws a NoSuchFolderException if it could not be found.
    static List<KBFolder>
    findByG_P(long groupId, long parentKBFolderId)
    Returns all the kb folders where groupId = ? and parentKBFolderId = ?.
    static List<KBFolder>
    findByG_P(long groupId, long parentKBFolderId, int start, int end)
    Returns a range of all the kb folders where groupId = ? and parentKBFolderId = ?.
    static List<KBFolder>
    findByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ?.
    static List<KBFolder>
    findByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ?.
    static KBFolder
    findByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
    static KBFolder
    findByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
    static KBFolder
    findByG_P_N(long groupId, long parentKBFolderId, String name)
    Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or throws a NoSuchFolderException if it could not be found.
    static KBFolder[]
    findByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
    static List<KBFolder>
    findByG_P_S(long groupId, long parentKBFolderId, int status)
    Returns all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.
    static List<KBFolder>
    findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end)
    Returns a range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.
    static List<KBFolder>
    findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.
    static List<KBFolder>
    findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.
    static KBFolder
    findByG_P_S_First(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.
    static KBFolder
    findByG_P_S_Last(long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.
    static KBFolder[]
    findByG_P_S_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.
    static KBFolder
    findByG_P_UT(long groupId, long parentKBFolderId, String urlTitle)
    Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or throws a NoSuchFolderException if it could not be found.
    static KBFolder
    findByPrimaryKey(long kbFolderId)
    Returns the kb folder with the primary key or throws a NoSuchFolderException if it could not be found.
    static List<KBFolder>
    Returns all the kb folders where uuid = ?.
    static List<KBFolder>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the kb folders where uuid = ?.
    static List<KBFolder>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns an ordered range of all the kb folders where uuid = ?.
    static List<KBFolder>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb folders where uuid = ?.
    static List<KBFolder>
    findByUuid_C(String uuid, long companyId)
    Returns all the kb folders where uuid = ? and companyId = ?.
    static List<KBFolder>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the kb folders where uuid = ? and companyId = ?.
    static List<KBFolder>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns an ordered range of all the kb folders where uuid = ? and companyId = ?.
    static List<KBFolder>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb folders where uuid = ? and companyId = ?.
    static KBFolder
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where uuid = ? and companyId = ?.
    static KBFolder
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where uuid = ? and companyId = ?.
    static KBFolder[]
    findByUuid_C_PrevAndNext(long kbFolderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the kb folders before and after the current kb folder in the ordered set where uuid = ? and companyId = ?.
    static KBFolder
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the first kb folder in the ordered set where uuid = ?.
    static KBFolder
    findByUUID_G(String uuid, long groupId)
    Returns the kb folder where uuid = ? and groupId = ? or throws a NoSuchFolderException if it could not be found.
    static KBFolder
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the last kb folder in the ordered set where uuid = ?.
    static KBFolder[]
    findByUuid_PrevAndNext(long kbFolderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
    Returns the kb folders before and after the current kb folder in the ordered set where uuid = ?.
    static List<KBFolder>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<KBFolder>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<KBFolder>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
     
     
    static KBFolder
    remove(long kbFolderId)
    Removes the kb folder with the primary key from the database.
    static void
    Removes all the kb folders from the database.
    static void
    removeByCompanyId(long companyId)
    Removes all the kb folders where companyId = ? from the database.
    static KBFolder
    removeByERC_G(String externalReferenceCode, long groupId)
    Removes the kb folder where externalReferenceCode = ? and groupId = ? from the database.
    static void
    removeByG_P(long groupId, long parentKBFolderId)
    Removes all the kb folders where groupId = ? and parentKBFolderId = ? from the database.
    static KBFolder
    removeByG_P_N(long groupId, long parentKBFolderId, String name)
    Removes the kb folder where groupId = ? and parentKBFolderId = ? and name = ? from the database.
    static void
    removeByG_P_S(long groupId, long parentKBFolderId, int status)
    Removes all the kb folders where groupId = ? and parentKBFolderId = ? and status = ? from the database.
    static KBFolder
    removeByG_P_UT(long groupId, long parentKBFolderId, String urlTitle)
    Removes the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? from the database.
    static void
    Removes all the kb folders where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the kb folders where uuid = ? and companyId = ? from the database.
    static KBFolder
    removeByUUID_G(String uuid, long groupId)
    Removes the kb folder where uuid = ? and groupId = ? from the database.
    static void
     
    static KBFolder
    update(KBFolder kbFolder)
     
    static KBFolder
    update(KBFolder kbFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static KBFolder
    updateImpl(KBFolder kbFolder)
     

    Methods inherited from class java.lang.Object

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

    • KBFolderUtil

      public KBFolderUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(KBFolder kbFolder)
      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,KBFolder> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

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

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

      public static List<KBFolder> findByUuid(String uuid, int start, int end)
      Returns a range of all the kb folders 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 KBFolderModelImpl.

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

      public static List<KBFolder> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns an ordered range of all the kb folders 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 KBFolderModelImpl.

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

      public static List<KBFolder> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb folders 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 KBFolderModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (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 folders
    • findByUuid_First

      public static KBFolder findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the first kb folder 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 folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByUuid_First

      public static KBFolder fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns the first kb folder 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 folder, or null if a matching kb folder could not be found
    • findByUuid_Last

      public static KBFolder findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the last kb folder 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 folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByUuid_Last

      public static KBFolder fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns the last kb folder 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 folder, or null if a matching kb folder could not be found
    • findByUuid_PrevAndNext

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

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

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

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

      public static KBFolder fetchByUUID_G(String uuid, long groupId)
      Returns the kb folder 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 folder, or null if a matching kb folder could not be found
    • fetchByUUID_G

      public static KBFolder fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the kb folder 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 folder, or null if a matching kb folder could not be found
    • removeByUUID_G

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

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

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

      public static List<KBFolder> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the kb folders 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 KBFolderModelImpl.

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

      public static List<KBFolder> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns an ordered range of all the kb folders 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 KBFolderModelImpl.

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

      public static List<KBFolder> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb folders 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 KBFolderModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (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 folders
    • findByUuid_C_First

      public static KBFolder findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the first kb folder 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 folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByUuid_C_First

      public static KBFolder fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns the first kb folder 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 folder, or null if a matching kb folder could not be found
    • findByUuid_C_Last

      public static KBFolder findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the last kb folder 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 folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByUuid_C_Last

      public static KBFolder fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns the last kb folder 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 folder, or null if a matching kb folder could not be found
    • findByUuid_C_PrevAndNext

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

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the kb folders 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 folders where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching kb folders
    • findByCompanyId

      public static List<KBFolder> findByCompanyId(long companyId)
      Returns all the kb folders where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching kb folders
    • findByCompanyId

      public static List<KBFolder> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the kb folders where 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 KBFolderModelImpl.

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

      public static List<KBFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns an ordered range of all the kb folders where 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 KBFolderModelImpl.

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

      public static List<KBFolder> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb folders where 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 KBFolderModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (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 folders
    • findByCompanyId_First

      public static KBFolder findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the first kb folder in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByCompanyId_First

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

      public static KBFolder findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the last kb folder in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByCompanyId_Last

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

      public static KBFolder[] findByCompanyId_PrevAndNext(long kbFolderId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the kb folders before and after the current kb folder in the ordered set where companyId = ?.
      Parameters:
      kbFolderId - the primary key of the current kb folder
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb folder
      Throws:
      NoSuchFolderException - if a kb folder with the primary key could not be found
      NoSuchFolderException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the kb folders where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of kb folders where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching kb folders
    • findByG_P

      public static List<KBFolder> findByG_P(long groupId, long parentKBFolderId)
      Returns all the kb folders where groupId = ? and parentKBFolderId = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      Returns:
      the matching kb folders
    • findByG_P

      public static List<KBFolder> findByG_P(long groupId, long parentKBFolderId, int start, int end)
      Returns a range of all the kb folders where groupId = ? and parentKBFolderId = ?.

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

      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (not inclusive)
      Returns:
      the range of matching kb folders
    • findByG_P

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

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

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

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

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

      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (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 folders
    • findByG_P_First

      public static KBFolder findByG_P_First(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the first kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kb folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByG_P_First

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

      public static KBFolder findByG_P_Last(long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the last kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kb folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByG_P_Last

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

      public static KBFolder[] findByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ?.
      Parameters:
      kbFolderId - the primary key of the current kb folder
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb folder
      Throws:
      NoSuchFolderException - if a kb folder with the primary key could not be found
      NoSuchFolderException
    • filterFindByG_P

      public static List<KBFolder> filterFindByG_P(long groupId, long parentKBFolderId)
      Returns all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      Returns:
      the matching kb folders that the user has permission to view
    • filterFindByG_P

      public static List<KBFolder> filterFindByG_P(long groupId, long parentKBFolderId, int start, int end)
      Returns a range of all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.

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

      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (not inclusive)
      Returns:
      the range of matching kb folders that the user has permission to view
    • filterFindByG_P

      public static List<KBFolder> filterFindByG_P(long groupId, long parentKBFolderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns an ordered range of all the kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ?.

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

      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb folders that the user has permission to view
    • filterFindByG_P_PrevAndNext

      public static KBFolder[] filterFindByG_P_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the kb folders before and after the current kb folder in the ordered set of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
      Parameters:
      kbFolderId - the primary key of the current kb folder
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb folder
      Throws:
      NoSuchFolderException - if a kb folder with the primary key could not be found
      NoSuchFolderException
    • removeByG_P

      public static void removeByG_P(long groupId, long parentKBFolderId)
      Removes all the kb folders where groupId = ? and parentKBFolderId = ? from the database.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
    • countByG_P

      public static int countByG_P(long groupId, long parentKBFolderId)
      Returns the number of kb folders where groupId = ? and parentKBFolderId = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      Returns:
      the number of matching kb folders
    • filterCountByG_P

      public static int filterCountByG_P(long groupId, long parentKBFolderId)
      Returns the number of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      Returns:
      the number of matching kb folders that the user has permission to view
    • findByG_P_N

      public static KBFolder findByG_P_N(long groupId, long parentKBFolderId, String name) throws NoSuchFolderException
      Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or throws a NoSuchFolderException if it could not be found.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      name - the name
      Returns:
      the matching kb folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByG_P_N

      public static KBFolder fetchByG_P_N(long groupId, long parentKBFolderId, String name)
      Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      name - the name
      Returns:
      the matching kb folder, or null if a matching kb folder could not be found
    • fetchByG_P_N

      public static KBFolder fetchByG_P_N(long groupId, long parentKBFolderId, String name, boolean useFinderCache)
      Returns the kb folder where groupId = ? and parentKBFolderId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kb folder, or null if a matching kb folder could not be found
    • removeByG_P_N

      public static KBFolder removeByG_P_N(long groupId, long parentKBFolderId, String name) throws NoSuchFolderException
      Removes the kb folder where groupId = ? and parentKBFolderId = ? and name = ? from the database.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      name - the name
      Returns:
      the kb folder that was removed
      Throws:
      NoSuchFolderException
    • countByG_P_N

      public static int countByG_P_N(long groupId, long parentKBFolderId, String name)
      Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and name = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      name - the name
      Returns:
      the number of matching kb folders
    • findByG_P_UT

      public static KBFolder findByG_P_UT(long groupId, long parentKBFolderId, String urlTitle) throws NoSuchFolderException
      Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or throws a NoSuchFolderException if it could not be found.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      urlTitle - the url title
      Returns:
      the matching kb folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByG_P_UT

      public static KBFolder fetchByG_P_UT(long groupId, long parentKBFolderId, String urlTitle)
      Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      urlTitle - the url title
      Returns:
      the matching kb folder, or null if a matching kb folder could not be found
    • fetchByG_P_UT

      public static KBFolder fetchByG_P_UT(long groupId, long parentKBFolderId, String urlTitle, boolean useFinderCache)
      Returns the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      urlTitle - the url title
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kb folder, or null if a matching kb folder could not be found
    • removeByG_P_UT

      public static KBFolder removeByG_P_UT(long groupId, long parentKBFolderId, String urlTitle) throws NoSuchFolderException
      Removes the kb folder where groupId = ? and parentKBFolderId = ? and urlTitle = ? from the database.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      urlTitle - the url title
      Returns:
      the kb folder that was removed
      Throws:
      NoSuchFolderException
    • countByG_P_UT

      public static int countByG_P_UT(long groupId, long parentKBFolderId, String urlTitle)
      Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and urlTitle = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      urlTitle - the url title
      Returns:
      the number of matching kb folders
    • findByG_P_S

      public static List<KBFolder> findByG_P_S(long groupId, long parentKBFolderId, int status)
      Returns all the kb folders where groupId = ? and parentKBFolderId = ? and status = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      Returns:
      the matching kb folders
    • findByG_P_S

      public static List<KBFolder> findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end)
      Returns a range of all the kb folders where groupId = ? and parentKBFolderId = ? 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 KBFolderModelImpl.

      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (not inclusive)
      Returns:
      the range of matching kb folders
    • findByG_P_S

      public static List<KBFolder> findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ? 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 KBFolderModelImpl.

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

      public static List<KBFolder> findByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb folders where groupId = ? and parentKBFolderId = ? 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 KBFolderModelImpl.

      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (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 folders
    • findByG_P_S_First

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

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

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

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

      public static KBFolder[] findByG_P_S_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the kb folders before and after the current kb folder in the ordered set where groupId = ? and parentKBFolderId = ? and status = ?.
      Parameters:
      kbFolderId - the primary key of the current kb folder
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb folder
      Throws:
      NoSuchFolderException - if a kb folder with the primary key could not be found
      NoSuchFolderException
    • filterFindByG_P_S

      public static List<KBFolder> filterFindByG_P_S(long groupId, long parentKBFolderId, int status)
      Returns all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      Returns:
      the matching kb folders that the user has permission to view
    • filterFindByG_P_S

      public static List<KBFolder> filterFindByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end)
      Returns a range of all the kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? 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 KBFolderModelImpl.

      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (not inclusive)
      Returns:
      the range of matching kb folders that the user has permission to view
    • filterFindByG_P_S

      public static List<KBFolder> filterFindByG_P_S(long groupId, long parentKBFolderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator)
      Returns an ordered range of all the kb folders that the user has permissions to view where groupId = ? and parentKBFolderId = ? 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 KBFolderModelImpl.

      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kb folders that the user has permission to view
    • filterFindByG_P_S_PrevAndNext

      public static KBFolder[] filterFindByG_P_S_PrevAndNext(long kbFolderId, long groupId, long parentKBFolderId, int status, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws NoSuchFolderException
      Returns the kb folders before and after the current kb folder in the ordered set of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.
      Parameters:
      kbFolderId - the primary key of the current kb folder
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb folder
      Throws:
      NoSuchFolderException - if a kb folder with the primary key could not be found
      NoSuchFolderException
    • removeByG_P_S

      public static void removeByG_P_S(long groupId, long parentKBFolderId, int status)
      Removes all the kb folders where groupId = ? and parentKBFolderId = ? and status = ? from the database.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
    • countByG_P_S

      public static int countByG_P_S(long groupId, long parentKBFolderId, int status)
      Returns the number of kb folders where groupId = ? and parentKBFolderId = ? and status = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      Returns:
      the number of matching kb folders
    • filterCountByG_P_S

      public static int filterCountByG_P_S(long groupId, long parentKBFolderId, int status)
      Returns the number of kb folders that the user has permission to view where groupId = ? and parentKBFolderId = ? and status = ?.
      Parameters:
      groupId - the group ID
      parentKBFolderId - the parent kb folder ID
      status - the status
      Returns:
      the number of matching kb folders that the user has permission to view
    • findByERC_G

      public static KBFolder findByERC_G(String externalReferenceCode, long groupId) throws NoSuchFolderException
      Returns the kb folder where externalReferenceCode = ? and groupId = ? or throws a NoSuchFolderException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching kb folder
      Throws:
      NoSuchFolderException - if a matching kb folder could not be found
      NoSuchFolderException
    • fetchByERC_G

      public static KBFolder fetchByERC_G(String externalReferenceCode, long groupId)
      Returns the kb folder where externalReferenceCode = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the matching kb folder, or null if a matching kb folder could not be found
    • fetchByERC_G

      public static KBFolder fetchByERC_G(String externalReferenceCode, long groupId, boolean useFinderCache)
      Returns the kb folder where externalReferenceCode = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kb folder, or null if a matching kb folder could not be found
    • removeByERC_G

      public static KBFolder removeByERC_G(String externalReferenceCode, long groupId) throws NoSuchFolderException
      Removes the kb folder where externalReferenceCode = ? and groupId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the kb folder that was removed
      Throws:
      NoSuchFolderException
    • countByERC_G

      public static int countByERC_G(String externalReferenceCode, long groupId)
      Returns the number of kb folders where externalReferenceCode = ? and groupId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      groupId - the group ID
      Returns:
      the number of matching kb folders
    • cacheResult

      public static void cacheResult(KBFolder kbFolder)
      Caches the kb folder in the entity cache if it is enabled.
      Parameters:
      kbFolder - the kb folder
    • cacheResult

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

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

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

      public static KBFolder updateImpl(KBFolder kbFolder)
    • findByPrimaryKey

      public static KBFolder findByPrimaryKey(long kbFolderId) throws NoSuchFolderException
      Returns the kb folder with the primary key or throws a NoSuchFolderException if it could not be found.
      Parameters:
      kbFolderId - the primary key of the kb folder
      Returns:
      the kb folder
      Throws:
      NoSuchFolderException - if a kb folder with the primary key could not be found
      NoSuchFolderException
    • fetchByPrimaryKey

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

      public static List<KBFolder> findAll()
      Returns all the kb folders.
      Returns:
      the kb folders
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static KBFolderPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KBFolderPersistence persistence)