public class NotificationQueueEntryAttachmentUtil
extends java.lang.Object
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
NotificationQueueEntryAttachmentPersistence
Constructor and Description |
---|
NotificationQueueEntryAttachmentUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<NotificationQueueEntryAttachment> notificationQueueEntryAttachments)
Caches the notification queue entry attachments in the entity cache if it is enabled.
|
static void |
cacheResult(NotificationQueueEntryAttachment notificationQueueEntryAttachment)
Caches the notification queue entry attachment in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(NotificationQueueEntryAttachment notificationQueueEntryAttachment) |
static int |
countAll()
Returns the number of notification queue entry attachments.
|
static int |
countByNotificationQueueEntryId(long notificationQueueEntryId)
Returns the number of notification queue entry attachments where notificationQueueEntryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static NotificationQueueEntryAttachment |
create(long notificationQueueEntryAttachmentId)
Creates a new notification queue entry attachment with the primary key.
|
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 = ?.
|
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 = ?.
|
static NotificationQueueEntryAttachment |
fetchByPrimaryKey(long notificationQueueEntryAttachmentId)
Returns the notification queue entry attachment with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,NotificationQueueEntryAttachment> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<NotificationQueueEntryAttachment> |
findAll()
Returns all the notification queue entry attachments.
|
static java.util.List<NotificationQueueEntryAttachment> |
findAll(int start,
int end)
Returns a range of all the notification queue entry attachments.
|
static java.util.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 java.util.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 NotificationQueueEntryAttachment |
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 = ?.
|
static NotificationQueueEntryAttachment |
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 = ?.
|
static java.util.List<NotificationQueueEntryAttachment> |
findByNotificationQueueEntryId(long notificationQueueEntryId)
Returns all the notification queue entry attachments where notificationQueueEntryId = ?.
|
static java.util.List<NotificationQueueEntryAttachment> |
findByNotificationQueueEntryId(long notificationQueueEntryId,
int start,
int end)
Returns a range of all the notification queue entry attachments where notificationQueueEntryId = ?.
|
static java.util.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 java.util.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 = ?.
|
static NotificationQueueEntryAttachment |
findByPrimaryKey(long notificationQueueEntryAttachmentId)
Returns the notification queue entry attachment with the primary key or throws a
NoSuchNotificationQueueEntryAttachmentException if it could not be found. |
static java.util.List<NotificationQueueEntryAttachment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<NotificationQueueEntryAttachment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<NotificationQueueEntryAttachment> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) |
static NotificationQueueEntryAttachmentPersistence |
getPersistence() |
static NotificationQueueEntryAttachment |
remove(long notificationQueueEntryAttachmentId)
Removes the notification queue entry attachment with the primary key from the database.
|
static void |
removeAll()
Removes all the notification queue entry attachments from the database.
|
static void |
removeByNotificationQueueEntryId(long notificationQueueEntryId)
Removes all the notification queue entry attachments where notificationQueueEntryId = ? from the database.
|
static void |
setPersistence(NotificationQueueEntryAttachmentPersistence persistence) |
static NotificationQueueEntryAttachment |
update(NotificationQueueEntryAttachment notificationQueueEntryAttachment) |
static NotificationQueueEntryAttachment |
update(NotificationQueueEntryAttachment notificationQueueEntryAttachment,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static NotificationQueueEntryAttachment |
updateImpl(NotificationQueueEntryAttachment notificationQueueEntryAttachment) |
public NotificationQueueEntryAttachmentUtil()
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(NotificationQueueEntryAttachment notificationQueueEntryAttachment)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,NotificationQueueEntryAttachment> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<NotificationQueueEntryAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<NotificationQueueEntryAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<NotificationQueueEntryAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static NotificationQueueEntryAttachment update(NotificationQueueEntryAttachment notificationQueueEntryAttachment)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static NotificationQueueEntryAttachment update(NotificationQueueEntryAttachment notificationQueueEntryAttachment, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId)
notificationQueueEntryId
- the notification queue entry IDpublic static java.util.List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId, int start, int end)
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
.
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)public static java.util.List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<NotificationQueueEntryAttachment> findByNotificationQueueEntryId(long notificationQueueEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static NotificationQueueEntryAttachment findByNotificationQueueEntryId_First(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) throws NoSuchNotificationQueueEntryAttachmentException
notificationQueueEntryId
- the notification queue entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationQueueEntryAttachmentException
- if a matching notification queue entry attachment could not be foundpublic static NotificationQueueEntryAttachment fetchByNotificationQueueEntryId_First(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator)
notificationQueueEntryId
- the notification queue entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification queue entry attachment could not be foundpublic static NotificationQueueEntryAttachment findByNotificationQueueEntryId_Last(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) throws NoSuchNotificationQueueEntryAttachmentException
notificationQueueEntryId
- the notification queue entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationQueueEntryAttachmentException
- if a matching notification queue entry attachment could not be foundpublic static NotificationQueueEntryAttachment fetchByNotificationQueueEntryId_Last(long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator)
notificationQueueEntryId
- the notification queue entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification queue entry attachment could not be foundpublic static NotificationQueueEntryAttachment[] findByNotificationQueueEntryId_PrevAndNext(long notificationQueueEntryAttachmentId, long notificationQueueEntryId, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator) throws NoSuchNotificationQueueEntryAttachmentException
notificationQueueEntryAttachmentId
- the primary key of the current notification queue entry attachmentnotificationQueueEntryId
- the notification queue entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationQueueEntryAttachmentException
- if a notification queue entry attachment with the primary key could not be foundpublic static void removeByNotificationQueueEntryId(long notificationQueueEntryId)
notificationQueueEntryId
- the notification queue entry IDpublic static int countByNotificationQueueEntryId(long notificationQueueEntryId)
notificationQueueEntryId
- the notification queue entry IDpublic static void cacheResult(NotificationQueueEntryAttachment notificationQueueEntryAttachment)
notificationQueueEntryAttachment
- the notification queue entry attachmentpublic static void cacheResult(java.util.List<NotificationQueueEntryAttachment> notificationQueueEntryAttachments)
notificationQueueEntryAttachments
- the notification queue entry attachmentspublic static NotificationQueueEntryAttachment create(long notificationQueueEntryAttachmentId)
notificationQueueEntryAttachmentId
- the primary key for the new notification queue entry attachmentpublic static NotificationQueueEntryAttachment remove(long notificationQueueEntryAttachmentId) throws NoSuchNotificationQueueEntryAttachmentException
notificationQueueEntryAttachmentId
- the primary key of the notification queue entry attachmentNoSuchNotificationQueueEntryAttachmentException
- if a notification queue entry attachment with the primary key could not be foundpublic static NotificationQueueEntryAttachment updateImpl(NotificationQueueEntryAttachment notificationQueueEntryAttachment)
public static NotificationQueueEntryAttachment findByPrimaryKey(long notificationQueueEntryAttachmentId) throws NoSuchNotificationQueueEntryAttachmentException
NoSuchNotificationQueueEntryAttachmentException
if it could not be found.notificationQueueEntryAttachmentId
- the primary key of the notification queue entry attachmentNoSuchNotificationQueueEntryAttachmentException
- if a notification queue entry attachment with the primary key could not be foundpublic static NotificationQueueEntryAttachment fetchByPrimaryKey(long notificationQueueEntryAttachmentId)
null
if it could not be found.notificationQueueEntryAttachmentId
- the primary key of the notification queue entry attachmentnull
if a notification queue entry attachment with the primary key could not be foundpublic static java.util.List<NotificationQueueEntryAttachment> findAll()
public static java.util.List<NotificationQueueEntryAttachment> findAll(int start, int end)
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
.
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)public static java.util.List<NotificationQueueEntryAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<NotificationQueueEntryAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationQueueEntryAttachment> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static NotificationQueueEntryAttachmentPersistence getPersistence()
public static void setPersistence(NotificationQueueEntryAttachmentPersistence persistence)