Class NotificationQueueEntryAttachmentUtil

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

public class NotificationQueueEntryAttachmentUtil extends Object
The persistence utility for the notification queue entry attachment service. This utility wraps com.liferay.notification.service.persistence.impl.NotificationQueueEntryAttachmentPersistenceImpl 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

    • NotificationQueueEntryAttachmentUtil

      public NotificationQueueEntryAttachmentUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static NotificationQueueEntryAttachment update(NotificationQueueEntryAttachment notificationQueueEntryAttachment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByNotificationQueueEntryId

      public static List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId)
      Returns all the notification queue entry attachments where notificationQueueEntryId = ?.
      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      Returns:
      the matching notification queue entry attachments
    • findByNotificationQueueEntryId

      public static List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId, int start, int end)
      Returns a range of all the notification queue entry attachments where notificationQueueEntryId = ?.

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

      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      start - the lower bound of the range of notification queue entry attachments
      end - the upper bound of the range of notification queue entry attachments (not inclusive)
      Returns:
      the range of matching notification queue entry attachments
    • findByNotificationQueueEntryId

      public static List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator)
      Returns an ordered range of all the notification queue entry attachments where notificationQueueEntryId = ?.

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

      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      start - the lower bound of the range of notification queue entry attachments
      end - the upper bound of the range of notification queue entry attachments (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching notification queue entry attachments
    • findByNotificationQueueEntryId

      public static List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the notification queue entry attachments where notificationQueueEntryId = ?.

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

      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      start - the lower bound of the range of notification queue entry attachments
      end - the upper bound of the range of notification queue entry attachments (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 queue entry attachments
    • findByNotificationQueueEntryId_First

      public static NotificationQueueEntryAttachment findByNotificationQueueEntryId_First(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) throws NoSuchNotificationQueueEntryAttachmentException
      Returns the first notification queue entry attachment in the ordered set where notificationQueueEntryId = ?.
      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching notification queue entry attachment
      Throws:
      NoSuchNotificationQueueEntryAttachmentException - if a matching notification queue entry attachment could not be found
      NoSuchNotificationQueueEntryAttachmentException
    • fetchByNotificationQueueEntryId_First

      public static NotificationQueueEntryAttachment fetchByNotificationQueueEntryId_First(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator)
      Returns the first notification queue entry attachment in the ordered set where notificationQueueEntryId = ?.
      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching notification queue entry attachment, or null if a matching notification queue entry attachment could not be found
    • findByNotificationQueueEntryId_Last

      public static NotificationQueueEntryAttachment findByNotificationQueueEntryId_Last(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) throws NoSuchNotificationQueueEntryAttachmentException
      Returns the last notification queue entry attachment in the ordered set where notificationQueueEntryId = ?.
      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching notification queue entry attachment
      Throws:
      NoSuchNotificationQueueEntryAttachmentException - if a matching notification queue entry attachment could not be found
      NoSuchNotificationQueueEntryAttachmentException
    • fetchByNotificationQueueEntryId_Last

      public static NotificationQueueEntryAttachment fetchByNotificationQueueEntryId_Last(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator)
      Returns the last notification queue entry attachment in the ordered set where notificationQueueEntryId = ?.
      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching notification queue entry attachment, or null if a matching notification queue entry attachment could not be found
    • findByNotificationQueueEntryId_PrevAndNext

      public static NotificationQueueEntryAttachment[] findByNotificationQueueEntryId_PrevAndNext(long notificationQueueEntryAttachmentId, long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) throws NoSuchNotificationQueueEntryAttachmentException
      Returns the notification queue entry attachments before and after the current notification queue entry attachment in the ordered set where notificationQueueEntryId = ?.
      Parameters:
      notificationQueueEntryAttachmentId - the primary key of the current notification queue entry attachment
      notificationQueueEntryId - the notification queue entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next notification queue entry attachment
      Throws:
      NoSuchNotificationQueueEntryAttachmentException - if a notification queue entry attachment with the primary key could not be found
      NoSuchNotificationQueueEntryAttachmentException
    • removeByNotificationQueueEntryId

      public static void removeByNotificationQueueEntryId(long notificationQueueEntryId)
      Removes all the notification queue entry attachments where notificationQueueEntryId = ? from the database.
      Parameters:
      notificationQueueEntryId - the notification queue entry ID
    • countByNotificationQueueEntryId

      public static int countByNotificationQueueEntryId(long notificationQueueEntryId)
      Returns the number of notification queue entry attachments where notificationQueueEntryId = ?.
      Parameters:
      notificationQueueEntryId - the notification queue entry ID
      Returns:
      the number of matching notification queue entry attachments
    • cacheResult

      public static void cacheResult(NotificationQueueEntryAttachment notificationQueueEntryAttachment)
      Caches the notification queue entry attachment in the entity cache if it is enabled.
      Parameters:
      notificationQueueEntryAttachment - the notification queue entry attachment
    • cacheResult

      public static void cacheResult(List<NotificationQueueEntryAttachment> notificationQueueEntryAttachments)
      Caches the notification queue entry attachments in the entity cache if it is enabled.
      Parameters:
      notificationQueueEntryAttachments - the notification queue entry attachments
    • create

      public static NotificationQueueEntryAttachment create(long notificationQueueEntryAttachmentId)
      Creates a new notification queue entry attachment with the primary key. Does not add the notification queue entry attachment to the database.
      Parameters:
      notificationQueueEntryAttachmentId - the primary key for the new notification queue entry attachment
      Returns:
      the new notification queue entry attachment
    • remove

      public static NotificationQueueEntryAttachment remove(long notificationQueueEntryAttachmentId) throws NoSuchNotificationQueueEntryAttachmentException
      Removes the notification queue entry attachment with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      notificationQueueEntryAttachmentId - the primary key of the notification queue entry attachment
      Returns:
      the notification queue entry attachment that was removed
      Throws:
      NoSuchNotificationQueueEntryAttachmentException - if a notification queue entry attachment with the primary key could not be found
      NoSuchNotificationQueueEntryAttachmentException
    • updateImpl

      public static NotificationQueueEntryAttachment updateImpl(NotificationQueueEntryAttachment notificationQueueEntryAttachment)
    • findByPrimaryKey

      public static NotificationQueueEntryAttachment findByPrimaryKey(long notificationQueueEntryAttachmentId) throws NoSuchNotificationQueueEntryAttachmentException
      Returns the notification queue entry attachment with the primary key or throws a NoSuchNotificationQueueEntryAttachmentException if it could not be found.
      Parameters:
      notificationQueueEntryAttachmentId - the primary key of the notification queue entry attachment
      Returns:
      the notification queue entry attachment
      Throws:
      NoSuchNotificationQueueEntryAttachmentException - if a notification queue entry attachment with the primary key could not be found
      NoSuchNotificationQueueEntryAttachmentException
    • fetchByPrimaryKey

      public static NotificationQueueEntryAttachment fetchByPrimaryKey(long notificationQueueEntryAttachmentId)
      Returns the notification queue entry attachment with the primary key or returns null if it could not be found.
      Parameters:
      notificationQueueEntryAttachmentId - the primary key of the notification queue entry attachment
      Returns:
      the notification queue entry attachment, or null if a notification queue entry attachment with the primary key could not be found
    • findAll

      public static List<NotificationQueueEntryAttachment> findAll()
      Returns all the notification queue entry attachments.
      Returns:
      the notification queue entry attachments
    • findAll

      public static List<NotificationQueueEntryAttachment> findAll(int start, int end)
      Returns a range of all the notification queue entry attachments.

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

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

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

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

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

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

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

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

      public static void removeAll()
      Removes all the notification queue entry attachments from the database.
    • countAll

      public static int countAll()
      Returns the number of notification queue entry attachments.
      Returns:
      the number of notification queue entry attachments
    • getPersistence

      public static NotificationQueueEntryAttachmentPersistence getPersistence()
    • setPersistence

      public static void setPersistence(NotificationQueueEntryAttachmentPersistence persistence)