@Repository public class OccurrenceDaoHibernateImpl extends IdentifiableDaoBase<SpecimenOrObservationBase> implements IOccurrenceDao
defaultField, indexedClasses
defaultBeanInitializer, flushAfterNo, LEFTOUTER_OPS, type
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
OccurrenceDaoHibernateImpl() |
Modifier and Type | Method and Description |
---|---|
long |
count(java.lang.Class<? extends SpecimenOrObservationBase> clazz,
TaxonBase determinedAs)
Returns the number of occurences belonging to a certain subclass - which must extend SpecimenOrObservationBase
|
long |
count(java.lang.Class<? extends SpecimenOrObservationBase> clazz,
TaxonName determinedAs)
Returns the number of occurences belonging to a certain subclass - which must extend SpecimenOrObservationBase
|
long |
countByGeneticAccessionNumber(java.lang.String accessionNumberString)
Returns count of derivedUnits that has a sequence with the accession number and is determined to a taxon
|
long |
countDerivationEvents(SpecimenOrObservationBase occurence)
Returns a count of derivation events that have involved creating new DerivedUnits from this occurence
|
long |
countDeterminations(SpecimenOrObservationBase occurrence,
TaxonBase taxonBase)
Returns a count of determinations that have been made for a given occurence and for a given taxon concept
|
long |
countMedia(SpecimenOrObservationBase occurence)
Returns a count of Media that are associated with a given occurence
|
<T extends SpecimenOrObservationBase> |
countOccurrences(java.lang.Class<T> clazz,
java.lang.String queryString,
java.lang.String significantIdentifier,
SpecimenOrObservationType recordBasis,
Taxon associatedTaxon,
TaxonName associatedTaxonName,
MatchMode matchmode,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns the number of specimens that match the given parameters
Note: Specifying a taxon will already check the name of this
taxon, its synonymy and the synonym names for determinations of the
specimen.
|
DnaSample |
findByGeneticAccessionNumber(java.lang.String accessionNumberString,
java.util.List<java.lang.String> propertyPaths)
Returns
DerivedUnit that has the accession number and is determined to a taxon |
java.util.List<FieldUnit> |
findFieldUnitsForGatheringEvent(java.util.UUID gatheringEventUuid,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns all
FieldUnit s that are referencing this GatheringEvent |
<T extends SpecimenOrObservationBase> |
findOccurrences(java.lang.Class<T> clazz,
java.lang.String queryString,
java.lang.String significantIdentifier,
SpecimenOrObservationType recordBasis,
Taxon associatedTaxon,
TaxonName associatedTaxonName,
MatchMode matchmode,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Queries the database for specimens which match the given criteria
Note: Specifying a taxon will already check the name of this taxon, its synonymy and the synonym names for determinations of the specimen. |
<T extends SpecimenOrObservationBase> |
findOccurrencesUuidAndTitleCache(java.lang.Class<T> clazz,
java.lang.String queryString,
java.lang.String significantIdentifier,
SpecimenOrObservationType recordBasis,
Taxon associatedTaxon,
TaxonName associatedTaxonName,
MatchMode matchmode,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints) |
java.util.List<SpecimenOrObservationBase> |
findOriginalsForDerivedUnit(java.util.UUID derivedUnitUuid,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<Point> |
findPointsForFieldUnitList(java.util.List<java.util.UUID> fieldUnitUuids) |
java.util.List<DerivationEvent> |
getDerivationEvents(SpecimenOrObservationBase occurence,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a list of derivation events that have involved creating new DerivedUnits from this occurence
|
java.util.List<UuidAndTitleCache<DerivedUnit>> |
getDerivedUnitUuidAndTitleCache(java.lang.Integer limit,
java.lang.String pattern)
Retrieves the
UUID and the string representation (title cache) of all
DerivedUnit s found in the data base. |
java.util.List<DeterminationEvent> |
getDeterminations(SpecimenOrObservationBase occurrence,
TaxonBase taxonBase,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a List of determinations that have been made for a given occurence and for a given taxon concept
|
java.util.List<UuidAndTitleCache<FieldUnit>> |
getFieldUnitUuidAndTitleCache()
Retrieves the
UUID and the string representation (title cache) of all
FieldUnit s found in the data base. |
java.util.List<Media> |
getMedia(SpecimenOrObservationBase occurence,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Returns a List of Media that are associated with a given occurence
|
java.util.List<SpecimenOrObservationBase> |
list(java.lang.Class<? extends SpecimenOrObservationBase> clazz,
TaxonBase determinedAs,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a sublist of SpecimenOrObservationBase instances stored in the database.
|
java.util.List<SpecimenOrObservationBase> |
list(java.lang.Class<? extends SpecimenOrObservationBase> clazz,
TaxonName determinedAs,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a sublist of SpecimenOrObservationBase instances stored in the database.
|
<T extends SpecimenOrObservationBase> |
listByAssociatedTaxon(java.lang.Class<T> clazz,
Taxon associatedTaxon,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Lists all instances of
SpecimenOrObservationBase which are associated with the taxon specified as parameter. |
<T extends SpecimenOrObservationBase> |
listByAssociatedTaxonName(java.lang.Class<T> type,
TaxonName associatedTaxonName,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Lists all instances of
SpecimenOrObservationBase which are determined as the taxon name specified as parameter. |
java.util.Collection<SpecimenOrObservationBase> |
listBySpecimenOrObservationType(SpecimenOrObservationType type,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Retrieves all
SpecimenOrObservationBase s that have the given SpecimenOrObservationType . |
java.util.Collection<DescriptionBase<?>> |
listDescriptionsWithDescriptionSpecimen(SpecimenOrObservationBase<?> specimen,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Retrieves all
DescriptionBase s that have the given specimen set as described specimen. |
java.util.Collection<DeterminationEvent> |
listDeterminationEvents(SpecimenOrObservationBase<?> specimen,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Retrieves all
DeterminationEvent s which have the given specimen set as identified unit. |
java.util.Collection<IndividualsAssociation> |
listIndividualsAssociations(SpecimenOrObservationBase<?> specimen,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Retrieves all
IndividualsAssociation with the given specimen. |
java.util.Collection<SpecimenTypeDesignation> |
listTypeDesignations(SpecimenOrObservationBase<?> specimen,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Retrieves all
SpecimenTypeDesignation s which have the given specimen as a type specimen. |
<T extends SpecimenOrObservationBase> |
listUuidAndTitleCacheByAssociatedTaxon(java.lang.Class<T> clazz,
Taxon associatedTaxon,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints) |
java.util.Collection<SpecimenNodeWrapper> |
listUuidAndTitleCacheByAssociatedTaxon(java.util.List<java.util.UUID> taxonNodeUuids,
java.lang.Integer limit,
java.lang.Integer start)
The method will search for specimen associated with the taxon nodes.
It will search for 3 possible association types: : - via IndividualAssociations of the taxon - via TypeDesignations of the taxon name - via Determinations of the taxon or taxon name (more are covered in IOccurrenceDao.findOccurrences(Class, String, String, SpecimenOrObservationType, Taxon, TaxonName, MatchMode, Integer, Integer, List, List) |
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, countRights, countSources, countTitleCache, find, findByIdentifier, findByMarker, findByReferenceTitle, findByReferenceTitleWithRestrictions, findByTitle, findByTitle, findByTitle, findByTitle, findByTitleWithRestrictions, findOriginalSourceByIdInSource, findTitleCache, getCredits, getRights, 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, 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, search, suggestQuery
public long countDerivationEvents(SpecimenOrObservationBase occurence)
IOccurrenceDao
countDerivationEvents
in interface IOccurrenceDao
occurence
- the occurence that was a source of these derivation eventspublic long countDeterminations(SpecimenOrObservationBase occurrence, TaxonBase taxonBase)
IOccurrenceDao
countDeterminations
in interface IOccurrenceDao
occurrence
- the occurence associated with these determinations (can be null for all occurrences)taxonBase
- the taxon concept associated with these determinations (can be null for all taxon concepts)public long countMedia(SpecimenOrObservationBase occurence)
IOccurrenceDao
countMedia
in interface IOccurrenceDao
occurence
- the occurence associated with these mediapublic java.util.List<DerivationEvent> getDerivationEvents(SpecimenOrObservationBase occurence, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
getDerivationEvents
in interface IOccurrenceDao
occurence
- the occurence that was a source of these derivation eventspageSize
- The maximum number of derivation events returned (can be null for all related derivation events)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 java.util.List<DeterminationEvent> getDeterminations(SpecimenOrObservationBase occurrence, TaxonBase taxonBase, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
getDeterminations
in interface IOccurrenceDao
occurrence
- the occurence associated with these determinations (can be null for all occurrences)taxonBase
- the taxon concept associated with these determinations (can be null for all taxon concepts)pageSize
- The maximum number of determinations returned (can be null for all related determinations)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 java.util.List<Media> getMedia(SpecimenOrObservationBase occurence, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
getMedia
in interface IOccurrenceDao
occurence
- the occurence associated with these mediapageSize
- 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)
public void rebuildIndex()
ISearchableDao
rebuildIndex
in interface ISearchableDao<SpecimenOrObservationBase>
rebuildIndex
in class IdentifiableDaoBase<SpecimenOrObservationBase>
public long count(java.lang.Class<? extends SpecimenOrObservationBase> clazz, TaxonName determinedAs)
IOccurrenceDao
count
in interface IOccurrenceDao
clazz
- optionally restrict the counted occurrences to those of a certain subclass of SpecimenOrObservationBasedeterminedAs
- the taxon name that these specimens are determined to belong topublic java.util.List<SpecimenOrObservationBase> list(java.lang.Class<? extends SpecimenOrObservationBase> clazz, TaxonName determinedAs, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
list
in interface IOccurrenceDao
determinedAs
- the taxon name that these specimens are determined to belong toorderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepublic long count(java.lang.Class<? extends SpecimenOrObservationBase> clazz, TaxonBase determinedAs)
IOccurrenceDao
count
in interface IOccurrenceDao
clazz
- optionally restrict the counted occurrences to those of a certain subclass of SpecimenOrObservationBasedeterminedAs
- the taxon concept that these specimens are determined to belong topublic java.util.List<SpecimenOrObservationBase> list(java.lang.Class<? extends SpecimenOrObservationBase> clazz, TaxonBase determinedAs, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
list
in interface IOccurrenceDao
determinedAs
- the taxon concept that these specimens are determined to belong toorderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepublic <T extends SpecimenOrObservationBase> java.util.List<UuidAndTitleCache<SpecimenOrObservationBase>> findOccurrencesUuidAndTitleCache(java.lang.Class<T> clazz, java.lang.String queryString, java.lang.String significantIdentifier, SpecimenOrObservationType recordBasis, Taxon associatedTaxon, TaxonName associatedTaxonName, MatchMode matchmode, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints)
findOccurrencesUuidAndTitleCache
in interface IOccurrenceDao
IOccurrenceDao.findOccurrences(Class, String, String, SpecimenOrObservationType, Taxon, TaxonName, MatchMode, Integer, Integer, List, List)
public <T extends SpecimenOrObservationBase> java.util.List<T> findOccurrences(java.lang.Class<T> clazz, java.lang.String queryString, java.lang.String significantIdentifier, SpecimenOrObservationType recordBasis, Taxon associatedTaxon, TaxonName associatedTaxonName, MatchMode matchmode, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
findOccurrences
in interface IOccurrenceDao
clazz
- the class to matchqueryString
- the queryString to matchrecordBasis
- the SpecimenOrObservationType
to matchassociatedTaxonName
- the taxon name that the specimens have been determined asmatchmode
- determines how the query string should be matchedlimit
- the maximum number of entities returned (can be null to return
all entities)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepublic <T extends SpecimenOrObservationBase> long countOccurrences(java.lang.Class<T> clazz, java.lang.String queryString, java.lang.String significantIdentifier, SpecimenOrObservationType recordBasis, Taxon associatedTaxon, TaxonName associatedTaxonName, MatchMode matchmode, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
countOccurrences
in interface IOccurrenceDao
clazz
- the class to matchqueryString
- the queryString to matchassociatedTaxon
- the taxon these specimens are in any way associated to via
determination, type designations, individuals associations,
etc.associatedTaxonName
- the taxon name that the specimens have been determined asmatchmode
- determines how the query string should be matchedlimit
- the maximum number of entities returned (can be null to return
all entities)orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepublic java.util.List<UuidAndTitleCache<DerivedUnit>> getDerivedUnitUuidAndTitleCache(java.lang.Integer limit, java.lang.String pattern)
IOccurrenceDao
UUID
and the string representation (title cache) of all
DerivedUnit
s found in the data base.getDerivedUnitUuidAndTitleCache
in interface IOccurrenceDao
UuidAndTitleCache
public java.util.List<UuidAndTitleCache<FieldUnit>> getFieldUnitUuidAndTitleCache()
IOccurrenceDao
UUID
and the string representation (title cache) of all
FieldUnit
s found in the data base.getFieldUnitUuidAndTitleCache
in interface IOccurrenceDao
UuidAndTitleCache
public <T extends SpecimenOrObservationBase> java.util.List<T> listByAssociatedTaxonName(java.lang.Class<T> type, TaxonName associatedTaxonName, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
SpecimenOrObservationBase
which are determined as the taxon name
specified as parameter.listByAssociatedTaxonName
in interface IOccurrenceDao
public java.util.Collection<SpecimenNodeWrapper> listUuidAndTitleCacheByAssociatedTaxon(java.util.List<java.util.UUID> taxonNodeUuids, java.lang.Integer limit, java.lang.Integer start)
IOccurrenceDao
IOccurrenceDao.findOccurrences(Class, String, String, SpecimenOrObservationType, Taxon, TaxonName, MatchMode, Integer, Integer, List, List)
listUuidAndTitleCacheByAssociatedTaxon
in interface IOccurrenceDao
taxonNodeUuids
- a list of UUID
s of the taxon nodesSpecimenNodeWrapper
containing the TaxonNode
and the corresponding UuidAndTitleCache
object for the specimen found for this taxon nodepublic <T extends SpecimenOrObservationBase> java.util.List<UuidAndTitleCache<SpecimenOrObservationBase>> listUuidAndTitleCacheByAssociatedTaxon(java.lang.Class<T> clazz, Taxon associatedTaxon, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints)
listUuidAndTitleCacheByAssociatedTaxon
in interface IOccurrenceDao
IOccurrenceDao.listByAssociatedTaxon(Class, Taxon, Integer, Integer, List, List)
public <T extends SpecimenOrObservationBase> java.util.List<T> listByAssociatedTaxon(java.lang.Class<T> clazz, Taxon associatedTaxon, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
SpecimenOrObservationBase
which are associated with the taxon
specified as parameter.
SpecimenOrObservationBase instances can be associated to taxa in multiple ways, all these possible relations are taken into account:
IndividualsAssociation
elements in a TaxonDescription
contain DerivedUnit
sSpecimenTypeDesignation
s may be associated with any HomotypicalGroup
related to the specific Taxon
.Taxon
or a TaxonName
may be referenced by the DeterminationEvent
of the SpecimenOrObservationBase
listByAssociatedTaxon
in interface IOccurrenceDao
public java.util.Collection<SpecimenOrObservationBase> listBySpecimenOrObservationType(SpecimenOrObservationType type, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
SpecimenOrObservationBase
s that have the given SpecimenOrObservationType
.listBySpecimenOrObservationType
in interface IOccurrenceDao
public java.util.Collection<DeterminationEvent> listDeterminationEvents(SpecimenOrObservationBase<?> specimen, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
DeterminationEvent
s which have the given specimen set as identified unit.listDeterminationEvents
in interface IOccurrenceDao
public java.util.Collection<SpecimenTypeDesignation> listTypeDesignations(SpecimenOrObservationBase<?> specimen, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
SpecimenTypeDesignation
s which have the given specimen as a type specimen.listTypeDesignations
in interface IOccurrenceDao
specimen
- the type specimenpublic java.util.Collection<IndividualsAssociation> listIndividualsAssociations(SpecimenOrObservationBase<?> specimen, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
IndividualsAssociation
with the given specimen.listIndividualsAssociations
in interface IOccurrenceDao
specimen
- the specimen for which the associations are retrievedpublic java.util.Collection<DescriptionBase<?>> listDescriptionsWithDescriptionSpecimen(SpecimenOrObservationBase<?> specimen, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
IOccurrenceDao
DescriptionBase
s that have the given specimen set as described specimen.listDescriptionsWithDescriptionSpecimen
in interface IOccurrenceDao
specimen
- the described specimenpublic java.util.List<FieldUnit> findFieldUnitsForGatheringEvent(java.util.UUID gatheringEventUuid, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
FieldUnit
s that are referencing this GatheringEvent
findFieldUnitsForGatheringEvent
in interface IOccurrenceDao
gatheringEventUuid
- the UUID
of the gathering eventpublic DnaSample findByGeneticAccessionNumber(java.lang.String accessionNumberString, java.util.List<java.lang.String> propertyPaths)
DerivedUnit
that has the accession number and is determined to a taxonfindByGeneticAccessionNumber
in interface IOccurrenceDao
public long countByGeneticAccessionNumber(java.lang.String accessionNumberString)
countByGeneticAccessionNumber
in interface IOccurrenceDao
public java.util.List<SpecimenOrObservationBase> findOriginalsForDerivedUnit(java.util.UUID derivedUnitUuid, java.util.List<java.lang.String> propertyPaths)
findOriginalsForDerivedUnit
in interface IOccurrenceDao
public java.util.List<Point> findPointsForFieldUnitList(java.util.List<java.util.UUID> fieldUnitUuids)
findPointsForFieldUnitList
in interface IOccurrenceDao
Copyright © 2007-2020 EDIT. All Rights Reserved.