public interface IDescriptionDao extends IIdentifiableDao<DescriptionBase>
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
countDescriptionByCommonName(java.lang.String queryString,
MatchMode matchMode) |
long |
countDescriptionByDistribution(java.util.Set<NamedArea> namedAreas,
PresenceAbsenceTerm presence)
Returns a count of distinct TaxonDescription instances which have Distribution elements that refer to one of the NamedArea instances passed (optionally
filtered by a type of PresenceAbsenceTerm e.g.
|
<T extends DescriptionElementBase> |
countDescriptionElementForTaxon(java.util.UUID taxonUuid,
java.util.Set<Feature> features,
java.lang.Class<T> type) |
<T extends DescriptionElementBase> |
countDescriptionElements(DescriptionBase description,
java.lang.Class<? extends DescriptionBase> descriptionType,
java.util.Set<Feature> features,
java.lang.Class<T> type)
Returns a count of description elements of type
|
<T extends DescriptionElementBase> |
countDescriptionElements(DescriptionBase description,
java.util.Set<Feature> features,
java.lang.Class<T> type)
Deprecated.
|
long |
countDescriptions(java.lang.Class<? extends DescriptionBase> type,
java.lang.Boolean hasImages,
java.lang.Boolean hasText,
java.util.Set<Feature> feature)
Count the descriptions of type
|
int |
countTaxonDescriptionMedia(java.util.UUID taxonUuid,
java.lang.Boolean restrictToGalleries,
java.util.Set<MarkerType> markerTypes)
Returns a count of Media instances, optionally filtered by parameters passed to this method
Maybe in future a similar method is implemented in
IMediaDao which allows more
media sources to be included. |
long |
countTaxonDescriptions(Taxon taxon,
java.util.Set<DefinedTerm> scopes,
java.util.Set<NamedArea> geographicalScope,
java.util.Set<MarkerType> markerType,
java.util.Set<DescriptionType> descriptionTypes)
Returns a count of TaxonDescription instances, optionally filtered by parameters passed to this method
|
long |
countTaxonNameDescriptions(TaxonName name)
Returns a count of TaxonNameDescription instances, optionally filtered by the name which they refer to
|
<T extends DescriptionElementBase> |
getDescriptionElementForTaxon(java.util.UUID taxonUuid,
java.util.Set<Feature> features,
java.lang.Class<T> type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths) |
<T extends DescriptionElementBase> |
getDescriptionElements(DescriptionBase description,
java.lang.Class<? extends DescriptionBase> descriptionType,
java.util.Set<Feature> features,
java.lang.Class<T> type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns description elements of type
|
<T extends DescriptionElementBase> |
getDescriptionElements(DescriptionBase description,
java.util.Set<Feature> features,
java.lang.Class<T> type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Deprecated.
|
java.util.List<java.lang.Integer> |
getIndividualAssociationSpecimenIDs(java.util.UUID taxonUuid,
java.util.Set<Feature> features,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a list of ids of the specimens attached to a taxon via IndividualsAssociations
|
java.util.List<TaxonNameDescription> |
getTaxonNameDescriptions(TaxonName name,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a List of TaxonNameDescription instances, optionally filtered by the name which they refer to
|
java.util.List<DescriptionBase> |
listDescriptions(java.lang.Class<? extends DescriptionBase> type,
java.lang.Boolean hasMedia,
java.lang.Boolean hasText,
java.util.Set<Feature> feature,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
List the descriptions of type
|
java.util.List<TermDto> |
listNamedAreasInUse(boolean includeAllParents,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Method to list all
NamedAreas instances which are currently used
by Distribution elements. |
java.util.List<Media> |
listTaxonDescriptionMedia(java.util.UUID taxonUuid,
java.lang.Boolean restrictToGalleries,
java.util.Set<MarkerType> markerTypes,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a List of Media instances, optionally filtered by parameters passed to this method.
|
java.util.List<TaxonDescription> |
listTaxonDescriptions(Taxon taxon,
java.util.Set<DefinedTerm> scopes,
java.util.Set<NamedArea> geographicalScope,
java.util.Set<MarkerType> markerTypes,
java.util.Set<DescriptionType> descriptionTypes,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a List of TaxonDescription instances, optionally filtered by parameters passed to this method
|
java.util.List<CommonTaxonName> |
searchDescriptionByCommonName(java.lang.String queryString,
MatchMode matchMode,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Returns a list of CommonTaxonName instances that match a search string
|
java.util.List<TaxonDescription> |
searchDescriptionByDistribution(java.util.Set<NamedArea> namedAreas,
PresenceAbsenceTerm presence,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a List of distinct TaxonDescription instances which have Distribution elements that refer to one of the NamedArea instances passed (optionally
filtered by a type of PresenceAbsenceTerm e.g.
|
countByIdentifier, countByMarker, countByReferenceTitle, countByReferenceTitleWithRestrictions, countByTitle, countByTitleWithRestrictions, countRights, countSources, countTitleCache, find, findByIdentifier, findByMarker, findByReferenceTitle, findByReferenceTitleWithRestrictions, findByTitle, findByTitleWithRestrictions, findOriginalSourceByIdInSource, findTitleCache, getRights, 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, rebuildIndex, search, suggestQuery
java.util.List<DescriptionBase> listDescriptions(java.lang.Class<? extends DescriptionBase> type, java.lang.Boolean hasMedia, java.lang.Boolean hasText, java.util.Set<Feature> feature, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
type
- The type of description returned (Taxon, TaxonName, or Specimen)hasMedia
- Restrict the description to those that do (true) or don't (false) contain elements that have one or more media (can be null)hasText
- Restrict the description to those that do (true) or don't (false) contain TextData elements that have some textual content (can be null)feature
- Restrict the description to those elements which are scoped by one of the Features passed (can be null or empty)pageSize
- The maximum number of descriptions returned (can be null for all descriptions)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)orderHints
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
long countDescriptions(java.lang.Class<? extends DescriptionBase> type, java.lang.Boolean hasImages, java.lang.Boolean hasText, java.util.Set<Feature> feature)
type
- The type of description returned (Taxon, TaxonName, or Specimen)hasMedia
- Restrict the description to those that do (true) or don't (false) contain elements that have one or more media (can be null)hasText
- Restrict the description to those that do (true) or don't (false) contain TextData elements that have some textual content (can be null)feature
- Restrict the description to those elements which are scoped by one of the Features passed (can be null or empty)long countTaxonDescriptions(Taxon taxon, java.util.Set<DefinedTerm> scopes, java.util.Set<NamedArea> geographicalScope, java.util.Set<MarkerType> markerType, java.util.Set<DescriptionType> descriptionTypes)
taxon
- Restrict the results to those descriptions that refer to a specific taxon (can be null for all TaxonDescription instances)scopes
- Restrict the results to those descriptions which are scoped by one of the Scope instances passed (can be null or empty)geographicalScope
- Restrict the results to those descriptions which have a geographical scope that overlaps with the NamedArea instances passed (can be null or empty)markerType
- Restrict the results to those descriptions which are marked as true by one of the given marker types (can be null or empty)descriptionTypes
- Restrict the results to those descriptions of the given types (can be null or empty)@Deprecated <T extends DescriptionElementBase> java.util.List<T> getDescriptionElements(DescriptionBase description, java.util.Set<Feature> features, java.lang.Class<T> type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
getDescriptionElements(DescriptionBase, Class, Set, Class, Integer, Integer, List)
insteaddescription
- The description which these description elements belong to (can be null to count all description elements)features
- Restrict the results to those description elements which are scoped by one of the Features passed (can be null or empty)type
- The type of descriptionpageSize
- The maximum number of description elements returned (can be null for all description elements)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)
<T extends DescriptionElementBase> java.util.List<T> getDescriptionElements(DescriptionBase description, java.lang.Class<? extends DescriptionBase> descriptionType, java.util.Set<Feature> features, java.lang.Class<T> type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
description
- The description which these description elements belong to
(can be null to count all description elements)descriptionType
- A filter DescriptionElements which belong to of a specific class
of Descriptionsfeatures
- Restrict the results to those description elements which are
scoped by one of the Features passed (can be null or empty)type
- A filter for DescriptionElements of a specific classpageSize
- The maximum number of description elements returned (can be
null for all description elements)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)
@Deprecated <T extends DescriptionElementBase> long countDescriptionElements(DescriptionBase description, java.util.Set<Feature> features, java.lang.Class<T> type)
countDescriptionElements(DescriptionBase, Class, Set, Class)
insteaddescription
- The description which these description elements belong to (can be null to count all description elements)features
- Restrict the results to those description elements which are scoped by one of the Features passed (can be null or empty)type
- A filter for DescriptionElements of a specific class<T extends DescriptionElementBase> long countDescriptionElements(DescriptionBase description, java.lang.Class<? extends DescriptionBase> descriptionType, java.util.Set<Feature> features, java.lang.Class<T> type)
description
- The description which these description elements belong to
(can be null to count all description elements)descriptionType
- A filter DescriptionElements which belong to of a specific
class of Descriptionsfeatures
- Restrict the results to those description elements which are
scoped by one of the Features passed (can be null or empty)type
- The type of descriptionjava.util.List<TaxonDescription> listTaxonDescriptions(Taxon taxon, java.util.Set<DefinedTerm> scopes, java.util.Set<NamedArea> geographicalScope, java.util.Set<MarkerType> markerTypes, java.util.Set<DescriptionType> descriptionTypes, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
taxon
- The taxon which the description refers to (can be null for all TaxonDescription instances)scopes
- Restrict the results to those descriptions which are scoped by one of the Scope instances passed (can be null or empty)geographicalScope
- Restrict the results to those descriptions which have a geographical scope that overlaps with the NamedArea instances passed (can be null or empty)markerTypes
- Restrict the results to those descriptions which are marked as true by one of the given marker types (can be null or empty)descriptionTypes
- Restrict the results to those descriptions of the given types (can be null or empty)pageSize
- The maximum number of descriptions returned (can be null for all descriptions)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)
java.util.List<Media> listTaxonDescriptionMedia(java.util.UUID taxonUuid, java.lang.Boolean restrictToGalleries, java.util.Set<MarkerType> markerTypes, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IMediaDao
which allows more
media sources to be included.taxonUuid
- The taxon uuid of the taxon which the description refers to (can be null for all TaxonDescription instances)restrictToGalleries
- if true, only returns media from TaxonDescriptions with isImageGallery = truemarkerTypes
- Restrict the results to those descriptions which are marked as true by one of the given marker types (can be null or empty)pageSize
- The maximum number of descriptions returned (can be null for all descriptions)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)
int countTaxonDescriptionMedia(java.util.UUID taxonUuid, java.lang.Boolean restrictToGalleries, java.util.Set<MarkerType> markerTypes)
IMediaDao
which allows more
media sources to be included.taxonUuid
- The taxon uuid of the taxon which the description refers to (can be null for all TaxonDescription instances)restrictToGalleries
- if true, only returns media from TaxonDescriptions with isImageGallery = truemarkerTypes
- Restrict the results to those descriptions which are marked as true by one of the given marker types (can be null or empty)java.util.List<TaxonNameDescription> getTaxonNameDescriptions(TaxonName name, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
name
- Restrict the results to those descripDescriptionElementBasetions that refer to a specific name (can be null for all TaxonNameDescription instances)pageSize
- The maximum number of descriptions returned (can be null for all descriptions)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)
long countTaxonNameDescriptions(TaxonName name)
name
- Restrict the results to those descriptions that refer to a specific name (can be null for all TaxonNameDescription instances)java.util.List<TaxonDescription> searchDescriptionByDistribution(java.util.Set<NamedArea> namedAreas, PresenceAbsenceTerm presence, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
namedAreas
- The set of NamedArea instancespresence
- Restrict the descriptions to those which have Distribution elements are of this status (can be null)pageSize
- The maximum number of descriptions returned (can be null for all descriptions)pageNumber
- The offset (in pageSize chunks) from the start of the result set (0 - based)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)
java.util.List<CommonTaxonName> searchDescriptionByCommonName(java.lang.String queryString, MatchMode matchMode, java.lang.Integer pageSize, java.lang.Integer pageNumber)
searchString
- pageSize
- pageNumber
- java.lang.Integer countDescriptionByCommonName(java.lang.String queryString, MatchMode matchMode)
queryString
- matchMode
- long countDescriptionByDistribution(java.util.Set<NamedArea> namedAreas, PresenceAbsenceTerm presence)
namedAreas
- The set of NamedArea instancespresence
- Restrict the descriptions to those which have Distribution elements are of this status (can be null)<T extends DescriptionElementBase> java.util.List<T> getDescriptionElementForTaxon(java.util.UUID taxonUuid, java.util.Set<Feature> features, java.lang.Class<T> type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
taxon
- features
- Restrict the results to those description elements which are
scoped by one of the Features passed (can be null or empty)type
- A filter for DescriptionElements of a specific classpageSize
- pageNumber
- propertyPaths
- java.util.List<java.lang.Integer> getIndividualAssociationSpecimenIDs(java.util.UUID taxonUuid, java.util.Set<Feature> features, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
taxonUuid
- features
- pageSize
- pageNumber
- propertyPaths
- <T extends DescriptionElementBase> long countDescriptionElementForTaxon(java.util.UUID taxonUuid, java.util.Set<Feature> features, java.lang.Class<T> type)
taxon
- features
- Restrict the results to those description elements which are
scoped by one of the Features passed (can be null or empty)type
- A filter for DescriptionElements of a specific classjava.util.List<TermDto> listNamedAreasInUse(boolean includeAllParents, java.lang.Integer pageSize, java.lang.Integer pageNumber)
NamedAreas
instances which are currently used
by Distribution
elements.includeAllParents
- if set to true all parent areas will be included in the result setpageSize
- pageNumber
- Copyright © 2007-2020 EDIT. All Rights Reserved.