Liferay 6.2-ce-ga5

com.liferay.portlet.dynamicdatamapping.service.persistence
Interface DDMTemplatePersistence

All Superinterfaces:
BasePersistence<DDMTemplate>

@ProviderType
public interface DDMTemplatePersistence
extends BasePersistence<DDMTemplate>

The persistence interface for the d d m template service.

Caching information and settings can be found in portal.properties

See Also:
DDMTemplatePersistenceImpl, DDMTemplateUtil

Method Summary
 void cacheResult(DDMTemplate ddmTemplate)
          Caches the d d m template in the entity cache if it is enabled.
 void cacheResult(List<DDMTemplate> ddmTemplates)
          Caches the d d m templates in the entity cache if it is enabled.
 int countAll()
          Returns the number of d d m templates.
 int countByC_C_T(long classNameId, long classPK, String type)
          Returns the number of d d m templates where classNameId = ? and classPK = ? and type = ?.
 int countByClassPK(long classPK)
          Returns the number of d d m templates where classPK = ?.
 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 = ?.
 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 = ?.
 int countByG_C_C(long groupId, long classNameId, long classPK)
          Returns the number of d d m templates where groupId = ? and classNameId = ? and classPK = ?.
 int countByG_C_T(long groupId, long classNameId, String templateKey)
          Returns the number of d d m templates where groupId = ? and classNameId = ? and templateKey = ?.
 int countByG_C(long groupId, long classNameId)
          Returns the number of d d m templates where groupId = ? and classNameId = ?.
 int countByG_CPK(long[] groupIds, long classPK)
          Returns the number of d d m templates where groupId = any ? and classPK = ?.
 int countByG_CPK(long groupId, long classPK)
          Returns the number of d d m templates where groupId = ? and classPK = ?.
 int countByGroupId(long groupId)
          Returns the number of d d m templates where groupId = ?.
 int countByLanguage(String language)
          Returns the number of d d m templates where language = ?.
 int countBySmallImageId(long smallImageId)
          Returns the number of d d m templates where smallImageId = ?.
 int countByTemplateKey(String templateKey)
          Returns the number of d d m templates where templateKey = ?.
 int countByType(String type)
          Returns the number of d d m templates where type = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of d d m templates where uuid = ? and companyId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of d d m templates where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of d d m templates where uuid = ?.
 DDMTemplate create(long templateId)
          Creates a new d d m template with the primary key.
 DDMTemplate fetchByC_C_T_First(long classNameId, long classPK, String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
 DDMTemplate fetchByC_C_T_Last(long classNameId, long classPK, String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
 DDMTemplate fetchByClassPK_First(long classPK, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where classPK = ?.
 DDMTemplate fetchByClassPK_Last(long classPK, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where classPK = ?.
 DDMTemplate fetchByG_C_C_First(long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 DDMTemplate fetchByG_C_C_Last(long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 DDMTemplate fetchByG_C_C_T_First(long groupId, long classNameId, long classPK, String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 DDMTemplate fetchByG_C_C_T_Last(long groupId, long classNameId, long classPK, String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 DDMTemplate fetchByG_C_C_T_M_First(long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
 DDMTemplate fetchByG_C_C_T_M_Last(long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
 DDMTemplate fetchByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?.
 DDMTemplate fetchByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?.
 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.
 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.
 DDMTemplate fetchByG_CPK_First(long groupId, long classPK, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classPK = ?.
 DDMTemplate fetchByG_CPK_Last(long groupId, long classPK, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classPK = ?.
 DDMTemplate fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ?.
 DDMTemplate fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ?.
 DDMTemplate fetchByLanguage_First(String language, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where language = ?.
 DDMTemplate fetchByLanguage_Last(String language, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where language = ?.
 DDMTemplate fetchByPrimaryKey(long templateId)
          Returns the d d m template with the primary key or returns null if it could not be found.
 DDMTemplate fetchBySmallImageId(long smallImageId)
          Returns the d d m template where smallImageId = ? or returns null if it could not be found.
 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.
 DDMTemplate fetchByTemplateKey_First(String templateKey, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where templateKey = ?.
 DDMTemplate fetchByTemplateKey_Last(String templateKey, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where templateKey = ?.
 DDMTemplate fetchByType_First(String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where type = ?.
 DDMTemplate fetchByType_Last(String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where type = ?.
 DDMTemplate fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ? and companyId = ?.
 DDMTemplate fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ? and companyId = ?.
 DDMTemplate fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ?.
 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.
 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.
 DDMTemplate fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 int filterCountByGroupId(long groupId)
          Returns the number of d d m templates that the user has permission to view where groupId = ?.
 DDMTemplate[] filterFindByG_C_C_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, OrderByComparator 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 = ?.
 DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> filterFindByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode, int start, int end, OrderByComparator 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 = ?.
 DDMTemplate[] filterFindByG_C_C_T_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, String type, OrderByComparator 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> filterFindByG_C_C_T(long groupId, long classNameId, long classPK, String type, int start, int end, OrderByComparator 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> filterFindByG_C_C(long groupId, long classNameId, long classPK, int start, int end, OrderByComparator 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 = ?.
 DDMTemplate[] filterFindByG_C_PrevAndNext(long templateId, long groupId, long classNameId, OrderByComparator 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> filterFindByG_C(long groupId, long classNameId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classNameId = ?.
 DDMTemplate[] filterFindByG_CPK_PrevAndNext(long templateId, long groupId, long classPK, OrderByComparator 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> filterFindByG_CPK(long[] groupIds, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any ? and classPK = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> filterFindByG_CPK(long groupId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ? and classPK = ?.
 DDMTemplate[] filterFindByGroupId_PrevAndNext(long templateId, long groupId, OrderByComparator 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 = ?.
 List<DDMTemplate> filterFindByGroupId(long groupId)
          Returns all the d d m templates that the user has permission to view where groupId = ?.
 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 = ?.
 List<DDMTemplate> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?.
 List<DDMTemplate> findAll()
          Returns all the d d m templates.
 List<DDMTemplate> findAll(int start, int end)
          Returns a range of all the d d m templates.
 List<DDMTemplate> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates.
 DDMTemplate findByC_C_T_First(long classNameId, long classPK, String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
 DDMTemplate findByC_C_T_Last(long classNameId, long classPK, String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where classNameId = ? and classPK = ? and type = ?.
 DDMTemplate[] findByC_C_T_PrevAndNext(long templateId, long classNameId, long classPK, String type, OrderByComparator 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 = ?.
 List<DDMTemplate> findByC_C_T(long classNameId, long classPK, String type)
          Returns all the d d m templates where classNameId = ? and classPK = ? and type = ?.
 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 = ?.
 List<DDMTemplate> findByC_C_T(long classNameId, long classPK, String type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where classNameId = ? and classPK = ? and type = ?.
 DDMTemplate findByClassPK_First(long classPK, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where classPK = ?.
 DDMTemplate findByClassPK_Last(long classPK, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where classPK = ?.
 DDMTemplate[] findByClassPK_PrevAndNext(long templateId, long classPK, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where classPK = ?.
 List<DDMTemplate> findByClassPK(long classPK)
          Returns all the d d m templates where classPK = ?.
 List<DDMTemplate> findByClassPK(long classPK, int start, int end)
          Returns a range of all the d d m templates where classPK = ?.
 List<DDMTemplate> findByClassPK(long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where classPK = ?.
 DDMTemplate findByG_C_C_First(long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 DDMTemplate findByG_C_C_Last(long groupId, long classNameId, long classPK, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
 DDMTemplate[] findByG_C_C_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, OrderByComparator 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 = ?.
 DDMTemplate findByG_C_C_T_First(long groupId, long classNameId, long classPK, String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 DDMTemplate findByG_C_C_T_Last(long groupId, long classNameId, long classPK, String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 DDMTemplate findByG_C_C_T_M_First(long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
 DDMTemplate findByG_C_C_T_M_Last(long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
 DDMTemplate[] findByG_C_C_T_M_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> findByG_C_C_T_M(long groupId, long classNameId, long classPK, String type, String mode, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ? and mode = ?.
 DDMTemplate[] findByG_C_C_T_PrevAndNext(long templateId, long groupId, long classNameId, long classPK, String type, OrderByComparator 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> findByG_C_C_T(long groupId, long classNameId, long classPK, String type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ? and type = ?.
 List<DDMTemplate> findByG_C_C(long groupId, long classNameId, long classPK)
          Returns all the d d m templates where groupId = ? and classNameId = ? and classPK = ?.
 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 = ?.
 List<DDMTemplate> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ? and classPK = ?.
 DDMTemplate findByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classNameId = ?.
 DDMTemplate findByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classNameId = ?.
 DDMTemplate[] findByG_C_PrevAndNext(long templateId, long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classNameId = ?.
 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.
 List<DDMTemplate> findByG_C(long groupId, long classNameId)
          Returns all the d d m templates where groupId = ? and classNameId = ?.
 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 = ?.
 List<DDMTemplate> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classNameId = ?.
 DDMTemplate findByG_CPK_First(long groupId, long classPK, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ? and classPK = ?.
 DDMTemplate findByG_CPK_Last(long groupId, long classPK, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ? and classPK = ?.
 DDMTemplate[] findByG_CPK_PrevAndNext(long templateId, long groupId, long classPK, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ? and classPK = ?.
 List<DDMTemplate> findByG_CPK(long[] groupIds, long classPK)
          Returns all the d d m templates where groupId = any ? and classPK = ?.
 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 = ?.
 List<DDMTemplate> findByG_CPK(long[] groupIds, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = any ? and classPK = ?.
 List<DDMTemplate> findByG_CPK(long groupId, long classPK)
          Returns all the d d m templates where groupId = ? and classPK = ?.
 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 = ?.
 List<DDMTemplate> findByG_CPK(long groupId, long classPK, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ? and classPK = ?.
 DDMTemplate findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ?.
 DDMTemplate findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ?.
 DDMTemplate[] findByGroupId_PrevAndNext(long templateId, long groupId, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where groupId = ?.
 List<DDMTemplate> findByGroupId(long groupId)
          Returns all the d d m templates where groupId = ?.
 List<DDMTemplate> findByGroupId(long groupId, int start, int end)
          Returns a range of all the d d m templates where groupId = ?.
 List<DDMTemplate> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ?.
 DDMTemplate findByLanguage_First(String language, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where language = ?.
 DDMTemplate findByLanguage_Last(String language, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where language = ?.
 DDMTemplate[] findByLanguage_PrevAndNext(long templateId, String language, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where language = ?.
 List<DDMTemplate> findByLanguage(String language)
          Returns all the d d m templates where language = ?.
 List<DDMTemplate> findByLanguage(String language, int start, int end)
          Returns a range of all the d d m templates where language = ?.
 List<DDMTemplate> findByLanguage(String language, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where language = ?.
 DDMTemplate findByPrimaryKey(long templateId)
          Returns the d d m template with the primary key or throws a NoSuchTemplateException if it could not be found.
 DDMTemplate findBySmallImageId(long smallImageId)
          Returns the d d m template where smallImageId = ? or throws a NoSuchTemplateException if it could not be found.
 DDMTemplate findByTemplateKey_First(String templateKey, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where templateKey = ?.
 DDMTemplate findByTemplateKey_Last(String templateKey, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where templateKey = ?.
 DDMTemplate[] findByTemplateKey_PrevAndNext(long templateId, String templateKey, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where templateKey = ?.
 List<DDMTemplate> findByTemplateKey(String templateKey)
          Returns all the d d m templates where templateKey = ?.
 List<DDMTemplate> findByTemplateKey(String templateKey, int start, int end)
          Returns a range of all the d d m templates where templateKey = ?.
 List<DDMTemplate> findByTemplateKey(String templateKey, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where templateKey = ?.
 DDMTemplate findByType_First(String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where type = ?.
 DDMTemplate findByType_Last(String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where type = ?.
 DDMTemplate[] findByType_PrevAndNext(long templateId, String type, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where type = ?.
 List<DDMTemplate> findByType(String type)
          Returns all the d d m templates where type = ?.
 List<DDMTemplate> findByType(String type, int start, int end)
          Returns a range of all the d d m templates where type = ?.
 List<DDMTemplate> findByType(String type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where type = ?.
 DDMTemplate findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ? and companyId = ?.
 DDMTemplate findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ? and companyId = ?.
 DDMTemplate[] findByUuid_C_PrevAndNext(long templateId, String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ? and companyId = ?.
 List<DDMTemplate> findByUuid_C(String uuid, long companyId)
          Returns all the d d m templates where uuid = ? and companyId = ?.
 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 = ?.
 List<DDMTemplate> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where uuid = ? and companyId = ?.
 DDMTemplate findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ?.
 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.
 DDMTemplate findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ?.
 DDMTemplate[] findByUuid_PrevAndNext(long templateId, String uuid, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where uuid = ?.
 List<DDMTemplate> findByUuid(String uuid)
          Returns all the d d m templates where uuid = ?.
 List<DDMTemplate> findByUuid(String uuid, int start, int end)
          Returns a range of all the d d m templates where uuid = ?.
 List<DDMTemplate> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where uuid = ?.
 DDMTemplate remove(long templateId)
          Removes the d d m template with the primary key from the database.
 void removeAll()
          Removes all the d d m templates from the database.
 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.
 void removeByClassPK(long classPK)
          Removes all the d d m templates where classPK = ? from the database.
 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.
 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.
 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.
 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.
 void removeByG_C(long groupId, long classNameId)
          Removes all the d d m templates where groupId = ? and classNameId = ? from the database.
 void removeByG_CPK(long groupId, long classPK)
          Removes all the d d m templates where groupId = ? and classPK = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the d d m templates where groupId = ? from the database.
 void removeByLanguage(String language)
          Removes all the d d m templates where language = ? from the database.
 DDMTemplate removeBySmallImageId(long smallImageId)
          Removes the d d m template where smallImageId = ? from the database.
 void removeByTemplateKey(String templateKey)
          Removes all the d d m templates where templateKey = ? from the database.
 void removeByType(String type)
          Removes all the d d m templates where type = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the d d m templates where uuid = ? and companyId = ? from the database.
 DDMTemplate removeByUUID_G(String uuid, long groupId)
          Removes the d d m template where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the d d m templates where uuid = ? from the database.
 DDMTemplate updateImpl(DDMTemplate ddmTemplate)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByUuid

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

Parameters:
uuid - the uuid
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByUuid

List<DDMTemplate> findByUuid(String uuid,
                             int start,
                             int end)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid

List<DDMTemplate> findByUuid(String uuid,
                             int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_First

DDMTemplate findByUuid_First(String uuid,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByUuid_First

DDMTemplate fetchByUuid_First(String uuid,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_Last

DDMTemplate findByUuid_Last(String uuid,
                            OrderByComparator orderByComparator)
                            throws SystemException,
                                   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
SystemException - if a system exception occurred

fetchByUuid_Last

DDMTemplate fetchByUuid_Last(String uuid,
                             OrderByComparator orderByComparator)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

DDMTemplate[] findByUuid_PrevAndNext(long templateId,
                                     String uuid,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            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
SystemException - if a system exception occurred

removeByUuid

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

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

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

Parameters:
uuid - the uuid
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findByUUID_G

DDMTemplate findByUUID_G(String uuid,
                         long groupId)
                         throws SystemException,
                                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
SystemException - if a system exception occurred

fetchByUUID_G

DDMTemplate fetchByUUID_G(String uuid,
                          long groupId)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

DDMTemplate fetchByUUID_G(String uuid,
                          long groupId,
                          boolean retrieveFromCache)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeByUUID_G

DDMTemplate removeByUUID_G(String uuid,
                           long groupId)
                           throws SystemException,
                                  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:
SystemException - if a system exception occurred
NoSuchTemplateException

countByUUID_G

int countByUUID_G(String uuid,
                  long groupId)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<DDMTemplate> findByUuid_C(String uuid,
                               long companyId)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<DDMTemplate> findByUuid_C(String uuid,
                               long companyId,
                               int start,
                               int end)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<DDMTemplate> findByUuid_C(String uuid,
                               long companyId,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_C_First

DDMTemplate findByUuid_C_First(String uuid,
                               long companyId,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      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
SystemException - if a system exception occurred

fetchByUuid_C_First

DDMTemplate fetchByUuid_C_First(String uuid,
                                long companyId,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_C_Last

DDMTemplate findByUuid_C_Last(String uuid,
                              long companyId,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     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
SystemException - if a system exception occurred

fetchByUuid_C_Last

DDMTemplate fetchByUuid_C_Last(String uuid,
                               long companyId,
                               OrderByComparator orderByComparator)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_C_PrevAndNext

DDMTemplate[] findByUuid_C_PrevAndNext(long templateId,
                                       String uuid,
                                       long companyId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              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
SystemException - if a system exception occurred

removeByUuid_C

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

Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

int countByUuid_C(String uuid,
                  long companyId)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Parameters:
groupId - the group ID
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByGroupId

List<DDMTemplate> findByGroupId(long groupId,
                                int start,
                                int end)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId

List<DDMTemplate> findByGroupId(long groupId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId_First

DDMTemplate findByGroupId_First(long groupId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       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
SystemException - if a system exception occurred

fetchByGroupId_First

DDMTemplate fetchByGroupId_First(long groupId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

DDMTemplate findByGroupId_Last(long groupId,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      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
SystemException - if a system exception occurred

fetchByGroupId_Last

DDMTemplate fetchByGroupId_Last(long groupId,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

DDMTemplate[] findByGroupId_PrevAndNext(long templateId,
                                        long groupId,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               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
SystemException - if a system exception occurred

filterFindByGroupId

List<DDMTemplate> filterFindByGroupId(long groupId)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

List<DDMTemplate> filterFindByGroupId(long groupId,
                                      int start,
                                      int end)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

List<DDMTemplate> filterFindByGroupId(long groupId,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByGroupId_PrevAndNext

DDMTemplate[] filterFindByGroupId_PrevAndNext(long templateId,
                                              long groupId,
                                              OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     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
SystemException - if a system exception occurred

removeByGroupId

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

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Parameters:
groupId - the group ID
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

int filterCountByGroupId(long groupId)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByClassPK

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

Parameters:
classPK - the class p k
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByClassPK

List<DDMTemplate> findByClassPK(long classPK,
                                int start,
                                int end)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByClassPK

List<DDMTemplate> findByClassPK(long classPK,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByClassPK_First

DDMTemplate findByClassPK_First(long classPK,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       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
SystemException - if a system exception occurred

fetchByClassPK_First

DDMTemplate fetchByClassPK_First(long classPK,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByClassPK_Last

DDMTemplate findByClassPK_Last(long classPK,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      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
SystemException - if a system exception occurred

fetchByClassPK_Last

DDMTemplate fetchByClassPK_Last(long classPK,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByClassPK_PrevAndNext

DDMTemplate[] findByClassPK_PrevAndNext(long templateId,
                                        long classPK,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               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
SystemException - if a system exception occurred

removeByClassPK

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

Parameters:
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByClassPK

int countByClassPK(long classPK)
                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByTemplateKey

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

Parameters:
templateKey - the template key
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByTemplateKey

List<DDMTemplate> findByTemplateKey(String templateKey,
                                    int start,
                                    int end)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByTemplateKey

List<DDMTemplate> findByTemplateKey(String templateKey,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByTemplateKey_First

DDMTemplate findByTemplateKey_First(String templateKey,
                                    OrderByComparator orderByComparator)
                                    throws SystemException,
                                           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
SystemException - if a system exception occurred

fetchByTemplateKey_First

DDMTemplate fetchByTemplateKey_First(String templateKey,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByTemplateKey_Last

DDMTemplate findByTemplateKey_Last(String templateKey,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          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
SystemException - if a system exception occurred

fetchByTemplateKey_Last

DDMTemplate fetchByTemplateKey_Last(String templateKey,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByTemplateKey_PrevAndNext

DDMTemplate[] findByTemplateKey_PrevAndNext(long templateId,
                                            String templateKey,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   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
SystemException - if a system exception occurred

removeByTemplateKey

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

Parameters:
templateKey - the template key
Throws:
SystemException - if a system exception occurred

countByTemplateKey

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

Parameters:
templateKey - the template key
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findByType

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

Parameters:
type - the type
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByType

List<DDMTemplate> findByType(String type,
                             int start,
                             int end)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByType

List<DDMTemplate> findByType(String type,
                             int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByType_First

DDMTemplate findByType_First(String type,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByType_First

DDMTemplate fetchByType_First(String type,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByType_Last

DDMTemplate findByType_Last(String type,
                            OrderByComparator orderByComparator)
                            throws SystemException,
                                   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
SystemException - if a system exception occurred

fetchByType_Last

DDMTemplate fetchByType_Last(String type,
                             OrderByComparator orderByComparator)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByType_PrevAndNext

DDMTemplate[] findByType_PrevAndNext(long templateId,
                                     String type,
                                     OrderByComparator orderByComparator)
                                     throws SystemException,
                                            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
SystemException - if a system exception occurred

removeByType

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

Parameters:
type - the type
Throws:
SystemException - if a system exception occurred

countByType

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

Parameters:
type - the type
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findByLanguage

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

Parameters:
language - the language
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByLanguage

List<DDMTemplate> findByLanguage(String language,
                                 int start,
                                 int end)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByLanguage

List<DDMTemplate> findByLanguage(String language,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByLanguage_First

DDMTemplate findByLanguage_First(String language,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        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
SystemException - if a system exception occurred

fetchByLanguage_First

DDMTemplate fetchByLanguage_First(String language,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByLanguage_Last

DDMTemplate findByLanguage_Last(String language,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       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
SystemException - if a system exception occurred

fetchByLanguage_Last

DDMTemplate fetchByLanguage_Last(String language,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByLanguage_PrevAndNext

DDMTemplate[] findByLanguage_PrevAndNext(long templateId,
                                         String language,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                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
SystemException - if a system exception occurred

removeByLanguage

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

Parameters:
language - the language
Throws:
SystemException - if a system exception occurred

countByLanguage

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

Parameters:
language - the language
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findBySmallImageId

DDMTemplate findBySmallImageId(long smallImageId)
                               throws SystemException,
                                      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
SystemException - if a system exception occurred

fetchBySmallImageId

DDMTemplate fetchBySmallImageId(long smallImageId)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchBySmallImageId

DDMTemplate fetchBySmallImageId(long smallImageId,
                                boolean retrieveFromCache)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeBySmallImageId

DDMTemplate removeBySmallImageId(long smallImageId)
                                 throws SystemException,
                                        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:
SystemException - if a system exception occurred
NoSuchTemplateException

countBySmallImageId

int countBySmallImageId(long smallImageId)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C

List<DDMTemplate> findByG_C(long groupId,
                            long classNameId)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C

List<DDMTemplate> findByG_C(long groupId,
                            long classNameId,
                            int start,
                            int end)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C

List<DDMTemplate> findByG_C(long groupId,
                            long classNameId,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_First

DDMTemplate findByG_C_First(long groupId,
                            long classNameId,
                            OrderByComparator orderByComparator)
                            throws SystemException,
                                   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
SystemException - if a system exception occurred

fetchByG_C_First

DDMTemplate fetchByG_C_First(long groupId,
                             long classNameId,
                             OrderByComparator orderByComparator)
                             throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_Last

DDMTemplate findByG_C_Last(long groupId,
                           long classNameId,
                           OrderByComparator orderByComparator)
                           throws SystemException,
                                  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
SystemException - if a system exception occurred

fetchByG_C_Last

DDMTemplate fetchByG_C_Last(long groupId,
                            long classNameId,
                            OrderByComparator orderByComparator)
                            throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_PrevAndNext

DDMTemplate[] findByG_C_PrevAndNext(long templateId,
                                    long groupId,
                                    long classNameId,
                                    OrderByComparator orderByComparator)
                                    throws SystemException,
                                           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
SystemException - if a system exception occurred

filterFindByG_C

List<DDMTemplate> filterFindByG_C(long groupId,
                                  long classNameId)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C

List<DDMTemplate> filterFindByG_C(long groupId,
                                  long classNameId,
                                  int start,
                                  int end)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C

List<DDMTemplate> filterFindByG_C(long groupId,
                                  long classNameId,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_PrevAndNext

DDMTemplate[] filterFindByG_C_PrevAndNext(long templateId,
                                          long groupId,
                                          long classNameId,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 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
SystemException - if a system exception occurred

removeByG_C

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

Parameters:
groupId - the group ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByG_C

int countByG_C(long groupId,
               long classNameId)
               throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterCountByG_C

int filterCountByG_C(long groupId,
                     long classNameId)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK

List<DDMTemplate> findByG_CPK(long groupId,
                              long classPK)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK

List<DDMTemplate> findByG_CPK(long groupId,
                              long classPK,
                              int start,
                              int end)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK

List<DDMTemplate> findByG_CPK(long groupId,
                              long classPK,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK_First

DDMTemplate findByG_CPK_First(long groupId,
                              long classPK,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     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
SystemException - if a system exception occurred

fetchByG_CPK_First

DDMTemplate fetchByG_CPK_First(long groupId,
                               long classPK,
                               OrderByComparator orderByComparator)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK_Last

DDMTemplate findByG_CPK_Last(long groupId,
                             long classPK,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByG_CPK_Last

DDMTemplate fetchByG_CPK_Last(long groupId,
                              long classPK,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK_PrevAndNext

DDMTemplate[] findByG_CPK_PrevAndNext(long templateId,
                                      long groupId,
                                      long classPK,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             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
SystemException - if a system exception occurred

filterFindByG_CPK

List<DDMTemplate> filterFindByG_CPK(long groupId,
                                    long classPK)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_CPK

List<DDMTemplate> filterFindByG_CPK(long groupId,
                                    long classPK,
                                    int start,
                                    int end)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_CPK

List<DDMTemplate> filterFindByG_CPK(long groupId,
                                    long classPK,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_CPK_PrevAndNext

DDMTemplate[] filterFindByG_CPK_PrevAndNext(long templateId,
                                            long groupId,
                                            long classPK,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   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
SystemException - if a system exception occurred

filterFindByG_CPK

List<DDMTemplate> filterFindByG_CPK(long[] groupIds,
                                    long classPK)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_CPK

List<DDMTemplate> filterFindByG_CPK(long[] groupIds,
                                    long classPK,
                                    int start,
                                    int end)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_CPK

List<DDMTemplate> filterFindByG_CPK(long[] groupIds,
                                    long classPK,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK

List<DDMTemplate> findByG_CPK(long[] groupIds,
                              long classPK)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK

List<DDMTemplate> findByG_CPK(long[] groupIds,
                              long classPK,
                              int start,
                              int end)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_CPK

List<DDMTemplate> findByG_CPK(long[] groupIds,
                              long classPK,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeByG_CPK

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

Parameters:
groupId - the group ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByG_CPK

int countByG_CPK(long groupId,
                 long classPK)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByG_CPK

int countByG_CPK(long[] groupIds,
                 long classPK)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterCountByG_CPK

int filterCountByG_CPK(long groupId,
                       long classPK)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterCountByG_CPK

int filterCountByG_CPK(long[] groupIds,
                       long classPK)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C

List<DDMTemplate> findByG_C_C(long groupId,
                              long classNameId,
                              long classPK)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C

List<DDMTemplate> findByG_C_C(long groupId,
                              long classNameId,
                              long classPK,
                              int start,
                              int end)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C

List<DDMTemplate> findByG_C_C(long groupId,
                              long classNameId,
                              long classPK,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_First

DDMTemplate findByG_C_C_First(long groupId,
                              long classNameId,
                              long classPK,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     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
SystemException - if a system exception occurred

fetchByG_C_C_First

DDMTemplate fetchByG_C_C_First(long groupId,
                               long classNameId,
                               long classPK,
                               OrderByComparator orderByComparator)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_Last

DDMTemplate findByG_C_C_Last(long groupId,
                             long classNameId,
                             long classPK,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByG_C_C_Last

DDMTemplate fetchByG_C_C_Last(long groupId,
                              long classNameId,
                              long classPK,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_PrevAndNext

DDMTemplate[] findByG_C_C_PrevAndNext(long templateId,
                                      long groupId,
                                      long classNameId,
                                      long classPK,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             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
SystemException - if a system exception occurred

filterFindByG_C_C

List<DDMTemplate> filterFindByG_C_C(long groupId,
                                    long classNameId,
                                    long classPK)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C

List<DDMTemplate> filterFindByG_C_C(long groupId,
                                    long classNameId,
                                    long classPK,
                                    int start,
                                    int end)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C

List<DDMTemplate> filterFindByG_C_C(long groupId,
                                    long classNameId,
                                    long classPK,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                                    throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C_PrevAndNext

DDMTemplate[] filterFindByG_C_C_PrevAndNext(long templateId,
                                            long groupId,
                                            long classNameId,
                                            long classPK,
                                            OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   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
SystemException - if a system exception occurred

removeByG_C_C

void removeByG_C_C(long groupId,
                   long classNameId,
                   long classPK)
                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByG_C_C

int countByG_C_C(long groupId,
                 long classNameId,
                 long classPK)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterCountByG_C_C

int filterCountByG_C_C(long groupId,
                       long classNameId,
                       long classPK)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_T

DDMTemplate findByG_C_T(long groupId,
                        long classNameId,
                        String templateKey)
                        throws SystemException,
                               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
SystemException - if a system exception occurred

fetchByG_C_T

DDMTemplate fetchByG_C_T(long groupId,
                         long classNameId,
                         String templateKey)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

fetchByG_C_T

DDMTemplate fetchByG_C_T(long groupId,
                         long classNameId,
                         String templateKey,
                         boolean retrieveFromCache)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeByG_C_T

DDMTemplate removeByG_C_T(long groupId,
                          long classNameId,
                          String templateKey)
                          throws SystemException,
                                 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:
SystemException - if a system exception occurred
NoSuchTemplateException

countByG_C_T

int countByG_C_T(long groupId,
                 long classNameId,
                 String templateKey)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByC_C_T

List<DDMTemplate> findByC_C_T(long classNameId,
                              long classPK,
                              String type)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByC_C_T

List<DDMTemplate> findByC_C_T(long classNameId,
                              long classPK,
                              String type,
                              int start,
                              int end)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByC_C_T

List<DDMTemplate> findByC_C_T(long classNameId,
                              long classPK,
                              String type,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByC_C_T_First

DDMTemplate findByC_C_T_First(long classNameId,
                              long classPK,
                              String type,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     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
SystemException - if a system exception occurred

fetchByC_C_T_First

DDMTemplate fetchByC_C_T_First(long classNameId,
                               long classPK,
                               String type,
                               OrderByComparator orderByComparator)
                               throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByC_C_T_Last

DDMTemplate findByC_C_T_Last(long classNameId,
                             long classPK,
                             String type,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByC_C_T_Last

DDMTemplate fetchByC_C_T_Last(long classNameId,
                              long classPK,
                              String type,
                              OrderByComparator orderByComparator)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByC_C_T_PrevAndNext

DDMTemplate[] findByC_C_T_PrevAndNext(long templateId,
                                      long classNameId,
                                      long classPK,
                                      String type,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             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
SystemException - if a system exception occurred

removeByC_C_T

void removeByC_C_T(long classNameId,
                   long classPK,
                   String type)
                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByC_C_T

int countByC_C_T(long classNameId,
                 long classPK,
                 String type)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T

List<DDMTemplate> findByG_C_C_T(long groupId,
                                long classNameId,
                                long classPK,
                                String type)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T

List<DDMTemplate> findByG_C_C_T(long groupId,
                                long classNameId,
                                long classPK,
                                String type,
                                int start,
                                int end)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T

List<DDMTemplate> findByG_C_C_T(long groupId,
                                long classNameId,
                                long classPK,
                                String type,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_First

DDMTemplate findByG_C_C_T_First(long groupId,
                                long classNameId,
                                long classPK,
                                String type,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       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
SystemException - if a system exception occurred

fetchByG_C_C_T_First

DDMTemplate fetchByG_C_C_T_First(long groupId,
                                 long classNameId,
                                 long classPK,
                                 String type,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_Last

DDMTemplate findByG_C_C_T_Last(long groupId,
                               long classNameId,
                               long classPK,
                               String type,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      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
SystemException - if a system exception occurred

fetchByG_C_C_T_Last

DDMTemplate fetchByG_C_C_T_Last(long groupId,
                                long classNameId,
                                long classPK,
                                String type,
                                OrderByComparator orderByComparator)
                                throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_PrevAndNext

DDMTemplate[] findByG_C_C_T_PrevAndNext(long templateId,
                                        long groupId,
                                        long classNameId,
                                        long classPK,
                                        String type,
                                        OrderByComparator orderByComparator)
                                        throws SystemException,
                                               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
SystemException - if a system exception occurred

filterFindByG_C_C_T

List<DDMTemplate> filterFindByG_C_C_T(long groupId,
                                      long classNameId,
                                      long classPK,
                                      String type)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C_T

List<DDMTemplate> filterFindByG_C_C_T(long groupId,
                                      long classNameId,
                                      long classPK,
                                      String type,
                                      int start,
                                      int end)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C_T

List<DDMTemplate> filterFindByG_C_C_T(long groupId,
                                      long classNameId,
                                      long classPK,
                                      String type,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C_T_PrevAndNext

DDMTemplate[] filterFindByG_C_C_T_PrevAndNext(long templateId,
                                              long groupId,
                                              long classNameId,
                                              long classPK,
                                              String type,
                                              OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     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
SystemException - if a system exception occurred

removeByG_C_C_T

void removeByG_C_C_T(long groupId,
                     long classNameId,
                     long classPK,
                     String type)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByG_C_C_T

int countByG_C_C_T(long groupId,
                   long classNameId,
                   long classPK,
                   String type)
                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterCountByG_C_C_T

int filterCountByG_C_C_T(long groupId,
                         long classNameId,
                         long classPK,
                         String type)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_M

List<DDMTemplate> findByG_C_C_T_M(long groupId,
                                  long classNameId,
                                  long classPK,
                                  String type,
                                  String mode)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_M

List<DDMTemplate> findByG_C_C_T_M(long groupId,
                                  long classNameId,
                                  long classPK,
                                  String type,
                                  String mode,
                                  int start,
                                  int end)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_M

List<DDMTemplate> findByG_C_C_T_M(long groupId,
                                  long classNameId,
                                  long classPK,
                                  String type,
                                  String mode,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_M_First

DDMTemplate findByG_C_C_T_M_First(long groupId,
                                  long classNameId,
                                  long classPK,
                                  String type,
                                  String mode,
                                  OrderByComparator orderByComparator)
                                  throws SystemException,
                                         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
SystemException - if a system exception occurred

fetchByG_C_C_T_M_First

DDMTemplate fetchByG_C_C_T_M_First(long groupId,
                                   long classNameId,
                                   long classPK,
                                   String type,
                                   String mode,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_M_Last

DDMTemplate findByG_C_C_T_M_Last(long groupId,
                                 long classNameId,
                                 long classPK,
                                 String type,
                                 String mode,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        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
SystemException - if a system exception occurred

fetchByG_C_C_T_M_Last

DDMTemplate fetchByG_C_C_T_M_Last(long groupId,
                                  long classNameId,
                                  long classPK,
                                  String type,
                                  String mode,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByG_C_C_T_M_PrevAndNext

DDMTemplate[] findByG_C_C_T_M_PrevAndNext(long templateId,
                                          long groupId,
                                          long classNameId,
                                          long classPK,
                                          String type,
                                          String mode,
                                          OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 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
SystemException - if a system exception occurred

filterFindByG_C_C_T_M

List<DDMTemplate> filterFindByG_C_C_T_M(long groupId,
                                        long classNameId,
                                        long classPK,
                                        String type,
                                        String mode)
                                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C_T_M

List<DDMTemplate> filterFindByG_C_C_T_M(long groupId,
                                        long classNameId,
                                        long classPK,
                                        String type,
                                        String mode,
                                        int start,
                                        int end)
                                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C_T_M

List<DDMTemplate> filterFindByG_C_C_T_M(long groupId,
                                        long classNameId,
                                        long classPK,
                                        String type,
                                        String mode,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByG_C_C_T_M_PrevAndNext

DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext(long templateId,
                                                long groupId,
                                                long classNameId,
                                                long classPK,
                                                String type,
                                                String mode,
                                                OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       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
SystemException - if a system exception occurred

removeByG_C_C_T_M

void removeByG_C_C_T_M(long groupId,
                       long classNameId,
                       long classPK,
                       String type,
                       String mode)
                       throws SystemException
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
Throws:
SystemException - if a system exception occurred

countByG_C_C_T_M

int countByG_C_C_T_M(long groupId,
                     long classNameId,
                     long classPK,
                     String type,
                     String mode)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterCountByG_C_C_T_M

int filterCountByG_C_C_T_M(long groupId,
                           long classNameId,
                           long classPK,
                           String type,
                           String mode)
                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

cacheResult

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

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

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

DDMTemplate remove(long templateId)
                   throws SystemException,
                          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
SystemException - if a system exception occurred

updateImpl

DDMTemplate updateImpl(DDMTemplate ddmTemplate)
                       throws SystemException
Throws:
SystemException

findByPrimaryKey

DDMTemplate findByPrimaryKey(long templateId)
                             throws SystemException,
                                    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
SystemException - if a system exception occurred

fetchByPrimaryKey

DDMTemplate fetchByPrimaryKey(long templateId)
                              throws SystemException
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
Throws:
SystemException - if a system exception occurred

findAll

List<DDMTemplate> findAll()
                          throws SystemException
Returns all the d d m templates.

Returns:
the d d m templates
Throws:
SystemException - if a system exception occurred

findAll

List<DDMTemplate> findAll(int start,
                          int end)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

findAll

List<DDMTemplate> findAll(int start,
                          int end,
                          OrderByComparator orderByComparator)
                          throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the d d m templates from the database.

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of d d m templates.

Returns:
the number of d d m templates
Throws:
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5