Interface KBTemplatePersistence

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

@ProviderType public interface KBTemplatePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<KBTemplate>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<KBTemplate>
The persistence interface for the kb template service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(KBTemplate kbTemplate)
    Caches the kb template in the entity cache if it is enabled.
    void
    cacheResult(List<KBTemplate> kbTemplates)
    Caches the kb templates in the entity cache if it is enabled.
    int
    Returns the number of kb templates.
    int
    countByGroupId(long groupId)
    Returns the number of kb templates where groupId = ?.
    int
    Returns the number of kb templates where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of kb templates where uuid = ? and companyId = ?.
    int
    countByUUID_G(String uuid, long groupId)
    Returns the number of kb templates where uuid = ? and groupId = ?.
    create(long kbTemplateId)
    Creates a new kb template with the primary key.
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the first kb template in the ordered set where groupId = ?.
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the last kb template in the ordered set where groupId = ?.
    fetchByPrimaryKey(long kbTemplateId)
    Returns the kb template with the primary key or returns null if it could not be found.
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the first kb template in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the last kb template in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the first kb template in the ordered set where uuid = ?.
    fetchByUUID_G(String uuid, long groupId)
    Returns the kb template where uuid = ? and groupId = ? or returns null if it could not be found.
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the kb template where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the last kb template in the ordered set where uuid = ?.
    int
    filterCountByGroupId(long groupId)
    Returns the number of kb templates that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId)
    Returns all the kb templates that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId, int start, int end)
    Returns a range of all the kb templates that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns an ordered range of all the kb templates that the user has permissions to view where groupId = ?.
    filterFindByGroupId_PrevAndNext(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the kb templates before and after the current kb template in the ordered set of kb templates that the user has permission to view where groupId = ?.
    Returns all the kb templates.
    findAll(int start, int end)
    Returns a range of all the kb templates.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns an ordered range of all the kb templates.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb templates.
    findByGroupId(long groupId)
    Returns all the kb templates where groupId = ?.
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the kb templates where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns an ordered range of all the kb templates where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb templates where groupId = ?.
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the first kb template in the ordered set where groupId = ?.
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the last kb template in the ordered set where groupId = ?.
    findByGroupId_PrevAndNext(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the kb templates before and after the current kb template in the ordered set where groupId = ?.
    findByPrimaryKey(long kbTemplateId)
    Returns the kb template with the primary key or throws a NoSuchTemplateException if it could not be found.
    Returns all the kb templates where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the kb templates where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns an ordered range of all the kb templates where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb templates where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the kb templates where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the kb templates where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns an ordered range of all the kb templates where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the kb templates where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the first kb template in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the last kb template in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_PrevAndNext(long kbTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the kb templates before and after the current kb template in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the first kb template in the ordered set where uuid = ?.
    findByUUID_G(String uuid, long groupId)
    Returns the kb template where uuid = ? and groupId = ? or throws a NoSuchTemplateException if it could not be found.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the last kb template in the ordered set where uuid = ?.
    findByUuid_PrevAndNext(long kbTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
    Returns the kb templates before and after the current kb template in the ordered set where uuid = ?.
    remove(long kbTemplateId)
    Removes the kb template with the primary key from the database.
    void
    Removes all the kb templates from the database.
    void
    removeByGroupId(long groupId)
    Removes all the kb templates where groupId = ? from the database.
    void
    Removes all the kb templates where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the kb templates where uuid = ? and companyId = ? from the database.
    removeByUUID_G(String uuid, long groupId)
    Removes the kb template where uuid = ? and groupId = ? from the database.
    updateImpl(KBTemplate kbTemplate)
     

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

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

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

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

    • findByUuid

      List<KBTemplate> findByUuid(String uuid)
      Returns all the kb templates where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching kb templates
    • findByUuid

      List<KBTemplate> findByUuid(String uuid, int start, int end)
      Returns a range of all the kb templates 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 KBTemplateModelImpl.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      KBTemplate removeByUUID_G(String uuid, long groupId) throws NoSuchTemplateException
      Removes the kb template where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the kb template that was removed
      Throws:
      NoSuchTemplateException
    • countByUUID_G

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

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

      List<KBTemplate> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the kb templates 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 KBTemplateModelImpl.

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

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

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

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

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

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

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

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

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

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

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

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

      List<KBTemplate> findByGroupId(long groupId)
      Returns all the kb templates where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching kb templates
    • findByGroupId

      List<KBTemplate> findByGroupId(long groupId, int start, int end)
      Returns a range of all the kb templates 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 KBTemplateModelImpl.

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

      List<KBTemplate> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
      Returns an ordered range of all the kb templates 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 KBTemplateModelImpl.

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

      List<KBTemplate> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kb templates 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 KBTemplateModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of kb templates
      end - the upper bound of the range of kb templates (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 templates
    • findByGroupId_First

      KBTemplate findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
      Returns the first kb template 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 template
      Throws:
      NoSuchTemplateException - if a matching kb template could not be found
    • fetchByGroupId_First

      KBTemplate fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
      Returns the first kb template 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 template, or null if a matching kb template could not be found
    • findByGroupId_Last

      KBTemplate findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
      Returns the last kb template 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 template
      Throws:
      NoSuchTemplateException - if a matching kb template could not be found
    • fetchByGroupId_Last

      KBTemplate fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
      Returns the last kb template 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 template, or null if a matching kb template could not be found
    • findByGroupId_PrevAndNext

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

      List<KBTemplate> filterFindByGroupId(long groupId)
      Returns all the kb templates that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching kb templates that the user has permission to view
    • filterFindByGroupId

      List<KBTemplate> filterFindByGroupId(long groupId, int start, int end)
      Returns a range of all the kb templates that the user has permission to view 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 KBTemplateModelImpl.

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

      List<KBTemplate> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
      Returns an ordered range of all the kb templates that the user has permissions to view 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 KBTemplateModelImpl.

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

      KBTemplate[] filterFindByGroupId_PrevAndNext(long kbTemplateId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws NoSuchTemplateException
      Returns the kb templates before and after the current kb template in the ordered set of kb templates that the user has permission to view where groupId = ?.
      Parameters:
      kbTemplateId - the primary key of the current kb template
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kb template
      Throws:
      NoSuchTemplateException - if a kb template with the primary key could not be found
    • removeByGroupId

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

      int countByGroupId(long groupId)
      Returns the number of kb templates where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching kb templates
    • filterCountByGroupId

      int filterCountByGroupId(long groupId)
      Returns the number of kb templates that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching kb templates that the user has permission to view
    • cacheResult

      void cacheResult(KBTemplate kbTemplate)
      Caches the kb template in the entity cache if it is enabled.
      Parameters:
      kbTemplate - the kb template
    • cacheResult

      void cacheResult(List<KBTemplate> kbTemplates)
      Caches the kb templates in the entity cache if it is enabled.
      Parameters:
      kbTemplates - the kb templates
    • create

      KBTemplate create(long kbTemplateId)
      Creates a new kb template with the primary key. Does not add the kb template to the database.
      Parameters:
      kbTemplateId - the primary key for the new kb template
      Returns:
      the new kb template
    • remove

      KBTemplate remove(long kbTemplateId) throws NoSuchTemplateException
      Removes the kb template with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      kbTemplateId - the primary key of the kb template
      Returns:
      the kb template that was removed
      Throws:
      NoSuchTemplateException - if a kb template with the primary key could not be found
    • updateImpl

      KBTemplate updateImpl(KBTemplate kbTemplate)
    • findByPrimaryKey

      KBTemplate findByPrimaryKey(long kbTemplateId) throws NoSuchTemplateException
      Returns the kb template with the primary key or throws a NoSuchTemplateException if it could not be found.
      Parameters:
      kbTemplateId - the primary key of the kb template
      Returns:
      the kb template
      Throws:
      NoSuchTemplateException - if a kb template with the primary key could not be found
    • fetchByPrimaryKey

      KBTemplate fetchByPrimaryKey(long kbTemplateId)
      Returns the kb template with the primary key or returns null if it could not be found.
      Parameters:
      kbTemplateId - the primary key of the kb template
      Returns:
      the kb template, or null if a kb template with the primary key could not be found
    • findAll

      List<KBTemplate> findAll()
      Returns all the kb templates.
      Returns:
      the kb templates
    • findAll

      List<KBTemplate> findAll(int start, int end)
      Returns a range of all the kb templates.

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

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

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

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

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

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

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

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

      void removeAll()
      Removes all the kb templates from the database.
    • countAll

      int countAll()
      Returns the number of kb templates.
      Returns:
      the number of kb templates