Interface NotificationRecipientPersistence

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

@ProviderType public interface NotificationRecipientPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<NotificationRecipient>
The persistence interface for the notification recipient service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByClassPK(long classPK)
    Returns the number of notification recipients where classPK = ?.
    int
    Returns the number of notification recipients where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of notification recipients where uuid = ? and companyId = ?.
    create(long notificationRecipientId)
    Creates a new notification recipient with the primary key.
    fetchByClassPK(long classPK)
    Returns the notification recipient where classPK = ? or returns null if it could not be found.
    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.
    fetchByPrimaryKey(long notificationRecipientId)
    Returns the notification recipient with the primary key or returns null if it could not be found.
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
    Returns the first notification recipient in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
    Returns the first notification recipient in the ordered set where uuid = ?.
    findByClassPK(long classPK)
    Returns the notification recipient where classPK = ? or throws a NoSuchNotificationRecipientException if it could not be found.
    findByPrimaryKey(long notificationRecipientId)
    Returns the notification recipient with the primary key or throws a NoSuchNotificationRecipientException if it could not be found.
    Returns all the notification recipients where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the notification recipients where uuid = ?.
    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 = ?.
    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 = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the notification recipients where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the notification recipients where uuid = ? and companyId = ?.
    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 = ?.
    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 = ?.
    findByUuid_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 = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
    Returns the first notification recipient in the ordered set where uuid = ?.
    remove(long notificationRecipientId)
    Removes the notification recipient with the primary key from the database.
    removeByClassPK(long classPK)
    Removes the notification recipient where classPK = ? from the database.
    void
    Removes all the notification recipients where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the notification recipients where uuid = ? and companyId = ? from the database.
    updateImpl(NotificationRecipient notificationRecipient)
     

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

    cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUuid

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.notification.model.impl.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

      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
    • fetchByUuid_First

      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
    • removeByUuid

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

      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

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.notification.model.impl.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

      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
    • fetchByUuid_C_First

      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
    • removeByUuid_C

      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

      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

      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
    • fetchByClassPK

      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

      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

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

      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

      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
    • updateImpl

      NotificationRecipient updateImpl(NotificationRecipient notificationRecipient)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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
    • fetchByClassPK

      default 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
    • findByUuid

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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.notification.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.notification.model.impl.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_C

      default 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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.notification.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.notification.model.impl.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