Class NotificationRecipientUtil
com.liferay.notification.service.persistence.impl.NotificationRecipientPersistenceImpl 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(NotificationRecipient notificationRecipient) Caches the notification recipient in the entity cache if it is enabled.static voidcacheResult(List<NotificationRecipient> notificationRecipients) Caches the notification recipients in the entity cache if it is enabled.static voidstatic voidclearCache(NotificationRecipient notificationRecipient) static intcountAll()Returns the number of notification recipients.static intcountByClassPK(long classPK) Returns the number of notification recipients where classPK = ?.static intcountByUuid(String uuid) Returns the number of notification recipients where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of notification recipients where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static NotificationRecipientcreate(long notificationRecipientId) Creates a new notification recipient with the primary key.static NotificationRecipientfetchByClassPK(long classPK) Returns the notification recipient where classPK = ? or returnsnullif it could not be found.static NotificationRecipientfetchByClassPK(long classPK, boolean useFinderCache) Returns the notification recipient where classPK = ? or returnsnullif it could not be found, optionally using the finder cache.static NotificationRecipientfetchByPrimaryKey(long notificationRecipientId) Returns the notification recipient with the primary key or returnsnullif it could not be found.static Map<Serializable,NotificationRecipient> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static NotificationRecipientfetchByUuid_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 = ?.static NotificationRecipientfetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the last notification recipient in the ordered set where uuid = ? and companyId = ?.static NotificationRecipientfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the first notification recipient in the ordered set where uuid = ?.static NotificationRecipientfetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the last notification recipient in the ordered set where uuid = ?.static List<NotificationRecipient>findAll()Returns all the notification recipients.static List<NotificationRecipient>findAll(int start, int end) Returns a range of all the notification recipients.static List<NotificationRecipient>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns an ordered range of all the notification recipients.static List<NotificationRecipient>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification recipients.static NotificationRecipientfindByClassPK(long classPK) Returns the notification recipient where classPK = ? or throws aNoSuchNotificationRecipientExceptionif it could not be found.static NotificationRecipientfindByPrimaryKey(long notificationRecipientId) Returns the notification recipient with the primary key or throws aNoSuchNotificationRecipientExceptionif it could not be found.static List<NotificationRecipient>findByUuid(String uuid) Returns all the notification recipients where uuid = ?.static List<NotificationRecipient>findByUuid(String uuid, int start, int end) Returns a range of all the notification recipients where uuid = ?.static 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 = ?.static 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 = ?.static List<NotificationRecipient>findByUuid_C(String uuid, long companyId) Returns all the notification recipients where uuid = ? and companyId = ?.static List<NotificationRecipient>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the notification recipients where uuid = ? and companyId = ?.static 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 = ?.static 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 = ?.static NotificationRecipientfindByUuid_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 = ?.static NotificationRecipientfindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the last notification recipient in the ordered set where uuid = ? and companyId = ?.static NotificationRecipient[]findByUuid_C_PrevAndNext(long notificationRecipientId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the notification recipients before and after the current notification recipient in the ordered set where uuid = ? and companyId = ?.static NotificationRecipientfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the first notification recipient in the ordered set where uuid = ?.static NotificationRecipientfindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the last notification recipient in the ordered set where uuid = ?.static NotificationRecipient[]findByUuid_PrevAndNext(long notificationRecipientId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the notification recipients before and after the current notification recipient in the ordered set where uuid = ?.static List<NotificationRecipient>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<NotificationRecipient>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<NotificationRecipient>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) static NotificationRecipientremove(long notificationRecipientId) Removes the notification recipient with the primary key from the database.static voidRemoves all the notification recipients from the database.static NotificationRecipientremoveByClassPK(long classPK) Removes the notification recipient where classPK = ? from the database.static voidremoveByUuid(String uuid) Removes all the notification recipients where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the notification recipients where uuid = ? and companyId = ? from the database.static voidsetPersistence(NotificationRecipientPersistence persistence) static NotificationRecipientupdate(NotificationRecipient notificationRecipient) static NotificationRecipientupdate(NotificationRecipient notificationRecipient, com.liferay.portal.kernel.service.ServiceContext serviceContext) static NotificationRecipientupdateImpl(NotificationRecipient notificationRecipient)
-
Constructor Details
-
NotificationRecipientUtil
public NotificationRecipientUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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,NotificationRecipient> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<NotificationRecipient> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<NotificationRecipient> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<NotificationRecipient> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static NotificationRecipient update(NotificationRecipient notificationRecipient, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the notification recipients where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching notification recipients
-
findByUuid
Returns a range of all the notification recipients where uuid = ?.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 fromNotificationRecipientModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (not inclusive)- Returns:
- the range of matching notification recipients
-
findByUuid
public static 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 - 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 fromNotificationRecipientModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification recipients
-
findByUuid
public static 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 - 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 fromNotificationRecipientModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (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 recipients
-
findByUuid_First
public static 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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification recipient
- Throws:
NoSuchNotificationRecipientException- if a matching notification recipient could not be foundNoSuchNotificationRecipientException
-
fetchByUuid_First
public static 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 uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification recipient, or
nullif a matching notification recipient could not be found
-
findByUuid_Last
public static NotificationRecipient findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException Returns the last notification recipient in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification recipient
- Throws:
NoSuchNotificationRecipientException- if a matching notification recipient could not be foundNoSuchNotificationRecipientException
-
fetchByUuid_Last
public static NotificationRecipient fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the last notification recipient in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification recipient, or
nullif a matching notification recipient could not be found
-
findByUuid_PrevAndNext
public static NotificationRecipient[] findByUuid_PrevAndNext(long notificationRecipientId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException Returns the notification recipients before and after the current notification recipient in the ordered set where uuid = ?.- Parameters:
notificationRecipientId- the primary key of the current notification recipientuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification recipient
- Throws:
NoSuchNotificationRecipientException- if a notification recipient with the primary key could not be foundNoSuchNotificationRecipientException
-
removeByUuid
Removes all the notification recipients where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of notification recipients where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching notification recipients
-
findByUuid_C
Returns all the notification recipients where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching notification recipients
-
findByUuid_C
public static 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 - 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 fromNotificationRecipientModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (not inclusive)- Returns:
- the range of matching notification recipients
-
findByUuid_C
public static 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 - 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 fromNotificationRecipientModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification recipients
-
findByUuid_C
public static 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 - 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 fromNotificationRecipientModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (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 recipients
-
findByUuid_C_First
public static 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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification recipient
- Throws:
NoSuchNotificationRecipientException- if a matching notification recipient could not be foundNoSuchNotificationRecipientException
-
fetchByUuid_C_First
public static 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 uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification recipient, or
nullif a matching notification recipient could not be found
-
findByUuid_C_Last
public static NotificationRecipient findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException Returns the last notification recipient in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification recipient
- Throws:
NoSuchNotificationRecipientException- if a matching notification recipient could not be foundNoSuchNotificationRecipientException
-
fetchByUuid_C_Last
public static NotificationRecipient fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the last notification recipient in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification recipient, or
nullif a matching notification recipient could not be found
-
findByUuid_C_PrevAndNext
public static NotificationRecipient[] findByUuid_C_PrevAndNext(long notificationRecipientId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException Returns the notification recipients before and after the current notification recipient in the ordered set where uuid = ? and companyId = ?.- Parameters:
notificationRecipientId- the primary key of the current notification recipientuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification recipient
- Throws:
NoSuchNotificationRecipientException- if a notification recipient with the primary key could not be foundNoSuchNotificationRecipientException
-
removeByUuid_C
Removes all the notification recipients where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of notification recipients where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching notification recipients
-
findByClassPK
public static NotificationRecipient findByClassPK(long classPK) throws NoSuchNotificationRecipientException Returns the notification recipient where classPK = ? or throws aNoSuchNotificationRecipientExceptionif 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 foundNoSuchNotificationRecipientException
-
fetchByClassPK
Returns the notification recipient where classPK = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
classPK- the class pk- Returns:
- the matching notification recipient, or
nullif a matching notification recipient could not be found
-
fetchByClassPK
Returns the notification recipient where classPK = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
classPK- the class pkuseFinderCache- whether to use the finder cache- Returns:
- the matching notification recipient, or
nullif a matching notification recipient could not be found
-
removeByClassPK
public static 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
public static int countByClassPK(long classPK) Returns the number of notification recipients where classPK = ?.- Parameters:
classPK- the class pk- Returns:
- the number of matching notification recipients
-
cacheResult
Caches the notification recipient in the entity cache if it is enabled.- Parameters:
notificationRecipient- the notification recipient
-
cacheResult
Caches the notification recipients in the entity cache if it is enabled.- Parameters:
notificationRecipients- the notification recipients
-
create
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
public static 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 foundNoSuchNotificationRecipientException
-
updateImpl
-
findByPrimaryKey
public static NotificationRecipient findByPrimaryKey(long notificationRecipientId) throws NoSuchNotificationRecipientException Returns the notification recipient with the primary key or throws aNoSuchNotificationRecipientExceptionif 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 foundNoSuchNotificationRecipientException
-
fetchByPrimaryKey
Returns the notification recipient with the primary key or returnsnullif it could not be found.- Parameters:
notificationRecipientId- the primary key of the notification recipient- Returns:
- the notification recipient, or
nullif a notification recipient with the primary key could not be found
-
findAll
Returns all the notification recipients.- Returns:
- the notification recipients
-
findAll
Returns a range of all the notification recipients.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 fromNotificationRecipientModelImpl.- Parameters:
start- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (not inclusive)- Returns:
- the range of notification recipients
-
findAll
public static List<NotificationRecipient> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns an ordered range of all the notification recipients.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 fromNotificationRecipientModelImpl.- Parameters:
start- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of notification recipients
-
findAll
public static List<NotificationRecipient> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification recipients.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 fromNotificationRecipientModelImpl.- Parameters:
start- the lower bound of the range of notification recipientsend- the upper bound of the range of notification recipients (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of notification recipients
-
removeAll
public static void removeAll()Removes all the notification recipients from the database. -
countAll
public static int countAll()Returns the number of notification recipients.- Returns:
- the number of notification recipients
-
getPersistence
-
setPersistence
-