eu.etaxonomy.cdm.persistence.dao.description
Interface IDescriptionElementDao

All Superinterfaces:
IAnnotatableDao<DescriptionElementBase>, ICdmEntityDao<DescriptionElementBase>, ISearchableDao<DescriptionElementBase>, IVersionableDao<DescriptionElementBase>
All Known Implementing Classes:
DescriptionElementDaoImpl

public interface IDescriptionElementDao
extends IAnnotatableDao<DescriptionElementBase>, ISearchableDao<DescriptionElementBase>


Method Summary
 int countMedia(DescriptionElementBase descriptionElement)
          Returns a count of Media that are associated with a given description element
 List<Media> getMedia(DescriptionElementBase descriptionElement, Integer pageSize, Integer pageNumber, List<String> propertyPaths)
          Returns a List of Media that are associated with a given description element
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IAnnotatableDao
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IVersionableDao
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao
clear, count, count, count, delete, exists, findById, findByUuid, flush, getSession, getType, group, list, list, list, list, list, list, list, listByIds, load, load, load, lock, merge, refresh, refresh, replace, rows, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
 
Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ISearchableDao
count, optimizeIndex, purgeIndex, rebuildIndex, search, suggestQuery
 

Method Detail

getMedia

List<Media> getMedia(DescriptionElementBase descriptionElement,
                     Integer pageSize,
                     Integer pageNumber,
                     List<String> propertyPaths)
Returns a List of Media that are associated with a given description element

Parameters:
descriptionElement - the description element associated with these media
pageSize - The maximum number of media returned (can be null for all related media)
pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
propertyPaths - properties to initialize - see IBeanInitializer.initialize(Object, List)
Returns:
a List of media instances

countMedia

int countMedia(DescriptionElementBase descriptionElement)
Returns a count of Media that are associated with a given description element

Parameters:
descriptionElement - the description element associated with these media
Returns:
a count of media instances


Copyright © 2007-2013 EDIT. All Rights Reserved.