Class NotificationTemplateUtil
com.liferay.notification.service.persistence.impl.NotificationTemplatePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(NotificationTemplate notificationTemplate) Caches the notification template in the entity cache if it is enabled.static voidcacheResult(List<NotificationTemplate> notificationTemplates) Caches the notification templates in the entity cache if it is enabled.static voidstatic voidclearCache(NotificationTemplate notificationTemplate) static intcountAll()Returns the number of notification templates.static intcountByCompanyId(long companyId) Returns the number of notification templates where companyId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of notification templates where externalReferenceCode = ? and companyId = ?.static intcountByUuid(String uuid) Returns the number of notification templates where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of notification templates where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static NotificationTemplatecreate(long notificationTemplateId) Creates a new notification template with the primary key.static NotificationTemplatefetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template in the ordered set where companyId = ?.static NotificationTemplatefetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template in the ordered set where companyId = ?.static NotificationTemplatefetchByERC_C(String externalReferenceCode, long companyId) Returns the notification template where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static NotificationTemplatefetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the notification template where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static NotificationTemplatefetchByPrimaryKey(long notificationTemplateId) Returns the notification template with the primary key or returnsnullif it could not be found.static Map<Serializable,NotificationTemplate> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static NotificationTemplatefetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template in the ordered set where uuid = ? and companyId = ?.static NotificationTemplatefetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template in the ordered set where uuid = ? and companyId = ?.static NotificationTemplatefetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template in the ordered set where uuid = ?.static NotificationTemplatefetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template in the ordered set where uuid = ?.static intfilterCountByCompanyId(long companyId) Returns the number of notification templates that the user has permission to view where companyId = ?.static intfilterCountByUuid(String uuid) Returns the number of notification templates that the user has permission to view where uuid = ?.static intfilterCountByUuid_C(String uuid, long companyId) Returns the number of notification templates that the user has permission to view where uuid = ? and companyId = ?.static List<NotificationTemplate>filterFindByCompanyId(long companyId) Returns all the notification templates that the user has permission to view where companyId = ?.static List<NotificationTemplate>filterFindByCompanyId(long companyId, int start, int end) Returns a range of all the notification templates that the user has permission to view where companyId = ?.static List<NotificationTemplate>filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates that the user has permissions to view where companyId = ?.static NotificationTemplate[]filterFindByCompanyId_PrevAndNext(long notificationTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the notification templates before and after the current notification template in the ordered set of notification templates that the user has permission to view where companyId = ?.static List<NotificationTemplate>filterFindByUuid(String uuid) Returns all the notification templates that the user has permission to view where uuid = ?.static List<NotificationTemplate>filterFindByUuid(String uuid, int start, int end) Returns a range of all the notification templates that the user has permission to view where uuid = ?.static List<NotificationTemplate>filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates that the user has permissions to view where uuid = ?.static List<NotificationTemplate>filterFindByUuid_C(String uuid, long companyId) Returns all the notification templates that the user has permission to view where uuid = ? and companyId = ?.static List<NotificationTemplate>filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the notification templates that the user has permission to view where uuid = ? and companyId = ?.static List<NotificationTemplate>filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates that the user has permissions to view where uuid = ? and companyId = ?.static NotificationTemplate[]filterFindByUuid_C_PrevAndNext(long notificationTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the notification templates before and after the current notification template in the ordered set of notification templates that the user has permission to view where uuid = ? and companyId = ?.static NotificationTemplate[]filterFindByUuid_PrevAndNext(long notificationTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the notification templates before and after the current notification template in the ordered set of notification templates that the user has permission to view where uuid = ?.static List<NotificationTemplate>findAll()Returns all the notification templates.static List<NotificationTemplate>findAll(int start, int end) Returns a range of all the notification templates.static List<NotificationTemplate>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates.static List<NotificationTemplate>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification templates.static List<NotificationTemplate>findByCompanyId(long companyId) Returns all the notification templates where companyId = ?.static List<NotificationTemplate>findByCompanyId(long companyId, int start, int end) Returns a range of all the notification templates where companyId = ?.static List<NotificationTemplate>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates where companyId = ?.static List<NotificationTemplate>findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification templates where companyId = ?.static NotificationTemplatefindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template in the ordered set where companyId = ?.static NotificationTemplatefindByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template in the ordered set where companyId = ?.static NotificationTemplate[]findByCompanyId_PrevAndNext(long notificationTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the notification templates before and after the current notification template in the ordered set where companyId = ?.static NotificationTemplatefindByERC_C(String externalReferenceCode, long companyId) Returns the notification template where externalReferenceCode = ? and companyId = ? or throws aNoSuchNotificationTemplateExceptionif it could not be found.static NotificationTemplatefindByPrimaryKey(long notificationTemplateId) Returns the notification template with the primary key or throws aNoSuchNotificationTemplateExceptionif it could not be found.static List<NotificationTemplate>findByUuid(String uuid) Returns all the notification templates where uuid = ?.static List<NotificationTemplate>findByUuid(String uuid, int start, int end) Returns a range of all the notification templates where uuid = ?.static List<NotificationTemplate>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates where uuid = ?.static List<NotificationTemplate>findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification templates where uuid = ?.static List<NotificationTemplate>findByUuid_C(String uuid, long companyId) Returns all the notification templates where uuid = ? and companyId = ?.static List<NotificationTemplate>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the notification templates where uuid = ? and companyId = ?.static List<NotificationTemplate>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates where uuid = ? and companyId = ?.static List<NotificationTemplate>findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification templates where uuid = ? and companyId = ?.static NotificationTemplatefindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template in the ordered set where uuid = ? and companyId = ?.static NotificationTemplatefindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template in the ordered set where uuid = ? and companyId = ?.static NotificationTemplate[]findByUuid_C_PrevAndNext(long notificationTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the notification templates before and after the current notification template in the ordered set where uuid = ? and companyId = ?.static NotificationTemplatefindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template in the ordered set where uuid = ?.static NotificationTemplatefindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template in the ordered set where uuid = ?.static NotificationTemplate[]findByUuid_PrevAndNext(long notificationTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the notification templates before and after the current notification template in the ordered set where uuid = ?.static List<NotificationTemplate>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<NotificationTemplate>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<NotificationTemplate>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) static NotificationTemplateremove(long notificationTemplateId) Removes the notification template with the primary key from the database.static voidRemoves all the notification templates from the database.static voidremoveByCompanyId(long companyId) Removes all the notification templates where companyId = ? from the database.static NotificationTemplateremoveByERC_C(String externalReferenceCode, long companyId) Removes the notification template where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByUuid(String uuid) Removes all the notification templates where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the notification templates where uuid = ? and companyId = ? from the database.static voidsetPersistence(NotificationTemplatePersistence persistence) static NotificationTemplateupdate(NotificationTemplate notificationTemplate) static NotificationTemplateupdate(NotificationTemplate notificationTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) static NotificationTemplateupdateImpl(NotificationTemplate notificationTemplate)
-
Constructor Details
-
NotificationTemplateUtil
public NotificationTemplateUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,NotificationTemplate> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<NotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<NotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<NotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static NotificationTemplate update(NotificationTemplate notificationTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the notification templates where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching notification templates
-
findByUuid
Returns a range of all the notification templates 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)- Returns:
- the range of matching notification templates
-
findByUuid
public static List<NotificationTemplate> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification templates
-
findByUuid
public static List<NotificationTemplate> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification templates 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (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 templates
-
findByUuid_First
public static NotificationTemplate findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the first notification template in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification template
- Throws:
NoSuchNotificationTemplateException- if a matching notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUuid_First
public static NotificationTemplate fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification template, or
nullif a matching notification template could not be found
-
findByUuid_Last
public static NotificationTemplate findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the last notification template in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification template
- Throws:
NoSuchNotificationTemplateException- if a matching notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUuid_Last
public static NotificationTemplate fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification template, or
nullif a matching notification template could not be found
-
findByUuid_PrevAndNext
public static NotificationTemplate[] findByUuid_PrevAndNext(long notificationTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the notification templates before and after the current notification template in the ordered set where uuid = ?.- Parameters:
notificationTemplateId- the primary key of the current notification templateuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification template
- Throws:
NoSuchNotificationTemplateException- if a notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
filterFindByUuid
Returns all the notification templates that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching notification templates that the user has permission to view
-
filterFindByUuid
Returns a range of all the notification templates that the user has permission to view 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)- Returns:
- the range of matching notification templates that the user has permission to view
-
filterFindByUuid
public static List<NotificationTemplate> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates that the user has permissions to view 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification templates that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static NotificationTemplate[] filterFindByUuid_PrevAndNext(long notificationTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the notification templates before and after the current notification template in the ordered set of notification templates that the user has permission to view where uuid = ?.- Parameters:
notificationTemplateId- the primary key of the current notification templateuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification template
- Throws:
NoSuchNotificationTemplateException- if a notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
removeByUuid
Removes all the notification templates where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of notification templates where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching notification templates
-
filterCountByUuid
Returns the number of notification templates that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching notification templates that the user has permission to view
-
findByUuid_C
Returns all the notification templates where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching notification templates
-
findByUuid_C
public static List<NotificationTemplate> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the notification templates 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)- Returns:
- the range of matching notification templates
-
findByUuid_C
public static List<NotificationTemplate> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification templates
-
findByUuid_C
public static List<NotificationTemplate> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification templates 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (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 templates
-
findByUuid_C_First
public static NotificationTemplate findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the first notification template 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 template
- Throws:
NoSuchNotificationTemplateException- if a matching notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUuid_C_First
public static NotificationTemplate fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template 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 template, or
nullif a matching notification template could not be found
-
findByUuid_C_Last
public static NotificationTemplate findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the last notification template 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 template
- Throws:
NoSuchNotificationTemplateException- if a matching notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUuid_C_Last
public static NotificationTemplate fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template 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 template, or
nullif a matching notification template could not be found
-
findByUuid_C_PrevAndNext
public static NotificationTemplate[] findByUuid_C_PrevAndNext(long notificationTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the notification templates before and after the current notification template in the ordered set where uuid = ? and companyId = ?.- Parameters:
notificationTemplateId- the primary key of the current notification templateuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification template
- Throws:
NoSuchNotificationTemplateException- if a notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
filterFindByUuid_C
Returns all the notification templates that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching notification templates that the user has permission to view
-
filterFindByUuid_C
public static List<NotificationTemplate> filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the notification templates that the user has permission to view 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)- Returns:
- the range of matching notification templates that the user has permission to view
-
filterFindByUuid_C
public static List<NotificationTemplate> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates that the user has permissions to view 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 fromNotificationTemplateModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification templates that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static NotificationTemplate[] filterFindByUuid_C_PrevAndNext(long notificationTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the notification templates before and after the current notification template in the ordered set of notification templates that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
notificationTemplateId- the primary key of the current notification templateuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification template
- Throws:
NoSuchNotificationTemplateException- if a notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
removeByUuid_C
Removes all the notification templates where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of notification templates where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching notification templates
-
filterCountByUuid_C
Returns the number of notification templates that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching notification templates that the user has permission to view
-
findByCompanyId
Returns all the notification templates where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching notification templates
-
findByCompanyId
Returns a range of all the notification templates where 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 fromNotificationTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)- Returns:
- the range of matching notification templates
-
findByCompanyId
public static List<NotificationTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates where 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 fromNotificationTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification templates
-
findByCompanyId
public static List<NotificationTemplate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification templates where 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 fromNotificationTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (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 templates
-
findByCompanyId_First
public static NotificationTemplate findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the first notification template in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification template
- Throws:
NoSuchNotificationTemplateException- if a matching notification template could not be foundNoSuchNotificationTemplateException
-
fetchByCompanyId_First
public static NotificationTemplate fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the first notification template in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching notification template, or
nullif a matching notification template could not be found
-
findByCompanyId_Last
public static NotificationTemplate findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the last notification template in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification template
- Throws:
NoSuchNotificationTemplateException- if a matching notification template could not be foundNoSuchNotificationTemplateException
-
fetchByCompanyId_Last
public static NotificationTemplate fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns the last notification template in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching notification template, or
nullif a matching notification template could not be found
-
findByCompanyId_PrevAndNext
public static NotificationTemplate[] findByCompanyId_PrevAndNext(long notificationTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the notification templates before and after the current notification template in the ordered set where companyId = ?.- Parameters:
notificationTemplateId- the primary key of the current notification templatecompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification template
- Throws:
NoSuchNotificationTemplateException- if a notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
filterFindByCompanyId
Returns all the notification templates that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching notification templates that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the notification templates that the user has permission to view where 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 fromNotificationTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)- Returns:
- the range of matching notification templates that the user has permission to view
-
filterFindByCompanyId
public static List<NotificationTemplate> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates that the user has permissions to view where 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 fromNotificationTemplateModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching notification templates that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static NotificationTemplate[] filterFindByCompanyId_PrevAndNext(long notificationTemplateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the notification templates before and after the current notification template in the ordered set of notification templates that the user has permission to view where companyId = ?.- Parameters:
notificationTemplateId- the primary key of the current notification templatecompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next notification template
- Throws:
NoSuchNotificationTemplateException- if a notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the notification templates where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of notification templates where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching notification templates
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of notification templates that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching notification templates that the user has permission to view
-
findByERC_C
public static NotificationTemplate findByERC_C(String externalReferenceCode, long companyId) throws NoSuchNotificationTemplateException Returns the notification template where externalReferenceCode = ? and companyId = ? or throws aNoSuchNotificationTemplateExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching notification template
- Throws:
NoSuchNotificationTemplateException- if a matching notification template could not be foundNoSuchNotificationTemplateException
-
fetchByERC_C
Returns the notification template where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching notification template, or
nullif a matching notification template could not be found
-
fetchByERC_C
public static NotificationTemplate fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the notification template where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching notification template, or
nullif a matching notification template could not be found
-
removeByERC_C
public static NotificationTemplate removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchNotificationTemplateException Removes the notification template where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the notification template that was removed
- Throws:
NoSuchNotificationTemplateException
-
countByERC_C
Returns the number of notification templates where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching notification templates
-
cacheResult
Caches the notification template in the entity cache if it is enabled.- Parameters:
notificationTemplate- the notification template
-
cacheResult
Caches the notification templates in the entity cache if it is enabled.- Parameters:
notificationTemplates- the notification templates
-
create
Creates a new notification template with the primary key. Does not add the notification template to the database.- Parameters:
notificationTemplateId- the primary key for the new notification template- Returns:
- the new notification template
-
remove
public static NotificationTemplate remove(long notificationTemplateId) throws NoSuchNotificationTemplateException Removes the notification template with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
notificationTemplateId- the primary key of the notification template- Returns:
- the notification template that was removed
- Throws:
NoSuchNotificationTemplateException- if a notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
updateImpl
-
findByPrimaryKey
public static NotificationTemplate findByPrimaryKey(long notificationTemplateId) throws NoSuchNotificationTemplateException Returns the notification template with the primary key or throws aNoSuchNotificationTemplateExceptionif it could not be found.- Parameters:
notificationTemplateId- the primary key of the notification template- Returns:
- the notification template
- Throws:
NoSuchNotificationTemplateException- if a notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
fetchByPrimaryKey
Returns the notification template with the primary key or returnsnullif it could not be found.- Parameters:
notificationTemplateId- the primary key of the notification template- Returns:
- the notification template, or
nullif a notification template with the primary key could not be found
-
findAll
Returns all the notification templates.- Returns:
- the notification templates
-
findAll
Returns a range of all the notification templates.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 fromNotificationTemplateModelImpl.- Parameters:
start- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)- Returns:
- the range of notification templates
-
findAll
public static List<NotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) Returns an ordered range of all the notification templates.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 fromNotificationTemplateModelImpl.- Parameters:
start- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of notification templates
-
findAll
public static List<NotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the notification templates.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 fromNotificationTemplateModelImpl.- Parameters:
start- the lower bound of the range of notification templatesend- the upper bound of the range of notification templates (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of notification templates
-
removeAll
public static void removeAll()Removes all the notification templates from the database. -
countAll
public static int countAll()Returns the number of notification templates.- Returns:
- the number of notification templates
-
getPersistence
-
setPersistence
-