Class NotificationRecipientUtil

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

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

    • NotificationRecipientUtil

      public NotificationRecipientUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static NotificationRecipient[] findByUuid_C_PrevAndNext(long notificationRecipientId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException
      Returns the notification recipients before and after the current notification recipient in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      notificationRecipientId - the primary key of the current notification recipient
      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
      Throws:
      NoSuchNotificationRecipientException - if a notification recipient with the primary key could not be found
      NoSuchNotificationRecipientException
    • removeByUuid_C

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

      public static NotificationRecipient findByClassPK(long classPK) throws NoSuchNotificationRecipientException
      Returns the notification recipient where classPK = ? or throws a NoSuchNotificationRecipientException if it could not be found.
      Parameters:
      classPK - the class pk
      Returns:
      the matching notification recipient
      Throws:
      NoSuchNotificationRecipientException - if a matching notification recipient could not be found
      NoSuchNotificationRecipientException
    • fetchByClassPK

      public static NotificationRecipient fetchByClassPK(long classPK)
      Returns the notification recipient where classPK = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      classPK - the class pk
      Returns:
      the matching notification recipient, or null if a matching notification recipient could not be found
    • fetchByClassPK

      public static NotificationRecipient fetchByClassPK(long classPK, boolean useFinderCache)
      Returns the notification recipient where classPK = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      classPK - the class pk
      useFinderCache - whether to use the finder cache
      Returns:
      the matching notification recipient, or null if a matching notification recipient could not be found
    • removeByClassPK

      public static NotificationRecipient removeByClassPK(long classPK) throws NoSuchNotificationRecipientException
      Removes the notification recipient where classPK = ? from the database.
      Parameters:
      classPK - the class pk
      Returns:
      the notification recipient that was removed
      Throws:
      NoSuchNotificationRecipientException
    • countByClassPK

      public static int countByClassPK(long classPK)
      Returns the number of notification recipients where classPK = ?.
      Parameters:
      classPK - the class pk
      Returns:
      the number of matching notification recipients
    • cacheResult

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

      public static void cacheResult(List<NotificationRecipient> notificationRecipients)
      Caches the notification recipients in the entity cache if it is enabled.
      Parameters:
      notificationRecipients - the notification recipients
    • create

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

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

      public static NotificationRecipient updateImpl(NotificationRecipient notificationRecipient)
    • findByPrimaryKey

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

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

      public static List<NotificationRecipient> findAll()
      Returns all the notification recipients.
      Returns:
      the notification recipients
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static NotificationRecipientPersistence getPersistence()
    • setPersistence

      public static void setPersistence(NotificationRecipientPersistence persistence)