@Repository public class MediaDaoHibernateImpl extends IdentifiableDaoBase<Media> implements IMediaDao
defaultField, indexedClasses
defaultBeanInitializer, flushAfterNo, LEFTOUTER_OPS, type
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
MediaDaoHibernateImpl() |
Modifier and Type | Method and Description |
---|---|
long |
countMediaKeys(java.util.Set<Taxon> taxonomicScope,
java.util.Set<NamedArea> geoScopes)
Return a count of MediaKeys, optionally filtered by the parameters passed.
|
long |
countRights(Media media)
Return a count of the rights for this identifiable entity
|
protected java.lang.String |
getDefaultField() |
java.util.List<MediaKey> |
getMediaKeys(java.util.Set<Taxon> taxonomicScope,
java.util.Set<NamedArea> geoScopes,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a List of MediaKeys, optionally filtered by the parameters passed.
|
java.util.List<Rights> |
getRights(Media media,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a List of the rights for this identifiable entity
|
void |
rebuildIndex()
Index all T entities currently in the database (useful in concert with purgeIndex() to (re-)create
indexes or in the case of corrupt indexes / mismatch between
the database and the free-text indices)
|
count, countByIdentifier, countByMarker, countByReferenceTitle, countByReferenceTitleWithRestrictions, countByTitle, countByTitle, countByTitle, countByTitle, countByTitleWithRestrictions, countSources, countTitleCache, find, findByIdentifier, findByMarker, findByReferenceTitle, findByReferenceTitleWithRestrictions, findByTitle, findByTitle, findByTitle, findByTitle, findByTitleWithRestrictions, findOriginalSourceByIdInSource, findTitleCache, getCredits, getSources, getTitleCache, getUuidAndAbbrevTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCacheByMarker, optimizeIndex, purgeIndex, search, suggestQuery
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
addCriteria, addOrder, checkNotInPriorView, count, count, count, countAuditEvents, countAuditEvents, countByParam, exists, findByParam, findByParamWithRestrictions, findByUuid, getAuditEventFromContext, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent, list, list, list, list, load, load, load
addExample, addGroups, clear, count, countByParamWithRestrictions, countGroups, createCriteria, delete, entityType, findById, findByParam, findByUuid, findByUuidWithoutFlush, getAuditReader, getCriteria, getSession, getType, group, list, list, list, list, list, list, load, loadList, lock, makeAuditQuery, merge, merge, refresh, refresh, replace, save, saveAll, saveCdmObj, saveOrUpdate, saveOrUpdateAll, setDefaultBeanInitializer, setPagingParameter, setPagingParameter, update
addCriteria, addFieldPredicate, addLimitAndStart, addLimitAndStart, addLimitAndStart, addOrder, addOrder, addOrder, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, addPageSizeAndNumber, flush, getSessionFactory, orderByClause, setSessionFactory, splitCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countByIdentifier, countByMarker, countByReferenceTitle, countByReferenceTitleWithRestrictions, countByTitle, countByTitleWithRestrictions, countSources, countTitleCache, find, findByIdentifier, findByMarker, findByReferenceTitle, findByReferenceTitleWithRestrictions, findByTitle, findByTitleWithRestrictions, findOriginalSourceByIdInSource, findTitleCache, getSources, getTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCache, getUuidAndTitleCacheByMarker
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
clear, count, count, count, count, countByParam, countByParamWithRestrictions, delete, exists, findById, findByParam, findByParam, findByParamWithRestrictions, findByUuid, findByUuidWithoutFlush, flush, getSession, getType, group, list, list, list, list, list, list, list, list, list, load, load, load, loadList, lock, merge, merge, refresh, refresh, replace, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
countByTitle, countByTitle, countByTitle, findByTitle, findByTitle, findByTitle
count, optimizeIndex, purgeIndex, search, suggestQuery
protected java.lang.String getDefaultField()
public long countMediaKeys(java.util.Set<Taxon> taxonomicScope, java.util.Set<NamedArea> geoScopes)
IMediaDao
countMediaKeys
in interface IMediaDao
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)public java.util.List<MediaKey> getMediaKeys(java.util.Set<Taxon> taxonomicScope, java.util.Set<NamedArea> geoScopes, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IMediaDao
getMediaKeys
in interface IMediaDao
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)
public java.util.List<Rights> getRights(Media media, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IIdentifiableDao
getRights
in interface IIdentifiableDao<Media>
getRights
in interface IMediaDao
getRights
in class IdentifiableDaoBase<Media>
media
- The identifiable 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)
public long countRights(Media media)
IIdentifiableDao
countRights
in interface IIdentifiableDao<Media>
countRights
in interface IMediaDao
countRights
in class IdentifiableDaoBase<Media>
media
- The identifiable entitypublic void rebuildIndex()
ISearchableDao
rebuildIndex
in interface ISearchableDao<Media>
rebuildIndex
in class IdentifiableDaoBase<Media>
Copyright © 2007-2020 EDIT. All Rights Reserved.