@ProviderType public interface NotificationTemplatePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<NotificationTemplate>
Caching information and settings can be found in portal.properties
NotificationTemplateUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(java.util.List<NotificationTemplate> notificationTemplates)
Caches the notification templates in the entity cache if it is enabled.
|
void |
cacheResult(NotificationTemplate notificationTemplate)
Caches the notification template in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of notification templates.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of notification templates where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of notification templates where uuid = ?.
|
NotificationTemplate |
create(long notificationTemplateId)
Creates a new notification template with the primary key.
|
NotificationTemplate |
fetchByPrimaryKey(long notificationTemplateId)
Returns the notification template with the primary key or returns
null if it could not be found. |
NotificationTemplate |
fetchByUuid_C_First(java.lang.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 = ?.
|
NotificationTemplate |
fetchByUuid_C_Last(java.lang.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 = ?.
|
NotificationTemplate |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
Returns the first notification template in the ordered set where uuid = ?.
|
NotificationTemplate |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
Returns the last notification template in the ordered set where uuid = ?.
|
int |
filterCountByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of notification templates that the user has permission to view where uuid = ? and companyId = ?.
|
int |
filterCountByUuid(java.lang.String uuid)
Returns the number of notification templates that the user has permission to view where uuid = ?.
|
NotificationTemplate[] |
filterFindByUuid_C_PrevAndNext(long notificationTemplateId,
java.lang.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 = ?.
|
java.util.List<NotificationTemplate> |
filterFindByUuid_C(java.lang.String uuid,
long companyId)
Returns all the notification templates that the user has permission to view where uuid = ? and companyId = ?.
|
java.util.List<NotificationTemplate> |
filterFindByUuid_C(java.lang.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 = ?.
|
java.util.List<NotificationTemplate> |
filterFindByUuid_C(java.lang.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 = ?.
|
NotificationTemplate[] |
filterFindByUuid_PrevAndNext(long notificationTemplateId,
java.lang.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 = ?.
|
java.util.List<NotificationTemplate> |
filterFindByUuid(java.lang.String uuid)
Returns all the notification templates that the user has permission to view where uuid = ?.
|
java.util.List<NotificationTemplate> |
filterFindByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the notification templates that the user has permission to view where uuid = ?.
|
java.util.List<NotificationTemplate> |
filterFindByUuid(java.lang.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 = ?.
|
java.util.List<NotificationTemplate> |
findAll()
Returns all the notification templates.
|
java.util.List<NotificationTemplate> |
findAll(int start,
int end)
Returns a range of all the notification templates.
|
java.util.List<NotificationTemplate> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
Returns an ordered range of all the notification templates.
|
java.util.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.
|
NotificationTemplate |
findByPrimaryKey(long notificationTemplateId)
Returns the notification template with the primary key or throws a
NoSuchNotificationTemplateException if it could not be found. |
NotificationTemplate |
findByUuid_C_First(java.lang.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 = ?.
|
NotificationTemplate |
findByUuid_C_Last(java.lang.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 = ?.
|
NotificationTemplate[] |
findByUuid_C_PrevAndNext(long notificationTemplateId,
java.lang.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 = ?.
|
java.util.List<NotificationTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the notification templates where uuid = ? and companyId = ?.
|
java.util.List<NotificationTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the notification templates where uuid = ? and companyId = ?.
|
java.util.List<NotificationTemplate> |
findByUuid_C(java.lang.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 = ?.
|
java.util.List<NotificationTemplate> |
findByUuid_C(java.lang.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 = ?.
|
NotificationTemplate |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
Returns the first notification template in the ordered set where uuid = ?.
|
NotificationTemplate |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
Returns the last notification template in the ordered set where uuid = ?.
|
NotificationTemplate[] |
findByUuid_PrevAndNext(long notificationTemplateId,
java.lang.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 = ?.
|
java.util.List<NotificationTemplate> |
findByUuid(java.lang.String uuid)
Returns all the notification templates where uuid = ?.
|
java.util.List<NotificationTemplate> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the notification templates where uuid = ?.
|
java.util.List<NotificationTemplate> |
findByUuid(java.lang.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 = ?.
|
java.util.List<NotificationTemplate> |
findByUuid(java.lang.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 = ?.
|
NotificationTemplate |
remove(long notificationTemplateId)
Removes the notification template with the primary key from the database.
|
void |
removeAll()
Removes all the notification templates from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the notification templates where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the notification templates where uuid = ? from the database.
|
NotificationTemplate |
updateImpl(NotificationTemplate notificationTemplate) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<NotificationTemplate> findByUuid(java.lang.String uuid)
uuid - the uuidjava.util.List<NotificationTemplate> 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 NotificationTemplateModelImpl.
uuid - the uuidstart - the lower bound of the range of notification templatesend - the upper bound of the range of notification templates (not inclusive)java.util.List<NotificationTemplate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> 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 NotificationTemplateModelImpl.
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 (optionally null)java.util.List<NotificationTemplate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> 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 NotificationTemplateModelImpl.
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 (optionally null)useFinderCache - whether to use the finder cacheNotificationTemplate findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchNotificationTemplateException - if a matching notification template could not be foundNotificationTemplate fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching notification template could not be foundNotificationTemplate findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchNotificationTemplateException - if a matching notification template could not be foundNotificationTemplate fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching notification template could not be foundNotificationTemplate[] findByUuid_PrevAndNext(long notificationTemplateId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
notificationTemplateId - the primary key of the current notification templateuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchNotificationTemplateException - if a notification template with the primary key could not be foundjava.util.List<NotificationTemplate> filterFindByUuid(java.lang.String uuid)
uuid - the uuidjava.util.List<NotificationTemplate> filterFindByUuid(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 NotificationTemplateModelImpl.
uuid - the uuidstart - the lower bound of the range of notification templatesend - the upper bound of the range of notification templates (not inclusive)java.util.List<NotificationTemplate> filterFindByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> 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 NotificationTemplateModelImpl.
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 (optionally null)NotificationTemplate[] filterFindByUuid_PrevAndNext(long notificationTemplateId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
notificationTemplateId - the primary key of the current notification templateuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchNotificationTemplateException - if a notification template with the primary key could not be foundvoid removeByUuid(java.lang.String uuid)
uuid - the uuidint countByUuid(java.lang.String uuid)
uuid - the uuidint filterCountByUuid(java.lang.String uuid)
uuid - the uuidjava.util.List<NotificationTemplate> findByUuid_C(java.lang.String uuid, long companyId)
uuid - the uuidcompanyId - the company IDjava.util.List<NotificationTemplate> 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 NotificationTemplateModelImpl.
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)java.util.List<NotificationTemplate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> 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 NotificationTemplateModelImpl.
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 (optionally null)java.util.List<NotificationTemplate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> 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 NotificationTemplateModelImpl.
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 (optionally null)useFinderCache - whether to use the finder cacheNotificationTemplate findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchNotificationTemplateException - if a matching notification template could not be foundNotificationTemplate fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching notification template could not be foundNotificationTemplate findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchNotificationTemplateException - if a matching notification template could not be foundNotificationTemplate fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching notification template could not be foundNotificationTemplate[] findByUuid_C_PrevAndNext(long notificationTemplateId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
notificationTemplateId - the primary key of the current notification templateuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchNotificationTemplateException - if a notification template with the primary key could not be foundjava.util.List<NotificationTemplate> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid - the uuidcompanyId - the company IDjava.util.List<NotificationTemplate> filterFindByUuid_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 NotificationTemplateModelImpl.
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)java.util.List<NotificationTemplate> filterFindByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> 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 NotificationTemplateModelImpl.
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 (optionally null)NotificationTemplate[] filterFindByUuid_C_PrevAndNext(long notificationTemplateId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
notificationTemplateId - the primary key of the current notification templateuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchNotificationTemplateException - if a notification template with the primary key could not be foundvoid removeByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDint countByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDint filterCountByUuid_C(java.lang.String uuid,
long companyId)
uuid - the uuidcompanyId - the company IDvoid cacheResult(NotificationTemplate notificationTemplate)
notificationTemplate - the notification templatevoid cacheResult(java.util.List<NotificationTemplate> notificationTemplates)
notificationTemplates - the notification templatesNotificationTemplate create(long notificationTemplateId)
notificationTemplateId - the primary key for the new notification templateNotificationTemplate remove(long notificationTemplateId) throws NoSuchNotificationTemplateException
notificationTemplateId - the primary key of the notification templateNoSuchNotificationTemplateException - if a notification template with the primary key could not be foundNotificationTemplate updateImpl(NotificationTemplate notificationTemplate)
NotificationTemplate findByPrimaryKey(long notificationTemplateId) throws NoSuchNotificationTemplateException
NoSuchNotificationTemplateException if it could not be found.notificationTemplateId - the primary key of the notification templateNoSuchNotificationTemplateException - if a notification template with the primary key could not be foundNotificationTemplate fetchByPrimaryKey(long notificationTemplateId)
null if it could not be found.notificationTemplateId - the primary key of the notification templatenull if a notification template with the primary key could not be foundjava.util.List<NotificationTemplate> findAll()
java.util.List<NotificationTemplate> 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 NotificationTemplateModelImpl.
start - the lower bound of the range of notification templatesend - the upper bound of the range of notification templates (not inclusive)java.util.List<NotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> 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 NotificationTemplateModelImpl.
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 (optionally null)java.util.List<NotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> 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 NotificationTemplateModelImpl.
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 (optionally null)useFinderCache - whether to use the finder cachevoid removeAll()
int countAll()