|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDMTemplate> com.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplatePersistenceImpl
public class DDMTemplatePersistenceImpl
The persistence implementation for the d d m template service.
Caching information and settings can be found in portal.properties
DDMTemplatePersistence
,
DDMTemplateUtil
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 |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID
public static final FinderPath FINDER_PATH_COUNT_BY_STRUCTUREID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TYPE
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TYPE
public static final FinderPath FINDER_PATH_COUNT_BY_TYPE
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LANGUAGE
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LANGUAGE
public static final FinderPath FINDER_PATH_COUNT_BY_LANGUAGE
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_S_T
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_T
public static final FinderPath FINDER_PATH_COUNT_BY_S_T
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_S_T_M
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_T_M
public static final FinderPath FINDER_PATH_COUNT_BY_S_T_M
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=DDMContentPersistence.class) protected DDMContentPersistence ddmContentPersistence
@BeanReference(type=DDMStorageLinkPersistence.class) protected DDMStorageLinkPersistence ddmStorageLinkPersistence
@BeanReference(type=DDMStructurePersistence.class) protected DDMStructurePersistence ddmStructurePersistence
@BeanReference(type=DDMStructureLinkPersistence.class) protected DDMStructureLinkPersistence ddmStructureLinkPersistence
@BeanReference(type=DDMTemplatePersistence.class) protected DDMTemplatePersistence ddmTemplatePersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public DDMTemplatePersistenceImpl()
Method Detail |
---|
public void cacheResult(DDMTemplate ddmTemplate)
cacheResult
in interface DDMTemplatePersistence
ddmTemplate
- the d d m templatepublic void cacheResult(List<DDMTemplate> ddmTemplates)
cacheResult
in interface DDMTemplatePersistence
ddmTemplates
- the d d m templatespublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DDMTemplate>
clearCache
in class BasePersistenceImpl<DDMTemplate>
public void clearCache(DDMTemplate ddmTemplate)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<DDMTemplate>
clearCache
in class BasePersistenceImpl<DDMTemplate>
ddmTemplate
- the instance of this model to clear the cache forpublic void clearCache(List<DDMTemplate> ddmTemplates)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<DDMTemplate>
clearCache
in class BasePersistenceImpl<DDMTemplate>
ddmTemplates
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DDMTemplate ddmTemplate)
protected void clearUniqueFindersCache(DDMTemplate ddmTemplate)
public DDMTemplate create(long templateId)
create
in interface DDMTemplatePersistence
templateId
- the primary key for the new d d m template
public DDMTemplate remove(long templateId) throws NoSuchTemplateException, SystemException
remove
in interface DDMTemplatePersistence
templateId
- the primary key of the d d m template
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredpublic DDMTemplate remove(Serializable primaryKey) throws NoSuchTemplateException, SystemException
remove
in interface BasePersistence<DDMTemplate>
remove
in class BasePersistenceImpl<DDMTemplate>
primaryKey
- the primary key of the d d m template
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate removeImpl(DDMTemplate ddmTemplate) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<DDMTemplate>
ddmTemplate
- the model instance to remove
SystemException
- if a system exception occurredpublic DDMTemplate updateImpl(DDMTemplate ddmTemplate, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface DDMTemplatePersistence
updateImpl
in class BasePersistenceImpl<DDMTemplate>
ddmTemplate
- the model instance to updatemerge
- 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.
SystemException
- if a system exception occurredprotected DDMTemplate toUnwrappedModel(DDMTemplate ddmTemplate)
public DDMTemplate findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<DDMTemplate>
findByPrimaryKey
in class BasePersistenceImpl<DDMTemplate>
primaryKey
- the primary key of the d d m template
NoSuchModelException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredpublic DDMTemplate findByPrimaryKey(long templateId) throws NoSuchTemplateException, SystemException
NoSuchTemplateException
if it could not be found.
findByPrimaryKey
in interface DDMTemplatePersistence
templateId
- the primary key of the d d m template
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<DDMTemplate>
fetchByPrimaryKey
in class BasePersistenceImpl<DDMTemplate>
primaryKey
- the primary key of the d d m template
null
if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByPrimaryKey(long templateId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface DDMTemplatePersistence
templateId
- the primary key of the d d m template
null
if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByUuid(String uuid) throws SystemException
findByUuid
in interface DDMTemplatePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByUuid(String uuid, int start, int end) throws SystemException
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.
findByUuid
in interface DDMTemplatePersistence
uuid
- the uuidstart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByUuid
in interface DDMTemplatePersistence
uuid
- the uuidstart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMTemplate findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByUuid_First
in interface DDMTemplatePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_First
in interface DDMTemplatePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByUuid_Last
in interface DDMTemplatePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_Last
in interface DDMTemplatePersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate[] findByUuid_PrevAndNext(long templateId, String uuid, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByUuid_PrevAndNext
in interface DDMTemplatePersistence
templateId
- the primary key of the current d d m templateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate getByUuid_PrevAndNext(Session session, DDMTemplate ddmTemplate, String uuid, OrderByComparator orderByComparator, boolean previous)
public DDMTemplate findByUUID_G(String uuid, long groupId) throws NoSuchTemplateException, SystemException
NoSuchTemplateException
if it could not be found.
findByUUID_G
in interface DDMTemplatePersistence
uuid
- the uuidgroupId
- the group ID
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByUUID_G
in interface DDMTemplatePersistence
uuid
- the uuidgroupId
- the group ID
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByUUID_G
in interface DDMTemplatePersistence
uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to use the finder cache
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByGroupId(long groupId) throws SystemException
findByGroupId
in interface DDMTemplatePersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByGroupId(long groupId, int start, int end) throws SystemException
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.
findByGroupId
in interface DDMTemplatePersistence
groupId
- the group IDstart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByGroupId
in interface DDMTemplatePersistence
groupId
- the group IDstart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMTemplate findByGroupId_First(long groupId, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByGroupId_First
in interface DDMTemplatePersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByGroupId_First(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_First
in interface DDMTemplatePersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate findByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByGroupId_Last
in interface DDMTemplatePersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator) throws SystemException
fetchByGroupId_Last
in interface DDMTemplatePersistence
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate[] findByGroupId_PrevAndNext(long templateId, long groupId, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByGroupId_PrevAndNext
in interface DDMTemplatePersistence
templateId
- the primary key of the current d d m templategroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate getByGroupId_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, OrderByComparator orderByComparator, boolean previous)
public List<DDMTemplate> filterFindByGroupId(long groupId) throws SystemException
filterFindByGroupId
in interface DDMTemplatePersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic List<DDMTemplate> filterFindByGroupId(long groupId, int start, int end) throws SystemException
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.
filterFindByGroupId
in interface DDMTemplatePersistence
groupId
- the group IDstart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
filterFindByGroupId
in interface DDMTemplatePersistence
groupId
- the group IDstart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMTemplate[] filterFindByGroupId_PrevAndNext(long templateId, long groupId, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
filterFindByGroupId_PrevAndNext
in interface DDMTemplatePersistence
templateId
- the primary key of the current d d m templategroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate filterGetByGroupId_PrevAndNext(Session session, DDMTemplate ddmTemplate, long groupId, OrderByComparator orderByComparator, boolean previous)
public List<DDMTemplate> findByStructureId(long structureId) throws SystemException
findByStructureId
in interface DDMTemplatePersistence
structureId
- the structure ID
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByStructureId(long structureId, int start, int end) throws SystemException
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.
findByStructureId
in interface DDMTemplatePersistence
structureId
- the structure IDstart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByStructureId(long structureId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByStructureId
in interface DDMTemplatePersistence
structureId
- the structure IDstart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMTemplate findByStructureId_First(long structureId, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByStructureId_First
in interface DDMTemplatePersistence
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByStructureId_First(long structureId, OrderByComparator orderByComparator) throws SystemException
fetchByStructureId_First
in interface DDMTemplatePersistence
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate findByStructureId_Last(long structureId, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByStructureId_Last
in interface DDMTemplatePersistence
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByStructureId_Last(long structureId, OrderByComparator orderByComparator) throws SystemException
fetchByStructureId_Last
in interface DDMTemplatePersistence
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate[] findByStructureId_PrevAndNext(long templateId, long structureId, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByStructureId_PrevAndNext
in interface DDMTemplatePersistence
templateId
- the primary key of the current d d m templatestructureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate getByStructureId_PrevAndNext(Session session, DDMTemplate ddmTemplate, long structureId, OrderByComparator orderByComparator, boolean previous)
public List<DDMTemplate> findByType(String type) throws SystemException
findByType
in interface DDMTemplatePersistence
type
- the type
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByType(String type, int start, int end) throws SystemException
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.
findByType
in interface DDMTemplatePersistence
type
- the typestart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByType(String type, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByType
in interface DDMTemplatePersistence
type
- the typestart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMTemplate findByType_First(String type, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByType_First
in interface DDMTemplatePersistence
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByType_First(String type, OrderByComparator orderByComparator) throws SystemException
fetchByType_First
in interface DDMTemplatePersistence
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate findByType_Last(String type, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByType_Last
in interface DDMTemplatePersistence
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByType_Last(String type, OrderByComparator orderByComparator) throws SystemException
fetchByType_Last
in interface DDMTemplatePersistence
type
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate[] findByType_PrevAndNext(long templateId, String type, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByType_PrevAndNext
in interface DDMTemplatePersistence
templateId
- the primary key of the current d d m templatetype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate getByType_PrevAndNext(Session session, DDMTemplate ddmTemplate, String type, OrderByComparator orderByComparator, boolean previous)
public List<DDMTemplate> findByLanguage(String language) throws SystemException
findByLanguage
in interface DDMTemplatePersistence
language
- the language
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByLanguage(String language, int start, int end) throws SystemException
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.
findByLanguage
in interface DDMTemplatePersistence
language
- the languagestart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByLanguage(String language, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByLanguage
in interface DDMTemplatePersistence
language
- the languagestart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMTemplate findByLanguage_First(String language, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByLanguage_First
in interface DDMTemplatePersistence
language
- the languageorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByLanguage_First(String language, OrderByComparator orderByComparator) throws SystemException
fetchByLanguage_First
in interface DDMTemplatePersistence
language
- the languageorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate findByLanguage_Last(String language, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByLanguage_Last
in interface DDMTemplatePersistence
language
- the languageorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByLanguage_Last(String language, OrderByComparator orderByComparator) throws SystemException
fetchByLanguage_Last
in interface DDMTemplatePersistence
language
- the languageorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate[] findByLanguage_PrevAndNext(long templateId, String language, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByLanguage_PrevAndNext
in interface DDMTemplatePersistence
templateId
- the primary key of the current d d m templatelanguage
- the languageorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate getByLanguage_PrevAndNext(Session session, DDMTemplate ddmTemplate, String language, OrderByComparator orderByComparator, boolean previous)
public List<DDMTemplate> findByS_T(long structureId, String type) throws SystemException
findByS_T
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the type
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByS_T(long structureId, String type, int start, int end) throws SystemException
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.
findByS_T
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typestart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByS_T(long structureId, String type, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByS_T
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typestart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMTemplate findByS_T_First(long structureId, String type, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByS_T_First
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByS_T_First(long structureId, String type, OrderByComparator orderByComparator) throws SystemException
fetchByS_T_First
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate findByS_T_Last(long structureId, String type, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByS_T_Last
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByS_T_Last(long structureId, String type, OrderByComparator orderByComparator) throws SystemException
fetchByS_T_Last
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate[] findByS_T_PrevAndNext(long templateId, long structureId, String type, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByS_T_PrevAndNext
in interface DDMTemplatePersistence
templateId
- the primary key of the current d d m templatestructureId
- the structure IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate getByS_T_PrevAndNext(Session session, DDMTemplate ddmTemplate, long structureId, String type, OrderByComparator orderByComparator, boolean previous)
public List<DDMTemplate> findByS_T_M(long structureId, String type, String mode) throws SystemException
findByS_T_M
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the mode
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByS_T_M(long structureId, String type, String mode, int start, int end) throws SystemException
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.
findByS_T_M
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the modestart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> findByS_T_M(long structureId, String type, String mode, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByS_T_M
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the modestart
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic DDMTemplate findByS_T_M_First(long structureId, String type, String mode, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByS_T_M_First
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the modeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByS_T_M_First(long structureId, String type, String mode, OrderByComparator orderByComparator) throws SystemException
fetchByS_T_M_First
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the modeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate findByS_T_M_Last(long structureId, String type, String mode, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByS_T_M_Last
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the modeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate fetchByS_T_M_Last(long structureId, String type, String mode, OrderByComparator orderByComparator) throws SystemException
fetchByS_T_M_Last
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the modeorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d m template could not be found
SystemException
- if a system exception occurredpublic DDMTemplate[] findByS_T_M_PrevAndNext(long templateId, long structureId, String type, String mode, OrderByComparator orderByComparator) throws NoSuchTemplateException, SystemException
findByS_T_M_PrevAndNext
in interface DDMTemplatePersistence
templateId
- the primary key of the current d d m templatestructureId
- the structure IDtype
- the typemode
- the modeorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchTemplateException
- if a d d m template with the primary key could not be found
SystemException
- if a system exception occurredprotected DDMTemplate getByS_T_M_PrevAndNext(Session session, DDMTemplate ddmTemplate, long structureId, String type, String mode, OrderByComparator orderByComparator, boolean previous)
public List<DDMTemplate> findAll() throws SystemException
findAll
in interface DDMTemplatePersistence
SystemException
- if a system exception occurredpublic List<DDMTemplate> findAll(int start, int end) throws SystemException
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.
findAll
in interface DDMTemplatePersistence
start
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)
SystemException
- if a system exception occurredpublic List<DDMTemplate> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findAll
in interface DDMTemplatePersistence
start
- the lower bound of the range of d d m templatesend
- the upper bound of the range of d d m templates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface DDMTemplatePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic DDMTemplate removeByUUID_G(String uuid, long groupId) throws NoSuchTemplateException, SystemException
removeByUUID_G
in interface DDMTemplatePersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchTemplateException
public void removeByGroupId(long groupId) throws SystemException
removeByGroupId
in interface DDMTemplatePersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic void removeByStructureId(long structureId) throws SystemException
removeByStructureId
in interface DDMTemplatePersistence
structureId
- the structure ID
SystemException
- if a system exception occurredpublic void removeByType(String type) throws SystemException
removeByType
in interface DDMTemplatePersistence
type
- the type
SystemException
- if a system exception occurredpublic void removeByLanguage(String language) throws SystemException
removeByLanguage
in interface DDMTemplatePersistence
language
- the language
SystemException
- if a system exception occurredpublic void removeByS_T(long structureId, String type) throws SystemException
removeByS_T
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the type
SystemException
- if a system exception occurredpublic void removeByS_T_M(long structureId, String type, String mode) throws SystemException
removeByS_T_M
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the mode
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface DDMTemplatePersistence
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface DDMTemplatePersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic int countByUUID_G(String uuid, long groupId) throws SystemException
countByUUID_G
in interface DDMTemplatePersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic int countByGroupId(long groupId) throws SystemException
countByGroupId
in interface DDMTemplatePersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int filterCountByGroupId(long groupId) throws SystemException
filterCountByGroupId
in interface DDMTemplatePersistence
groupId
- the group ID
SystemException
- if a system exception occurredpublic int countByStructureId(long structureId) throws SystemException
countByStructureId
in interface DDMTemplatePersistence
structureId
- the structure ID
SystemException
- if a system exception occurredpublic int countByType(String type) throws SystemException
countByType
in interface DDMTemplatePersistence
type
- the type
SystemException
- if a system exception occurredpublic int countByLanguage(String language) throws SystemException
countByLanguage
in interface DDMTemplatePersistence
language
- the language
SystemException
- if a system exception occurredpublic int countByS_T(long structureId, String type) throws SystemException
countByS_T
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the type
SystemException
- if a system exception occurredpublic int countByS_T_M(long structureId, String type, String mode) throws SystemException
countByS_T_M
in interface DDMTemplatePersistence
structureId
- the structure IDtype
- the typemode
- the mode
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface DDMTemplatePersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |