public class NotificationRecipientUtil
extends java.lang.Object
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
NotificationRecipientPersistence
Constructor and Description |
---|
NotificationRecipientUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<NotificationRecipient> notificationRecipients)
Caches the notification recipients in the entity cache if it is enabled.
|
static void |
cacheResult(NotificationRecipient notificationRecipient)
Caches the notification recipient in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(NotificationRecipient notificationRecipient) |
static int |
countAll()
Returns the number of notification recipients.
|
static int |
countByClassPK(long classPK)
Returns the number of notification recipients where classPK = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of notification recipients where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of notification recipients where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static NotificationRecipient |
create(long notificationRecipientId)
Creates a new notification recipient with the primary key.
|
static NotificationRecipient |
fetchByClassPK(long classPK)
Returns the notification recipient where classPK = ? or returns
null if it could not be found. |
static NotificationRecipient |
fetchByClassPK(long classPK,
boolean useFinderCache)
Returns the notification recipient where classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static NotificationRecipient |
fetchByPrimaryKey(long notificationRecipientId)
Returns the notification recipient with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,NotificationRecipient> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static NotificationRecipient |
fetchByUuid_C_First(java.lang.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 NotificationRecipient |
fetchByUuid_C_Last(java.lang.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 |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
Returns the first notification recipient in the ordered set where uuid = ?.
|
static NotificationRecipient |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
Returns the last notification recipient in the ordered set where uuid = ?.
|
static java.util.List<NotificationRecipient> |
findAll()
Returns all the notification recipients.
|
static java.util.List<NotificationRecipient> |
findAll(int start,
int end)
Returns a range of all the notification recipients.
|
static java.util.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 java.util.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 NotificationRecipient |
findByClassPK(long classPK)
Returns the notification recipient where classPK = ? or throws a
NoSuchNotificationRecipientException if it could not be found. |
static NotificationRecipient |
findByPrimaryKey(long notificationRecipientId)
Returns the notification recipient with the primary key or throws a
NoSuchNotificationRecipientException if it could not be found. |
static NotificationRecipient |
findByUuid_C_First(java.lang.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 NotificationRecipient |
findByUuid_C_Last(java.lang.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,
java.lang.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 java.util.List<NotificationRecipient> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the notification recipients where uuid = ? and companyId = ?.
|
static java.util.List<NotificationRecipient> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the notification recipients where uuid = ? and companyId = ?.
|
static java.util.List<NotificationRecipient> |
findByUuid_C(java.lang.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 java.util.List<NotificationRecipient> |
findByUuid_C(java.lang.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 NotificationRecipient |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
Returns the first notification recipient in the ordered set where uuid = ?.
|
static NotificationRecipient |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<NotificationRecipient> |
findByUuid(java.lang.String uuid)
Returns all the notification recipients where uuid = ?.
|
static java.util.List<NotificationRecipient> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the notification recipients where uuid = ?.
|
static java.util.List<NotificationRecipient> |
findByUuid(java.lang.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 java.util.List<NotificationRecipient> |
findByUuid(java.lang.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 java.util.List<NotificationRecipient> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<NotificationRecipient> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<NotificationRecipient> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) |
static NotificationRecipientPersistence |
getPersistence() |
static NotificationRecipient |
remove(long notificationRecipientId)
Removes the notification recipient with the primary key from the database.
|
static void |
removeAll()
Removes all the notification recipients from the database.
|
static NotificationRecipient |
removeByClassPK(long classPK)
Removes the notification recipient where classPK = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the notification recipients where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the notification recipients where uuid = ? from the database.
|
static void |
setPersistence(NotificationRecipientPersistence persistence) |
static NotificationRecipient |
update(NotificationRecipient notificationRecipient) |
static NotificationRecipient |
update(NotificationRecipient notificationRecipient,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static NotificationRecipient |
updateImpl(NotificationRecipient notificationRecipient) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(NotificationRecipient notificationRecipient)
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,NotificationRecipient> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<NotificationRecipient> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<NotificationRecipient> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<NotificationRecipient> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static NotificationRecipient update(NotificationRecipient notificationRecipient)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static NotificationRecipient update(NotificationRecipient notificationRecipient, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<NotificationRecipient> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<NotificationRecipient> findByUuid(java.lang.String uuid, 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 NotificationRecipientModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of notification recipientsend
- the upper bound of the range of notification recipients (not inclusive)public static java.util.List<NotificationRecipient> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> 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 NotificationRecipientModelImpl
.
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 (optionally null
)public static java.util.List<NotificationRecipient> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> 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 NotificationRecipientModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static NotificationRecipient findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientException
- if a matching notification recipient could not be foundpublic static NotificationRecipient fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient could not be foundpublic static NotificationRecipient findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientException
- if a matching notification recipient could not be foundpublic static NotificationRecipient fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient could not be foundpublic static NotificationRecipient[] findByUuid_PrevAndNext(long notificationRecipientId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException
notificationRecipientId
- the primary key of the current notification recipientuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientException
- if a notification recipient with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<NotificationRecipient> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<NotificationRecipient> findByUuid_C(java.lang.String uuid, long companyId, 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 NotificationRecipientModelImpl
.
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)public static java.util.List<NotificationRecipient> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> 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 NotificationRecipientModelImpl
.
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 (optionally null
)public static java.util.List<NotificationRecipient> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> 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 NotificationRecipientModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static NotificationRecipient findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientException
- if a matching notification recipient could not be foundpublic static NotificationRecipient fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient could not be foundpublic static NotificationRecipient findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientException
- if a matching notification recipient could not be foundpublic static NotificationRecipient fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient could not be foundpublic static NotificationRecipient[] findByUuid_C_PrevAndNext(long notificationRecipientId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> orderByComparator) throws NoSuchNotificationRecipientException
notificationRecipientId
- the primary key of the current notification recipientuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientException
- if a notification recipient with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static NotificationRecipient findByClassPK(long classPK) throws NoSuchNotificationRecipientException
NoSuchNotificationRecipientException
if it could not be found.classPK
- the class pkNoSuchNotificationRecipientException
- if a matching notification recipient could not be foundpublic static NotificationRecipient fetchByClassPK(long classPK)
null
if it could not be found. Uses the finder cache.classPK
- the class pknull
if a matching notification recipient could not be foundpublic static NotificationRecipient fetchByClassPK(long classPK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classPK
- the class pkuseFinderCache
- whether to use the finder cachenull
if a matching notification recipient could not be foundpublic static NotificationRecipient removeByClassPK(long classPK) throws NoSuchNotificationRecipientException
classPK
- the class pkNoSuchNotificationRecipientException
public static int countByClassPK(long classPK)
classPK
- the class pkpublic static void cacheResult(NotificationRecipient notificationRecipient)
notificationRecipient
- the notification recipientpublic static void cacheResult(java.util.List<NotificationRecipient> notificationRecipients)
notificationRecipients
- the notification recipientspublic static NotificationRecipient create(long notificationRecipientId)
notificationRecipientId
- the primary key for the new notification recipientpublic static NotificationRecipient remove(long notificationRecipientId) throws NoSuchNotificationRecipientException
notificationRecipientId
- the primary key of the notification recipientNoSuchNotificationRecipientException
- if a notification recipient with the primary key could not be foundpublic static NotificationRecipient updateImpl(NotificationRecipient notificationRecipient)
public static NotificationRecipient findByPrimaryKey(long notificationRecipientId) throws NoSuchNotificationRecipientException
NoSuchNotificationRecipientException
if it could not be found.notificationRecipientId
- the primary key of the notification recipientNoSuchNotificationRecipientException
- if a notification recipient with the primary key could not be foundpublic static NotificationRecipient fetchByPrimaryKey(long notificationRecipientId)
null
if it could not be found.notificationRecipientId
- the primary key of the notification recipientnull
if a notification recipient with the primary key could not be foundpublic static java.util.List<NotificationRecipient> findAll()
public static java.util.List<NotificationRecipient> 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 NotificationRecipientModelImpl
.
start
- the lower bound of the range of notification recipientsend
- the upper bound of the range of notification recipients (not inclusive)public static java.util.List<NotificationRecipient> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> 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 NotificationRecipientModelImpl
.
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 (optionally null
)public static java.util.List<NotificationRecipient> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipient> 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 NotificationRecipientModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static NotificationRecipientPersistence getPersistence()
public static void setPersistence(NotificationRecipientPersistence persistence)