Class NotificationQueueEntryAttachmentUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(NotificationQueueEntryAttachment notificationQueueEntryAttachment) static voidcacheResult(List<NotificationQueueEntryAttachment> notificationQueueEntryAttachments) static voidstatic voidclearCache(NotificationQueueEntryAttachment notificationQueueEntryAttachment) static intcountByNotificationQueueEntryId(long notificationQueueEntryId) Returns the number of notification queue entry attachments where notificationQueueEntryId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) create(long notificationQueueEntryAttachmentId) Creates a new notification queue entry attachment with the primary key.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 = ?.fetchByPrimaryKey(long notificationQueueEntryAttachmentId) Returns the notification queue entry attachment with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId) Returns all the notification queue entry attachments where notificationQueueEntryId = ?.static List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId, int start, int end) Returns a range of all the notification queue entry attachments where notificationQueueEntryId = ?.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 = ?.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 = ?.findByNotificationQueueEntryId_First(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) Returns the first notification queue entry attachment in the ordered set where notificationQueueEntryId = ?.findByPrimaryKey(long notificationQueueEntryAttachmentId) Returns the notification queue entry attachment with the primary key or throws aNoSuchNotificationQueueEntryAttachmentExceptionif it could not be found.static List<NotificationQueueEntryAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<NotificationQueueEntryAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<NotificationQueueEntryAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) remove(long notificationQueueEntryAttachmentId) Removes the notification queue entry attachment with the primary key from the database.static voidremoveByNotificationQueueEntryId(long notificationQueueEntryId) Removes all the notification queue entry attachments where notificationQueueEntryId = ? from the database.static voidupdate(NotificationQueueEntryAttachment notificationQueueEntryAttachment) update(NotificationQueueEntryAttachment notificationQueueEntryAttachment, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl(NotificationQueueEntryAttachment notificationQueueEntryAttachment)
-
Constructor Details
-
NotificationQueueEntryAttachmentUtil
public NotificationQueueEntryAttachmentUtil()
-
-
Method Details
-
cacheResult
public static void cacheResult(List<NotificationQueueEntryAttachment> notificationQueueEntryAttachments) - See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,NotificationQueueEntryAttachment> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<NotificationQueueEntryAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<NotificationQueueEntryAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
public static NotificationQueueEntryAttachment update(NotificationQueueEntryAttachment notificationQueueEntryAttachment) - See Also:
-
update
public static NotificationQueueEntryAttachment update(NotificationQueueEntryAttachment notificationQueueEntryAttachment, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.notification.model.impl.NotificationQueueEntryAttachmentModelImpl.- Parameters:
notificationQueueEntryId- the notification queue entry IDstart- the lower bound of the range of notification queue entry attachmentsend- the upper bound of the range of notification queue entry attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification queue entry attachment
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification queue entry attachment, or
nullif a matching notification queue entry attachment could not be found
-
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
-
create
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
-
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 aNoSuchNotificationQueueEntryAttachmentExceptionif it could not be found.- Parameters:
notificationQueueEntryAttachmentId- the primary key of the notification queue entry attachment- Returns:
- the notification queue entry attachment
-
fetchByPrimaryKey
public static NotificationQueueEntryAttachment fetchByPrimaryKey(long notificationQueueEntryAttachmentId) Returns the notification queue entry attachment with the primary key or returnsnullif it could not be found.- Parameters:
notificationQueueEntryAttachmentId- the primary key of the notification queue entry attachment- Returns:
- the notification queue entry attachment, or
nullif a notification queue entry attachment with the primary key could not be found
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.notification.model.impl.NotificationQueueEntryAttachmentModelImpl.- Parameters:
notificationQueueEntryId- the notification queue entry IDstart- the lower bound of the range of notification queue entry attachmentsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.notification.model.impl.NotificationQueueEntryAttachmentModelImpl.- Parameters:
notificationQueueEntryId- the notification queue entry IDstart- the lower bound of the range of notification queue entry attachmentsend- the upper bound of the range of notification queue entry attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification queue entry attachments
-
getPersistence
-
setPersistence
-