Class CalendarNotificationTemplateUtil
com.liferay.calendar.service.persistence.impl.CalendarNotificationTemplatePersistenceImpl
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 void
cacheResult
(CalendarNotificationTemplate calendarNotificationTemplate) Caches the calendar notification template in the entity cache if it is enabled.static void
cacheResult
(List<CalendarNotificationTemplate> calendarNotificationTemplates) Caches the calendar notification templates in the entity cache if it is enabled.static void
static void
clearCache
(CalendarNotificationTemplate calendarNotificationTemplate) static int
countAll()
Returns the number of calendar notification templates.static int
countByC_NT_NTT
(long calendarId, String notificationType, String notificationTemplateType) Returns the number of calendar notification templates where calendarId = ? and notificationType = ? and notificationTemplateType = ?.static int
countByCalendarId
(long calendarId) Returns the number of calendar notification templates where calendarId = ?.static int
countByUuid
(String uuid) Returns the number of calendar notification templates where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of calendar notification templates where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of calendar notification templates where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CalendarNotificationTemplate
create
(long calendarNotificationTemplateId) Creates a new calendar notification template with the primary key.static CalendarNotificationTemplate
fetchByC_NT_NTT
(long calendarId, String notificationType, String notificationTemplateType) Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or returnsnull
if it could not be found.static CalendarNotificationTemplate
fetchByC_NT_NTT
(long calendarId, String notificationType, String notificationTemplateType, boolean useFinderCache) Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or returnsnull
if it could not be found, optionally using the finder cache.static CalendarNotificationTemplate
fetchByCalendarId_First
(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar notification template in the ordered set where calendarId = ?.static CalendarNotificationTemplate
fetchByCalendarId_Last
(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar notification template in the ordered set where calendarId = ?.static CalendarNotificationTemplate
fetchByPrimaryKey
(long calendarNotificationTemplateId) Returns the calendar notification template with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CalendarNotificationTemplate
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar notification template in the ordered set where uuid = ? and companyId = ?.static CalendarNotificationTemplate
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar notification template in the ordered set where uuid = ? and companyId = ?.static CalendarNotificationTemplate
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar notification template in the ordered set where uuid = ?.static CalendarNotificationTemplate
fetchByUUID_G
(String uuid, long groupId) Returns the calendar notification template where uuid = ? and groupId = ? or returnsnull
if it could not be found.static CalendarNotificationTemplate
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the calendar notification template where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CalendarNotificationTemplate
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar notification template in the ordered set where uuid = ?.static List<CalendarNotificationTemplate>
findAll()
Returns all the calendar notification templates.static List<CalendarNotificationTemplate>
findAll
(int start, int end) Returns a range of all the calendar notification templates.static List<CalendarNotificationTemplate>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns an ordered range of all the calendar notification templates.static List<CalendarNotificationTemplate>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar notification templates.static CalendarNotificationTemplate
findByC_NT_NTT
(long calendarId, String notificationType, String notificationTemplateType) Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or throws aNoSuchNotificationTemplateException
if it could not be found.static List<CalendarNotificationTemplate>
findByCalendarId
(long calendarId) Returns all the calendar notification templates where calendarId = ?.static List<CalendarNotificationTemplate>
findByCalendarId
(long calendarId, int start, int end) Returns a range of all the calendar notification templates where calendarId = ?.static List<CalendarNotificationTemplate>
findByCalendarId
(long calendarId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns an ordered range of all the calendar notification templates where calendarId = ?.static List<CalendarNotificationTemplate>
findByCalendarId
(long calendarId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar notification templates where calendarId = ?.static CalendarNotificationTemplate
findByCalendarId_First
(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar notification template in the ordered set where calendarId = ?.static CalendarNotificationTemplate
findByCalendarId_Last
(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar notification template in the ordered set where calendarId = ?.static CalendarNotificationTemplate[]
findByCalendarId_PrevAndNext
(long calendarNotificationTemplateId, long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the calendar notification templates before and after the current calendar notification template in the ordered set where calendarId = ?.static CalendarNotificationTemplate
findByPrimaryKey
(long calendarNotificationTemplateId) Returns the calendar notification template with the primary key or throws aNoSuchNotificationTemplateException
if it could not be found.static List<CalendarNotificationTemplate>
findByUuid
(String uuid) Returns all the calendar notification templates where uuid = ?.static List<CalendarNotificationTemplate>
findByUuid
(String uuid, int start, int end) Returns a range of all the calendar notification templates where uuid = ?.static List<CalendarNotificationTemplate>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns an ordered range of all the calendar notification templates where uuid = ?.static List<CalendarNotificationTemplate>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar notification templates where uuid = ?.static List<CalendarNotificationTemplate>
findByUuid_C
(String uuid, long companyId) Returns all the calendar notification templates where uuid = ? and companyId = ?.static List<CalendarNotificationTemplate>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the calendar notification templates where uuid = ? and companyId = ?.static List<CalendarNotificationTemplate>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns an ordered range of all the calendar notification templates where uuid = ? and companyId = ?.static List<CalendarNotificationTemplate>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar notification templates where uuid = ? and companyId = ?.static CalendarNotificationTemplate
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar notification template in the ordered set where uuid = ? and companyId = ?.static CalendarNotificationTemplate
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar notification template in the ordered set where uuid = ? and companyId = ?.static CalendarNotificationTemplate[]
findByUuid_C_PrevAndNext
(long calendarNotificationTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the calendar notification templates before and after the current calendar notification template in the ordered set where uuid = ? and companyId = ?.static CalendarNotificationTemplate
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar notification template in the ordered set where uuid = ?.static CalendarNotificationTemplate
findByUUID_G
(String uuid, long groupId) Returns the calendar notification template where uuid = ? and groupId = ? or throws aNoSuchNotificationTemplateException
if it could not be found.static CalendarNotificationTemplate
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar notification template in the ordered set where uuid = ?.static CalendarNotificationTemplate[]
findByUuid_PrevAndNext
(long calendarNotificationTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the calendar notification templates before and after the current calendar notification template in the ordered set where uuid = ?.static List<CalendarNotificationTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CalendarNotificationTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CalendarNotificationTemplate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) static CalendarNotificationTemplate
remove
(long calendarNotificationTemplateId) Removes the calendar notification template with the primary key from the database.static void
Removes all the calendar notification templates from the database.static CalendarNotificationTemplate
removeByC_NT_NTT
(long calendarId, String notificationType, String notificationTemplateType) Removes the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? from the database.static void
removeByCalendarId
(long calendarId) Removes all the calendar notification templates where calendarId = ? from the database.static void
removeByUuid
(String uuid) Removes all the calendar notification templates where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the calendar notification templates where uuid = ? and companyId = ? from the database.static CalendarNotificationTemplate
removeByUUID_G
(String uuid, long groupId) Removes the calendar notification template where uuid = ? and groupId = ? from the database.static void
setPersistence
(CalendarNotificationTemplatePersistence persistence) static CalendarNotificationTemplate
update
(CalendarNotificationTemplate calendarNotificationTemplate) static CalendarNotificationTemplate
update
(CalendarNotificationTemplate calendarNotificationTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CalendarNotificationTemplate
updateImpl
(CalendarNotificationTemplate calendarNotificationTemplate)
-
Constructor Details
-
CalendarNotificationTemplateUtil
public CalendarNotificationTemplateUtil()
-
-
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,CalendarNotificationTemplate> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CalendarNotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CalendarNotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CalendarNotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CalendarNotificationTemplate update(CalendarNotificationTemplate calendarNotificationTemplate) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CalendarNotificationTemplate update(CalendarNotificationTemplate calendarNotificationTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the calendar notification templates where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching calendar notification templates
-
findByUuid
Returns a range of all the calendar notification templates where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)- Returns:
- the range of matching calendar notification templates
-
findByUuid
public static List<CalendarNotificationTemplate> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns an ordered range of all the calendar notification templates where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendar notification templates
-
findByUuid
public static List<CalendarNotificationTemplate> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar notification templates where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar 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 calendar notification templates
-
findByUuid_First
public static CalendarNotificationTemplate findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the first calendar notification template in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUuid_First
public static CalendarNotificationTemplate fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar notification template in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar notification template, or
null
if a matching calendar notification template could not be found
-
findByUuid_Last
public static CalendarNotificationTemplate findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the last calendar notification template in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUuid_Last
public static CalendarNotificationTemplate fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar notification template in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar notification template, or
null
if a matching calendar notification template could not be found
-
findByUuid_PrevAndNext
public static CalendarNotificationTemplate[] findByUuid_PrevAndNext(long calendarNotificationTemplateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the calendar notification templates before and after the current calendar notification template in the ordered set where uuid = ?.- Parameters:
calendarNotificationTemplateId
- the primary key of the current calendar notification templateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
removeByUuid
Removes all the calendar notification templates where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of calendar notification templates where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching calendar notification templates
-
findByUUID_G
public static CalendarNotificationTemplate findByUUID_G(String uuid, long groupId) throws NoSuchNotificationTemplateException Returns the calendar notification template where uuid = ? and groupId = ? or throws aNoSuchNotificationTemplateException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUUID_G
Returns the calendar notification template where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching calendar notification template, or
null
if a matching calendar notification template could not be found
-
fetchByUUID_G
public static CalendarNotificationTemplate fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the calendar notification template where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching calendar notification template, or
null
if a matching calendar notification template could not be found
-
removeByUUID_G
public static CalendarNotificationTemplate removeByUUID_G(String uuid, long groupId) throws NoSuchNotificationTemplateException Removes the calendar notification template where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the calendar notification template that was removed
- Throws:
NoSuchNotificationTemplateException
-
countByUUID_G
Returns the number of calendar notification templates where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching calendar notification templates
-
findByUuid_C
Returns all the calendar notification templates where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching calendar notification templates
-
findByUuid_C
public static List<CalendarNotificationTemplate> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the calendar notification templates where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)- Returns:
- the range of matching calendar notification templates
-
findByUuid_C
public static List<CalendarNotificationTemplate> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns an ordered range of all the calendar notification templates where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendar notification templates
-
findByUuid_C
public static List<CalendarNotificationTemplate> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar notification templates where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar 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 calendar notification templates
-
findByUuid_C_First
public static CalendarNotificationTemplate findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the first calendar 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 calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUuid_C_First
public static CalendarNotificationTemplate fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar 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 calendar notification template, or
null
if a matching calendar notification template could not be found
-
findByUuid_C_Last
public static CalendarNotificationTemplate findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the last calendar 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 calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundNoSuchNotificationTemplateException
-
fetchByUuid_C_Last
public static CalendarNotificationTemplate fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar 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 calendar notification template, or
null
if a matching calendar notification template could not be found
-
findByUuid_C_PrevAndNext
public static CalendarNotificationTemplate[] findByUuid_C_PrevAndNext(long calendarNotificationTemplateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the calendar notification templates before and after the current calendar notification template in the ordered set where uuid = ? and companyId = ?.- Parameters:
calendarNotificationTemplateId
- the primary key of the current calendar notification templateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
removeByUuid_C
Removes all the calendar notification templates where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of calendar notification templates where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching calendar notification templates
-
findByCalendarId
Returns all the calendar notification templates where calendarId = ?.- Parameters:
calendarId
- the calendar ID- Returns:
- the matching calendar notification templates
-
findByCalendarId
public static List<CalendarNotificationTemplate> findByCalendarId(long calendarId, int start, int end) Returns a range of all the calendar notification templates where calendarId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
calendarId
- the calendar IDstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)- Returns:
- the range of matching calendar notification templates
-
findByCalendarId
public static List<CalendarNotificationTemplate> findByCalendarId(long calendarId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns an ordered range of all the calendar notification templates where calendarId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
calendarId
- the calendar IDstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching calendar notification templates
-
findByCalendarId
public static List<CalendarNotificationTemplate> findByCalendarId(long calendarId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar notification templates where calendarId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
calendarId
- the calendar IDstart
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar 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 calendar notification templates
-
findByCalendarId_First
public static CalendarNotificationTemplate findByCalendarId_First(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the first calendar notification template in the ordered set where calendarId = ?.- Parameters:
calendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundNoSuchNotificationTemplateException
-
fetchByCalendarId_First
public static CalendarNotificationTemplate fetchByCalendarId_First(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the first calendar notification template in the ordered set where calendarId = ?.- Parameters:
calendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching calendar notification template, or
null
if a matching calendar notification template could not be found
-
findByCalendarId_Last
public static CalendarNotificationTemplate findByCalendarId_Last(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the last calendar notification template in the ordered set where calendarId = ?.- Parameters:
calendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundNoSuchNotificationTemplateException
-
fetchByCalendarId_Last
public static CalendarNotificationTemplate fetchByCalendarId_Last(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns the last calendar notification template in the ordered set where calendarId = ?.- Parameters:
calendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching calendar notification template, or
null
if a matching calendar notification template could not be found
-
findByCalendarId_PrevAndNext
public static CalendarNotificationTemplate[] findByCalendarId_PrevAndNext(long calendarNotificationTemplateId, long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException Returns the calendar notification templates before and after the current calendar notification template in the ordered set where calendarId = ?.- Parameters:
calendarNotificationTemplateId
- the primary key of the current calendar notification templatecalendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
removeByCalendarId
public static void removeByCalendarId(long calendarId) Removes all the calendar notification templates where calendarId = ? from the database.- Parameters:
calendarId
- the calendar ID
-
countByCalendarId
public static int countByCalendarId(long calendarId) Returns the number of calendar notification templates where calendarId = ?.- Parameters:
calendarId
- the calendar ID- Returns:
- the number of matching calendar notification templates
-
findByC_NT_NTT
public static CalendarNotificationTemplate findByC_NT_NTT(long calendarId, String notificationType, String notificationTemplateType) throws NoSuchNotificationTemplateException Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or throws aNoSuchNotificationTemplateException
if it could not be found.- Parameters:
calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template type- Returns:
- the matching calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundNoSuchNotificationTemplateException
-
fetchByC_NT_NTT
public static CalendarNotificationTemplate fetchByC_NT_NTT(long calendarId, String notificationType, String notificationTemplateType) Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template type- Returns:
- the matching calendar notification template, or
null
if a matching calendar notification template could not be found
-
fetchByC_NT_NTT
public static CalendarNotificationTemplate fetchByC_NT_NTT(long calendarId, String notificationType, String notificationTemplateType, boolean useFinderCache) Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template typeuseFinderCache
- whether to use the finder cache- Returns:
- the matching calendar notification template, or
null
if a matching calendar notification template could not be found
-
removeByC_NT_NTT
public static CalendarNotificationTemplate removeByC_NT_NTT(long calendarId, String notificationType, String notificationTemplateType) throws NoSuchNotificationTemplateException Removes the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? from the database.- Parameters:
calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template type- Returns:
- the calendar notification template that was removed
- Throws:
NoSuchNotificationTemplateException
-
countByC_NT_NTT
public static int countByC_NT_NTT(long calendarId, String notificationType, String notificationTemplateType) Returns the number of calendar notification templates where calendarId = ? and notificationType = ? and notificationTemplateType = ?.- Parameters:
calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template type- Returns:
- the number of matching calendar notification templates
-
cacheResult
Caches the calendar notification template in the entity cache if it is enabled.- Parameters:
calendarNotificationTemplate
- the calendar notification template
-
cacheResult
Caches the calendar notification templates in the entity cache if it is enabled.- Parameters:
calendarNotificationTemplates
- the calendar notification templates
-
create
Creates a new calendar notification template with the primary key. Does not add the calendar notification template to the database.- Parameters:
calendarNotificationTemplateId
- the primary key for the new calendar notification template- Returns:
- the new calendar notification template
-
remove
public static CalendarNotificationTemplate remove(long calendarNotificationTemplateId) throws NoSuchNotificationTemplateException Removes the calendar notification template with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
calendarNotificationTemplateId
- the primary key of the calendar notification template- Returns:
- the calendar notification template that was removed
- Throws:
NoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
updateImpl
public static CalendarNotificationTemplate updateImpl(CalendarNotificationTemplate calendarNotificationTemplate) -
findByPrimaryKey
public static CalendarNotificationTemplate findByPrimaryKey(long calendarNotificationTemplateId) throws NoSuchNotificationTemplateException Returns the calendar notification template with the primary key or throws aNoSuchNotificationTemplateException
if it could not be found.- Parameters:
calendarNotificationTemplateId
- the primary key of the calendar notification template- Returns:
- the calendar notification template
- Throws:
NoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundNoSuchNotificationTemplateException
-
fetchByPrimaryKey
Returns the calendar notification template with the primary key or returnsnull
if it could not be found.- Parameters:
calendarNotificationTemplateId
- the primary key of the calendar notification template- Returns:
- the calendar notification template, or
null
if a calendar notification template with the primary key could not be found
-
findAll
Returns all the calendar notification templates.- Returns:
- the calendar notification templates
-
findAll
Returns a range of all the calendar notification templates.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
start
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)- Returns:
- the range of calendar notification templates
-
findAll
public static List<CalendarNotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) Returns an ordered range of all the calendar notification templates.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
start
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of calendar notification templates
-
findAll
public static List<CalendarNotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean useFinderCache) Returns an ordered range of all the calendar notification templates.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCalendarNotificationTemplateModelImpl
.- Parameters:
start
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar 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 calendar notification templates
-
removeAll
public static void removeAll()Removes all the calendar notification templates from the database. -
countAll
public static int countAll()Returns the number of calendar notification templates.- Returns:
- the number of calendar notification templates
-
getPersistence
-
setPersistence
-