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) Caches the notification queue entry attachment in the entity cache if it is enabled.static voidcacheResult(List<NotificationQueueEntryAttachment> notificationQueueEntryAttachments) Caches the notification queue entry attachments in the entity cache if it is enabled.static voidstatic voidclearCache(NotificationQueueEntryAttachment notificationQueueEntryAttachment) static intcountAll()Returns the number of notification queue entry attachments.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 = ?.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 = ?.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> findAll()Returns all the notification queue entry attachments.static List<NotificationQueueEntryAttachment> findAll(int start, int end) Returns a range of all the notification queue entry attachments.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.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.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 = ?.findByNotificationQueueEntryId_Last(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) Returns the last notification queue entry attachment in the ordered set where notificationQueueEntryId = ?.static NotificationQueueEntryAttachment[]findByNotificationQueueEntryId_PrevAndNext(long notificationQueueEntryAttachmentId, long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) Returns the notification queue entry attachments before and after the current 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 voidRemoves all the notification queue entry attachments 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
-
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) 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 bothstartandendtoQueryUtil#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 fromNotificationQueueEntryAttachmentModelImpl.- 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 bothstartandendtoQueryUtil#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 fromNotificationQueueEntryAttachmentModelImpl.- 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
-
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 bothstartandendtoQueryUtil#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 fromNotificationQueueEntryAttachmentModelImpl.- 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
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification queue entry attachment
-
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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification queue entry attachment, or
nullif 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 attachmentnotificationQueueEntryId- the notification queue entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification queue entry attachment
-
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
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
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
-
findAll
Returns all the notification queue entry attachments.- Returns:
- the notification queue entry attachments
-
findAll
Returns a range of all the notification queue entry attachments.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 bothstartandendtoQueryUtil#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 fromNotificationQueueEntryAttachmentModelImpl.- Parameters:
start- 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 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#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 fromNotificationQueueEntryAttachmentModelImpl.- Parameters:
start- 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 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#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 fromNotificationQueueEntryAttachmentModelImpl.- Parameters:
start- 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 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
-
setPersistence
-