|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOccurrenceDao
| Method Summary | ||
|---|---|---|
int |
count(Class<? extends SpecimenOrObservationBase> clazz,
TaxonBase determinedAs)
Returns the number of occurences belonging to a certain subclass - which must extend SpecimenOrObservationBase |
|
int |
countDerivationEvents(SpecimenOrObservationBase occurence)
Returns a count of derivation events that have involved creating new DerivedUnits from this occurence |
|
int |
countDeterminations(SpecimenOrObservationBase occurence,
TaxonBase taxonbase)
Returns a count of determinations that have been made for a given occurence and for a given taxon concept |
|
int |
countMedia(SpecimenOrObservationBase occurence)
Returns a count of Media that are associated with a given occurence |
|
List<DerivationEvent> |
getDerivationEvents(SpecimenOrObservationBase occurence,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Returns a list of derivation events that have involved creating new DerivedUnits from this occurence |
|
List<UuidAndTitleCache<DerivedUnitBase>> |
getDerivedUnitBaseUuidAndTitleCache()
|
|
List<DeterminationEvent> |
getDeterminations(SpecimenOrObservationBase occurence,
TaxonBase taxonbase,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Returns a List of determinations that have been made for a given occurence and for a given taxon concept |
|
List<UuidAndTitleCache<FieldObservation>> |
getFieldObservationUuidAndTitleCache()
|
|
List<Media> |
getMedia(SpecimenOrObservationBase occurence,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Returns a List of Media that are associated with a given occurence |
|
List<SpecimenOrObservationBase> |
list(Class<? extends SpecimenOrObservationBase> type,
TaxonBase determinedAs,
Integer limit,
Integer start,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns a sublist of SpecimenOrObservationBase instances stored in the database. |
|
|
listByAssociatedTaxon(Class<T> type,
Taxon associatedTaxon,
Integer limit,
Integer start,
List<OrderHint> orderHints,
List<String> propertyPaths)
Lists all instances of SpecimenOrObservationBase which are associated with the taxon specified as parameter. |
|
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.IIdentifiableDao |
|---|
countByReferenceTitle, countByTitle, countRights, countSources, countTitleCache, find, findByReferenceTitle, findByTitle, findOriginalSourceByIdInSource, findTitleCache, getRights, getSources, getUuidAndTitleCache |
| 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.ITitledDao |
|---|
countByTitle, countByTitle, countByTitle, findByTitle, findByTitle, findByTitle, findByTitleAndClass |
| Methods inherited from interface eu.etaxonomy.cdm.persistence.dao.common.ISearchableDao |
|---|
count, optimizeIndex, purgeIndex, rebuildIndex, search, suggestQuery |
| Method Detail |
|---|
int count(Class<? extends SpecimenOrObservationBase> clazz,
TaxonBase determinedAs)
clazz - optionally restrict the counted occurrences to those of a certain subclass of SpecimenOrObservationBasedeterminedAs - the taxon concept that these specimens are determined to belong to
List<SpecimenOrObservationBase> list(Class<? extends SpecimenOrObservationBase> type,
TaxonBase determinedAs,
Integer limit,
Integer start,
List<OrderHint> orderHints,
List<String> propertyPaths)
type - determinedAs - the taxon concept that these specimens are determined to belong tolimit - the maximum number of entities returned (can be null to return
all entities)start - orderHints - Supports path like orderHints.propertyNames which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCache
org.springframework.dao.DataAccessExceptionint countMedia(SpecimenOrObservationBase occurence)
occurence - the occurence associated with these media
List<Media> getMedia(SpecimenOrObservationBase occurence,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
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)
int countDeterminations(SpecimenOrObservationBase occurence,
TaxonBase taxonbase)
occurence - 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)
List<DeterminationEvent> getDeterminations(SpecimenOrObservationBase occurence,
TaxonBase taxonbase,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
occurence - 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)
int countDerivationEvents(SpecimenOrObservationBase occurence)
occurence - the occurence that was a source of these derivation events
List<DerivationEvent> getDerivationEvents(SpecimenOrObservationBase occurence,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
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)
List<UuidAndTitleCache<FieldObservation>> getFieldObservationUuidAndTitleCache()
List<UuidAndTitleCache<DerivedUnitBase>> getDerivedUnitBaseUuidAndTitleCache()
<T extends SpecimenOrObservationBase> List<T> listByAssociatedTaxon(Class<T> type,
Taxon associatedTaxon,
Integer limit,
Integer start,
List<OrderHint> orderHints,
List<String> propertyPaths)
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 DerivedUnitBasesSpecimenTypeDesignations may be associated with any HomotypicalGroup related to the specific Taxon.Taxon may be referenced by the DeterminationEvent of the SpecimenOrObservationBase
T - type - associatedTaxon - limit - start - orderHints - propertyPaths -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||