Interface NotificationTemplatePersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<NotificationTemplate>

@ProviderType public interface NotificationTemplatePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<NotificationTemplate>
The persistence interface for the notification template service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByUuid

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

      List<NotificationTemplate> findByUuid(String uuid, int start, int end)
      Returns a range of all the notification 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 NotificationTemplateModelImpl.

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

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

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

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

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

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

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

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

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

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

      List<NotificationTemplate> filterFindByUuid(String uuid)
      Returns all the notification templates that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching notification templates that the user has permission to view
    • filterFindByUuid

      List<NotificationTemplate> filterFindByUuid(String uuid, int start, int end)
      Returns a range of all the notification templates that the user has permission to view 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 NotificationTemplateModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of notification templates
      end - the upper bound of the range of notification templates (not inclusive)
      Returns:
      the range of matching notification templates that the user has permission to view
    • filterFindByUuid

      List<NotificationTemplate> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
      Returns an ordered range of all the notification templates that the user has permissions to view 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 NotificationTemplateModelImpl.

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

      NotificationTemplate[] filterFindByUuid_PrevAndNext(long notificationTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
      Returns the notification templates before and after the current notification template in the ordered set of notification templates that the user has permission to view where uuid = ?.
      Parameters:
      notificationTemplateId - the primary key of the current notification template
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next notification template
      Throws:
      NoSuchNotificationTemplateException - if a notification template with the primary key could not be found
    • removeByUuid

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

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

      int filterCountByUuid(String uuid)
      Returns the number of notification templates that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching notification templates that the user has permission to view
    • findByUuid_C

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

      List<NotificationTemplate> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the notification 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 NotificationTemplateModelImpl.

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

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

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

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

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

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

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

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

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

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

      List<NotificationTemplate> filterFindByUuid_C(String uuid, long companyId)
      Returns all the notification templates that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching notification templates that the user has permission to view
    • filterFindByUuid_C

      List<NotificationTemplate> filterFindByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the notification templates that the user has permission to view 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 NotificationTemplateModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of notification templates
      end - the upper bound of the range of notification templates (not inclusive)
      Returns:
      the range of matching notification templates that the user has permission to view
    • filterFindByUuid_C

      List<NotificationTemplate> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
      Returns an ordered range of all the notification templates that the user has permissions to view 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 NotificationTemplateModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of notification templates
      end - the upper bound of the range of notification templates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching notification templates that the user has permission to view
    • filterFindByUuid_C_PrevAndNext

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

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

      int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of notification templates that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching notification templates that the user has permission to view
    • findByCompanyId

      List<NotificationTemplate> findByCompanyId(long companyId)
      Returns all the notification templates where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching notification templates
    • findByCompanyId

      List<NotificationTemplate> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the notification templates 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 NotificationTemplateModelImpl.

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

      List<NotificationTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
      Returns an ordered range of all the notification templates 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 NotificationTemplateModelImpl.

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

      List<NotificationTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the notification templates 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 NotificationTemplateModelImpl.

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

      NotificationTemplate findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
      Returns the first notification template 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 notification template
      Throws:
      NoSuchNotificationTemplateException - if a matching notification template could not be found
    • fetchByCompanyId_First

      NotificationTemplate fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
      Returns the first notification template 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 notification template, or null if a matching notification template could not be found
    • findByCompanyId_Last

      NotificationTemplate findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
      Returns the last notification template 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 notification template
      Throws:
      NoSuchNotificationTemplateException - if a matching notification template could not be found
    • fetchByCompanyId_Last

      NotificationTemplate fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
      Returns the last notification template 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 notification template, or null if a matching notification template could not be found
    • findByCompanyId_PrevAndNext

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

      List<NotificationTemplate> filterFindByCompanyId(long companyId)
      Returns all the notification templates that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching notification templates that the user has permission to view
    • filterFindByCompanyId

      List<NotificationTemplate> filterFindByCompanyId(long companyId, int start, int end)
      Returns a range of all the notification templates that the user has permission to view 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 NotificationTemplateModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of notification templates
      end - the upper bound of the range of notification templates (not inclusive)
      Returns:
      the range of matching notification templates that the user has permission to view
    • filterFindByCompanyId

      List<NotificationTemplate> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
      Returns an ordered range of all the notification templates that the user has permissions to view 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 NotificationTemplateModelImpl.

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

      NotificationTemplate[] filterFindByCompanyId_PrevAndNext(long notificationTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
      Returns the notification templates before and after the current notification template in the ordered set of notification templates that the user has permission to view where companyId = ?.
      Parameters:
      notificationTemplateId - the primary key of the current notification template
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next notification template
      Throws:
      NoSuchNotificationTemplateException - if a notification template with the primary key could not be found
    • removeByCompanyId

      void removeByCompanyId(long companyId)
      Removes all the notification templates where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      int countByCompanyId(long companyId)
      Returns the number of notification templates where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching notification templates
    • filterCountByCompanyId

      int filterCountByCompanyId(long companyId)
      Returns the number of notification templates that the user has permission to view where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching notification templates that the user has permission to view
    • findByERC_C

      NotificationTemplate findByERC_C(String externalReferenceCode, long companyId) throws NoSuchNotificationTemplateException
      Returns the notification template where externalReferenceCode = ? and companyId = ? or throws a NoSuchNotificationTemplateException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching notification template
      Throws:
      NoSuchNotificationTemplateException - if a matching notification template could not be found
    • fetchByERC_C

      NotificationTemplate fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the notification template where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching notification template, or null if a matching notification template could not be found
    • fetchByERC_C

      NotificationTemplate fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the notification template where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching notification template, or null if a matching notification template could not be found
    • removeByERC_C

      NotificationTemplate removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchNotificationTemplateException
      Removes the notification template where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the notification template that was removed
      Throws:
      NoSuchNotificationTemplateException
    • countByERC_C

      int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of notification templates where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching notification templates
    • cacheResult

      void cacheResult(NotificationTemplate notificationTemplate)
      Caches the notification template in the entity cache if it is enabled.
      Parameters:
      notificationTemplate - the notification template
    • cacheResult

      void cacheResult(List<NotificationTemplate> notificationTemplates)
      Caches the notification templates in the entity cache if it is enabled.
      Parameters:
      notificationTemplates - the notification templates
    • create

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

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

      NotificationTemplate updateImpl(NotificationTemplate notificationTemplate)
    • findByPrimaryKey

      NotificationTemplate findByPrimaryKey(long notificationTemplateId) throws NoSuchNotificationTemplateException
      Returns the notification template with the primary key or throws a NoSuchNotificationTemplateException if it could not be found.
      Parameters:
      notificationTemplateId - the primary key of the notification template
      Returns:
      the notification template
      Throws:
      NoSuchNotificationTemplateException - if a notification template with the primary key could not be found
    • fetchByPrimaryKey

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

      Returns all the notification templates.
      Returns:
      the notification templates
    • findAll

      List<NotificationTemplate> findAll(int start, int end)
      Returns a range of all the notification 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 NotificationTemplateModelImpl.

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

      List<NotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
      Returns an ordered range of all the notification 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 NotificationTemplateModelImpl.

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

      List<NotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the notification 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 NotificationTemplateModelImpl.

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

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

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