Liferay 6.2-ce-ga5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDMTemplate>
      extended by com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<DDMTemplate>, DDMTemplatePersistence

public class DDMTemplatePersistenceImpl
extends BasePersistenceImpl<DDMTemplate>
implements DDMTemplatePersistence

The persistence implementation for the d d m template service.

Caching information and settings can be found in portal.properties

See Also:
DDMTemplatePersistence, DDMTemplateUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_C_T
           
static FinderPath FINDER_PATH_COUNT_BY_CLASSPK
           
static FinderPath FINDER_PATH_COUNT_BY_G_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_C_T
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_C_T_M
           
static FinderPath FINDER_PATH_COUNT_BY_G_C_T
           
static FinderPath FINDER_PATH_COUNT_BY_G_CPK
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_LANGUAGE
           
static FinderPath FINDER_PATH_COUNT_BY_SMALLIMAGEID
           
static FinderPath FINDER_PATH_COUNT_BY_TEMPLATEKEY
           
static FinderPath FINDER_PATH_COUNT_BY_TYPE
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_G_C_T
           
static FinderPath FINDER_PATH_FETCH_BY_SMALLIMAGEID
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_CPK
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSPK
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T_M
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_CPK
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LANGUAGE
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEKEY
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSPK
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T_M
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_CPK
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LANGUAGE
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEKEY
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
DDMTemplatePersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d d m template persistence.
 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.
protected  void cacheUniqueFindersCache(DDMTemplate ddmTemplate)
           
 void clearCache()
          Clears the cache for all d d m templates.
 void clearCache(DDMTemplate ddmTemplate)
          Clears the cache for the d d m template.
 void clearCache(List<DDMTemplate> ddmTemplates)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DDMTemplate ddmTemplate)
           
 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.
 void destroy()
           
 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 fetchByPrimaryKey(Serializable primaryKey)
          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 = ?.
protected  DDMTemplate filterGetByG_C_C_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classNameId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate filterGetByG_C_C_T_M_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate filterGetByG_C_C_T_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classNameId, long classPK, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate filterGetByG_C_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classNameId, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate filterGetByG_CPK_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate filterGetByGroupId_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 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 findByPrimaryKey(Serializable primaryKey)
          Returns the d d m template with the primary key or throws a NoSuchModelException 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 = ?.
protected  Set<String> getBadColumnNames()
           
protected  DDMTemplate getByC_C_T_PrevAndNext(Session session, DDMTemplate ddmTemplate, long classNameId, long classPK, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByClassPK_PrevAndNext(Session session, DDMTemplate ddmTemplate, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByG_C_C_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classNameId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByG_C_C_T_M_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classNameId, long classPK, String type, String mode, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByG_C_C_T_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classNameId, long classPK, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByG_C_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classNameId, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByG_CPK_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, long classPK, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByGroupId_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByLanguage_PrevAndNext(Session session, DDMTemplate ddmTemplate, String language, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByTemplateKey_PrevAndNext(Session session, DDMTemplate ddmTemplate, String templateKey, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByType_PrevAndNext(Session session, DDMTemplate ddmTemplate, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByUuid_C_PrevAndNext(Session session, DDMTemplate ddmTemplate, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByUuid_PrevAndNext(Session session, DDMTemplate ddmTemplate, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 DDMTemplate remove(long templateId)
          Removes the d d m template with the primary key from the database.
 DDMTemplate remove(Serializable primaryKey)
          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.
protected  DDMTemplate removeImpl(DDMTemplate ddmTemplate)
          Removes the model instance from the database.
protected  DDMTemplate toUnwrappedModel(DDMTemplate ddmTemplate)
           
 DDMTemplate updateImpl(DDMTemplate ddmTemplate)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSPK

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CLASSPK

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSPK

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CLASSPK

FINDER_PATH_COUNT_BY_CLASSPK

public static final FinderPath FINDER_PATH_COUNT_BY_CLASSPK

FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEKEY

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEKEY

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEKEY

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEKEY

FINDER_PATH_COUNT_BY_TEMPLATEKEY

public static final FinderPath FINDER_PATH_COUNT_BY_TEMPLATEKEY

FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE

FINDER_PATH_COUNT_BY_TYPE

public static final FinderPath FINDER_PATH_COUNT_BY_TYPE

FINDER_PATH_WITH_PAGINATION_FIND_BY_LANGUAGE

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LANGUAGE

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LANGUAGE

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LANGUAGE

FINDER_PATH_COUNT_BY_LANGUAGE

public static final FinderPath FINDER_PATH_COUNT_BY_LANGUAGE

FINDER_PATH_FETCH_BY_SMALLIMAGEID

public static final FinderPath FINDER_PATH_FETCH_BY_SMALLIMAGEID

FINDER_PATH_COUNT_BY_SMALLIMAGEID

public static final FinderPath FINDER_PATH_COUNT_BY_SMALLIMAGEID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

FINDER_PATH_COUNT_BY_G_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_CPK

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_CPK

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_CPK

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_CPK

FINDER_PATH_COUNT_BY_G_CPK

public static final FinderPath FINDER_PATH_COUNT_BY_G_CPK

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_CPK

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_CPK

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C

FINDER_PATH_COUNT_BY_G_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_C

FINDER_PATH_FETCH_BY_G_C_T

public static final FinderPath FINDER_PATH_FETCH_BY_G_C_T

FINDER_PATH_COUNT_BY_G_C_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_C_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_C_T

FINDER_PATH_COUNT_BY_C_C_T

public static final FinderPath FINDER_PATH_COUNT_BY_C_C_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T

FINDER_PATH_COUNT_BY_G_C_C_T

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_C_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T_M

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C_C_T_M

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T_M

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C_C_T_M

FINDER_PATH_COUNT_BY_G_C_C_T_M

public static final FinderPath FINDER_PATH_COUNT_BY_G_C_C_T_M
Constructor Detail

DDMTemplatePersistenceImpl

public DDMTemplatePersistenceImpl()
Method Detail

findByUuid

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

Specified by:
findByUuid in interface DDMTemplatePersistence
Parameters:
uuid - the uuid
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByUuid

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

Specified by:
findByUuid in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid_First in interface DDMTemplatePersistence
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

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

Specified by:
fetchByUuid_First in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid_Last in interface DDMTemplatePersistence
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

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

Specified by:
fetchByUuid_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid_PrevAndNext in interface DDMTemplatePersistence
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

getByUuid_PrevAndNext

protected DDMTemplate getByUuid_PrevAndNext(Session session,
                                            DDMTemplate ddmTemplate,
                                            String uuid,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

removeByUuid

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

Specified by:
removeByUuid in interface DDMTemplatePersistence
Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

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

Specified by:
countByUuid in interface DDMTemplatePersistence
Parameters:
uuid - the uuid
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findByUUID_G

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

Specified by:
findByUUID_G in interface DDMTemplatePersistence
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

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

Specified by:
fetchByUUID_G in interface DDMTemplatePersistence
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

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

Specified by:
fetchByUUID_G in interface DDMTemplatePersistence
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

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

Specified by:
removeByUUID_G in interface DDMTemplatePersistence
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

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

Specified by:
countByUUID_G in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid_C in interface DDMTemplatePersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByUuid_C

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

Specified by:
findByUuid_C in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid_C in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid_C_First in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByUuid_C_First in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid_C_Last in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByUuid_C_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByUuid_C_PrevAndNext in interface DDMTemplatePersistence
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

getByUuid_C_PrevAndNext

protected DDMTemplate getByUuid_C_PrevAndNext(Session session,
                                              DDMTemplate ddmTemplate,
                                              String uuid,
                                              long companyId,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

removeByUuid_C

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

Specified by:
removeByUuid_C in interface DDMTemplatePersistence
Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

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

Specified by:
countByUuid_C in interface DDMTemplatePersistence
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

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

Specified by:
findByGroupId in interface DDMTemplatePersistence
Parameters:
groupId - the group ID
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByGroupId

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

Specified by:
findByGroupId in interface DDMTemplatePersistence
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

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

Specified by:
findByGroupId in interface DDMTemplatePersistence
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

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

Specified by:
findByGroupId_First in interface DDMTemplatePersistence
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

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

Specified by:
fetchByGroupId_First in interface DDMTemplatePersistence
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

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

Specified by:
findByGroupId_Last in interface DDMTemplatePersistence
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

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

Specified by:
fetchByGroupId_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByGroupId_PrevAndNext in interface DDMTemplatePersistence
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

getByGroupId_PrevAndNext

protected DDMTemplate getByGroupId_PrevAndNext(Session session,
                                               DDMTemplate ddmTemplate,
                                               long groupId,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

filterFindByGroupId

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

Specified by:
filterFindByGroupId in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByGroupId in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByGroupId in interface DDMTemplatePersistence
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

public DDMTemplate[] filterFindByGroupId_PrevAndNext(long templateId,
                                                     long groupId,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchTemplateException,
                                                     SystemException
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 = ?.

Specified by:
filterFindByGroupId_PrevAndNext in interface DDMTemplatePersistence
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

filterGetByGroupId_PrevAndNext

protected DDMTemplate filterGetByGroupId_PrevAndNext(Session session,
                                                     DDMTemplate ddmTemplate,
                                                     long groupId,
                                                     OrderByComparator orderByComparator,
                                                     boolean previous)

removeByGroupId

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

Specified by:
removeByGroupId in interface DDMTemplatePersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface DDMTemplatePersistence
Parameters:
groupId - the group ID
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

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

Specified by:
filterCountByGroupId in interface DDMTemplatePersistence
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

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

Specified by:
findByClassPK in interface DDMTemplatePersistence
Parameters:
classPK - the class p k
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByClassPK

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

Specified by:
findByClassPK in interface DDMTemplatePersistence
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

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

Specified by:
findByClassPK in interface DDMTemplatePersistence
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

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

Specified by:
findByClassPK_First in interface DDMTemplatePersistence
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

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

Specified by:
fetchByClassPK_First in interface DDMTemplatePersistence
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

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

Specified by:
findByClassPK_Last in interface DDMTemplatePersistence
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

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

Specified by:
fetchByClassPK_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByClassPK_PrevAndNext in interface DDMTemplatePersistence
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

getByClassPK_PrevAndNext

protected DDMTemplate getByClassPK_PrevAndNext(Session session,
                                               DDMTemplate ddmTemplate,
                                               long classPK,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

removeByClassPK

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

Specified by:
removeByClassPK in interface DDMTemplatePersistence
Parameters:
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByClassPK

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

Specified by:
countByClassPK in interface DDMTemplatePersistence
Parameters:
classPK - the class p k
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findByTemplateKey

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

Specified by:
findByTemplateKey in interface DDMTemplatePersistence
Parameters:
templateKey - the template key
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByTemplateKey

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

Specified by:
findByTemplateKey in interface DDMTemplatePersistence
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

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

Specified by:
findByTemplateKey in interface DDMTemplatePersistence
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

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

Specified by:
findByTemplateKey_First in interface DDMTemplatePersistence
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

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

Specified by:
fetchByTemplateKey_First in interface DDMTemplatePersistence
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

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

Specified by:
findByTemplateKey_Last in interface DDMTemplatePersistence
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

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

Specified by:
fetchByTemplateKey_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByTemplateKey_PrevAndNext in interface DDMTemplatePersistence
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

getByTemplateKey_PrevAndNext

protected DDMTemplate getByTemplateKey_PrevAndNext(Session session,
                                                   DDMTemplate ddmTemplate,
                                                   String templateKey,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

removeByTemplateKey

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

Specified by:
removeByTemplateKey in interface DDMTemplatePersistence
Parameters:
templateKey - the template key
Throws:
SystemException - if a system exception occurred

countByTemplateKey

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

Specified by:
countByTemplateKey in interface DDMTemplatePersistence
Parameters:
templateKey - the template key
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findByType

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

Specified by:
findByType in interface DDMTemplatePersistence
Parameters:
type - the type
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByType

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

Specified by:
findByType in interface DDMTemplatePersistence
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

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

Specified by:
findByType in interface DDMTemplatePersistence
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

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

Specified by:
findByType_First in interface DDMTemplatePersistence
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

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

Specified by:
fetchByType_First in interface DDMTemplatePersistence
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

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

Specified by:
findByType_Last in interface DDMTemplatePersistence
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

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

Specified by:
fetchByType_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByType_PrevAndNext in interface DDMTemplatePersistence
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

getByType_PrevAndNext

protected DDMTemplate getByType_PrevAndNext(Session session,
                                            DDMTemplate ddmTemplate,
                                            String type,
                                            OrderByComparator orderByComparator,
                                            boolean previous)

removeByType

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

Specified by:
removeByType in interface DDMTemplatePersistence
Parameters:
type - the type
Throws:
SystemException - if a system exception occurred

countByType

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

Specified by:
countByType in interface DDMTemplatePersistence
Parameters:
type - the type
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findByLanguage

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

Specified by:
findByLanguage in interface DDMTemplatePersistence
Parameters:
language - the language
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByLanguage

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

Specified by:
findByLanguage in interface DDMTemplatePersistence
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

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

Specified by:
findByLanguage in interface DDMTemplatePersistence
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

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

Specified by:
findByLanguage_First in interface DDMTemplatePersistence
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

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

Specified by:
fetchByLanguage_First in interface DDMTemplatePersistence
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

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

Specified by:
findByLanguage_Last in interface DDMTemplatePersistence
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

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

Specified by:
fetchByLanguage_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByLanguage_PrevAndNext in interface DDMTemplatePersistence
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

getByLanguage_PrevAndNext

protected DDMTemplate getByLanguage_PrevAndNext(Session session,
                                                DDMTemplate ddmTemplate,
                                                String language,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

removeByLanguage

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

Specified by:
removeByLanguage in interface DDMTemplatePersistence
Parameters:
language - the language
Throws:
SystemException - if a system exception occurred

countByLanguage

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

Specified by:
countByLanguage in interface DDMTemplatePersistence
Parameters:
language - the language
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findBySmallImageId

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

Specified by:
findBySmallImageId in interface DDMTemplatePersistence
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

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

Specified by:
fetchBySmallImageId in interface DDMTemplatePersistence
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

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

Specified by:
fetchBySmallImageId in interface DDMTemplatePersistence
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

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

Specified by:
removeBySmallImageId in interface DDMTemplatePersistence
Parameters:
smallImageId - the small image ID
Returns:
the d d m template that was removed
Throws:
SystemException - if a system exception occurred
NoSuchTemplateException

countBySmallImageId

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

Specified by:
countBySmallImageId in interface DDMTemplatePersistence
Parameters:
smallImageId - the small image ID
Returns:
the number of matching d d m templates
Throws:
SystemException - if a system exception occurred

findByG_C

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

Specified by:
findByG_C in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_First in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_C_First in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_Last in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_C_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_PrevAndNext in interface DDMTemplatePersistence
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

getByG_C_PrevAndNext

protected DDMTemplate getByG_C_PrevAndNext(Session session,
                                           DDMTemplate ddmTemplate,
                                           long groupId,
                                           long classNameId,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

filterFindByG_C

public 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 = ?.

Specified by:
filterFindByG_C in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_C in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_C in interface DDMTemplatePersistence
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

public DDMTemplate[] filterFindByG_C_PrevAndNext(long templateId,
                                                 long groupId,
                                                 long classNameId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchTemplateException,
                                                 SystemException
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 = ?.

Specified by:
filterFindByG_C_PrevAndNext in interface DDMTemplatePersistence
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

filterGetByG_C_PrevAndNext

protected DDMTemplate filterGetByG_C_PrevAndNext(Session session,
                                                 DDMTemplate ddmTemplate,
                                                 long groupId,
                                                 long classNameId,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

removeByG_C

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

Specified by:
removeByG_C in interface DDMTemplatePersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByG_C

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

Specified by:
countByG_C in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
filterCountByG_C in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK_First in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_CPK_First in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK_Last in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_CPK_Last in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK_PrevAndNext in interface DDMTemplatePersistence
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

getByG_CPK_PrevAndNext

protected DDMTemplate getByG_CPK_PrevAndNext(Session session,
                                             DDMTemplate ddmTemplate,
                                             long groupId,
                                             long classPK,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

filterFindByG_CPK

public 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 = ?.

Specified by:
filterFindByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_CPK in interface DDMTemplatePersistence
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

public DDMTemplate[] filterFindByG_CPK_PrevAndNext(long templateId,
                                                   long groupId,
                                                   long classPK,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchTemplateException,
                                                   SystemException
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 = ?.

Specified by:
filterFindByG_CPK_PrevAndNext in interface DDMTemplatePersistence
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

filterGetByG_CPK_PrevAndNext

protected DDMTemplate filterGetByG_CPK_PrevAndNext(Session session,
                                                   DDMTemplate ddmTemplate,
                                                   long groupId,
                                                   long classPK,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

filterFindByG_CPK

public 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 = ?.

Specified by:
filterFindByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
findByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
removeByG_CPK in interface DDMTemplatePersistence
Parameters:
groupId - the group ID
classPK - the class p k
Throws:
SystemException - if a system exception occurred

countByG_CPK

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

Specified by:
countByG_CPK in interface DDMTemplatePersistence
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

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

Specified by:
countByG_CPK in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
filterCountByG_CPK in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
filterCountByG_CPK in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
findByG_C_C in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_First in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_C_C_First in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_Last in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_C_C_Last in interface DDMTemplatePersistence
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

public DDMTemplate[] findByG_C_C_PrevAndNext(long templateId,
                                             long groupId,
                                             long classNameId,
                                             long classPK,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchTemplateException,
                                             SystemException
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 = ?.

Specified by:
findByG_C_C_PrevAndNext in interface DDMTemplatePersistence
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

getByG_C_C_PrevAndNext

protected DDMTemplate getByG_C_C_PrevAndNext(Session session,
                                             DDMTemplate ddmTemplate,
                                             long groupId,
                                             long classNameId,
                                             long classPK,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

filterFindByG_C_C

public 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 = ?.

Specified by:
filterFindByG_C_C in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_C_C in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_C_C in interface DDMTemplatePersistence
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

public DDMTemplate[] filterFindByG_C_C_PrevAndNext(long templateId,
                                                   long groupId,
                                                   long classNameId,
                                                   long classPK,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchTemplateException,
                                                   SystemException
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 = ?.

Specified by:
filterFindByG_C_C_PrevAndNext in interface DDMTemplatePersistence
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

filterGetByG_C_C_PrevAndNext

protected DDMTemplate filterGetByG_C_C_PrevAndNext(Session session,
                                                   DDMTemplate ddmTemplate,
                                                   long groupId,
                                                   long classNameId,
                                                   long classPK,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

removeByG_C_C

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

Specified by:
removeByG_C_C in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
countByG_C_C in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
filterCountByG_C_C in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_T in interface DDMTemplatePersistence
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

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

Specified by:
fetchByG_C_T in interface DDMTemplatePersistence
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

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

Specified by:
fetchByG_C_T in interface DDMTemplatePersistence
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

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

Specified by:
removeByG_C_T in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
countByG_C_T in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
findByC_C_T in interface DDMTemplatePersistence
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

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

Specified by:
findByC_C_T in interface DDMTemplatePersistence
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

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

Specified by:
findByC_C_T in interface DDMTemplatePersistence
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

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

Specified by:
findByC_C_T_First in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByC_C_T_First in interface DDMTemplatePersistence
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

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

Specified by:
findByC_C_T_Last in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByC_C_T_Last in interface DDMTemplatePersistence
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

public DDMTemplate[] findByC_C_T_PrevAndNext(long templateId,
                                             long classNameId,
                                             long classPK,
                                             String type,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchTemplateException,
                                             SystemException
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 = ?.

Specified by:
findByC_C_T_PrevAndNext in interface DDMTemplatePersistence
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

getByC_C_T_PrevAndNext

protected DDMTemplate getByC_C_T_PrevAndNext(Session session,
                                             DDMTemplate ddmTemplate,
                                             long classNameId,
                                             long classPK,
                                             String type,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

removeByC_C_T

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

Specified by:
removeByC_C_T in interface DDMTemplatePersistence
Parameters:
classNameId - the class name ID
classPK - the class p k
type - the type
Throws:
SystemException - if a system exception occurred

countByC_C_T

public 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 = ?.

Specified by:
countByC_C_T in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
findByG_C_C_T in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_T in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_T in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_T_First in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_C_C_T_First in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_T_Last in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_C_C_T_Last in interface DDMTemplatePersistence
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

public DDMTemplate[] findByG_C_C_T_PrevAndNext(long templateId,
                                               long groupId,
                                               long classNameId,
                                               long classPK,
                                               String type,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchTemplateException,
                                               SystemException
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 = ?.

Specified by:
findByG_C_C_T_PrevAndNext in interface DDMTemplatePersistence
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

getByG_C_C_T_PrevAndNext

protected DDMTemplate getByG_C_C_T_PrevAndNext(Session session,
                                               DDMTemplate ddmTemplate,
                                               long groupId,
                                               long classNameId,
                                               long classPK,
                                               String type,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

filterFindByG_C_C_T

public 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 = ?.

Specified by:
filterFindByG_C_C_T in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_C_C_T in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_C_C_T in interface DDMTemplatePersistence
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

public DDMTemplate[] filterFindByG_C_C_T_PrevAndNext(long templateId,
                                                     long groupId,
                                                     long classNameId,
                                                     long classPK,
                                                     String type,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchTemplateException,
                                                     SystemException
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 = ?.

Specified by:
filterFindByG_C_C_T_PrevAndNext in interface DDMTemplatePersistence
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

filterGetByG_C_C_T_PrevAndNext

protected DDMTemplate filterGetByG_C_C_T_PrevAndNext(Session session,
                                                     DDMTemplate ddmTemplate,
                                                     long groupId,
                                                     long classNameId,
                                                     long classPK,
                                                     String type,
                                                     OrderByComparator orderByComparator,
                                                     boolean previous)

removeByG_C_C_T

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

Specified by:
removeByG_C_C_T in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
countByG_C_C_T in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
filterCountByG_C_C_T in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
findByG_C_C_T_M in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_T_M in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_T_M in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_T_M_First in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_C_C_T_M_First in interface DDMTemplatePersistence
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

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

Specified by:
findByG_C_C_T_M_Last in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
fetchByG_C_C_T_M_Last in interface DDMTemplatePersistence
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

public DDMTemplate[] findByG_C_C_T_M_PrevAndNext(long templateId,
                                                 long groupId,
                                                 long classNameId,
                                                 long classPK,
                                                 String type,
                                                 String mode,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchTemplateException,
                                                 SystemException
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 = ?.

Specified by:
findByG_C_C_T_M_PrevAndNext in interface DDMTemplatePersistence
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

getByG_C_C_T_M_PrevAndNext

protected DDMTemplate getByG_C_C_T_M_PrevAndNext(Session session,
                                                 DDMTemplate ddmTemplate,
                                                 long groupId,
                                                 long classNameId,
                                                 long classPK,
                                                 String type,
                                                 String mode,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

filterFindByG_C_C_T_M

public 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 = ?.

Specified by:
filterFindByG_C_C_T_M in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_C_C_T_M in interface DDMTemplatePersistence
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

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

Specified by:
filterFindByG_C_C_T_M in interface DDMTemplatePersistence
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

public DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext(long templateId,
                                                       long groupId,
                                                       long classNameId,
                                                       long classPK,
                                                       String type,
                                                       String mode,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchTemplateException,
                                                       SystemException
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 = ?.

Specified by:
filterFindByG_C_C_T_M_PrevAndNext in interface DDMTemplatePersistence
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

filterGetByG_C_C_T_M_PrevAndNext

protected DDMTemplate filterGetByG_C_C_T_M_PrevAndNext(Session session,
                                                       DDMTemplate ddmTemplate,
                                                       long groupId,
                                                       long classNameId,
                                                       long classPK,
                                                       String type,
                                                       String mode,
                                                       OrderByComparator orderByComparator,
                                                       boolean previous)

removeByG_C_C_T_M

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

Specified by:
removeByG_C_C_T_M in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
countByG_C_C_T_M in interface DDMTemplatePersistence
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

public 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 = ?.

Specified by:
filterCountByG_C_C_T_M in interface DDMTemplatePersistence
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

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

Specified by:
cacheResult in interface DDMTemplatePersistence
Parameters:
ddmTemplate - the d d m template

cacheResult

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

Specified by:
cacheResult in interface DDMTemplatePersistence
Parameters:
ddmTemplates - the d d m templates

clearCache

public void clearCache()
Clears the cache for all d d m templates.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DDMTemplate>
Overrides:
clearCache in class BasePersistenceImpl<DDMTemplate>

clearCache

public void clearCache(DDMTemplate ddmTemplate)
Clears the cache for the d d m template.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DDMTemplate>
Overrides:
clearCache in class BasePersistenceImpl<DDMTemplate>
Parameters:
ddmTemplate - the instance of this model to clear the cache for

clearCache

public void clearCache(List<DDMTemplate> ddmTemplates)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DDMTemplate>
Overrides:
clearCache in class BasePersistenceImpl<DDMTemplate>
Parameters:
ddmTemplates - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DDMTemplate ddmTemplate)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DDMTemplate ddmTemplate)

create

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

Specified by:
create in interface DDMTemplatePersistence
Parameters:
templateId - the primary key for the new d d m template
Returns:
the new d d m template

remove

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

Specified by:
remove in interface DDMTemplatePersistence
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

remove

public DDMTemplate remove(Serializable primaryKey)
                   throws NoSuchTemplateException,
                          SystemException
Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DDMTemplate>
Overrides:
remove in class BasePersistenceImpl<DDMTemplate>
Parameters:
primaryKey - 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

removeImpl

protected DDMTemplate removeImpl(DDMTemplate ddmTemplate)
                          throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<DDMTemplate>
Parameters:
ddmTemplate - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public DDMTemplate updateImpl(DDMTemplate ddmTemplate)
                       throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface DDMTemplatePersistence
Overrides:
updateImpl in class BasePersistenceImpl<DDMTemplate>
Parameters:
ddmTemplate - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected DDMTemplate toUnwrappedModel(DDMTemplate ddmTemplate)

findByPrimaryKey

public DDMTemplate findByPrimaryKey(Serializable primaryKey)
                             throws NoSuchTemplateException,
                                    SystemException
Returns the d d m template with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<DDMTemplate>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DDMTemplate>
Parameters:
primaryKey - 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

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface DDMTemplatePersistence
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

public DDMTemplate fetchByPrimaryKey(Serializable primaryKey)
                              throws SystemException
Returns the d d m template with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<DDMTemplate>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<DDMTemplate>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface DDMTemplatePersistence
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

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

Specified by:
findAll in interface DDMTemplatePersistence
Returns:
the d d m templates
Throws:
SystemException - if a system exception occurred

findAll

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

Specified by:
findAll in interface DDMTemplatePersistence
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

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

Specified by:
findAll in interface DDMTemplatePersistence
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

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

Specified by:
removeAll in interface DDMTemplatePersistence
Throws:
SystemException - if a system exception occurred

countAll

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

Specified by:
countAll in interface DDMTemplatePersistence
Returns:
the number of d d m templates
Throws:
SystemException - if a system exception occurred

getBadColumnNames

protected Set<String> getBadColumnNames()
Overrides:
getBadColumnNames in class BasePersistenceImpl<DDMTemplate>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the d d m template persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5