public class NotificationTemplateUtil
extends java.lang.Object
com.liferay.notification.service.persistence.impl.NotificationTemplatePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
NotificationTemplatePersistence
Constructor and Description |
---|
NotificationTemplateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<NotificationTemplate> notificationTemplates)
Caches the notification templates in the entity cache if it is enabled.
|
static void |
cacheResult(NotificationTemplate notificationTemplate)
Caches the notification template in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(NotificationTemplate notificationTemplate) |
static int |
countAll()
Returns the number of notification templates.
|
static int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of notification templates where externalReferenceCode = ? and companyId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of notification templates where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of notification templates where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static NotificationTemplate |
create(long notificationTemplateId)
Creates a new notification template with the primary key.
|
static NotificationTemplate |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the notification template where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
static NotificationTemplate |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the notification template where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
static NotificationTemplate |
fetchByPrimaryKey(long notificationTemplateId)
Returns the notification template with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,NotificationTemplate> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static int |
filterCountByUuid(java.lang.String uuid)
Returns the number of notification templates that the user has permission to view where uuid = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<NotificationTemplate> |
filterFindByUuid(java.lang.String uuid)
Returns all the notification templates that the user has permission to view where uuid = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<NotificationTemplate> |
findAll()
Returns all the notification templates.
|
static java.util.List<NotificationTemplate> |
findAll(int start,
int end)
Returns a range of all the notification templates.
|
static 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.
|
static 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.
|
static NotificationTemplate |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the notification template where externalReferenceCode = ? and companyId = ? or throws a
NoSuchNotificationTemplateException if it could not be found. |
static NotificationTemplate |
findByPrimaryKey(long notificationTemplateId)
Returns the notification template with the primary key or throws a
NoSuchNotificationTemplateException if it could not be found. |
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<NotificationTemplate> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the notification templates where uuid = ? and companyId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<NotificationTemplate> |
findByUuid(java.lang.String uuid)
Returns all the notification templates where uuid = ?.
|
static java.util.List<NotificationTemplate> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the notification templates where uuid = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static java.util.List<NotificationTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<NotificationTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<NotificationTemplate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator) |
static NotificationTemplatePersistence |
getPersistence() |
static NotificationTemplate |
remove(long notificationTemplateId)
Removes the notification template with the primary key from the database.
|
static void |
removeAll()
Removes all the notification templates from the database.
|
static NotificationTemplate |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the notification template where externalReferenceCode = ? and companyId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the notification templates where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the notification templates where uuid = ? from the database.
|
static void |
setPersistence(NotificationTemplatePersistence persistence) |
static NotificationTemplate |
update(NotificationTemplate notificationTemplate) |
static NotificationTemplate |
update(NotificationTemplate notificationTemplate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static NotificationTemplate |
updateImpl(NotificationTemplate notificationTemplate) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(NotificationTemplate notificationTemplate)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,NotificationTemplate> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<NotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<NotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<NotificationTemplate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<NotificationTemplate> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static NotificationTemplate update(NotificationTemplate notificationTemplate)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static NotificationTemplate update(NotificationTemplate notificationTemplate, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<NotificationTemplate> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.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)public static 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
)public static 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 cachepublic static NotificationTemplate 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 foundpublic static NotificationTemplate 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 foundpublic static NotificationTemplate 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 foundpublic static NotificationTemplate 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 foundpublic static NotificationTemplate[] 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 foundpublic static java.util.List<NotificationTemplate> filterFindByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.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)public static 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
)public static 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 foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int filterCountByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<NotificationTemplate> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.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)public static 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
)public static 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 cachepublic static NotificationTemplate 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 foundpublic static NotificationTemplate 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 foundpublic static NotificationTemplate 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 foundpublic static NotificationTemplate 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 foundpublic static NotificationTemplate[] 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 foundpublic static java.util.List<NotificationTemplate> filterFindByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.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)public static 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
)public static 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 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 int filterCountByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static NotificationTemplate findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchNotificationTemplateException
NoSuchNotificationTemplateException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchNotificationTemplateException
- if a matching notification template could not be foundpublic static NotificationTemplate fetchByERC_C(java.lang.String externalReferenceCode, long companyId)
null
if it could not be found. Uses the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDnull
if a matching notification template could not be foundpublic static NotificationTemplate fetchByERC_C(java.lang.String externalReferenceCode, long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching notification template could not be foundpublic static NotificationTemplate removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchNotificationTemplateException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchNotificationTemplateException
public static int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDpublic static void cacheResult(NotificationTemplate notificationTemplate)
notificationTemplate
- the notification templatepublic static void cacheResult(java.util.List<NotificationTemplate> notificationTemplates)
notificationTemplates
- the notification templatespublic static NotificationTemplate create(long notificationTemplateId)
notificationTemplateId
- the primary key for the new notification templatepublic static NotificationTemplate remove(long notificationTemplateId) throws NoSuchNotificationTemplateException
notificationTemplateId
- the primary key of the notification templateNoSuchNotificationTemplateException
- if a notification template with the primary key could not be foundpublic static NotificationTemplate updateImpl(NotificationTemplate notificationTemplate)
public static 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 foundpublic static NotificationTemplate 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 foundpublic static java.util.List<NotificationTemplate> findAll()
public static 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)public static 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
)public static 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 cachepublic static void removeAll()
public static int countAll()
public static NotificationTemplatePersistence getPersistence()
public static void setPersistence(NotificationTemplatePersistence persistence)