Liferay 6.1.2-ce-ga3

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
protected  DDMContentPersistence ddmContentPersistence
           
protected  DDMStorageLinkPersistence ddmStorageLinkPersistence
           
protected  DDMStructureLinkPersistence ddmStructureLinkPersistence
           
protected  DDMStructurePersistence ddmStructurePersistence
           
protected  DDMTemplatePersistence ddmTemplatePersistence
           
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_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_LANGUAGE
           
static FinderPath FINDER_PATH_COUNT_BY_S_T
           
static FinderPath FINDER_PATH_COUNT_BY_S_T_M
           
static FinderPath FINDER_PATH_COUNT_BY_STRUCTUREID
           
static FinderPath FINDER_PATH_COUNT_BY_TYPE
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
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_S_T
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_S_T_M
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
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_S_T
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_T_M
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
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 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 countByS_T_M(long structureId, String type, String mode)
          Returns the number of d d m templates where structureId = ? and type = ? and mode = ?.
 int countByS_T(long structureId, String type)
          Returns the number of d d m templates where structureId = ? and type = ?.
 int countByStructureId(long structureId)
          Returns the number of d d m templates where structureId = ?.
 int countByType(String type)
          Returns the number of d d m templates where type = ?.
 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 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 fetchByS_T_First(long structureId, String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ? and type = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 DDMTemplate fetchByStructureId_First(long structureId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ?.
 DDMTemplate fetchByStructureId_Last(long structureId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where structureId = ?.
 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_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 filterCountByGroupId(long groupId)
          Returns the number of d d m templates that the user has permission to view where groupId = ?.
 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 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 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 findByS_T_First(long structureId, String type, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ? and type = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> findByS_T_M(long structureId, String type, String mode)
          Returns all the d d m templates where structureId = ? and type = ? and mode = ?.
 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 = ?.
 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 = ?.
 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 = ?.
 List<DDMTemplate> findByS_T(long structureId, String type)
          Returns all the d d m templates where structureId = ? and type = ?.
 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 = ?.
 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 = ?.
 DDMTemplate findByStructureId_First(long structureId, OrderByComparator orderByComparator)
          Returns the first d d m template in the ordered set where structureId = ?.
 DDMTemplate findByStructureId_Last(long structureId, OrderByComparator orderByComparator)
          Returns the last d d m template in the ordered set where structureId = ?.
 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 = ?.
 List<DDMTemplate> findByStructureId(long structureId)
          Returns all the d d m templates where structureId = ?.
 List<DDMTemplate> findByStructureId(long structureId, int start, int end)
          Returns a range of all the d d m templates where structureId = ?.
 List<DDMTemplate> findByStructureId(long structureId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d m templates where structureId = ?.
 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_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  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 getByS_T_M_PrevAndNext(Session session, DDMTemplate ddmTemplate, long structureId, String type, String mode, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByS_T_PrevAndNext(Session session, DDMTemplate ddmTemplate, long structureId, String type, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByStructureId_PrevAndNext(Session session, DDMTemplate ddmTemplate, long structureId, OrderByComparator orderByComparator, boolean previous)
           
protected  DDMTemplate getByType_PrevAndNext(Session session, DDMTemplate ddmTemplate, String type, 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 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.
 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.
 void removeByS_T(long structureId, String type)
          Removes all the d d m templates where structureId = ? and type = ? from the database.
 void removeByStructureId(long structureId)
          Removes all the d d m templates where structureId = ? from the database.
 void removeByType(String type)
          Removes all the d d m templates where type = ? 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, boolean merge)
          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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
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, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, 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_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_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_STRUCTUREID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID

FINDER_PATH_COUNT_BY_STRUCTUREID

public static final FinderPath FINDER_PATH_COUNT_BY_STRUCTUREID

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_WITH_PAGINATION_FIND_BY_S_T

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_S_T

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_T

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_T

FINDER_PATH_COUNT_BY_S_T

public static final FinderPath FINDER_PATH_COUNT_BY_S_T

FINDER_PATH_WITH_PAGINATION_FIND_BY_S_T_M

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_S_T_M

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_T_M

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_T_M

FINDER_PATH_COUNT_BY_S_T_M

public static final FinderPath FINDER_PATH_COUNT_BY_S_T_M

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

ddmContentPersistence

@BeanReference(type=DDMContentPersistence.class)
protected DDMContentPersistence ddmContentPersistence

ddmStorageLinkPersistence

@BeanReference(type=DDMStorageLinkPersistence.class)
protected DDMStorageLinkPersistence ddmStorageLinkPersistence

ddmStructurePersistence

@BeanReference(type=DDMStructurePersistence.class)
protected DDMStructurePersistence ddmStructurePersistence

ddmStructureLinkPersistence

@BeanReference(type=DDMStructureLinkPersistence.class)
protected DDMStructureLinkPersistence ddmStructureLinkPersistence

ddmTemplatePersistence

@BeanReference(type=DDMTemplatePersistence.class)
protected DDMTemplatePersistence ddmTemplatePersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

DDMTemplatePersistenceImpl

public DDMTemplatePersistenceImpl()
Method Detail

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,
                              boolean merge)
                       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
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
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 NoSuchModelException,
                                    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:
NoSuchModelException - 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

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.

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.

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)

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

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.

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.

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.

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.

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)

findByStructureId

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

Specified by:
findByStructureId in interface DDMTemplatePersistence
Parameters:
structureId - the structure ID
Returns:
the matching d d m templates
Throws:
SystemException - if a system exception occurred

findByStructureId

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

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

Specified by:
findByStructureId in interface DDMTemplatePersistence
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 DDMTemplate findByStructureId_First(long structureId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchTemplateException,
                                           SystemException
Returns the first d d m template in the ordered set where structureId = ?.

Specified by:
findByStructureId_First in interface DDMTemplatePersistence
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 DDMTemplate fetchByStructureId_First(long structureId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first d d m template in the ordered set where structureId = ?.

Specified by:
fetchByStructureId_First in interface DDMTemplatePersistence
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 DDMTemplate findByStructureId_Last(long structureId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchTemplateException,
                                          SystemException
Returns the last d d m template in the ordered set where structureId = ?.

Specified by:
findByStructureId_Last in interface DDMTemplatePersistence
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 DDMTemplate fetchByStructureId_Last(long structureId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last d d m template in the ordered set where structureId = ?.

Specified by:
fetchByStructureId_Last in interface DDMTemplatePersistence
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 DDMTemplate[] findByStructureId_PrevAndNext(long templateId,
                                                   long structureId,
                                                   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 structureId = ?.

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

getByStructureId_PrevAndNext

protected DDMTemplate getByStructureId_PrevAndNext(Session session,
                                                   DDMTemplate ddmTemplate,
                                                   long structureId,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

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.

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.

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)

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.

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.

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)

findByS_T

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

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

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

Specified by:
findByS_T in interface DDMTemplatePersistence
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 DDMTemplate findByS_T_First(long structureId,
                                   String type,
                                   OrderByComparator orderByComparator)
                            throws NoSuchTemplateException,
                                   SystemException
Returns the first d d m template in the ordered set where structureId = ? and type = ?.

Specified by:
findByS_T_First in interface DDMTemplatePersistence
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 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 = ?.

Specified by:
fetchByS_T_First in interface DDMTemplatePersistence
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 DDMTemplate findByS_T_Last(long structureId,
                                  String type,
                                  OrderByComparator orderByComparator)
                           throws NoSuchTemplateException,
                                  SystemException
Returns the last d d m template in the ordered set where structureId = ? and type = ?.

Specified by:
findByS_T_Last in interface DDMTemplatePersistence
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 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 = ?.

Specified by:
fetchByS_T_Last in interface DDMTemplatePersistence
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 DDMTemplate[] findByS_T_PrevAndNext(long templateId,
                                           long structureId,
                                           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 structureId = ? and type = ?.

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

getByS_T_PrevAndNext

protected DDMTemplate getByS_T_PrevAndNext(Session session,
                                           DDMTemplate ddmTemplate,
                                           long structureId,
                                           String type,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

findByS_T_M

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

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

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

Specified by:
findByS_T_M in interface DDMTemplatePersistence
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 DDMTemplate findByS_T_M_First(long structureId,
                                     String type,
                                     String mode,
                                     OrderByComparator orderByComparator)
                              throws NoSuchTemplateException,
                                     SystemException
Returns the first d d m template in the ordered set where structureId = ? and type = ? and mode = ?.

Specified by:
findByS_T_M_First in interface DDMTemplatePersistence
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 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 = ?.

Specified by:
fetchByS_T_M_First in interface DDMTemplatePersistence
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 DDMTemplate findByS_T_M_Last(long structureId,
                                    String type,
                                    String mode,
                                    OrderByComparator orderByComparator)
                             throws NoSuchTemplateException,
                                    SystemException
Returns the last d d m template in the ordered set where structureId = ? and type = ? and mode = ?.

Specified by:
findByS_T_M_Last in interface DDMTemplatePersistence
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 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 = ?.

Specified by:
fetchByS_T_M_Last in interface DDMTemplatePersistence
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 DDMTemplate[] findByS_T_M_PrevAndNext(long templateId,
                                             long structureId,
                                             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 structureId = ? and type = ? and mode = ?.

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

getByS_T_M_PrevAndNext

protected DDMTemplate getByS_T_M_PrevAndNext(Session session,
                                             DDMTemplate ddmTemplate,
                                             long structureId,
                                             String type,
                                             String mode,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

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.

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.

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

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

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

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

removeByStructureId

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

Specified by:
removeByStructureId in interface DDMTemplatePersistence
Parameters:
structureId - the structure ID
Throws:
SystemException - if a system exception occurred

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

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

removeByS_T

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

Specified by:
removeByS_T in interface DDMTemplatePersistence
Parameters:
structureId - the structure ID
type - the type
Throws:
SystemException - if a system exception occurred

removeByS_T_M

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

Specified by:
removeByS_T_M in interface DDMTemplatePersistence
Parameters:
structureId - the structure ID
type - the type
mode - the mode
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

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

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

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

countByStructureId

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

Specified by:
countByStructureId in interface DDMTemplatePersistence
Parameters:
structureId - the structure ID
Returns:
the number of matching d d m templates
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

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

countByS_T

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

Specified by:
countByS_T in interface DDMTemplatePersistence
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 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 = ?.

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

afterPropertiesSet

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


destroy

public void destroy()

Liferay 6.1.2-ce-ga3