@ProviderType
public class CalendarNotificationTemplateUtil
extends java.lang.Object
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
CalendarNotificationTemplatePersistence
,
com.liferay.calendar.service.persistence.impl.CalendarNotificationTemplatePersistenceImpl
Constructor and Description |
---|
CalendarNotificationTemplateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CalendarNotificationTemplate calendarNotificationTemplate)
Caches the calendar notification template in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CalendarNotificationTemplate> calendarNotificationTemplates)
Caches the calendar notification templates in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CalendarNotificationTemplate calendarNotificationTemplate) |
static int |
countAll()
Returns the number of calendar notification templates.
|
static int |
countByC_NT_NTT(long calendarId,
java.lang.String notificationType,
java.lang.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_C(java.lang.String uuid,
long companyId)
Returns the number of calendar notification templates where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of calendar notification templates where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of calendar notification templates where uuid = ?.
|
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,
java.lang.String notificationType,
java.lang.String notificationTemplateType)
Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or returns
null if it could not be found. |
static CalendarNotificationTemplate |
fetchByC_NT_NTT(long calendarId,
java.lang.String notificationType,
java.lang.String notificationTemplateType,
boolean retrieveFromCache)
Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or returns
null 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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CalendarNotificationTemplate> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CalendarNotificationTemplate |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
long groupId)
Returns the calendar notification template where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CalendarNotificationTemplate |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean retrieveFromCache)
Returns the calendar notification template where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CalendarNotificationTemplate |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator)
Returns the last calendar notification template in the ordered set where uuid = ?.
|
static java.util.List<CalendarNotificationTemplate> |
findAll()
Returns all the calendar notification templates.
|
static java.util.List<CalendarNotificationTemplate> |
findAll(int start,
int end)
Returns a range of all the calendar notification templates.
|
static java.util.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 java.util.List<CalendarNotificationTemplate> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar notification templates.
|
static CalendarNotificationTemplate |
findByC_NT_NTT(long calendarId,
java.lang.String notificationType,
java.lang.String notificationTemplateType)
Returns the calendar notification template where calendarId = ? and notificationType = ? and notificationTemplateType = ? or throws a
NoSuchNotificationTemplateException if it could not be found. |
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 java.util.List<CalendarNotificationTemplate> |
findByCalendarId(long calendarId)
Returns all the calendar notification templates where calendarId = ?.
|
static java.util.List<CalendarNotificationTemplate> |
findByCalendarId(long calendarId,
int start,
int end)
Returns a range of all the calendar notification templates where calendarId = ?.
|
static java.util.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 java.util.List<CalendarNotificationTemplate> |
findByCalendarId(long calendarId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar notification templates where calendarId = ?.
|
static CalendarNotificationTemplate |
findByPrimaryKey(long calendarNotificationTemplateId)
Returns the calendar notification template with the primary key or throws a
NoSuchNotificationTemplateException if it could not be found. |
static CalendarNotificationTemplate |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CalendarNotificationTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the calendar notification templates where uuid = ? and companyId = ?.
|
static java.util.List<CalendarNotificationTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the calendar notification templates where uuid = ? and companyId = ?.
|
static java.util.List<CalendarNotificationTemplate> |
findByUuid_C(java.lang.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 java.util.List<CalendarNotificationTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar notification templates where uuid = ? and companyId = ?.
|
static CalendarNotificationTemplate |
findByUuid_First(java.lang.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(java.lang.String uuid,
long groupId)
Returns the calendar notification template where uuid = ? and groupId = ? or throws a
NoSuchNotificationTemplateException if it could not be found. |
static CalendarNotificationTemplate |
findByUuid_Last(java.lang.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,
java.lang.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 java.util.List<CalendarNotificationTemplate> |
findByUuid(java.lang.String uuid)
Returns all the calendar notification templates where uuid = ?.
|
static java.util.List<CalendarNotificationTemplate> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the calendar notification templates where uuid = ?.
|
static java.util.List<CalendarNotificationTemplate> |
findByUuid(java.lang.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 java.util.List<CalendarNotificationTemplate> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the calendar notification templates where uuid = ?.
|
static java.util.List<CalendarNotificationTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CalendarNotificationTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CalendarNotificationTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static CalendarNotificationTemplatePersistence |
getPersistence() |
static CalendarNotificationTemplate |
remove(long calendarNotificationTemplateId)
Removes the calendar notification template with the primary key from the database.
|
static void |
removeAll()
Removes all the calendar notification templates from the database.
|
static CalendarNotificationTemplate |
removeByC_NT_NTT(long calendarId,
java.lang.String notificationType,
java.lang.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_C(java.lang.String uuid,
long companyId)
Removes all the calendar notification templates where uuid = ? and companyId = ? from the database.
|
static CalendarNotificationTemplate |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the calendar notification template where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the calendar notification templates where uuid = ? from the database.
|
static CalendarNotificationTemplate |
update(CalendarNotificationTemplate calendarNotificationTemplate) |
static CalendarNotificationTemplate |
update(CalendarNotificationTemplate calendarNotificationTemplate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CalendarNotificationTemplate |
updateImpl(CalendarNotificationTemplate calendarNotificationTemplate) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CalendarNotificationTemplate calendarNotificationTemplate)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<CalendarNotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CalendarNotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CalendarNotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CalendarNotificationTemplate update(CalendarNotificationTemplate calendarNotificationTemplate)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CalendarNotificationTemplate update(CalendarNotificationTemplate calendarNotificationTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CalendarNotificationTemplate> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CalendarNotificationTemplate> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static java.util.List<CalendarNotificationTemplate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<CalendarNotificationTemplate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarNotificationTemplate findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate[] findByUuid_PrevAndNext(long calendarNotificationTemplateId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
calendarNotificationTemplateId
- the primary key of the current calendar notification templateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static CalendarNotificationTemplate findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchNotificationTemplateException
NoSuchNotificationTemplateException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByUUID_G(java.lang.String uuid, long groupId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchNotificationTemplateException
uuid
- the uuidgroupId
- the group IDNoSuchNotificationTemplateException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CalendarNotificationTemplate> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CalendarNotificationTemplate> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static java.util.List<CalendarNotificationTemplate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<CalendarNotificationTemplate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarNotificationTemplate findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate[] findByUuid_C_PrevAndNext(long calendarNotificationTemplateId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
calendarNotificationTemplateId
- the primary key of the current calendar notification templateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CalendarNotificationTemplate> findByCalendarId(long calendarId)
calendarId
- the calendar IDpublic static java.util.List<CalendarNotificationTemplate> findByCalendarId(long calendarId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)public static java.util.List<CalendarNotificationTemplate> findByCalendarId(long calendarId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<CalendarNotificationTemplate> findByCalendarId(long calendarId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static CalendarNotificationTemplate findByCalendarId_First(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
calendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByCalendarId_First(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator)
calendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate findByCalendarId_Last(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
calendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByCalendarId_Last(long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator)
calendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate[] findByCalendarId_PrevAndNext(long calendarNotificationTemplateId, long calendarId, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator) throws NoSuchNotificationTemplateException
calendarNotificationTemplateId
- the primary key of the current calendar notification templatecalendarId
- the calendar IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundpublic static void removeByCalendarId(long calendarId)
calendarId
- the calendar IDpublic static int countByCalendarId(long calendarId)
calendarId
- the calendar IDpublic static CalendarNotificationTemplate findByC_NT_NTT(long calendarId, java.lang.String notificationType, java.lang.String notificationTemplateType) throws NoSuchNotificationTemplateException
NoSuchNotificationTemplateException
if it could not be found.calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template typeNoSuchNotificationTemplateException
- if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByC_NT_NTT(long calendarId, java.lang.String notificationType, java.lang.String notificationTemplateType)
null
if it could not be found. Uses the finder cache.calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template typenull
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate fetchByC_NT_NTT(long calendarId, java.lang.String notificationType, java.lang.String notificationTemplateType, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template typeretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching calendar notification template could not be foundpublic static CalendarNotificationTemplate removeByC_NT_NTT(long calendarId, java.lang.String notificationType, java.lang.String notificationTemplateType) throws NoSuchNotificationTemplateException
calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template typeNoSuchNotificationTemplateException
public static int countByC_NT_NTT(long calendarId, java.lang.String notificationType, java.lang.String notificationTemplateType)
calendarId
- the calendar IDnotificationType
- the notification typenotificationTemplateType
- the notification template typepublic static void cacheResult(CalendarNotificationTemplate calendarNotificationTemplate)
calendarNotificationTemplate
- the calendar notification templatepublic static void cacheResult(java.util.List<CalendarNotificationTemplate> calendarNotificationTemplates)
calendarNotificationTemplates
- the calendar notification templatespublic static CalendarNotificationTemplate create(long calendarNotificationTemplateId)
calendarNotificationTemplateId
- the primary key for the new calendar notification templatepublic static CalendarNotificationTemplate remove(long calendarNotificationTemplateId) throws NoSuchNotificationTemplateException
calendarNotificationTemplateId
- the primary key of the calendar notification templateNoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundpublic static CalendarNotificationTemplate updateImpl(CalendarNotificationTemplate calendarNotificationTemplate)
public static CalendarNotificationTemplate findByPrimaryKey(long calendarNotificationTemplateId) throws NoSuchNotificationTemplateException
NoSuchNotificationTemplateException
if it could not be found.calendarNotificationTemplateId
- the primary key of the calendar notification templateNoSuchNotificationTemplateException
- if a calendar notification template with the primary key could not be foundpublic static CalendarNotificationTemplate fetchByPrimaryKey(long calendarNotificationTemplateId)
null
if it could not be found.calendarNotificationTemplateId
- the primary key of the calendar notification templatenull
if a calendar notification template with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,CalendarNotificationTemplate> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<CalendarNotificationTemplate> findAll()
public static java.util.List<CalendarNotificationTemplate> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of calendar notification templatesend
- the upper bound of the range of calendar notification templates (not inclusive)public static java.util.List<CalendarNotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)public static java.util.List<CalendarNotificationTemplate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CalendarNotificationTemplate> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from CalendarNotificationTemplateModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static CalendarNotificationTemplatePersistence getPersistence()