Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.service.persistence
Class DDMTemplateUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateUtil

@ProviderType
public class DDMTemplateUtil
extends Object

The persistence utility for the d d m template service. This utility wraps DDMTemplatePersistenceImpl 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:
DDMTemplatePersistence, DDMTemplatePersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DDMTemplateUtil()
           
 
Method Summary
static void cacheResult(DDMTemplate ddmTemplate)
          Caches the d d m template in the entity cache if it is enabled.
static void cacheResult(List<DDMTemplate> ddmTemplates)
          Caches the d d m templates in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DDMTemplate ddmTemplate)
           
static int countAll()
          Returns the number of d d m templates.
static int countByC_C_T(long classNameId, long classPK, String type)
          Returns the number of d d m templates where classNameId = ? and classPK = ? and type = ?.
static int countByClassPK(long classPK)
          Returns the number of d d m templates where classPK = ?.
static int countByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode)
          Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static int countByG_C_C_T(long groupId, long classNameId, long classPK, String type)
          Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static int countByG_C_C(long[] groupIds, long classNameId, long classPK)
          Returns the number of d d m templates where groupId = any ? and classNameId = ? and classPK = ?.
static int countByG_C_C(long groupId, long classNameId, long classPK)
          Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ?.
static int countByG_C_T(long groupId, long classNameId, String templateKey)
          Returns the number of d d m templates where groupId = ? and classNameId = ? and templateKey = ?.
static int countByG_C(long groupId, long classNameId)
          Returns the number of d d m templates where groupId = ? and classNameId = ?.
static int countByG_CPK(long[] groupIds, long classPK)
          Returns the number of d d m templates where groupId = any ? and classPK = ?.
static int countByG_CPK(long groupId, long classPK)
          Returns the number of d d m templates where groupId = ? and classPK = ?.
static int countByGroupId(long groupId)
          Returns the number of d d m templates where groupId = ?.
static int countByLanguage(String language)
          Returns the number of d d m templates where language = ?.
static int countBySmallImageId(long smallImageId)
          Returns the number of d d m templates where smallImageId = ?.
static int countByTemplateKey(String templateKey)
          Returns the number of d d m templates where templateKey = ?.
static int countByType(String type)
          Returns the number of d d m templates where type = ?.
static int countByUuid_C(String uuid, long companyId)
          Returns the number of d d m templates where uuid = ? and companyId = ?.
static int countByUUID_G(String uuid, long groupId)
          Returns the number of d d m templates where uuid = ? and groupId = ?.
static int countByUuid(String uuid)
          Returns the number of d d m templates where uuid = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DDMTemplate create(long templateId)
          Creates a new d d m template with the primary key.
static DDMTemplate fetchByC_C_T_First(long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
static DDMTemplate fetchByC_C_T_Last(long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
static DDMTemplate fetchByClassPK_First(long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where classPK = ?.
static DDMTemplate fetchByClassPK_Last(long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where classPK = ?.
static DDMTemplate fetchByG_C_C_First(long groupId, long classNameId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
static DDMTemplate fetchByG_C_C_Last(long groupId, long classNameId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
static DDMTemplate fetchByG_C_C_T_First(long groupId, long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static DDMTemplate fetchByG_C_C_T_Last(long groupId, long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static DDMTemplate fetchByG_C_C_T_M_First(long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static DDMTemplate fetchByG_C_C_T_M_Last(long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static DDMTemplate fetchByG_C_First(long groupId, long classNameId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?.
static DDMTemplate fetchByG_C_Last(long groupId, long classNameId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?.
static DDMTemplate fetchByG_C_T(long groupId, long classNameId, String templateKey)
          Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or returns null if it could not be found.
static DDMTemplate fetchByG_C_T(long groupId, long classNameId, String templateKey, boolean retrieveFromCache)
          Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or returns null if it could not be found, optionally using the finder cache.
static DDMTemplate fetchByG_CPK_First(long groupId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classPK = ?.
static DDMTemplate fetchByG_CPK_Last(long groupId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classPK = ?.
static DDMTemplate fetchByGroupId_First(long groupId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ?.
static DDMTemplate fetchByGroupId_Last(long groupId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ?.
static DDMTemplate fetchByLanguage_First(String language, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where language = ?.
static DDMTemplate fetchByLanguage_Last(String language, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where language = ?.
static DDMTemplate fetchByPrimaryKey(long templateId)
          Returns the d d m template with the primary key or returns null if it could not be found.
static Map<Serializable,DDMTemplate> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static DDMTemplate fetchBySmallImageId(long smallImageId)
          Returns the d d m template where smallImageId = ? or returns null if it could not be found.
static DDMTemplate fetchBySmallImageId(long smallImageId, boolean retrieveFromCache)
          Returns the d d m template where smallImageId = ? or returns null if it could not be found, optionally using the finder cache.
static DDMTemplate fetchByTemplateKey_First(String templateKey, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where templateKey = ?.
static DDMTemplate fetchByTemplateKey_Last(String templateKey, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where templateKey = ?.
static DDMTemplate fetchByType_First(String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where type = ?.
static DDMTemplate fetchByType_Last(String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where type = ?.
static DDMTemplate fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ? and companyId = ?.
static DDMTemplate fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ? and companyId = ?.
static DDMTemplate fetchByUuid_First(String uuid, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ?.
static DDMTemplate fetchByUUID_G(String uuid, long groupId)
          Returns the d d m template where uuid = ? and groupId = ? or returns null if it could not be found.
static DDMTemplate fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the d d m template where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
static DDMTemplate fetchByUuid_Last(String uuid, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ?.
static int filterCountByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode)
          Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static int filterCountByG_C_C_T(long groupId, long classNameId, long classPK, String type)
          Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static int filterCountByG_C_C(long[] groupIds, long classNameId, long classPK)
          Returns the number of d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?.
static int filterCountByG_C_C(long groupId, long classNameId, long classPK)
          Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?.
static int filterCountByG_C(long groupId, long classNameId)
          Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ?.
static int filterCountByG_CPK(long[] groupIds, long classPK)
          Returns the number of d d m templates that the user has permission to view where groupId = any ? and classPK = ?.
static int filterCountByG_CPK(long groupId, long classPK)
          Returns the number of d d m templates that the user has permission to view where groupId = ? and classPK = ?.
static int filterCountByGroupId(long groupId)
          Returns the number of d d m templates that the user has permission to view where groupId = ?.
static DDMTemplate[] filterFindByG_C_C_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?.
static DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static List<DDMTemplate> filterFindByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode)
          Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static List<DDMTemplate> filterFindByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static List<DDMTemplate> filterFindByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static DDMTemplate[] filterFindByG_C_C_T_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> filterFindByG_C_C_T(long groupId, long classNameId, long classPK, String type)
          Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> filterFindByG_C_C_T(long groupId, long classNameId, long classPK, String type, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> filterFindByG_C_C_T(long groupId, long classNameId, long classPK, String type, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> filterFindByG_C_C(long[] groupIds, long classNameId, long classPK)
          Returns all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> filterFindByG_C_C(long[] groupIds, long classNameId, long classPK, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> filterFindByG_C_C(long[] groupIds, long classNameId, long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> filterFindByG_C_C(long groupId, long classNameId, long classPK)
          Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> filterFindByG_C_C(long groupId, long classNameId, long classPK, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> filterFindByG_C_C(long groupId, long classNameId, long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ?.
static DDMTemplate[] filterFindByG_C_PrevAndNext(long templateId, long groupId, long classNameId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ?.
static List<DDMTemplate> filterFindByG_C(long groupId, long classNameId)
          Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ?.
static List<DDMTemplate> filterFindByG_C(long groupId, long classNameId, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ?.
static List<DDMTemplate> filterFindByG_C(long groupId, long classNameId, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ?.
static DDMTemplate[] filterFindByG_CPK_PrevAndNext(long templateId, long groupId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classPK = ?.
static List<DDMTemplate> filterFindByG_CPK(long[] groupIds, long classPK)
          Returns all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?.
static List<DDMTemplate> filterFindByG_CPK(long[] groupIds, long classPK, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?.
static List<DDMTemplate> filterFindByG_CPK(long[] groupIds, long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?.
static List<DDMTemplate> filterFindByG_CPK(long groupId, long classPK)
          Returns all the d d m templates that the user has permission to view where groupId = ? and classPK = ?.
static List<DDMTemplate> filterFindByG_CPK(long groupId, long classPK, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classPK = ?.
static List<DDMTemplate> filterFindByG_CPK(long groupId, long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classPK = ?.
static DDMTemplate[] filterFindByGroupId_PrevAndNext(long templateId, long groupId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ?.
static List<DDMTemplate> filterFindByGroupId(long groupId)
          Returns all the d d m templates that the user has permission to view where groupId = ?.
static List<DDMTemplate> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = ?.
static List<DDMTemplate> filterFindByGroupId(long groupId, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?.
static List<DDMTemplate> findAll()
          Returns all the d d m templates.
static List<DDMTemplate> findAll(int start, int end)
          Returns a range of all the d d m templates.
static List<DDMTemplate> findAll(int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates.
static DDMTemplate findByC_C_T_First(long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
static DDMTemplate findByC_C_T_Last(long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
static DDMTemplate[] findByC_C_T_PrevAndNext(long templateId, long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> findByC_C_T(long classNameId, long classPK, String type)
          Returns all the d d m templates where classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> findByC_C_T(long classNameId, long classPK, String type, int start, int end)
          Returns a range of all the d d m templates where classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> findByC_C_T(long classNameId, long classPK, String type, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where classNameId = ? and classPK = ? and type = ?.
static DDMTemplate findByClassPK_First(long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where classPK = ?.
static DDMTemplate findByClassPK_Last(long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where classPK = ?.
static DDMTemplate[] findByClassPK_PrevAndNext(long templateId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where classPK = ?.
static List<DDMTemplate> findByClassPK(long classPK)
          Returns all the d d m templates where classPK = ?.
static List<DDMTemplate> findByClassPK(long classPK, int start, int end)
          Returns a range of all the d d m templates where classPK = ?.
static List<DDMTemplate> findByClassPK(long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where classPK = ?.
static DDMTemplate findByG_C_C_First(long groupId, long classNameId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
static DDMTemplate findByG_C_C_Last(long groupId, long classNameId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
static DDMTemplate[] findByG_C_C_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
static DDMTemplate findByG_C_C_T_First(long groupId, long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static DDMTemplate findByG_C_C_T_Last(long groupId, long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static DDMTemplate findByG_C_C_T_M_First(long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static DDMTemplate findByG_C_C_T_M_Last(long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static DDMTemplate[] findByG_C_C_T_M_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static List<DDMTemplate> findByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode)
          Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static List<DDMTemplate> findByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode, int start, int end)
          Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static List<DDMTemplate> findByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
static DDMTemplate[] findByG_C_C_T_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> findByG_C_C_T(long groupId, long classNameId, long classPK, String type)
          Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> findByG_C_C_T(long groupId, long classNameId, long classPK, String type, int start, int end)
          Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> findByG_C_C_T(long groupId, long classNameId, long classPK, String type, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.
static List<DDMTemplate> findByG_C_C(long[] groupIds, long classNameId, long classPK)
          Returns all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> findByG_C_C(long[] groupIds, long classNameId, long classPK, int start, int end)
          Returns a range of all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> findByG_C_C(long[] groupIds, long classNameId, long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> findByG_C_C(long groupId, long classNameId, long classPK)
          Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end)
          Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?.
static List<DDMTemplate> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?.
static DDMTemplate findByG_C_First(long groupId, long classNameId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?.
static DDMTemplate findByG_C_Last(long groupId, long classNameId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?.
static DDMTemplate[] findByG_C_PrevAndNext(long templateId, long groupId, long classNameId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ?.
static DDMTemplate findByG_C_T(long groupId, long classNameId, String templateKey)
          Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or throws a NoSuchTemplateException if it could not be found.
static List<DDMTemplate> findByG_C(long groupId, long classNameId)
          Returns all the d d m templates where groupId = ? and classNameId = ?.
static List<DDMTemplate> findByG_C(long groupId, long classNameId, int start, int end)
          Returns a range of all the d d m templates where groupId = ? and classNameId = ?.
static List<DDMTemplate> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ?.
static DDMTemplate findByG_CPK_First(long groupId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classPK = ?.
static DDMTemplate findByG_CPK_Last(long groupId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classPK = ?.
static DDMTemplate[] findByG_CPK_PrevAndNext(long templateId, long groupId, long classPK, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classPK = ?.
static List<DDMTemplate> findByG_CPK(long[] groupIds, long classPK)
          Returns all the d d m templates where groupId = any ? and classPK = ?.
static List<DDMTemplate> findByG_CPK(long[] groupIds, long classPK, int start, int end)
          Returns a range of all the d d m templates where groupId = any ? and classPK = ?.
static List<DDMTemplate> findByG_CPK(long[] groupIds, long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = any ? and classPK = ?.
static List<DDMTemplate> findByG_CPK(long groupId, long classPK)
          Returns all the d d m templates where groupId = ? and classPK = ?.
static List<DDMTemplate> findByG_CPK(long groupId, long classPK, int start, int end)
          Returns a range of all the d d m templates where groupId = ? and classPK = ?.
static List<DDMTemplate> findByG_CPK(long groupId, long classPK, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classPK = ?.
static DDMTemplate findByGroupId_First(long groupId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ?.
static DDMTemplate findByGroupId_Last(long groupId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ?.
static DDMTemplate[] findByGroupId_PrevAndNext(long templateId, long groupId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ?.
static List<DDMTemplate> findByGroupId(long groupId)
          Returns all the d d m templates where groupId = ?.
static List<DDMTemplate> findByGroupId(long groupId, int start, int end)
          Returns a range of all the d d m templates where groupId = ?.
static List<DDMTemplate> findByGroupId(long groupId, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ?.
static DDMTemplate findByLanguage_First(String language, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where language = ?.
static DDMTemplate findByLanguage_Last(String language, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where language = ?.
static DDMTemplate[] findByLanguage_PrevAndNext(long templateId, String language, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where language = ?.
static List<DDMTemplate> findByLanguage(String language)
          Returns all the d d m templates where language = ?.
static List<DDMTemplate> findByLanguage(String language, int start, int end)
          Returns a range of all the d d m templates where language = ?.
static List<DDMTemplate> findByLanguage(String language, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where language = ?.
static DDMTemplate findByPrimaryKey(long templateId)
          Returns the d d m template with the primary key or throws a NoSuchTemplateException if it could not be found.
static DDMTemplate findBySmallImageId(long smallImageId)
          Returns the d d m template where smallImageId = ? or throws a NoSuchTemplateException if it could not be found.
static DDMTemplate findByTemplateKey_First(String templateKey, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where templateKey = ?.
static DDMTemplate findByTemplateKey_Last(String templateKey, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where templateKey = ?.
static DDMTemplate[] findByTemplateKey_PrevAndNext(long templateId, String templateKey, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where templateKey = ?.
static List<DDMTemplate> findByTemplateKey(String templateKey)
          Returns all the d d m templates where templateKey = ?.
static List<DDMTemplate> findByTemplateKey(String templateKey, int start, int end)
          Returns a range of all the d d m templates where templateKey = ?.
static List<DDMTemplate> findByTemplateKey(String templateKey, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where templateKey = ?.
static DDMTemplate findByType_First(String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where type = ?.
static DDMTemplate findByType_Last(String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where type = ?.
static DDMTemplate[] findByType_PrevAndNext(long templateId, String type, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where type = ?.
static List<DDMTemplate> findByType(String type)
          Returns all the d d m templates where type = ?.
static List<DDMTemplate> findByType(String type, int start, int end)
          Returns a range of all the d d m templates where type = ?.
static List<DDMTemplate> findByType(String type, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where type = ?.
static DDMTemplate findByUuid_C_First(String uuid, long companyId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ? and companyId = ?.
static DDMTemplate findByUuid_C_Last(String uuid, long companyId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ? and companyId = ?.
static DDMTemplate[] findByUuid_C_PrevAndNext(long templateId, String uuid, long companyId, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ? and companyId = ?.
static List<DDMTemplate> findByUuid_C(String uuid, long companyId)
          Returns all the d d m templates where uuid = ? and companyId = ?.
static List<DDMTemplate> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the d d m templates where uuid = ? and companyId = ?.
static List<DDMTemplate> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where uuid = ? and companyId = ?.
static DDMTemplate findByUuid_First(String uuid, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ?.
static DDMTemplate findByUUID_G(String uuid, long groupId)
          Returns the d d m template where uuid = ? and groupId = ? or throws a NoSuchTemplateException if it could not be found.
static DDMTemplate findByUuid_Last(String uuid, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ?.
static DDMTemplate[] findByUuid_PrevAndNext(long templateId, String uuid, OrderByComparator<DDMTemplate> orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ?.
static List<DDMTemplate> findByUuid(String uuid)
          Returns all the d d m templates where uuid = ?.
static List<DDMTemplate> findByUuid(String uuid, int start, int end)
          Returns a range of all the d d m templates where uuid = ?.
static List<DDMTemplate> findByUuid(String uuid, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns an ordered range of all the d d m templates where uuid = ?.
static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
           
static DDMTemplatePersistence getPersistence()
           
static DDMTemplate remove(long templateId)
          Removes the d d m template with the primary key from the database.
static void removeAll()
          Removes all the d d m templates from the database.
static void removeByC_C_T(long classNameId, long classPK, String type)
          Removes all the d d m templates where classNameId = ? and classPK = ? and type = ? from the database.
static void removeByClassPK(long classPK)
          Removes all the d d m templates where classPK = ? from the database.
static void removeByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode)
          Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ? from the database.
static void removeByG_C_C_T(long groupId, long classNameId, long classPK, String type)
          Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? from the database.
static void removeByG_C_C(long groupId, long classNameId, long classPK)
          Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? from the database.
static DDMTemplate removeByG_C_T(long groupId, long classNameId, String templateKey)
          Removes the d d m template where groupId = ? and classNameId = ? and templateKey = ? from the database.
static void removeByG_C(long groupId, long classNameId)
          Removes all the d d m templates where groupId = ? and classNameId = ? from the database.
static void removeByG_CPK(long groupId, long classPK)
          Removes all the d d m templates where groupId = ? and classPK = ? from the database.
static void removeByGroupId(long groupId)
          Removes all the d d m templates where groupId = ? from the database.
static void removeByLanguage(String language)
          Removes all the d d m templates where language = ? from the database.
static DDMTemplate removeBySmallImageId(long smallImageId)
          Removes the d d m template where smallImageId = ? from the database.
static void removeByTemplateKey(String templateKey)
          Removes all the d d m templates where templateKey = ? from the database.
static void removeByType(String type)
          Removes all the d d m templates where type = ? from the database.
static void removeByUuid_C(String uuid, long companyId)
          Removes all the d d m templates where uuid = ? and companyId = ? from the database.
static DDMTemplate removeByUUID_G(String uuid, long groupId)
          Removes the d d m template where uuid = ? and groupId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the d d m templates where uuid = ? from the database.
 void setPersistence(DDMTemplatePersistence persistence)
          Deprecated. As of 6.2.0
static DDMTemplate update(DDMTemplate ddmTemplate)
           
static DDMTemplate update(DDMTemplate ddmTemplate, ServiceContext serviceContext)
           
static DDMTemplate updateImpl(DDMTemplate ddmTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMTemplateUtil

public DDMTemplateUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(DDMTemplate ddmTemplate)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end,
                                                     OrderByComparator<DDMTemplate> orderByComparator)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static DDMTemplate update(DDMTemplate ddmTemplate)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static DDMTemplate update(DDMTemplate ddmTemplate,
                                 ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByUuid

public static List<DDMTemplate> findByUuid(String uuid)
Returns all the d d m templates where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching d d m templates

findByUuid

public static List<DDMTemplate> findByUuid(String uuid,
                                           int start,
                                           int end)
Returns a range of all the d d m templates where uuid = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
uuid - the uuid
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByUuid

public static List<DDMTemplate> findByUuid(String uuid,
                                           int start,
                                           int end,
                                           OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where uuid = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
uuid - the uuid
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByUuid_First

public static DDMTemplate findByUuid_First(String uuid,
                                           OrderByComparator<DDMTemplate> orderByComparator)
                                    throws NoSuchTemplateException
Returns the first d d m template in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByUuid_First

public static DDMTemplate fetchByUuid_First(String uuid,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByUuid_Last

public static DDMTemplate findByUuid_Last(String uuid,
                                          OrderByComparator<DDMTemplate> orderByComparator)
                                   throws NoSuchTemplateException
Returns the last d d m template in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByUuid_Last

public static DDMTemplate fetchByUuid_Last(String uuid,
                                           OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByUuid_PrevAndNext

public static DDMTemplate[] findByUuid_PrevAndNext(long templateId,
                                                   String uuid,
                                                   OrderByComparator<DDMTemplate> orderByComparator)
                                            throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ?.

Parameters:
templateId - the primary key of the current d d m template
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByUuid

public static void removeByUuid(String uuid)
Removes all the d d m templates where uuid = ? from the database.

Parameters:
uuid - the uuid

countByUuid

public static int countByUuid(String uuid)
Returns the number of d d m templates where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching d d m templates

findByUUID_G

public static DDMTemplate findByUUID_G(String uuid,
                                       long groupId)
                                throws NoSuchTemplateException
Returns the d d m template where uuid = ? and groupId = ? or throws a NoSuchTemplateException if it could not be found.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByUUID_G

public static DDMTemplate fetchByUUID_G(String uuid,
                                        long groupId)
Returns the d d m template where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching d d m template, or null if a matching d d m template could not be found

fetchByUUID_G

public static DDMTemplate fetchByUUID_G(String uuid,
                                        long groupId,
                                        boolean retrieveFromCache)
Returns the d d m template where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m template, or null if a matching d d m template could not be found

removeByUUID_G

public static DDMTemplate removeByUUID_G(String uuid,
                                         long groupId)
                                  throws NoSuchTemplateException
Removes the d d m template where uuid = ? and groupId = ? from the database.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the d d m template that was removed
Throws:
NoSuchTemplateException

countByUUID_G

public static int countByUUID_G(String uuid,
                                long groupId)
Returns the number of d d m templates where uuid = ? and groupId = ?.

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching d d m templates

findByUuid_C

public static List<DDMTemplate> findByUuid_C(String uuid,
                                             long companyId)
Returns all the d d m templates where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching d d m templates

findByUuid_C

public static List<DDMTemplate> findByUuid_C(String uuid,
                                             long companyId,
                                             int start,
                                             int end)
Returns a range of all the d d m templates where uuid = ? and companyId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByUuid_C

public static List<DDMTemplate> findByUuid_C(String uuid,
                                             long companyId,
                                             int start,
                                             int end,
                                             OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where uuid = ? and companyId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByUuid_C_First

public static DDMTemplate findByUuid_C_First(String uuid,
                                             long companyId,
                                             OrderByComparator<DDMTemplate> orderByComparator)
                                      throws NoSuchTemplateException
Returns the first d d m template in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByUuid_C_First

public static DDMTemplate fetchByUuid_C_First(String uuid,
                                              long companyId,
                                              OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByUuid_C_Last

public static DDMTemplate findByUuid_C_Last(String uuid,
                                            long companyId,
                                            OrderByComparator<DDMTemplate> orderByComparator)
                                     throws NoSuchTemplateException
Returns the last d d m template in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByUuid_C_Last

public static DDMTemplate fetchByUuid_C_Last(String uuid,
                                             long companyId,
                                             OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByUuid_C_PrevAndNext

public static DDMTemplate[] findByUuid_C_PrevAndNext(long templateId,
                                                     String uuid,
                                                     long companyId,
                                                     OrderByComparator<DDMTemplate> orderByComparator)
                                              throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ? and companyId = ?.

Parameters:
templateId - the primary key of the current d d m template
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByUuid_C

public static void removeByUuid_C(String uuid,
                                  long companyId)
Removes all the d d m templates where uuid = ? and companyId = ? from the database.

Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

public static int countByUuid_C(String uuid,
                                long companyId)
Returns the number of d d m templates where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching d d m templates

findByGroupId

public static List<DDMTemplate> findByGroupId(long groupId)
Returns all the d d m templates where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching d d m templates

findByGroupId

public static List<DDMTemplate> findByGroupId(long groupId,
                                              int start,
                                              int end)
Returns a range of all the d d m templates where groupId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByGroupId

public static List<DDMTemplate> findByGroupId(long groupId,
                                              int start,
                                              int end,
                                              OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where groupId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByGroupId_First

public static DDMTemplate findByGroupId_First(long groupId,
                                              OrderByComparator<DDMTemplate> orderByComparator)
                                       throws NoSuchTemplateException
Returns the first d d m template in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByGroupId_First

public static DDMTemplate fetchByGroupId_First(long groupId,
                                               OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByGroupId_Last

public static DDMTemplate findByGroupId_Last(long groupId,
                                             OrderByComparator<DDMTemplate> orderByComparator)
                                      throws NoSuchTemplateException
Returns the last d d m template in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByGroupId_Last

public static DDMTemplate fetchByGroupId_Last(long groupId,
                                              OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByGroupId_PrevAndNext

public static DDMTemplate[] findByGroupId_PrevAndNext(long templateId,
                                                      long groupId,
                                                      OrderByComparator<DDMTemplate> orderByComparator)
                                               throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

filterFindByGroupId

public static List<DDMTemplate> filterFindByGroupId(long groupId)
Returns all the d d m templates that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching d d m templates that the user has permission to view

filterFindByGroupId

public static List<DDMTemplate> filterFindByGroupId(long groupId,
                                                    int start,
                                                    int end)
Returns a range of all the d d m templates that the user has permission to view where groupId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates that the user has permission to view

filterFindByGroupId

public static List<DDMTemplate> filterFindByGroupId(long groupId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates that the user has permission to view

filterFindByGroupId_PrevAndNext

public static DDMTemplate[] filterFindByGroupId_PrevAndNext(long templateId,
                                                            long groupId,
                                                            OrderByComparator<DDMTemplate> orderByComparator)
                                                     throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByGroupId

public static void removeByGroupId(long groupId)
Removes all the d d m templates where groupId = ? from the database.

Parameters:
groupId - the group ID

countByGroupId

public static int countByGroupId(long groupId)
Returns the number of d d m templates where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching d d m templates

filterCountByGroupId

public static int filterCountByGroupId(long groupId)
Returns the number of d d m templates that the user has permission to view where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching d d m templates that the user has permission to view

findByClassPK

public static List<DDMTemplate> findByClassPK(long classPK)
Returns all the d d m templates where classPK = ?.

Parameters:
classPK - the class p k
Returns:
the matching d d m templates

findByClassPK

public static List<DDMTemplate> findByClassPK(long classPK,
                                              int start,
                                              int end)
Returns a range of all the d d m templates where classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByClassPK

public static List<DDMTemplate> findByClassPK(long classPK,
                                              int start,
                                              int end,
                                              OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByClassPK_First

public static DDMTemplate findByClassPK_First(long classPK,
                                              OrderByComparator<DDMTemplate> orderByComparator)
                                       throws NoSuchTemplateException
Returns the first d d m template in the ordered set where classPK = ?.

Parameters:
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByClassPK_First

public static DDMTemplate fetchByClassPK_First(long classPK,
                                               OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where classPK = ?.

Parameters:
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByClassPK_Last

public static DDMTemplate findByClassPK_Last(long classPK,
                                             OrderByComparator<DDMTemplate> orderByComparator)
                                      throws NoSuchTemplateException
Returns the last d d m template in the ordered set where classPK = ?.

Parameters:
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByClassPK_Last

public static DDMTemplate fetchByClassPK_Last(long classPK,
                                              OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where classPK = ?.

Parameters:
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByClassPK_PrevAndNext

public static DDMTemplate[] findByClassPK_PrevAndNext(long templateId,
                                                      long classPK,
                                                      OrderByComparator<DDMTemplate> orderByComparator)
                                               throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where classPK = ?.

Parameters:
templateId - the primary key of the current d d m template
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByClassPK

public static void removeByClassPK(long classPK)
Removes all the d d m templates where classPK = ? from the database.

Parameters:
classPK - the class p k

countByClassPK

public static int countByClassPK(long classPK)
Returns the number of d d m templates where classPK = ?.

Parameters:
classPK - the class p k
Returns:
the number of matching d d m templates

findByTemplateKey

public static List<DDMTemplate> findByTemplateKey(String templateKey)
Returns all the d d m templates where templateKey = ?.

Parameters:
templateKey - the template key
Returns:
the matching d d m templates

findByTemplateKey

public static List<DDMTemplate> findByTemplateKey(String templateKey,
                                                  int start,
                                                  int end)
Returns a range of all the d d m templates where templateKey = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
templateKey - the template key
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByTemplateKey

public static List<DDMTemplate> findByTemplateKey(String templateKey,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where templateKey = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
templateKey - the template key
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByTemplateKey_First

public static DDMTemplate findByTemplateKey_First(String templateKey,
                                                  OrderByComparator<DDMTemplate> orderByComparator)
                                           throws NoSuchTemplateException
Returns the first d d m template in the ordered set where templateKey = ?.

Parameters:
templateKey - the template key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByTemplateKey_First

public static DDMTemplate fetchByTemplateKey_First(String templateKey,
                                                   OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where templateKey = ?.

Parameters:
templateKey - the template key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByTemplateKey_Last

public static DDMTemplate findByTemplateKey_Last(String templateKey,
                                                 OrderByComparator<DDMTemplate> orderByComparator)
                                          throws NoSuchTemplateException
Returns the last d d m template in the ordered set where templateKey = ?.

Parameters:
templateKey - the template key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByTemplateKey_Last

public static DDMTemplate fetchByTemplateKey_Last(String templateKey,
                                                  OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where templateKey = ?.

Parameters:
templateKey - the template key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByTemplateKey_PrevAndNext

public static DDMTemplate[] findByTemplateKey_PrevAndNext(long templateId,
                                                          String templateKey,
                                                          OrderByComparator<DDMTemplate> orderByComparator)
                                                   throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where templateKey = ?.

Parameters:
templateId - the primary key of the current d d m template
templateKey - the template key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByTemplateKey

public static void removeByTemplateKey(String templateKey)
Removes all the d d m templates where templateKey = ? from the database.

Parameters:
templateKey - the template key

countByTemplateKey

public static int countByTemplateKey(String templateKey)
Returns the number of d d m templates where templateKey = ?.

Parameters:
templateKey - the template key
Returns:
the number of matching d d m templates

findByType

public static List<DDMTemplate> findByType(String type)
Returns all the d d m templates where type = ?.

Parameters:
type - the type
Returns:
the matching d d m templates

findByType

public static List<DDMTemplate> findByType(String type,
                                           int start,
                                           int end)
Returns a range of all the d d m templates where type = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
type - the type
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByType

public static List<DDMTemplate> findByType(String type,
                                           int start,
                                           int end,
                                           OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where type = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
type - the type
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByType_First

public static DDMTemplate findByType_First(String type,
                                           OrderByComparator<DDMTemplate> orderByComparator)
                                    throws NoSuchTemplateException
Returns the first d d m template in the ordered set where type = ?.

Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByType_First

public static DDMTemplate fetchByType_First(String type,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where type = ?.

Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByType_Last

public static DDMTemplate findByType_Last(String type,
                                          OrderByComparator<DDMTemplate> orderByComparator)
                                   throws NoSuchTemplateException
Returns the last d d m template in the ordered set where type = ?.

Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByType_Last

public static DDMTemplate fetchByType_Last(String type,
                                           OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where type = ?.

Parameters:
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByType_PrevAndNext

public static DDMTemplate[] findByType_PrevAndNext(long templateId,
                                                   String type,
                                                   OrderByComparator<DDMTemplate> orderByComparator)
                                            throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where type = ?.

Parameters:
templateId - the primary key of the current d d m template
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByType

public static void removeByType(String type)
Removes all the d d m templates where type = ? from the database.

Parameters:
type - the type

countByType

public static int countByType(String type)
Returns the number of d d m templates where type = ?.

Parameters:
type - the type
Returns:
the number of matching d d m templates

findByLanguage

public static List<DDMTemplate> findByLanguage(String language)
Returns all the d d m templates where language = ?.

Parameters:
language - the language
Returns:
the matching d d m templates

findByLanguage

public static List<DDMTemplate> findByLanguage(String language,
                                               int start,
                                               int end)
Returns a range of all the d d m templates where language = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
language - the language
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByLanguage

public static List<DDMTemplate> findByLanguage(String language,
                                               int start,
                                               int end,
                                               OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where language = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
language - the language
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByLanguage_First

public static DDMTemplate findByLanguage_First(String language,
                                               OrderByComparator<DDMTemplate> orderByComparator)
                                        throws NoSuchTemplateException
Returns the first d d m template in the ordered set where language = ?.

Parameters:
language - the language
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByLanguage_First

public static DDMTemplate fetchByLanguage_First(String language,
                                                OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where language = ?.

Parameters:
language - the language
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByLanguage_Last

public static DDMTemplate findByLanguage_Last(String language,
                                              OrderByComparator<DDMTemplate> orderByComparator)
                                       throws NoSuchTemplateException
Returns the last d d m template in the ordered set where language = ?.

Parameters:
language - the language
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByLanguage_Last

public static DDMTemplate fetchByLanguage_Last(String language,
                                               OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where language = ?.

Parameters:
language - the language
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByLanguage_PrevAndNext

public static DDMTemplate[] findByLanguage_PrevAndNext(long templateId,
                                                       String language,
                                                       OrderByComparator<DDMTemplate> orderByComparator)
                                                throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where language = ?.

Parameters:
templateId - the primary key of the current d d m template
language - the language
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByLanguage

public static void removeByLanguage(String language)
Removes all the d d m templates where language = ? from the database.

Parameters:
language - the language

countByLanguage

public static int countByLanguage(String language)
Returns the number of d d m templates where language = ?.

Parameters:
language - the language
Returns:
the number of matching d d m templates

findBySmallImageId

public static DDMTemplate findBySmallImageId(long smallImageId)
                                      throws NoSuchTemplateException
Returns the d d m template where smallImageId = ? or throws a NoSuchTemplateException if it could not be found.

Parameters:
smallImageId - the small image ID
Returns:
the matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchBySmallImageId

public static DDMTemplate fetchBySmallImageId(long smallImageId)
Returns the d d m template where smallImageId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
smallImageId - the small image ID
Returns:
the matching d d m template, or null if a matching d d m template could not be found

fetchBySmallImageId

public static DDMTemplate fetchBySmallImageId(long smallImageId,
                                              boolean retrieveFromCache)
Returns the d d m template where smallImageId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
smallImageId - the small image ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m template, or null if a matching d d m template could not be found

removeBySmallImageId

public static DDMTemplate removeBySmallImageId(long smallImageId)
                                        throws NoSuchTemplateException
Removes the d d m template where smallImageId = ? from the database.

Parameters:
smallImageId - the small image ID
Returns:
the d d m template that was removed
Throws:
NoSuchTemplateException

countBySmallImageId

public static int countBySmallImageId(long smallImageId)
Returns the number of d d m templates where smallImageId = ?.

Parameters:
smallImageId - the small image ID
Returns:
the number of matching d d m templates

findByG_C

public static List<DDMTemplate> findByG_C(long groupId,
                                          long classNameId)
Returns all the d d m templates where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the matching d d m templates

findByG_C

public static List<DDMTemplate> findByG_C(long groupId,
                                          long classNameId,
                                          int start,
                                          int end)
Returns a range of all the d d m templates where groupId = ? and classNameId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByG_C

public static List<DDMTemplate> findByG_C(long groupId,
                                          long classNameId,
                                          int start,
                                          int end,
                                          OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByG_C_First

public static DDMTemplate findByG_C_First(long groupId,
                                          long classNameId,
                                          OrderByComparator<DDMTemplate> orderByComparator)
                                   throws NoSuchTemplateException
Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_First

public static DDMTemplate fetchByG_C_First(long groupId,
                                           long classNameId,
                                           OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByG_C_Last

public static DDMTemplate findByG_C_Last(long groupId,
                                         long classNameId,
                                         OrderByComparator<DDMTemplate> orderByComparator)
                                  throws NoSuchTemplateException
Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_Last

public static DDMTemplate fetchByG_C_Last(long groupId,
                                          long classNameId,
                                          OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByG_C_PrevAndNext

public static DDMTemplate[] findByG_C_PrevAndNext(long templateId,
                                                  long groupId,
                                                  long classNameId,
                                                  OrderByComparator<DDMTemplate> orderByComparator)
                                           throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

filterFindByG_C

public static List<DDMTemplate> filterFindByG_C(long groupId,
                                                long classNameId)
Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the matching d d m templates that the user has permission to view

filterFindByG_C

public static List<DDMTemplate> filterFindByG_C(long groupId,
                                                long classNameId,
                                                int start,
                                                int end)
Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates that the user has permission to view

filterFindByG_C

public static List<DDMTemplate> filterFindByG_C(long groupId,
                                                long classNameId,
                                                int start,
                                                int end,
                                                OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates that the user has permission to view

filterFindByG_C_PrevAndNext

public static DDMTemplate[] filterFindByG_C_PrevAndNext(long templateId,
                                                        long groupId,
                                                        long classNameId,
                                                        OrderByComparator<DDMTemplate> orderByComparator)
                                                 throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByG_C

public static void removeByG_C(long groupId,
                               long classNameId)
Removes all the d d m templates where groupId = ? and classNameId = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID

countByG_C

public static int countByG_C(long groupId,
                             long classNameId)
Returns the number of d d m templates where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the number of matching d d m templates

filterCountByG_C

public static int filterCountByG_C(long groupId,
                                   long classNameId)
Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the number of matching d d m templates that the user has permission to view

findByG_CPK

public static List<DDMTemplate> findByG_CPK(long groupId,
                                            long classPK)
Returns all the d d m templates where groupId = ? and classPK = ?.

Parameters:
groupId - the group ID
classPK - the class p k
Returns:
the matching d d m templates

findByG_CPK

public static List<DDMTemplate> findByG_CPK(long groupId,
                                            long classPK,
                                            int start,
                                            int end)
Returns a range of all the d d m templates where groupId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByG_CPK

public static List<DDMTemplate> findByG_CPK(long groupId,
                                            long classPK,
                                            int start,
                                            int end,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where groupId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByG_CPK_First

public static DDMTemplate findByG_CPK_First(long groupId,
                                            long classPK,
                                            OrderByComparator<DDMTemplate> orderByComparator)
                                     throws NoSuchTemplateException
Returns the first d d m template in the ordered set where groupId = ? and classPK = ?.

Parameters:
groupId - the group ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_CPK_First

public static DDMTemplate fetchByG_CPK_First(long groupId,
                                             long classPK,
                                             OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where groupId = ? and classPK = ?.

Parameters:
groupId - the group ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByG_CPK_Last

public static DDMTemplate findByG_CPK_Last(long groupId,
                                           long classPK,
                                           OrderByComparator<DDMTemplate> orderByComparator)
                                    throws NoSuchTemplateException
Returns the last d d m template in the ordered set where groupId = ? and classPK = ?.

Parameters:
groupId - the group ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_CPK_Last

public static DDMTemplate fetchByG_CPK_Last(long groupId,
                                            long classPK,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where groupId = ? and classPK = ?.

Parameters:
groupId - the group ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByG_CPK_PrevAndNext

public static DDMTemplate[] findByG_CPK_PrevAndNext(long templateId,
                                                    long groupId,
                                                    long classPK,
                                                    OrderByComparator<DDMTemplate> orderByComparator)
                                             throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classPK = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

filterFindByG_CPK

public static List<DDMTemplate> filterFindByG_CPK(long groupId,
                                                  long classPK)
Returns all the d d m templates that the user has permission to view where groupId = ? and classPK = ?.

Parameters:
groupId - the group ID
classPK - the class p k
Returns:
the matching d d m templates that the user has permission to view

filterFindByG_CPK

public static List<DDMTemplate> filterFindByG_CPK(long groupId,
                                                  long classPK,
                                                  int start,
                                                  int end)
Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates that the user has permission to view

filterFindByG_CPK

public static List<DDMTemplate> filterFindByG_CPK(long groupId,
                                                  long classPK,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates that the user has permission to view

filterFindByG_CPK_PrevAndNext

public static DDMTemplate[] filterFindByG_CPK_PrevAndNext(long templateId,
                                                          long groupId,
                                                          long classPK,
                                                          OrderByComparator<DDMTemplate> orderByComparator)
                                                   throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classPK = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

filterFindByG_CPK

public static List<DDMTemplate> filterFindByG_CPK(long[] groupIds,
                                                  long classPK)
Returns all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?.

Parameters:
groupIds - the group IDs
classPK - the class p k
Returns:
the matching d d m templates that the user has permission to view

filterFindByG_CPK

public static List<DDMTemplate> filterFindByG_CPK(long[] groupIds,
                                                  long classPK,
                                                  int start,
                                                  int end)
Returns a range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates that the user has permission to view

filterFindByG_CPK

public static List<DDMTemplate> filterFindByG_CPK(long[] groupIds,
                                                  long classPK,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates that the user has permission to view

findByG_CPK

public static List<DDMTemplate> findByG_CPK(long[] groupIds,
                                            long classPK)
Returns all the d d m templates where groupId = any ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classPK - the class p k
Returns:
the matching d d m templates

findByG_CPK

public static List<DDMTemplate> findByG_CPK(long[] groupIds,
                                            long classPK,
                                            int start,
                                            int end)
Returns a range of all the d d m templates where groupId = any ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByG_CPK

public static List<DDMTemplate> findByG_CPK(long[] groupIds,
                                            long classPK,
                                            int start,
                                            int end,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where groupId = any ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

removeByG_CPK

public static void removeByG_CPK(long groupId,
                                 long classPK)
Removes all the d d m templates where groupId = ? and classPK = ? from the database.

Parameters:
groupId - the group ID
classPK - the class p k

countByG_CPK

public static int countByG_CPK(long groupId,
                               long classPK)
Returns the number of d d m templates where groupId = ? and classPK = ?.

Parameters:
groupId - the group ID
classPK - the class p k
Returns:
the number of matching d d m templates

countByG_CPK

public static int countByG_CPK(long[] groupIds,
                               long classPK)
Returns the number of d d m templates where groupId = any ? and classPK = ?.

Parameters:
groupIds - the group IDs
classPK - the class p k
Returns:
the number of matching d d m templates

filterCountByG_CPK

public static int filterCountByG_CPK(long groupId,
                                     long classPK)
Returns the number of d d m templates that the user has permission to view where groupId = ? and classPK = ?.

Parameters:
groupId - the group ID
classPK - the class p k
Returns:
the number of matching d d m templates that the user has permission to view

filterCountByG_CPK

public static int filterCountByG_CPK(long[] groupIds,
                                     long classPK)
Returns the number of d d m templates that the user has permission to view where groupId = any ? and classPK = ?.

Parameters:
groupIds - the group IDs
classPK - the class p k
Returns:
the number of matching d d m templates that the user has permission to view

findByG_C_C

public static List<DDMTemplate> findByG_C_C(long groupId,
                                            long classNameId,
                                            long classPK)
Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching d d m templates

findByG_C_C

public static List<DDMTemplate> findByG_C_C(long groupId,
                                            long classNameId,
                                            long classPK,
                                            int start,
                                            int end)
Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByG_C_C

public static List<DDMTemplate> findByG_C_C(long groupId,
                                            long classNameId,
                                            long classPK,
                                            int start,
                                            int end,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByG_C_C_First

public static DDMTemplate findByG_C_C_First(long groupId,
                                            long classNameId,
                                            long classPK,
                                            OrderByComparator<DDMTemplate> orderByComparator)
                                     throws NoSuchTemplateException
Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_C_First

public static DDMTemplate fetchByG_C_C_First(long groupId,
                                             long classNameId,
                                             long classPK,
                                             OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByG_C_C_Last

public static DDMTemplate findByG_C_C_Last(long groupId,
                                           long classNameId,
                                           long classPK,
                                           OrderByComparator<DDMTemplate> orderByComparator)
                                    throws NoSuchTemplateException
Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_C_Last

public static DDMTemplate fetchByG_C_C_Last(long groupId,
                                            long classNameId,
                                            long classPK,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByG_C_C_PrevAndNext

public static DDMTemplate[] findByG_C_C_PrevAndNext(long templateId,
                                                    long groupId,
                                                    long classNameId,
                                                    long classPK,
                                                    OrderByComparator<DDMTemplate> orderByComparator)
                                             throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

filterFindByG_C_C

public static List<DDMTemplate> filterFindByG_C_C(long groupId,
                                                  long classNameId,
                                                  long classPK)
Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
Returns:
the matching d d m templates that the user has permission to view

filterFindByG_C_C

public static List<DDMTemplate> filterFindByG_C_C(long groupId,
                                                  long classNameId,
                                                  long classPK,
                                                  int start,
                                                  int end)
Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates that the user has permission to view

filterFindByG_C_C

public static List<DDMTemplate> filterFindByG_C_C(long groupId,
                                                  long classNameId,
                                                  long classPK,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates that the user has permission to view

filterFindByG_C_C_PrevAndNext

public static DDMTemplate[] filterFindByG_C_C_PrevAndNext(long templateId,
                                                          long groupId,
                                                          long classNameId,
                                                          long classPK,
                                                          OrderByComparator<DDMTemplate> orderByComparator)
                                                   throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

filterFindByG_C_C

public static List<DDMTemplate> filterFindByG_C_C(long[] groupIds,
                                                  long classNameId,
                                                  long classPK)
Returns all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?.

Parameters:
groupIds - the group IDs
classNameId - the class name ID
classPK - the class p k
Returns:
the matching d d m templates that the user has permission to view

filterFindByG_C_C

public static List<DDMTemplate> filterFindByG_C_C(long[] groupIds,
                                                  long classNameId,
                                                  long classPK,
                                                  int start,
                                                  int end)
Returns a range of all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates that the user has permission to view

filterFindByG_C_C

public static List<DDMTemplate> filterFindByG_C_C(long[] groupIds,
                                                  long classNameId,
                                                  long classPK,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates that the user has permission to view

findByG_C_C

public static List<DDMTemplate> findByG_C_C(long[] groupIds,
                                            long classNameId,
                                            long classPK)
Returns all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classNameId - the class name ID
classPK - the class p k
Returns:
the matching d d m templates

findByG_C_C

public static List<DDMTemplate> findByG_C_C(long[] groupIds,
                                            long classNameId,
                                            long classPK,
                                            int start,
                                            int end)
Returns a range of all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByG_C_C

public static List<DDMTemplate> findByG_C_C(long[] groupIds,
                                            long classNameId,
                                            long classPK,
                                            int start,
                                            int end,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where groupId = any ? and classNameId = ? and classPK = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupIds - the group IDs
classNameId - the class name ID
classPK - the class p k
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

removeByG_C_C

public static void removeByG_C_C(long groupId,
                                 long classNameId,
                                 long classPK)
Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k

countByG_C_C

public static int countByG_C_C(long groupId,
                               long classNameId,
                               long classPK)
Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching d d m templates

countByG_C_C

public static int countByG_C_C(long[] groupIds,
                               long classNameId,
                               long classPK)
Returns the number of d d m templates where groupId = any ? and classNameId = ? and classPK = ?.

Parameters:
groupIds - the group IDs
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching d d m templates

filterCountByG_C_C

public static int filterCountByG_C_C(long groupId,
                                     long classNameId,
                                     long classPK)
Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching d d m templates that the user has permission to view

filterCountByG_C_C

public static int filterCountByG_C_C(long[] groupIds,
                                     long classNameId,
                                     long classPK)
Returns the number of d d m templates that the user has permission to view where groupId = any ? and classNameId = ? and classPK = ?.

Parameters:
groupIds - the group IDs
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching d d m templates that the user has permission to view

findByG_C_T

public static DDMTemplate findByG_C_T(long groupId,
                                      long classNameId,
                                      String templateKey)
                               throws NoSuchTemplateException
Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or throws a NoSuchTemplateException if it could not be found.

Parameters:
groupId - the group ID
classNameId - the class name ID
templateKey - the template key
Returns:
the matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_T

public static DDMTemplate fetchByG_C_T(long groupId,
                                       long classNameId,
                                       String templateKey)
Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
groupId - the group ID
classNameId - the class name ID
templateKey - the template key
Returns:
the matching d d m template, or null if a matching d d m template could not be found

fetchByG_C_T

public static DDMTemplate fetchByG_C_T(long groupId,
                                       long classNameId,
                                       String templateKey,
                                       boolean retrieveFromCache)
Returns the d d m template where groupId = ? and classNameId = ? and templateKey = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
groupId - the group ID
classNameId - the class name ID
templateKey - the template key
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m template, or null if a matching d d m template could not be found

removeByG_C_T

public static DDMTemplate removeByG_C_T(long groupId,
                                        long classNameId,
                                        String templateKey)
                                 throws NoSuchTemplateException
Removes the d d m template where groupId = ? and classNameId = ? and templateKey = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
templateKey - the template key
Returns:
the d d m template that was removed
Throws:
NoSuchTemplateException

countByG_C_T

public static int countByG_C_T(long groupId,
                               long classNameId,
                               String templateKey)
Returns the number of d d m templates where groupId = ? and classNameId = ? and templateKey = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
templateKey - the template key
Returns:
the number of matching d d m templates

findByC_C_T

public static List<DDMTemplate> findByC_C_T(long classNameId,
                                            long classPK,
                                            String type)
Returns all the d d m templates where classNameId = ? and classPK = ? and type = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the matching d d m templates

findByC_C_T

public static List<DDMTemplate> findByC_C_T(long classNameId,
                                            long classPK,
                                            String type,
                                            int start,
                                            int end)
Returns a range of all the d d m templates where classNameId = ? and classPK = ? and type = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByC_C_T

public static List<DDMTemplate> findByC_C_T(long classNameId,
                                            long classPK,
                                            String type,
                                            int start,
                                            int end,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where classNameId = ? and classPK = ? and type = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByC_C_T_First

public static DDMTemplate findByC_C_T_First(long classNameId,
                                            long classPK,
                                            String type,
                                            OrderByComparator<DDMTemplate> orderByComparator)
                                     throws NoSuchTemplateException
Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByC_C_T_First

public static DDMTemplate fetchByC_C_T_First(long classNameId,
                                             long classPK,
                                             String type,
                                             OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByC_C_T_Last

public static DDMTemplate findByC_C_T_Last(long classNameId,
                                           long classPK,
                                           String type,
                                           OrderByComparator<DDMTemplate> orderByComparator)
                                    throws NoSuchTemplateException
Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByC_C_T_Last

public static DDMTemplate fetchByC_C_T_Last(long classNameId,
                                            long classPK,
                                            String type,
                                            OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByC_C_T_PrevAndNext

public static DDMTemplate[] findByC_C_T_PrevAndNext(long templateId,
                                                    long classNameId,
                                                    long classPK,
                                                    String type,
                                                    OrderByComparator<DDMTemplate> orderByComparator)
                                             throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.

Parameters:
templateId - the primary key of the current d d m template
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByC_C_T

public static void removeByC_C_T(long classNameId,
                                 long classPK,
                                 String type)
Removes all the d d m templates where classNameId = ? and classPK = ? and type = ? from the database.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type

countByC_C_T

public static int countByC_C_T(long classNameId,
                               long classPK,
                               String type)
Returns the number of d d m templates where classNameId = ? and classPK = ? and type = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the number of matching d d m templates

findByG_C_C_T

public static List<DDMTemplate> findByG_C_C_T(long groupId,
                                              long classNameId,
                                              long classPK,
                                              String type)
Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the matching d d m templates

findByG_C_C_T

public static List<DDMTemplate> findByG_C_C_T(long groupId,
                                              long classNameId,
                                              long classPK,
                                              String type,
                                              int start,
                                              int end)
Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByG_C_C_T

public static List<DDMTemplate> findByG_C_C_T(long groupId,
                                              long classNameId,
                                              long classPK,
                                              String type,
                                              int start,
                                              int end,
                                              OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByG_C_C_T_First

public static DDMTemplate findByG_C_C_T_First(long groupId,
                                              long classNameId,
                                              long classPK,
                                              String type,
                                              OrderByComparator<DDMTemplate> orderByComparator)
                                       throws NoSuchTemplateException
Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_C_T_First

public static DDMTemplate fetchByG_C_C_T_First(long groupId,
                                               long classNameId,
                                               long classPK,
                                               String type,
                                               OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByG_C_C_T_Last

public static DDMTemplate findByG_C_C_T_Last(long groupId,
                                             long classNameId,
                                             long classPK,
                                             String type,
                                             OrderByComparator<DDMTemplate> orderByComparator)
                                      throws NoSuchTemplateException
Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_C_T_Last

public static DDMTemplate fetchByG_C_C_T_Last(long groupId,
                                              long classNameId,
                                              long classPK,
                                              String type,
                                              OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByG_C_C_T_PrevAndNext

public static DDMTemplate[] findByG_C_C_T_PrevAndNext(long templateId,
                                                      long groupId,
                                                      long classNameId,
                                                      long classPK,
                                                      String type,
                                                      OrderByComparator<DDMTemplate> orderByComparator)
                                               throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

filterFindByG_C_C_T

public static List<DDMTemplate> filterFindByG_C_C_T(long groupId,
                                                    long classNameId,
                                                    long classPK,
                                                    String type)
Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the matching d d m templates that the user has permission to view

filterFindByG_C_C_T

public static List<DDMTemplate> filterFindByG_C_C_T(long groupId,
                                                    long classNameId,
                                                    long classPK,
                                                    String type,
                                                    int start,
                                                    int end)
Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates that the user has permission to view

filterFindByG_C_C_T

public static List<DDMTemplate> filterFindByG_C_C_T(long groupId,
                                                    long classNameId,
                                                    long classPK,
                                                    String type,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates that the user has permission to view

filterFindByG_C_C_T_PrevAndNext

public static DDMTemplate[] filterFindByG_C_C_T_PrevAndNext(long templateId,
                                                            long groupId,
                                                            long classNameId,
                                                            long classPK,
                                                            String type,
                                                            OrderByComparator<DDMTemplate> orderByComparator)
                                                     throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByG_C_C_T

public static void removeByG_C_C_T(long groupId,
                                   long classNameId,
                                   long classPK,
                                   String type)
Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type

countByG_C_C_T

public static int countByG_C_C_T(long groupId,
                                 long classNameId,
                                 long classPK,
                                 String type)
Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the number of matching d d m templates

filterCountByG_C_C_T

public static int filterCountByG_C_C_T(long groupId,
                                       long classNameId,
                                       long classPK,
                                       String type)
Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
Returns:
the number of matching d d m templates that the user has permission to view

findByG_C_C_T_M

public static List<DDMTemplate> findByG_C_C_T_M(long groupId,
                                                long classNameId,
                                                long classPK,
                                                String type,
                                                String mode)
Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
Returns:
the matching d d m templates

findByG_C_C_T_M

public static List<DDMTemplate> findByG_C_C_T_M(long groupId,
                                                long classNameId,
                                                long classPK,
                                                String type,
                                                String mode,
                                                int start,
                                                int end)
Returns a range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates

findByG_C_C_T_M

public static List<DDMTemplate> findByG_C_C_T_M(long groupId,
                                                long classNameId,
                                                long classPK,
                                                String type,
                                                String mode,
                                                int start,
                                                int end,
                                                OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates

findByG_C_C_T_M_First

public static DDMTemplate findByG_C_C_T_M_First(long groupId,
                                                long classNameId,
                                                long classPK,
                                                String type,
                                                String mode,
                                                OrderByComparator<DDMTemplate> orderByComparator)
                                         throws NoSuchTemplateException
Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_C_T_M_First

public static DDMTemplate fetchByG_C_C_T_M_First(long groupId,
                                                 long classNameId,
                                                 long classPK,
                                                 String type,
                                                 String mode,
                                                 OrderByComparator<DDMTemplate> orderByComparator)
Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m template, or null if a matching d d m template could not be found

findByG_C_C_T_M_Last

public static DDMTemplate findByG_C_C_T_M_Last(long groupId,
                                               long classNameId,
                                               long classPK,
                                               String type,
                                               String mode,
                                               OrderByComparator<DDMTemplate> orderByComparator)
                                        throws NoSuchTemplateException
Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template
Throws:
NoSuchTemplateException - if a matching d d m template could not be found

fetchByG_C_C_T_M_Last

public static DDMTemplate fetchByG_C_C_T_M_Last(long groupId,
                                                long classNameId,
                                                long classPK,
                                                String type,
                                                String mode,
                                                OrderByComparator<DDMTemplate> orderByComparator)
Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m template, or null if a matching d d m template could not be found

findByG_C_C_T_M_PrevAndNext

public static DDMTemplate[] findByG_C_C_T_M_PrevAndNext(long templateId,
                                                        long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        String type,
                                                        String mode,
                                                        OrderByComparator<DDMTemplate> orderByComparator)
                                                 throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

filterFindByG_C_C_T_M

public static List<DDMTemplate> filterFindByG_C_C_T_M(long groupId,
                                                      long classNameId,
                                                      long classPK,
                                                      String type,
                                                      String mode)
Returns all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
Returns:
the matching d d m templates that the user has permission to view

filterFindByG_C_C_T_M

public static List<DDMTemplate> filterFindByG_C_C_T_M(long groupId,
                                                      long classNameId,
                                                      long classPK,
                                                      String type,
                                                      String mode,
                                                      int start,
                                                      int end)
Returns a range of all the d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of matching d d m templates that the user has permission to view

filterFindByG_C_C_T_M

public static List<DDMTemplate> filterFindByG_C_C_T_M(long groupId,
                                                      long classNameId,
                                                      long classPK,
                                                      String type,
                                                      String mode,
                                                      int start,
                                                      int end,
                                                      OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

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 DDMTemplateModelImpl. 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m templates that the user has permission to view

filterFindByG_C_C_T_M_PrevAndNext

public static DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext(long templateId,
                                                              long groupId,
                                                              long classNameId,
                                                              long classPK,
                                                              String type,
                                                              String mode,
                                                              OrderByComparator<DDMTemplate> orderByComparator)
                                                       throws NoSuchTemplateException
Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
templateId - the primary key of the current d d m template
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

removeByG_C_C_T_M

public static void removeByG_C_C_T_M(long groupId,
                                     long classNameId,
                                     long classPK,
                                     String type,
                                     String mode)
Removes all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode

countByG_C_C_T_M

public static int countByG_C_C_T_M(long groupId,
                                   long classNameId,
                                   long classPK,
                                   String type,
                                   String mode)
Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
Returns:
the number of matching d d m templates

filterCountByG_C_C_T_M

public static int filterCountByG_C_C_T_M(long groupId,
                                         long classNameId,
                                         long classPK,
                                         String type,
                                         String mode)
Returns the number of d d m templates that the user has permission to view where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
classPK - the class p k
type - the type
mode - the mode
Returns:
the number of matching d d m templates that the user has permission to view

cacheResult

public static void cacheResult(DDMTemplate ddmTemplate)
Caches the d d m template in the entity cache if it is enabled.

Parameters:
ddmTemplate - the d d m template

cacheResult

public static void cacheResult(List<DDMTemplate> ddmTemplates)
Caches the d d m templates in the entity cache if it is enabled.

Parameters:
ddmTemplates - the d d m templates

create

public static DDMTemplate create(long templateId)
Creates a new d d m template with the primary key. Does not add the d d m template to the database.

Parameters:
templateId - the primary key for the new d d m template
Returns:
the new d d m template

remove

public static DDMTemplate remove(long templateId)
                          throws NoSuchTemplateException
Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
templateId - the primary key of the d d m template
Returns:
the d d m template that was removed
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

updateImpl

public static DDMTemplate updateImpl(DDMTemplate ddmTemplate)

findByPrimaryKey

public static DDMTemplate findByPrimaryKey(long templateId)
                                    throws NoSuchTemplateException
Returns the d d m template with the primary key or throws a NoSuchTemplateException if it could not be found.

Parameters:
templateId - the primary key of the d d m template
Returns:
the d d m template
Throws:
NoSuchTemplateException - if a d d m template with the primary key could not be found

fetchByPrimaryKey

public static DDMTemplate fetchByPrimaryKey(long templateId)
Returns the d d m template with the primary key or returns null if it could not be found.

Parameters:
templateId - the primary key of the d d m template
Returns:
the d d m template, or null if a d d m template with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,DDMTemplate> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<DDMTemplate> findAll()
Returns all the d d m templates.

Returns:
the d d m templates

findAll

public static List<DDMTemplate> findAll(int start,
                                        int end)
Returns a range of all the d d m templates.

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 DDMTemplateModelImpl. 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.

Parameters:
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of d d m templates

findAll

public static List<DDMTemplate> findAll(int start,
                                        int end,
                                        OrderByComparator<DDMTemplate> orderByComparator)
Returns an ordered range of all the d d m templates.

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 DDMTemplateModelImpl. 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.

Parameters:
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m templates

removeAll

public static void removeAll()
Removes all the d d m templates from the database.


countAll

public static int countAll()
Returns the number of d d m templates.

Returns:
the number of d d m templates

getPersistence

public static DDMTemplatePersistence getPersistence()

setPersistence

@Deprecated
public void setPersistence(DDMTemplatePersistence persistence)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m6