public class NotificationRecipientSettingUtil
extends java.lang.Object
com.liferay.notification.service.persistence.impl.NotificationRecipientSettingPersistenceImpl
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
NotificationRecipientSettingPersistence
Constructor and Description |
---|
NotificationRecipientSettingUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<NotificationRecipientSetting> notificationRecipientSettings)
Caches the notification recipient settings in the entity cache if it is enabled.
|
static void |
cacheResult(NotificationRecipientSetting notificationRecipientSetting)
Caches the notification recipient setting in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(NotificationRecipientSetting notificationRecipientSetting) |
static int |
countAll()
Returns the number of notification recipient settings.
|
static int |
countByNotificationRecipientId(long notificationRecipientId)
Returns the number of notification recipient settings where notificationRecipientId = ?.
|
static int |
countByNRI_N(long notificationRecipientId,
java.lang.String name)
Returns the number of notification recipient settings where notificationRecipientId = ? and name = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of notification recipient settings where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of notification recipient settings where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static NotificationRecipientSetting |
create(long notificationRecipientSettingId)
Creates a new notification recipient setting with the primary key.
|
static NotificationRecipientSetting |
fetchByNotificationRecipientId_First(long notificationRecipientId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the first notification recipient setting in the ordered set where notificationRecipientId = ?.
|
static NotificationRecipientSetting |
fetchByNotificationRecipientId_Last(long notificationRecipientId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the last notification recipient setting in the ordered set where notificationRecipientId = ?.
|
static NotificationRecipientSetting |
fetchByNRI_N(long notificationRecipientId,
java.lang.String name)
Returns the notification recipient setting where notificationRecipientId = ? and name = ? or returns
null if it could not be found. |
static NotificationRecipientSetting |
fetchByNRI_N(long notificationRecipientId,
java.lang.String name,
boolean useFinderCache)
Returns the notification recipient setting where notificationRecipientId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static NotificationRecipientSetting |
fetchByPrimaryKey(long notificationRecipientSettingId)
Returns the notification recipient setting with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,NotificationRecipientSetting> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static NotificationRecipientSetting |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the first notification recipient setting in the ordered set where uuid = ? and companyId = ?.
|
static NotificationRecipientSetting |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the last notification recipient setting in the ordered set where uuid = ? and companyId = ?.
|
static NotificationRecipientSetting |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the first notification recipient setting in the ordered set where uuid = ?.
|
static NotificationRecipientSetting |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the last notification recipient setting in the ordered set where uuid = ?.
|
static java.util.List<NotificationRecipientSetting> |
findAll()
Returns all the notification recipient settings.
|
static java.util.List<NotificationRecipientSetting> |
findAll(int start,
int end)
Returns a range of all the notification recipient settings.
|
static java.util.List<NotificationRecipientSetting> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns an ordered range of all the notification recipient settings.
|
static java.util.List<NotificationRecipientSetting> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the notification recipient settings.
|
static NotificationRecipientSetting |
findByNotificationRecipientId_First(long notificationRecipientId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the first notification recipient setting in the ordered set where notificationRecipientId = ?.
|
static NotificationRecipientSetting |
findByNotificationRecipientId_Last(long notificationRecipientId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the last notification recipient setting in the ordered set where notificationRecipientId = ?.
|
static NotificationRecipientSetting[] |
findByNotificationRecipientId_PrevAndNext(long notificationRecipientSettingId,
long notificationRecipientId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the notification recipient settings before and after the current notification recipient setting in the ordered set where notificationRecipientId = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByNotificationRecipientId(long notificationRecipientId)
Returns all the notification recipient settings where notificationRecipientId = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByNotificationRecipientId(long notificationRecipientId,
int start,
int end)
Returns a range of all the notification recipient settings where notificationRecipientId = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByNotificationRecipientId(long notificationRecipientId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns an ordered range of all the notification recipient settings where notificationRecipientId = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByNotificationRecipientId(long notificationRecipientId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the notification recipient settings where notificationRecipientId = ?.
|
static NotificationRecipientSetting |
findByNRI_N(long notificationRecipientId,
java.lang.String name)
Returns the notification recipient setting where notificationRecipientId = ? and name = ? or throws a
NoSuchNotificationRecipientSettingException if it could not be found. |
static NotificationRecipientSetting |
findByPrimaryKey(long notificationRecipientSettingId)
Returns the notification recipient setting with the primary key or throws a
NoSuchNotificationRecipientSettingException if it could not be found. |
static NotificationRecipientSetting |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the first notification recipient setting in the ordered set where uuid = ? and companyId = ?.
|
static NotificationRecipientSetting |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the last notification recipient setting in the ordered set where uuid = ? and companyId = ?.
|
static NotificationRecipientSetting[] |
findByUuid_C_PrevAndNext(long notificationRecipientSettingId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the notification recipient settings before and after the current notification recipient setting in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the notification recipient settings where uuid = ? and companyId = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the notification recipient settings where uuid = ? and companyId = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns an ordered range of all the notification recipient settings where uuid = ? and companyId = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the notification recipient settings where uuid = ? and companyId = ?.
|
static NotificationRecipientSetting |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the first notification recipient setting in the ordered set where uuid = ?.
|
static NotificationRecipientSetting |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the last notification recipient setting in the ordered set where uuid = ?.
|
static NotificationRecipientSetting[] |
findByUuid_PrevAndNext(long notificationRecipientSettingId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns the notification recipient settings before and after the current notification recipient setting in the ordered set where uuid = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByUuid(java.lang.String uuid)
Returns all the notification recipient settings where uuid = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the notification recipient settings where uuid = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
Returns an ordered range of all the notification recipient settings where uuid = ?.
|
static java.util.List<NotificationRecipientSetting> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the notification recipient settings where uuid = ?.
|
static java.util.List<NotificationRecipientSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<NotificationRecipientSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<NotificationRecipientSetting> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) |
static NotificationRecipientSettingPersistence |
getPersistence() |
static NotificationRecipientSetting |
remove(long notificationRecipientSettingId)
Removes the notification recipient setting with the primary key from the database.
|
static void |
removeAll()
Removes all the notification recipient settings from the database.
|
static void |
removeByNotificationRecipientId(long notificationRecipientId)
Removes all the notification recipient settings where notificationRecipientId = ? from the database.
|
static NotificationRecipientSetting |
removeByNRI_N(long notificationRecipientId,
java.lang.String name)
Removes the notification recipient setting where notificationRecipientId = ? and name = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the notification recipient settings where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the notification recipient settings where uuid = ? from the database.
|
static void |
setPersistence(NotificationRecipientSettingPersistence persistence) |
static NotificationRecipientSetting |
update(NotificationRecipientSetting notificationRecipientSetting) |
static NotificationRecipientSetting |
update(NotificationRecipientSetting notificationRecipientSetting,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static NotificationRecipientSetting |
updateImpl(NotificationRecipientSetting notificationRecipientSetting) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(NotificationRecipientSetting notificationRecipientSetting)
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,NotificationRecipientSetting> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<NotificationRecipientSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<NotificationRecipientSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<NotificationRecipientSetting> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static NotificationRecipientSetting update(NotificationRecipientSetting notificationRecipientSetting)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static NotificationRecipientSetting update(NotificationRecipientSetting notificationRecipientSetting, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<NotificationRecipientSetting> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)public static java.util.List<NotificationRecipientSetting> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<NotificationRecipientSetting> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static NotificationRecipientSetting findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting[] findByUuid_PrevAndNext(long notificationRecipientSettingId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
notificationRecipientSettingId
- the primary key of the current notification recipient settinguuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a notification recipient setting 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<NotificationRecipientSetting> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)public static java.util.List<NotificationRecipientSetting> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<NotificationRecipientSetting> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static NotificationRecipientSetting findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting[] findByUuid_C_PrevAndNext(long notificationRecipientSettingId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
notificationRecipientSettingId
- the primary key of the current notification recipient settinguuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a notification recipient setting 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 java.util.List<NotificationRecipientSetting> findByNotificationRecipientId(long notificationRecipientId)
notificationRecipientId
- the notification recipient IDpublic static java.util.List<NotificationRecipientSetting> findByNotificationRecipientId(long notificationRecipientId, 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 NotificationRecipientSettingModelImpl
.
notificationRecipientId
- the notification recipient IDstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)public static java.util.List<NotificationRecipientSetting> findByNotificationRecipientId(long notificationRecipientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
notificationRecipientId
- the notification recipient IDstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<NotificationRecipientSetting> findByNotificationRecipientId(long notificationRecipientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
notificationRecipientId
- the notification recipient IDstart
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static NotificationRecipientSetting findByNotificationRecipientId_First(long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
notificationRecipientId
- the notification recipient IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting fetchByNotificationRecipientId_First(long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
notificationRecipientId
- the notification recipient IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting findByNotificationRecipientId_Last(long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
notificationRecipientId
- the notification recipient IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting fetchByNotificationRecipientId_Last(long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator)
notificationRecipientId
- the notification recipient IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting[] findByNotificationRecipientId_PrevAndNext(long notificationRecipientSettingId, long notificationRecipientId, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> orderByComparator) throws NoSuchNotificationRecipientSettingException
notificationRecipientSettingId
- the primary key of the current notification recipient settingnotificationRecipientId
- the notification recipient IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationRecipientSettingException
- if a notification recipient setting with the primary key could not be foundpublic static void removeByNotificationRecipientId(long notificationRecipientId)
notificationRecipientId
- the notification recipient IDpublic static int countByNotificationRecipientId(long notificationRecipientId)
notificationRecipientId
- the notification recipient IDpublic static NotificationRecipientSetting findByNRI_N(long notificationRecipientId, java.lang.String name) throws NoSuchNotificationRecipientSettingException
NoSuchNotificationRecipientSettingException
if it could not be found.notificationRecipientId
- the notification recipient IDname
- the nameNoSuchNotificationRecipientSettingException
- if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting fetchByNRI_N(long notificationRecipientId, java.lang.String name)
null
if it could not be found. Uses the finder cache.notificationRecipientId
- the notification recipient IDname
- the namenull
if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting fetchByNRI_N(long notificationRecipientId, java.lang.String name, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.notificationRecipientId
- the notification recipient IDname
- the nameuseFinderCache
- whether to use the finder cachenull
if a matching notification recipient setting could not be foundpublic static NotificationRecipientSetting removeByNRI_N(long notificationRecipientId, java.lang.String name) throws NoSuchNotificationRecipientSettingException
notificationRecipientId
- the notification recipient IDname
- the nameNoSuchNotificationRecipientSettingException
public static int countByNRI_N(long notificationRecipientId, java.lang.String name)
notificationRecipientId
- the notification recipient IDname
- the namepublic static void cacheResult(NotificationRecipientSetting notificationRecipientSetting)
notificationRecipientSetting
- the notification recipient settingpublic static void cacheResult(java.util.List<NotificationRecipientSetting> notificationRecipientSettings)
notificationRecipientSettings
- the notification recipient settingspublic static NotificationRecipientSetting create(long notificationRecipientSettingId)
notificationRecipientSettingId
- the primary key for the new notification recipient settingpublic static NotificationRecipientSetting remove(long notificationRecipientSettingId) throws NoSuchNotificationRecipientSettingException
notificationRecipientSettingId
- the primary key of the notification recipient settingNoSuchNotificationRecipientSettingException
- if a notification recipient setting with the primary key could not be foundpublic static NotificationRecipientSetting updateImpl(NotificationRecipientSetting notificationRecipientSetting)
public static NotificationRecipientSetting findByPrimaryKey(long notificationRecipientSettingId) throws NoSuchNotificationRecipientSettingException
NoSuchNotificationRecipientSettingException
if it could not be found.notificationRecipientSettingId
- the primary key of the notification recipient settingNoSuchNotificationRecipientSettingException
- if a notification recipient setting with the primary key could not be foundpublic static NotificationRecipientSetting fetchByPrimaryKey(long notificationRecipientSettingId)
null
if it could not be found.notificationRecipientSettingId
- the primary key of the notification recipient settingnull
if a notification recipient setting with the primary key could not be foundpublic static java.util.List<NotificationRecipientSetting> findAll()
public static java.util.List<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
start
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)public static java.util.List<NotificationRecipientSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
start
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<NotificationRecipientSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationRecipientSetting> 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 NotificationRecipientSettingModelImpl
.
start
- the lower bound of the range of notification recipient settingsend
- the upper bound of the range of notification recipient settings (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 NotificationRecipientSettingPersistence getPersistence()
public static void setPersistence(NotificationRecipientSettingPersistence persistence)