Interface DDMTemplateLinkPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DDMTemplateLink>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMTemplateLink>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByC_C(long classNameId, long classPK) Returns the number of ddm template links where classNameId = ? and classPK = ?.intcountByTemplateId(long templateId) Returns the number of ddm template links where templateId = ?.create(long templateLinkId) Creates a new ddm template link with the primary key.default DDMTemplateLinkfetchByC_C(long classNameId, long classPK) Returns the ddm template link where classNameId = ? and classPK = ? or returnsnullif it could not be found.fetchByC_C(long classNameId, long classPK, boolean useFinderCache) Returns the ddm template link where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByPrimaryKey(long templateLinkId) Returns the ddm template link with the primary key or returnsnullif it could not be found.fetchByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the first ddm template link in the ordered set where templateId = ?.findByC_C(long classNameId, long classPK) Returns the ddm template link where classNameId = ? and classPK = ? or throws aNoSuchTemplateLinkExceptionif it could not be found.findByPrimaryKey(long templateLinkId) Returns the ddm template link with the primary key or throws aNoSuchTemplateLinkExceptionif it could not be found.default List<DDMTemplateLink> findByTemplateId(long templateId) Returns all the ddm template links where templateId = ?.default List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end) Returns a range of all the ddm template links where templateId = ?.default List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns an ordered range of all the ddm template links where templateId = ?.findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template links where templateId = ?.findByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the first ddm template link in the ordered set where templateId = ?.remove(long templateLinkId) Removes the ddm template link with the primary key from the database.removeByC_C(long classNameId, long classPK) Removes the ddm template link where classNameId = ? and classPK = ? from the database.voidremoveByTemplateId(long templateId) Removes all the ddm template links where templateId = ? from the database.updateImpl(DDMTemplateLink ddmTemplateLink) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByTemplateId
List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ddm template links where templateId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMTemplateLinkModelImpl.- Parameters:
templateId- the template IDstart- the lower bound of the range of ddm template linksend- the upper bound of the range of ddm template links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching ddm template links
-
findByTemplateId_First
DDMTemplateLink findByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) throws NoSuchTemplateLinkException Returns the first ddm template link in the ordered set where templateId = ?.- Parameters:
templateId- the template IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ddm template link
- Throws:
NoSuchTemplateLinkException- if a matching ddm template link could not be found
-
fetchByTemplateId_First
DDMTemplateLink fetchByTemplateId_First(long templateId, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns the first ddm template link in the ordered set where templateId = ?.- Parameters:
templateId- the template IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ddm template link, or
nullif a matching ddm template link could not be found
-
removeByTemplateId
void removeByTemplateId(long templateId) Removes all the ddm template links where templateId = ? from the database.- Parameters:
templateId- the template ID
-
countByTemplateId
int countByTemplateId(long templateId) Returns the number of ddm template links where templateId = ?.- Parameters:
templateId- the template ID- Returns:
- the number of matching ddm template links
-
findByC_C
Returns the ddm template link where classNameId = ? and classPK = ? or throws aNoSuchTemplateLinkExceptionif it could not be found.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching ddm template link
- Throws:
NoSuchTemplateLinkException- if a matching ddm template link could not be found
-
fetchByC_C
Returns the ddm template link where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pkuseFinderCache- whether to use the finder cache- Returns:
- the matching ddm template link, or
nullif a matching ddm template link could not be found
-
removeByC_C
Removes the ddm template link where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the ddm template link that was removed
- Throws:
NoSuchTemplateLinkException
-
countByC_C
int countByC_C(long classNameId, long classPK) Returns the number of ddm template links where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching ddm template links
-
create
Creates a new ddm template link with the primary key. Does not add the ddm template link to the database.- Parameters:
templateLinkId- the primary key for the new ddm template link- Returns:
- the new ddm template link
-
remove
Removes the ddm template link with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
templateLinkId- the primary key of the ddm template link- Returns:
- the ddm template link that was removed
- Throws:
NoSuchTemplateLinkException- if a ddm template link with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the ddm template link with the primary key or throws aNoSuchTemplateLinkExceptionif it could not be found.- Parameters:
templateLinkId- the primary key of the ddm template link- Returns:
- the ddm template link
- Throws:
NoSuchTemplateLinkException- if a ddm template link with the primary key could not be found
-
fetchByPrimaryKey
Returns the ddm template link with the primary key or returnsnullif it could not be found.- Parameters:
templateLinkId- the primary key of the ddm template link- Returns:
- the ddm template link, or
nullif a ddm template link with the primary key could not be found
-
fetchByC_C
Returns the ddm template link where classNameId = ? and classPK = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching ddm template link, or
nullif a matching ddm template link could not be found
-
findByTemplateId
Returns all the ddm template links where templateId = ?.- Parameters:
templateId- the template ID- Returns:
- the matching ddm template links
-
findByTemplateId
Returns a range of all the ddm template links where templateId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMTemplateLinkModelImpl.- Parameters:
templateId- the template IDstart- the lower bound of the range of ddm template linksend- the upper bound of the range of ddm template links (not inclusive)- Returns:
- the range of matching ddm template links
-
findByTemplateId
default List<DDMTemplateLink> findByTemplateId(long templateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMTemplateLink> orderByComparator) Returns an ordered range of all the ddm template links where templateId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMTemplateLinkModelImpl.- Parameters:
templateId- the template IDstart- the lower bound of the range of ddm template linksend- the upper bound of the range of ddm template links (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching ddm template links
-