Class NotificationRecipientSettingUtil

java.lang.Object
com.liferay.notification.service.persistence.NotificationRecipientSettingUtil

public class NotificationRecipientSettingUtil extends Object
The persistence utility for the notification recipient setting service. This utility wraps com.liferay.notification.service.persistence.impl.NotificationRecipientSettingPersistenceImpl 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 Details

    • NotificationRecipientSettingUtil

      public NotificationRecipientSettingUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

      public static List<NotificationRecipientSetting> findByUuid(String uuid)
      Returns all the notification recipient settings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching notification recipient settings
    • findByUuid

      public static List<NotificationRecipientSetting> findByUuid(String uuid, int start, int end)
      Returns a range of all the notification recipient settings 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 NotificationRecipientSettingModelImpl.

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

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

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

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

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

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

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

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

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

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

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

      public static int countByUuid(String uuid)
      Returns the number of notification recipient settings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching notification recipient settings
    • findByUuid_C

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

      public static List<NotificationRecipientSetting> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the notification recipient settings 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 NotificationRecipientSettingModelImpl.

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

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

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

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

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

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

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

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

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

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

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

      public static List<NotificationRecipientSetting> findByNotificationRecipientId(long notificationRecipientId)
      Returns all the notification recipient settings where notificationRecipientId = ?.
      Parameters:
      notificationRecipientId - the notification recipient ID
      Returns:
      the matching notification recipient settings
    • findByNotificationRecipientId

      public static List<NotificationRecipientSetting> findByNotificationRecipientId(long notificationRecipientId, int start, int end)
      Returns a range of all the notification recipient settings where notificationRecipientId = ?.

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

      Parameters:
      notificationRecipientId - the notification recipient ID
      start - the lower bound of the range of notification recipient settings
      end - the upper bound of the range of notification recipient settings (not inclusive)
      Returns:
      the range of matching notification recipient settings
    • findByNotificationRecipientId

      public static List<NotificationRecipientSetting> findByNotificationRecipientId(long notificationRecipientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
      Returns an ordered range of all the notification recipient settings where notificationRecipientId = ?.

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

      Parameters:
      notificationRecipientId - the notification recipient ID
      start - the lower bound of the range of notification recipient settings
      end - the upper bound of the range of notification recipient settings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching notification recipient settings
    • findByNotificationRecipientId

      public static List<NotificationRecipientSetting> findByNotificationRecipientId(long notificationRecipientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the notification recipient settings where notificationRecipientId = ?.

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

      Parameters:
      notificationRecipientId - the notification recipient ID
      start - the lower bound of the range of notification recipient settings
      end - the upper bound of the range of notification recipient settings (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 recipient settings
    • findByNotificationRecipientId_First

      public static NotificationRecipientSetting findByNotificationRecipientId_First(long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
      Returns the first notification recipient setting in the ordered set where notificationRecipientId = ?.
      Parameters:
      notificationRecipientId - the notification recipient ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching notification recipient setting
      Throws:
      NoSuchNotificationRecipientSettingException - if a matching notification recipient setting could not be found
      NoSuchNotificationRecipientSettingException
    • fetchByNotificationRecipientId_First

      public static NotificationRecipientSetting fetchByNotificationRecipientId_First(long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
      Returns the first notification recipient setting in the ordered set where notificationRecipientId = ?.
      Parameters:
      notificationRecipientId - the notification recipient ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching notification recipient setting, or null if a matching notification recipient setting could not be found
    • findByNotificationRecipientId_Last

      public static NotificationRecipientSetting findByNotificationRecipientId_Last(long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
      Returns the last notification recipient setting in the ordered set where notificationRecipientId = ?.
      Parameters:
      notificationRecipientId - the notification recipient ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching notification recipient setting
      Throws:
      NoSuchNotificationRecipientSettingException - if a matching notification recipient setting could not be found
      NoSuchNotificationRecipientSettingException
    • fetchByNotificationRecipientId_Last

      public static NotificationRecipientSetting fetchByNotificationRecipientId_Last(long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
      Returns the last notification recipient setting in the ordered set where notificationRecipientId = ?.
      Parameters:
      notificationRecipientId - the notification recipient ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching notification recipient setting, or null if a matching notification recipient setting could not be found
    • findByNotificationRecipientId_PrevAndNext

      public static NotificationRecipientSetting[] findByNotificationRecipientId_PrevAndNext(long notificationRecipientSettingId, long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
      Returns the notification recipient settings before and after the current notification recipient setting in the ordered set where notificationRecipientId = ?.
      Parameters:
      notificationRecipientSettingId - the primary key of the current notification recipient setting
      notificationRecipientId - the notification recipient ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next notification recipient setting
      Throws:
      NoSuchNotificationRecipientSettingException - if a notification recipient setting with the primary key could not be found
      NoSuchNotificationRecipientSettingException
    • removeByNotificationRecipientId

      public static void removeByNotificationRecipientId(long notificationRecipientId)
      Removes all the notification recipient settings where notificationRecipientId = ? from the database.
      Parameters:
      notificationRecipientId - the notification recipient ID
    • countByNotificationRecipientId

      public static int countByNotificationRecipientId(long notificationRecipientId)
      Returns the number of notification recipient settings where notificationRecipientId = ?.
      Parameters:
      notificationRecipientId - the notification recipient ID
      Returns:
      the number of matching notification recipient settings
    • findByNRI_N

      public static NotificationRecipientSetting findByNRI_N(long notificationRecipientId, String name) throws NoSuchNotificationRecipientSettingException
      Returns the notification recipient setting where notificationRecipientId = ? and name = ? or throws a NoSuchNotificationRecipientSettingException if it could not be found.
      Parameters:
      notificationRecipientId - the notification recipient ID
      name - the name
      Returns:
      the matching notification recipient setting
      Throws:
      NoSuchNotificationRecipientSettingException - if a matching notification recipient setting could not be found
      NoSuchNotificationRecipientSettingException
    • fetchByNRI_N

      public static NotificationRecipientSetting fetchByNRI_N(long notificationRecipientId, String name)
      Returns the notification recipient setting where notificationRecipientId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      notificationRecipientId - the notification recipient ID
      name - the name
      Returns:
      the matching notification recipient setting, or null if a matching notification recipient setting could not be found
    • fetchByNRI_N

      public static NotificationRecipientSetting fetchByNRI_N(long notificationRecipientId, String name, boolean useFinderCache)
      Returns the notification recipient setting where notificationRecipientId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      notificationRecipientId - the notification recipient ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching notification recipient setting, or null if a matching notification recipient setting could not be found
    • removeByNRI_N

      public static NotificationRecipientSetting removeByNRI_N(long notificationRecipientId, String name) throws NoSuchNotificationRecipientSettingException
      Removes the notification recipient setting where notificationRecipientId = ? and name = ? from the database.
      Parameters:
      notificationRecipientId - the notification recipient ID
      name - the name
      Returns:
      the notification recipient setting that was removed
      Throws:
      NoSuchNotificationRecipientSettingException
    • countByNRI_N

      public static int countByNRI_N(long notificationRecipientId, String name)
      Returns the number of notification recipient settings where notificationRecipientId = ? and name = ?.
      Parameters:
      notificationRecipientId - the notification recipient ID
      name - the name
      Returns:
      the number of matching notification recipient settings
    • cacheResult

      public static void cacheResult(NotificationRecipientSetting notificationRecipientSetting)
      Caches the notification recipient setting in the entity cache if it is enabled.
      Parameters:
      notificationRecipientSetting - the notification recipient setting
    • cacheResult

      public static void cacheResult(List<NotificationRecipientSetting> notificationRecipientSettings)
      Caches the notification recipient settings in the entity cache if it is enabled.
      Parameters:
      notificationRecipientSettings - the notification recipient settings
    • create

      public static NotificationRecipientSetting create(long notificationRecipientSettingId)
      Creates a new notification recipient setting with the primary key. Does not add the notification recipient setting to the database.
      Parameters:
      notificationRecipientSettingId - the primary key for the new notification recipient setting
      Returns:
      the new notification recipient setting
    • remove

      public static NotificationRecipientSetting remove(long notificationRecipientSettingId) throws NoSuchNotificationRecipientSettingException
      Removes the notification recipient setting with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      notificationRecipientSettingId - the primary key of the notification recipient setting
      Returns:
      the notification recipient setting that was removed
      Throws:
      NoSuchNotificationRecipientSettingException - if a notification recipient setting with the primary key could not be found
      NoSuchNotificationRecipientSettingException
    • updateImpl

      public static NotificationRecipientSetting updateImpl(NotificationRecipientSetting notificationRecipientSetting)
    • findByPrimaryKey

      public static NotificationRecipientSetting findByPrimaryKey(long notificationRecipientSettingId) throws NoSuchNotificationRecipientSettingException
      Returns the notification recipient setting with the primary key or throws a NoSuchNotificationRecipientSettingException if it could not be found.
      Parameters:
      notificationRecipientSettingId - the primary key of the notification recipient setting
      Returns:
      the notification recipient setting
      Throws:
      NoSuchNotificationRecipientSettingException - if a notification recipient setting with the primary key could not be found
      NoSuchNotificationRecipientSettingException
    • fetchByPrimaryKey

      public static NotificationRecipientSetting fetchByPrimaryKey(long notificationRecipientSettingId)
      Returns the notification recipient setting with the primary key or returns null if it could not be found.
      Parameters:
      notificationRecipientSettingId - the primary key of the notification recipient setting
      Returns:
      the notification recipient setting, or null if a notification recipient setting with the primary key could not be found
    • findAll

      public static List<NotificationRecipientSetting> findAll()
      Returns all the notification recipient settings.
      Returns:
      the notification recipient settings
    • findAll

      public static List<NotificationRecipientSetting> findAll(int start, int end)
      Returns a range of all the notification recipient settings.

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

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

      public static List<NotificationRecipientSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
      Returns an ordered range of all the notification recipient settings.

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

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

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

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

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

      public static void removeAll()
      Removes all the notification recipient settings from the database.
    • countAll

      public static int countAll()
      Returns the number of notification recipient settings.
      Returns:
      the number of notification recipient settings
    • getPersistence

      public static NotificationRecipientSettingPersistence getPersistence()
    • setPersistence

      public static void setPersistence(NotificationRecipientSettingPersistence persistence)