Interface UserNotificationDeliveryPersistence
- All Superinterfaces:
BasePersistence<UserNotificationDelivery>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(UserNotificationDelivery userNotificationDelivery) Caches the user notification delivery in the entity cache if it is enabled.void
cacheResult
(List<UserNotificationDelivery> userNotificationDeliveries) Caches the user notification deliveries in the entity cache if it is enabled.int
countAll()
Returns the number of user notification deliveries.int
countByU_P_C_N_D
(long userId, String portletId, long classNameId, int notificationType, int deliveryType) Returns the number of user notification deliveries where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ?.int
countByUserId
(long userId) Returns the number of user notification deliveries where userId = ?.create
(long userNotificationDeliveryId) Creates a new user notification delivery with the primary key.fetchByPrimaryKey
(long userNotificationDeliveryId) Returns the user notification delivery with the primary key or returnsnull
if it could not be found.fetchByU_P_C_N_D
(long userId, String portletId, long classNameId, int notificationType, int deliveryType) Returns the user notification delivery where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ? or returnsnull
if it could not be found.fetchByU_P_C_N_D
(long userId, String portletId, long classNameId, int notificationType, int deliveryType, boolean useFinderCache) Returns the user notification delivery where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByUserId_First
(long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns the first user notification delivery in the ordered set where userId = ?.fetchByUserId_Last
(long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns the last user notification delivery in the ordered set where userId = ?.findAll()
Returns all the user notification deliveries.findAll
(int start, int end) Returns a range of all the user notification deliveries.findAll
(int start, int end, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns an ordered range of all the user notification deliveries.findAll
(int start, int end, OrderByComparator<UserNotificationDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user notification deliveries.findByPrimaryKey
(long userNotificationDeliveryId) Returns the user notification delivery with the primary key or throws aNoSuchUserNotificationDeliveryException
if it could not be found.findByU_P_C_N_D
(long userId, String portletId, long classNameId, int notificationType, int deliveryType) Returns the user notification delivery where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ? or throws aNoSuchUserNotificationDeliveryException
if it could not be found.findByUserId
(long userId) Returns all the user notification deliveries where userId = ?.findByUserId
(long userId, int start, int end) Returns a range of all the user notification deliveries where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns an ordered range of all the user notification deliveries where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<UserNotificationDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user notification deliveries where userId = ?.findByUserId_First
(long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns the first user notification delivery in the ordered set where userId = ?.findByUserId_Last
(long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns the last user notification delivery in the ordered set where userId = ?.findByUserId_PrevAndNext
(long userNotificationDeliveryId, long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns the user notification deliveries before and after the current user notification delivery in the ordered set where userId = ?.remove
(long userNotificationDeliveryId) Removes the user notification delivery with the primary key from the database.void
Removes all the user notification deliveries from the database.removeByU_P_C_N_D
(long userId, String portletId, long classNameId, int notificationType, int deliveryType) Removes the user notification delivery where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ? from the database.void
removeByUserId
(long userId) Removes all the user notification deliveries where userId = ? from the database.updateImpl
(UserNotificationDelivery userNotificationDelivery) 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
-
findByUserId
Returns all the user notification deliveries where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the matching user notification deliveries
-
findByUserId
Returns a range of all the user notification deliveries where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserNotificationDeliveryModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of user notification deliveriesend
- the upper bound of the range of user notification deliveries (not inclusive)- Returns:
- the range of matching user notification deliveries
-
findByUserId
List<UserNotificationDelivery> findByUserId(long userId, int start, int end, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns an ordered range of all the user notification deliveries where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserNotificationDeliveryModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of user notification deliveriesend
- the upper bound of the range of user notification deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching user notification deliveries
-
findByUserId
List<UserNotificationDelivery> findByUserId(long userId, int start, int end, OrderByComparator<UserNotificationDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user notification deliveries where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserNotificationDeliveryModelImpl
.- Parameters:
userId
- the user IDstart
- the lower bound of the range of user notification deliveriesend
- the upper bound of the range of user notification deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching user notification deliveries
-
findByUserId_First
UserNotificationDelivery findByUserId_First(long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) throws NoSuchUserNotificationDeliveryException Returns the first user notification delivery in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user notification delivery
- Throws:
NoSuchUserNotificationDeliveryException
- if a matching user notification delivery could not be found
-
fetchByUserId_First
UserNotificationDelivery fetchByUserId_First(long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns the first user notification delivery in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching user notification delivery, or
null
if a matching user notification delivery could not be found
-
findByUserId_Last
UserNotificationDelivery findByUserId_Last(long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) throws NoSuchUserNotificationDeliveryException Returns the last user notification delivery in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user notification delivery
- Throws:
NoSuchUserNotificationDeliveryException
- if a matching user notification delivery could not be found
-
fetchByUserId_Last
UserNotificationDelivery fetchByUserId_Last(long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns the last user notification delivery in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching user notification delivery, or
null
if a matching user notification delivery could not be found
-
findByUserId_PrevAndNext
UserNotificationDelivery[] findByUserId_PrevAndNext(long userNotificationDeliveryId, long userId, OrderByComparator<UserNotificationDelivery> orderByComparator) throws NoSuchUserNotificationDeliveryException Returns the user notification deliveries before and after the current user notification delivery in the ordered set where userId = ?.- Parameters:
userNotificationDeliveryId
- the primary key of the current user notification deliveryuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next user notification delivery
- Throws:
NoSuchUserNotificationDeliveryException
- if a user notification delivery with the primary key could not be found
-
removeByUserId
void removeByUserId(long userId) Removes all the user notification deliveries where userId = ? from the database.- Parameters:
userId
- the user ID
-
countByUserId
int countByUserId(long userId) Returns the number of user notification deliveries where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the number of matching user notification deliveries
-
findByU_P_C_N_D
UserNotificationDelivery findByU_P_C_N_D(long userId, String portletId, long classNameId, int notificationType, int deliveryType) throws NoSuchUserNotificationDeliveryException Returns the user notification delivery where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ? or throws aNoSuchUserNotificationDeliveryException
if it could not be found.- Parameters:
userId
- the user IDportletId
- the portlet IDclassNameId
- the class name IDnotificationType
- the notification typedeliveryType
- the delivery type- Returns:
- the matching user notification delivery
- Throws:
NoSuchUserNotificationDeliveryException
- if a matching user notification delivery could not be found
-
fetchByU_P_C_N_D
UserNotificationDelivery fetchByU_P_C_N_D(long userId, String portletId, long classNameId, int notificationType, int deliveryType) Returns the user notification delivery where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
userId
- the user IDportletId
- the portlet IDclassNameId
- the class name IDnotificationType
- the notification typedeliveryType
- the delivery type- Returns:
- the matching user notification delivery, or
null
if a matching user notification delivery could not be found
-
fetchByU_P_C_N_D
UserNotificationDelivery fetchByU_P_C_N_D(long userId, String portletId, long classNameId, int notificationType, int deliveryType, boolean useFinderCache) Returns the user notification delivery where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
userId
- the user IDportletId
- the portlet IDclassNameId
- the class name IDnotificationType
- the notification typedeliveryType
- the delivery typeuseFinderCache
- whether to use the finder cache- Returns:
- the matching user notification delivery, or
null
if a matching user notification delivery could not be found
-
removeByU_P_C_N_D
UserNotificationDelivery removeByU_P_C_N_D(long userId, String portletId, long classNameId, int notificationType, int deliveryType) throws NoSuchUserNotificationDeliveryException Removes the user notification delivery where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ? from the database.- Parameters:
userId
- the user IDportletId
- the portlet IDclassNameId
- the class name IDnotificationType
- the notification typedeliveryType
- the delivery type- Returns:
- the user notification delivery that was removed
- Throws:
NoSuchUserNotificationDeliveryException
-
countByU_P_C_N_D
int countByU_P_C_N_D(long userId, String portletId, long classNameId, int notificationType, int deliveryType) Returns the number of user notification deliveries where userId = ? and portletId = ? and classNameId = ? and notificationType = ? and deliveryType = ?.- Parameters:
userId
- the user IDportletId
- the portlet IDclassNameId
- the class name IDnotificationType
- the notification typedeliveryType
- the delivery type- Returns:
- the number of matching user notification deliveries
-
cacheResult
Caches the user notification delivery in the entity cache if it is enabled.- Parameters:
userNotificationDelivery
- the user notification delivery
-
cacheResult
Caches the user notification deliveries in the entity cache if it is enabled.- Parameters:
userNotificationDeliveries
- the user notification deliveries
-
create
Creates a new user notification delivery with the primary key. Does not add the user notification delivery to the database.- Parameters:
userNotificationDeliveryId
- the primary key for the new user notification delivery- Returns:
- the new user notification delivery
-
remove
UserNotificationDelivery remove(long userNotificationDeliveryId) throws NoSuchUserNotificationDeliveryException Removes the user notification delivery with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
userNotificationDeliveryId
- the primary key of the user notification delivery- Returns:
- the user notification delivery that was removed
- Throws:
NoSuchUserNotificationDeliveryException
- if a user notification delivery with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
UserNotificationDelivery findByPrimaryKey(long userNotificationDeliveryId) throws NoSuchUserNotificationDeliveryException Returns the user notification delivery with the primary key or throws aNoSuchUserNotificationDeliveryException
if it could not be found.- Parameters:
userNotificationDeliveryId
- the primary key of the user notification delivery- Returns:
- the user notification delivery
- Throws:
NoSuchUserNotificationDeliveryException
- if a user notification delivery with the primary key could not be found
-
fetchByPrimaryKey
Returns the user notification delivery with the primary key or returnsnull
if it could not be found.- Parameters:
userNotificationDeliveryId
- the primary key of the user notification delivery- Returns:
- the user notification delivery, or
null
if a user notification delivery with the primary key could not be found
-
findAll
List<UserNotificationDelivery> findAll()Returns all the user notification deliveries.- Returns:
- the user notification deliveries
-
findAll
Returns a range of all the user notification deliveries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserNotificationDeliveryModelImpl
.- Parameters:
start
- the lower bound of the range of user notification deliveriesend
- the upper bound of the range of user notification deliveries (not inclusive)- Returns:
- the range of user notification deliveries
-
findAll
List<UserNotificationDelivery> findAll(int start, int end, OrderByComparator<UserNotificationDelivery> orderByComparator) Returns an ordered range of all the user notification deliveries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserNotificationDeliveryModelImpl
.- Parameters:
start
- the lower bound of the range of user notification deliveriesend
- the upper bound of the range of user notification deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of user notification deliveries
-
findAll
List<UserNotificationDelivery> findAll(int start, int end, OrderByComparator<UserNotificationDelivery> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user notification deliveries.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromUserNotificationDeliveryModelImpl
.- Parameters:
start
- the lower bound of the range of user notification deliveriesend
- the upper bound of the range of user notification deliveries (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of user notification deliveries
-
removeAll
void removeAll()Removes all the user notification deliveries from the database. -
countAll
int countAll()Returns the number of user notification deliveries.- Returns:
- the number of user notification deliveries
-