Interface NotificationRecipientPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<NotificationRecipient>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(NotificationRecipient notificationRecipient) Caches the notification recipient in the entity cache if it is enabled.voidcacheResult(List<NotificationRecipient> notificationRecipients) Caches the notification recipients in the entity cache if it is enabled.intcountAll()Returns the number of notification recipients.intcountByClassPK(long classPK) Returns the number of notification recipients where classPK = ?.intcountByUuid(String uuid) Returns the number of notification recipients where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of notification recipients where uuid = ? and companyId = ?.create(long notificationRecipientId) Creates a new notification recipient with the primary key.fetchByClassPK(long classPK) Returns the notification recipient where classPK = ? or returnsnullif it could not be found.fetchByClassPK(long classPK, boolean useFinderCache) Returns the notification recipient where classPK = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByPrimaryKey(long notificationRecipientId) Returns the notification recipient with the primary key or returnsnullif it could not be found.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 = ?.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 = ?.fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the first notification recipient in the ordered set where uuid = ?.fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the last notification recipient in the ordered set where uuid = ?.findAll()Returns all the notification recipients.findAll(int start, int end) Returns a range of all the notification recipients.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns an ordered range of all the notification recipients.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification recipients.findByClassPK(long classPK) Returns the notification recipient where classPK = ? or throws aNoSuchNotificationRecipientExceptionif it could not be found.findByPrimaryKey(long notificationRecipientId) Returns the notification recipient with the primary key or throws aNoSuchNotificationRecipientExceptionif it could not be found.findByUuid(String uuid) Returns all the notification recipients where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the notification recipients where uuid = ?.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 = ?.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 = ?.findByUuid_C(String uuid, long companyId) Returns all the notification recipients where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the notification recipients where uuid = ? and companyId = ?.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 = ?.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 = ?.findByUuid_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 = ?.findByUuid_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 = ?.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 = ?.findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the first notification recipient in the ordered set where uuid = ?.findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) Returns the last notification recipient in the ordered set where uuid = ?.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 = ?.remove(long notificationRecipientId) Removes the notification recipient with the primary key from the database.voidRemoves all the notification recipients from the database.removeByClassPK(long classPK) Removes the notification recipient where classPK = ? from the database.voidremoveByUuid(String uuid) Removes all the notification recipients where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the notification recipients where uuid = ? and companyId = ? from the database.updateImpl(NotificationRecipient notificationRecipient) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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
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
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
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 found
-
fetchByUuid_First
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
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 found
-
fetchByUuid_Last
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
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 found
-
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
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
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
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
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 found
-
fetchByUuid_C_First
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
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 found
-
fetchByUuid_C_Last
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
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 found
-
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
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 found
-
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
Removes the notification recipient where classPK = ? from the database.- Parameters:
classPK- the class pk- Returns:
- the notification recipient that was removed
- Throws:
NoSuchNotificationRecipientException
-
countByClassPK
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
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 found
-
updateImpl
-
findByPrimaryKey
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 found
-
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
List<NotificationRecipient> 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
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
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
void removeAll()Removes all the notification recipients from the database. -
countAll
int countAll()Returns the number of notification recipients.- Returns:
- the number of notification recipients
-