Liferay 6.1.2-ce-ga3

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

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

public class DDMTemplateUtil
extends Object

The persistence utility for the d d m template service. This utility wraps DDMTemplatePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
DDMTemplatePersistence, DDMTemplatePersistenceImpl

Constructor Summary
DDMTemplateUtil()
           
 
Method Summary
static void cacheResult(DDMTemplate ddmTemplate)
          Caches the d d m template in the entity cache if it is enabled.
static void cacheResult(List<DDMTemplate> ddmTemplates)
          Caches the d d m templates in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DDMTemplate ddmTemplate)
           
static int countAll()
          Returns the number of d d m templates.
static int countByGroupId(long groupId)
          Returns the number of d d m templates where groupId = ?.
static int countByLanguage(String language)
          Returns the number of d d m templates where language = ?.
static int countByS_T_M(long structureId, String type, String mode)
          Returns the number of d d m templates where structureId = ? and type = ? and mode = ?.
static int countByS_T(long structureId, String type)
          Returns the number of d d m templates where structureId = ? and type = ?.
static int countByStructureId(long structureId)
          Returns the number of d d m templates where structureId = ?.
static int countByType(String type)
          Returns the number of d d m templates where type = ?.
static int countByUUID_G(String uuid, long groupId)
          Returns the number of d d m templates where uuid = ? and groupId = ?.
static int countByUuid(String uuid)
          Returns the number of d d m templates where uuid = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DDMTemplate create(long templateId)
          Creates a new d d m template with the primary key.
static DDMTemplate fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ?.
static DDMTemplate fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ?.
static DDMTemplate fetchByLanguage_First(String language, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where language = ?.
static DDMTemplate fetchByLanguage_Last(String language, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where language = ?.
static DDMTemplate fetchByPrimaryKey(long templateId)
          Returns the d d m template with the primary key or returns null if it could not be found.
static DDMTemplate fetchByS_T_First(long structureId, String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ? and type = ?.
static DDMTemplate fetchByS_T_Last(long structureId, String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where structureId = ? and type = ?.
static DDMTemplate fetchByS_T_M_First(long structureId, String type, String mode, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ? and type = ? and mode = ?.
static DDMTemplate fetchByS_T_M_Last(long structureId, String type, String mode, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where structureId = ? and type = ? and mode = ?.
static DDMTemplate fetchByStructureId_First(long structureId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ?.
static DDMTemplate fetchByStructureId_Last(long structureId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where structureId = ?.
static DDMTemplate fetchByType_First(String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where type = ?.
static DDMTemplate fetchByType_Last(String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where type = ?.
static DDMTemplate fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ?.
static DDMTemplate fetchByUUID_G(String uuid, long groupId)
          Returns the d d m template where uuid = ? and groupId = ? or returns null if it could not be found.
static DDMTemplate fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the d d m template where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
static DDMTemplate fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ?.
static int filterCountByGroupId(long groupId)
          Returns the number of d d m templates that the user has permission to view where groupId = ?.
static 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 = ?.
static List<DDMTemplate> filterFindByGroupId(long groupId)
          Returns all the d d m templates that the user has permission to view where groupId = ?.
static List<DDMTemplate> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the d d m templates that the user has permission to view where groupId = ?.
static List<DDMTemplate> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = ?.
static List<DDMTemplate> findAll()
          Returns all the d d m templates.
static List<DDMTemplate> findAll(int start, int end)
          Returns a range of all the d d m templates.
static List<DDMTemplate> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates.
static DDMTemplate findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where groupId = ?.
static DDMTemplate findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where groupId = ?.
static 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 = ?.
static List<DDMTemplate> findByGroupId(long groupId)
          Returns all the d d m templates where groupId = ?.
static List<DDMTemplate> findByGroupId(long groupId, int start, int end)
          Returns a range of all the d d m templates where groupId = ?.
static List<DDMTemplate> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where groupId = ?.
static DDMTemplate findByLanguage_First(String language, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where language = ?.
static DDMTemplate findByLanguage_Last(String language, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where language = ?.
static 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 = ?.
static List<DDMTemplate> findByLanguage(String language)
          Returns all the d d m templates where language = ?.
static List<DDMTemplate> findByLanguage(String language, int start, int end)
          Returns a range of all the d d m templates where language = ?.
static List<DDMTemplate> findByLanguage(String language, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where language = ?.
static DDMTemplate findByPrimaryKey(long templateId)
          Returns the d d m template with the primary key or throws a NoSuchTemplateException if it could not be found.
static DDMTemplate findByS_T_First(long structureId, String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ? and type = ?.
static DDMTemplate findByS_T_Last(long structureId, String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where structureId = ? and type = ?.
static DDMTemplate findByS_T_M_First(long structureId, String type, String mode, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ? and type = ? and mode = ?.
static DDMTemplate findByS_T_M_Last(long structureId, String type, String mode, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where structureId = ? and type = ? and mode = ?.
static DDMTemplate[] findByS_T_M_PrevAndNext(long templateId, long structureId, 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 structureId = ? and type = ? and mode = ?.
static List<DDMTemplate> findByS_T_M(long structureId, String type, String mode)
          Returns all the d d m templates where structureId = ? and type = ? and mode = ?.
static List<DDMTemplate> findByS_T_M(long structureId, String type, String mode, int start, int end)
          Returns a range of all the d d m templates where structureId = ? and type = ? and mode = ?.
static List<DDMTemplate> findByS_T_M(long structureId, String type, String mode, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where structureId = ? and type = ? and mode = ?.
static DDMTemplate[] findByS_T_PrevAndNext(long templateId, long structureId, String type, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where structureId = ? and type = ?.
static List<DDMTemplate> findByS_T(long structureId, String type)
          Returns all the d d m templates where structureId = ? and type = ?.
static List<DDMTemplate> findByS_T(long structureId, String type, int start, int end)
          Returns a range of all the d d m templates where structureId = ? and type = ?.
static List<DDMTemplate> findByS_T(long structureId, String type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where structureId = ? and type = ?.
static DDMTemplate findByStructureId_First(long structureId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ?.
static DDMTemplate findByStructureId_Last(long structureId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where structureId = ?.
static DDMTemplate[] findByStructureId_PrevAndNext(long templateId, long structureId, OrderByComparator orderByComparator)
          Returns the d d m templates before and after the current d d m template in the ordered set where structureId = ?.
static List<DDMTemplate> findByStructureId(long structureId)
          Returns all the d d m templates where structureId = ?.
static List<DDMTemplate> findByStructureId(long structureId, int start, int end)
          Returns a range of all the d d m templates where structureId = ?.
static List<DDMTemplate> findByStructureId(long structureId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where structureId = ?.
static DDMTemplate findByType_First(String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where type = ?.
static DDMTemplate findByType_Last(String type, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where type = ?.
static 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 = ?.
static List<DDMTemplate> findByType(String type)
          Returns all the d d m templates where type = ?.
static List<DDMTemplate> findByType(String type, int start, int end)
          Returns a range of all the d d m templates where type = ?.
static List<DDMTemplate> findByType(String type, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where type = ?.
static DDMTemplate findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where uuid = ?.
static DDMTemplate findByUUID_G(String uuid, long groupId)
          Returns the d d m template where uuid = ? and groupId = ? or throws a NoSuchTemplateException if it could not be found.
static DDMTemplate findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where uuid = ?.
static 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 = ?.
static List<DDMTemplate> findByUuid(String uuid)
          Returns all the d d m templates where uuid = ?.
static List<DDMTemplate> findByUuid(String uuid, int start, int end)
          Returns a range of all the d d m templates where uuid = ?.
static List<DDMTemplate> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where uuid = ?.
static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DDMTemplate> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static DDMTemplatePersistence getPersistence()
           
static DDMTemplate remove(long templateId)
          Removes the d d m template with the primary key from the database.
static void removeAll()
          Removes all the d d m templates from the database.
static void removeByGroupId(long groupId)
          Removes all the d d m templates where groupId = ? from the database.
static void removeByLanguage(String language)
          Removes all the d d m templates where language = ? from the database.
static void removeByS_T_M(long structureId, String type, String mode)
          Removes all the d d m templates where structureId = ? and type = ? and mode = ? from the database.
static void removeByS_T(long structureId, String type)
          Removes all the d d m templates where structureId = ? and type = ? from the database.
static void removeByStructureId(long structureId)
          Removes all the d d m templates where structureId = ? from the database.
static void removeByType(String type)
          Removes all the d d m templates where type = ? from the database.
static DDMTemplate removeByUUID_G(String uuid, long groupId)
          Removes the d d m template where uuid = ? and groupId = ? from the database.
static void removeByUuid(String uuid)
          Removes all the d d m templates where uuid = ? from the database.
 void setPersistence(DDMTemplatePersistence persistence)
          Deprecated.  
static DDMTemplate update(DDMTemplate ddmTemplate, boolean merge)
           
static DDMTemplate update(DDMTemplate ddmTemplate, boolean merge, ServiceContext serviceContext)
           
static DDMTemplate updateImpl(DDMTemplate ddmTemplate, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDMTemplateUtil

public DDMTemplateUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

update

public static DDMTemplate update(DDMTemplate ddmTemplate,
                                 boolean merge)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

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

cacheResult

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

Parameters:
ddmTemplate - the d d m template

cacheResult

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

Parameters:
ddmTemplates - the d d m templates

create

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

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

remove

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

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

updateImpl

public static DDMTemplate updateImpl(DDMTemplate ddmTemplate,
                                     boolean merge)
                              throws SystemException
Throws:
SystemException

findByPrimaryKey

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

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

fetchByPrimaryKey

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

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

findByUuid

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

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

findByUuid

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

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

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 static DDMTemplate findByUuid_First(String uuid,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchTemplateException
Returns the first d d m template in the ordered set where uuid = ?.

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

fetchByUuid_First

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

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

findByUuid_Last

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

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

fetchByUuid_Last

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

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

findByUuid_PrevAndNext

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

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

findByUUID_G

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

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

fetchByUUID_G

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

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

fetchByUUID_G

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

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

findByGroupId

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

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

findByGroupId

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

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

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 static DDMTemplate findByGroupId_First(long groupId,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchTemplateException
Returns the first d d m template in the ordered set where groupId = ?.

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

fetchByGroupId_First

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

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

findByGroupId_Last

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

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

fetchByGroupId_Last

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

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

findByGroupId_PrevAndNext

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

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

filterFindByGroupId

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

Parameters:
groupId - the group ID
Returns:
the matching d d m templates that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

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

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

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

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

findByStructureId

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

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

findByStructureId

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

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.

Parameters:
structureId - the structure 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

findByStructureId

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

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.

Parameters:
structureId - the structure 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

findByStructureId_First

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

Parameters:
structureId - the structure 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

fetchByStructureId_First

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

Parameters:
structureId - the structure 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

findByStructureId_Last

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

Parameters:
structureId - the structure 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

fetchByStructureId_Last

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

Parameters:
structureId - the structure 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

findByStructureId_PrevAndNext

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

Parameters:
templateId - the primary key of the current d d m template
structureId - the structure 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

findByType

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

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

findByType

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

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

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 static DDMTemplate findByType_First(String type,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchTemplateException
Returns the first d d m template in the ordered set where type = ?.

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

fetchByType_First

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

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

findByType_Last

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

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

fetchByType_Last

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

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

findByType_PrevAndNext

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

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

findByLanguage

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

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

findByLanguage

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

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

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 static DDMTemplate findByLanguage_First(String language,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchTemplateException
Returns the first d d m template in the ordered set where language = ?.

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

fetchByLanguage_First

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

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

findByLanguage_Last

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

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

fetchByLanguage_Last

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

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

findByLanguage_PrevAndNext

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

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

findByS_T

public static List<DDMTemplate> findByS_T(long structureId,
                                          String type)
                                   throws SystemException
Returns all the d d m templates where structureId = ? and type = ?.

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

findByS_T

public static List<DDMTemplate> findByS_T(long structureId,
                                          String type,
                                          int start,
                                          int end)
                                   throws SystemException
Returns a range of all the d d m templates where structureId = ? 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.

Parameters:
structureId - the structure ID
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

findByS_T

public static List<DDMTemplate> findByS_T(long structureId,
                                          String type,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the d d m templates where structureId = ? 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.

Parameters:
structureId - the structure ID
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

findByS_T_First

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

Parameters:
structureId - the structure ID
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

fetchByS_T_First

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

Parameters:
structureId - the structure ID
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

findByS_T_Last

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

Parameters:
structureId - the structure ID
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

fetchByS_T_Last

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

Parameters:
structureId - the structure ID
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

findByS_T_PrevAndNext

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

Parameters:
templateId - the primary key of the current d d m template
structureId - the structure ID
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

findByS_T_M

public static List<DDMTemplate> findByS_T_M(long structureId,
                                            String type,
                                            String mode)
                                     throws SystemException
Returns all the d d m templates where structureId = ? and type = ? and mode = ?.

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

findByS_T_M

public static List<DDMTemplate> findByS_T_M(long structureId,
                                            String type,
                                            String mode,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the d d m templates where structureId = ? 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.

Parameters:
structureId - the structure ID
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

findByS_T_M

public static List<DDMTemplate> findByS_T_M(long structureId,
                                            String type,
                                            String mode,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the d d m templates where structureId = ? 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.

Parameters:
structureId - the structure ID
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

findByS_T_M_First

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

Parameters:
structureId - the structure ID
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

fetchByS_T_M_First

public static DDMTemplate fetchByS_T_M_First(long structureId,
                                             String type,
                                             String mode,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first d d m template in the ordered set where structureId = ? and type = ? and mode = ?.

Parameters:
structureId - the structure ID
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

findByS_T_M_Last

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

Parameters:
structureId - the structure ID
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

fetchByS_T_M_Last

public static DDMTemplate fetchByS_T_M_Last(long structureId,
                                            String type,
                                            String mode,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last d d m template in the ordered set where structureId = ? and type = ? and mode = ?.

Parameters:
structureId - the structure ID
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

findByS_T_M_PrevAndNext

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

Parameters:
templateId - the primary key of the current d d m template
structureId - the structure ID
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

findAll

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

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

findAll

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

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

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

removeByUuid

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

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

removeByUUID_G

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

Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the d d m template that was removed
Throws:
SystemException - if a system exception occurred
NoSuchTemplateException

removeByGroupId

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

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

removeByStructureId

public static void removeByStructureId(long structureId)
                                throws SystemException
Removes all the d d m templates where structureId = ? from the database.

Parameters:
structureId - the structure ID
Throws:
SystemException - if a system exception occurred

removeByType

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

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

removeByLanguage

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

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

removeByS_T

public static void removeByS_T(long structureId,
                               String type)
                        throws SystemException
Removes all the d d m templates where structureId = ? and type = ? from the database.

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

removeByS_T_M

public static void removeByS_T_M(long structureId,
                                 String type,
                                 String mode)
                          throws SystemException
Removes all the d d m templates where structureId = ? and type = ? and mode = ? from the database.

Parameters:
structureId - the structure ID
type - the type
mode - the mode
Throws:
SystemException - if a system exception occurred

removeAll

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

Throws:
SystemException - if a system exception occurred

countByUuid

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

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

countByUUID_G

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

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

countByGroupId

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

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

filterCountByGroupId

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

Parameters:
groupId - the group ID
Returns:
the number of matching d d m templates that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByStructureId

public static int countByStructureId(long structureId)
                              throws SystemException
Returns the number of d d m templates where structureId = ?.

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

countByType

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

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

countByLanguage

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

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

countByS_T

public static int countByS_T(long structureId,
                             String type)
                      throws SystemException
Returns the number of d d m templates where structureId = ? and type = ?.

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

countByS_T_M

public static int countByS_T_M(long structureId,
                               String type,
                               String mode)
                        throws SystemException
Returns the number of d d m templates where structureId = ? and type = ? and mode = ?.

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

countAll

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

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

getPersistence

public static DDMTemplatePersistence getPersistence()

setPersistence

public void setPersistence(DDMTemplatePersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3