eu.etaxonomy.cdm.persistence.dao.media
Interface IMediaDao
- All Superinterfaces:
- IAnnotatableDao<Media>, ICdmEntityDao<Media>, IIdentifiableDao<Media>, ISearchableDao<Media>, ITitledDao<Media>, IVersionableDao<Media>
- All Known Implementing Classes:
- MediaDaoHibernateImpl
public interface IMediaDao
- extends IIdentifiableDao<Media>
- Author:
- a.babadshanjan
|
Method Summary |
int |
countMediaKeys(Set<Taxon> taxonomicScope,
Set<NamedArea> geoScopes)
Return a count of MediaKeys, optionally filtered by the parameters passed. |
int |
countRights(Media t)
Return a count of the rights for this media entity |
List<MediaKey> |
getMediaKeys(Set<Taxon> taxonomicScope,
Set<NamedArea> geoScopes,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Return a List of MediaKeys, optionally filtered by the parameters passed. |
List<Rights> |
getRights(Media t,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Return a List of the rights for this media entity |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IIdentifiableDao |
countByReferenceTitle, countByTitle, countSources, countTitleCache, find, findByReferenceTitle, findByTitle, findOriginalSourceByIdInSource, findTitleCache, getSources, getUuidAndTitleCache |
| 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 |
countMediaKeys
int countMediaKeys(Set<Taxon> taxonomicScope,
Set<NamedArea> geoScopes)
- Return a count of MediaKeys, optionally filtered by the parameters passed.
- Parameters:
taxonomicScope - a Set of Taxon instances that define the taxonomic scope of the key (can be null)geoScopes - a Set of NamedArea instances that define the geospatial scope of the key (can be null)
- Returns:
- a count of MediaKey instances
getMediaKeys
List<MediaKey> getMediaKeys(Set<Taxon> taxonomicScope,
Set<NamedArea> geoScopes,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
- Return a List of MediaKeys, optionally filtered by the parameters passed. The MediaKey
instances have the following properties initialized:
MediaKey.title
- Parameters:
taxonomicScope - a Set of Taxon instances that define the taxonomic scope of the key (can be null)geoScopes - a Set of NamedArea instances that define the geospatial scope of the key (can be null)pageSize - The maximum number of keys returned (can be null for all keys)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)propertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
- Returns:
- a List of MediaKey instances
countRights
int countRights(Media t)
- Return a count of the rights for this media entity
- Specified by:
countRights in interface IIdentifiableDao<Media>
- Parameters:
t - The media entity
- Returns:
- a count of Rights instances
getRights
List<Rights> getRights(Media t,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
- Return a List of the rights for this media entity
- Specified by:
getRights in interface IIdentifiableDao<Media>
- Parameters:
t - The media entitypageSize - The maximum number of rights returned (can be null for all rights)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 Rights instances
Copyright © 2007-2013 EDIT. All Rights Reserved.