|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITaxonDao
| Method Summary | |
|---|---|
int |
countAllRelationships()
|
int |
countMatchesByName(String queryString,
MatchMode matchMode,
boolean onlyAcccepted)
|
int |
countMatchesByName(String queryString,
MatchMode matchMode,
boolean onlyAcccepted,
List<org.hibernate.criterion.Criterion> criteria)
|
Integer |
countSynonymRelationships(TaxonBase taxonBase,
SynonymRelationshipType type,
RelationshipBase.Direction relatedfrom)
|
int |
countSynonyms(Synonym synonym,
SynonymRelationshipType type)
Returns a count of the SynonymRelationships (of where relationship.type == type, if this arguement is supplied) where the supplied synonym is relatedFrom. |
int |
countSynonyms(Taxon taxon,
SynonymRelationshipType type)
Returns a count of the SynonymRelationships (of where relationship.type == type, if this arguement is supplied) where the supplied taxon is relatedTo. |
long |
countTaxaByCommonName(String searchString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas)
|
long |
countTaxaByName(boolean doTaxa,
boolean doSynonyms,
boolean doMisappliedNames,
String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas)
|
int |
countTaxaByName(Class<? extends TaxonBase> clazz,
String uninomial,
String infragenericEpithet,
String specificEpithet,
String infraspecificEpithet,
Rank rank)
Returns a count of TaxonBase instances where the taxon.name properties match the parameters passed. |
int |
countTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
RelationshipBase.Direction direction)
Returns a count of the TaxonRelationships (of where relationship.type == type, if this argument is supplied) where the supplied taxon either is relatedFrom or relatedTo depending on the direction
parameter. |
long |
deleteSynonymRelationships(Synonym syn,
Taxon taxon)
Deletes all synonym relationships of a given synonym. |
List<TaxonBase> |
findByNameTitleCache(boolean doTaxa,
boolean doSynonyms,
String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas,
Integer pageNumber,
Integer pageSize,
List<String> propertyPaths)
Find taxa by searching for Taxa and Synonyms where the TaxonNameBase.titleCache matches
the name specified as queryString taxonName |
TaxonBase |
findByUuid(UUID uuid,
List<org.hibernate.criterion.Criterion> criteria,
List<String> propertyPaths)
Returns a taxon corresponding to the given uuid |
List<? extends TaxonBase> |
findByUuids(List<UUID> uuids,
List<org.hibernate.criterion.Criterion> criteria,
List<String> propertyPaths)
Returns a list of Taxon entities corresponding to the given uuid list. |
List<TaxonNameBase> |
findIdenticalNamesNew(List<String> propertyPaths)
|
List<UUID> |
findIdenticalTaxonNameIds(List<String> propertyPath)
|
List<TaxonNameBase> |
findIdenticalTaxonNames(List<String> propertyPath)
Creates all inferred synonyms for the species in the tree and insert it to the database |
List<TaxonBase> |
findTaxaByName(Class<? extends TaxonBase> clazz,
String uninomial,
String infragenericEpithet,
String specificEpithet,
String infraspecificEpithet,
Rank rank,
Integer pageSize,
Integer pageNumber)
Returns a list of TaxonBase instances where the taxon.name properties match the parameters passed. |
List<RelationshipBase> |
getAllRelationships(Integer limit,
Integer start)
|
List<Synonym> |
getAllSynonyms(Integer limit,
Integer start)
|
List<Taxon> |
getAllTaxa(Integer limit,
Integer start)
|
List<TaxonBase> |
getAllTaxonBases(Integer pagesize,
Integer page)
TODO necessary? |
String |
getPhylumName(TaxonNameBase name)
|
List<Taxon> |
getRootTaxa(Rank rank,
Reference sec,
CdmFetch cdmFetch,
Boolean onlyWithChildren,
Boolean withMisapplications,
List<String> propertyPaths)
Deprecated. obsolete when using classification |
List<Taxon> |
getRootTaxa(Reference sec)
Deprecated. obsolete when using classification |
List<Taxon> |
getRootTaxa(Reference sec,
CdmFetch cdmFetch,
Boolean onlyWithChildren,
Boolean withMisapplications)
Deprecated. obsolete when using classification |
List<SynonymRelationship> |
getSynonymRelationships(TaxonBase taxonBase,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths,
RelationshipBase.Direction relatedfrom)
|
List<SynonymRelationship> |
getSynonyms(Synonym synoynm,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns the SynonymRelationships (of where relationship.type == type, if this arguement is supplied) where the supplied synonym is relatedFrom. |
List<SynonymRelationship> |
getSynonyms(Taxon taxon,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
Returns the SynonymRelationships (of where relationship.type == type, if this arguement is supplied) where the supplied taxon is relatedTo. |
List<Object[]> |
getTaxaByCommonName(String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
|
List<TaxonBase> |
getTaxaByName(boolean doTaxa,
boolean doSynonyms,
boolean doMisappliedNames,
String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
Returns a list of TaxonBase instances (or Taxon instances, if accepted == true, or Synonym instance, if accepted == false) where the taxonBase.name.nameCache property matches the String queryString. |
List<TaxonBase> |
getTaxaByName(String queryString,
Boolean accepted,
Reference sec)
Returns a list of TaxonBase instances (or Taxon instances, if accepted == true, or Synonym instance, if accepted == false) where the taxonBase.name.nameCache property matches the String queryString, and taxon.sec matches the sec parameter. |
List<TaxonBase> |
getTaxaByName(String queryString,
MatchMode matchMode,
Boolean accepted,
Integer pageSize,
Integer pageNumber)
Returns a list of TaxonBase instances (or Taxon instances, if accepted == true, or Synonym instance, if accepted == false) where the taxonBase.name.nameCache property matches the String queryString. |
List<TaxonBase> |
getTaxaByName(String name,
Reference sec)
Returns a list of TaxonBase instances where the taxon.titleCache property matches the name parameter, and taxon.sec matches the sec parameter. |
List<UuidAndTitleCache<TaxonBase>> |
getTaxaByNameForEditor(boolean doTaxa,
boolean doSynonyms,
String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas)
|
List<UuidAndTitleCache<TaxonNode>> |
getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification)
|
List<TaxonRelationship> |
getTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths,
RelationshipBase.Direction direction)
Returns the TaxonRelationships (of where relationship.type == type, if this argument is supplied) where the supplied taxon either is relatedFrom or relatedTo depending on the direction
parameter. |
List<UuidAndTitleCache<TaxonBase>> |
getUuidAndTitleCacheSynonym()
|
List<UuidAndTitleCache<TaxonBase>> |
getUuidAndTitleCacheTaxon()
|
List<String> |
taxaByNameNotInDB(List<String> taxonNames)
|
| 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 |
|---|
List<TaxonBase> getTaxaByName(String name,
Reference sec)
name - sec -
List<TaxonBase> getTaxaByName(String queryString,
Boolean accepted,
Reference sec)
name - sec -
List<TaxonBase> getTaxaByName(String queryString,
MatchMode matchMode,
Boolean accepted,
Integer pageSize,
Integer pageNumber)
queryString - matchMode - accepted - pageSize - pageNumber -
List<TaxonBase> getTaxaByName(boolean doTaxa,
boolean doSynonyms,
boolean doMisappliedNames,
String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
doTaxa - doSynonyms - queryString - classification - TODOmatchMode - namedAreas - TODOpageSize - pageNumber - propertyPaths - TODO
long countTaxaByName(boolean doTaxa,
boolean doSynonyms,
boolean doMisappliedNames,
String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas)
doTaxa - doSynonyms - queryString - classification - TODOmatchMode - namedAreas - pageSize - pageNumber - propertyPaths -
int countTaxaByName(Class<? extends TaxonBase> clazz,
String uninomial,
String infragenericEpithet,
String specificEpithet,
String infraspecificEpithet,
Rank rank)
doTaxa - doSynonyms - uninomial - infragenericEpithet - specificEpithet - infraspecificEpithet - rank -
List<TaxonBase> findTaxaByName(Class<? extends TaxonBase> clazz,
String uninomial,
String infragenericEpithet,
String specificEpithet,
String infraspecificEpithet,
Rank rank,
Integer pageSize,
Integer pageNumber)
Compare with
#findByName(String, MatchMode, int, int, boolean)
which searches for TaxonNameBase.titleCache
doTaxa - doSynonyms - uninomial - infragenericEpithet - specificEpithet - infraspecificEpithet - rank - pageSize - The maximum number of taxa returned (can be null for all matching taxa)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
List<TaxonBase> findByNameTitleCache(boolean doTaxa,
boolean doSynonyms,
String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas,
Integer pageNumber,
Integer pageSize,
List<String> propertyPaths)
TaxonNameBase.titleCache matches
the name specified as queryString taxonName
Compare with
findTaxaByName(Class, String, String, String, String, Rank, Integer, Integer)
which searches for TaxonNameBase.nameCache
queryString - the taqxon Name to search forclassification - TODOmatchMode - namedAreas - TODOpageNumber - pageSize - onlyAcccepted -
TaxonBase findByUuid(UUID uuid,
List<org.hibernate.criterion.Criterion> criteria,
List<String> propertyPaths)
uuid - The uuid of the taxon requestedcriteria - Custom criteria to be added to the default list of applied criteria.propertyPaths -
List<? extends TaxonBase> findByUuids(List<UUID> uuids,
List<org.hibernate.criterion.Criterion> criteria,
List<String> propertyPaths)
uuids - criteria - propertyPaths -
List<Object[]> getTaxaByCommonName(String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas,
Integer pageSize,
Integer pageNumber,
List<String> propertyPaths)
queryString - classification - matchMode - namedAreas - pageSize - pageNumber - propertyPaths -
List<Taxon> getRootTaxa(Reference sec)
List<Taxon> getRootTaxa(Reference sec,
CdmFetch cdmFetch,
Boolean onlyWithChildren,
Boolean withMisapplications)
sec - The concept reference that the taxon belongs tocdmFetch - not used yet !! TODOonlyWithChildren - if true only taxa are returned that have taxonomic children. withMisaplications - if false only taxa are returned that have no isMisappliedNameFor relationship.
List<Taxon> getRootTaxa(Rank rank,
Reference sec,
CdmFetch cdmFetch,
Boolean onlyWithChildren,
Boolean withMisapplications,
List<String> propertyPaths)
rank - The rank of the taxon namesec - The concept reference that the taxon belongs tocdmFetch - not used yet !! TODOonlyWithChildren - if true only taxa are returned that have taxonomic children. withMisaplications - if false only taxa are returned that have no
isMisappliedNameFor relationship.propertyPaths - properties to be initialized, For detailed description and
examples please refer to:
IBeanInitializer.initialize(Object, List).
List<TaxonBase> getAllTaxonBases(Integer pagesize,
Integer page)
pagesize - max maximum number of returned taxapage - page to start, with 0 being first page
List<Taxon> getAllTaxa(Integer limit,
Integer start)
limit - start -
List<Synonym> getAllSynonyms(Integer limit,
Integer start)
limit - start -
List<RelationshipBase> getAllRelationships(Integer limit,
Integer start)
int countAllRelationships()
int countMatchesByName(String queryString,
MatchMode matchMode,
boolean onlyAcccepted)
queryString - matchMode - onlyAcccepted -
int countMatchesByName(String queryString,
MatchMode matchMode,
boolean onlyAcccepted,
List<org.hibernate.criterion.Criterion> criteria)
queryString - matchMode - onlyAcccepted - criteria -
int countTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
RelationshipBase.Direction direction)
direction
parameter.
taxon - The taxon that is relatedFromtype - The type of TaxonRelationship (can be null)direction - specifies the direction of the relationship
List<TaxonRelationship> getTaxonRelationships(Taxon taxon,
TaxonRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths,
RelationshipBase.Direction direction)
direction
parameter.
taxon - The taxon that is relatedTotype - The type of TaxonRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for
all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result
set (0 - based)orderHints - Properties to order bypropertyPaths - Properties to initialize in the returned entities, following
the syntax described in
IBeanInitializer.initialize(Object, List)direction - specifies the direction of the relationship
int countSynonyms(Taxon taxon,
SynonymRelationshipType type)
taxon - The taxon that is relatedTotype - The type of SynonymRelationship (can be null)
List<SynonymRelationship> getSynonyms(Taxon taxon,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
taxon - The taxon that is relatedTotype - The type of SynonymRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
* @param orderHints Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
int countSynonyms(Synonym synonym,
SynonymRelationshipType type)
taxon - The synonym that is relatedFromtype - The type of SynonymRelationship (can be null)
List<SynonymRelationship> getSynonyms(Synonym synoynm,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths)
taxon - The synonym that is relatedFromtype - The type of SynonymRelationship (can be null)pageSize - The maximum number of relationships returned (can be null for all relationships)pageNumber - The offset (in pageSize chunks) from the start of the result set (0 - based)
* @param orderHints Properties to order bypropertyPaths - Properties to initialize in the returned entities, following the syntax described in IBeanInitializer.initialize(Object, List)
List<UuidAndTitleCache<TaxonNode>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification)
List<TaxonNameBase> findIdenticalTaxonNames(List<String> propertyPath)
tree -
String getPhylumName(TaxonNameBase name)
long countTaxaByCommonName(String searchString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas)
long deleteSynonymRelationships(Synonym syn,
Taxon taxon)
synonym - the synonymtaxon - the taxon, may be null
List<UUID> findIdenticalTaxonNameIds(List<String> propertyPath)
List<TaxonNameBase> findIdenticalNamesNew(List<String> propertyPaths)
Integer countSynonymRelationships(TaxonBase taxonBase,
SynonymRelationshipType type,
RelationshipBase.Direction relatedfrom)
List<SynonymRelationship> getSynonymRelationships(TaxonBase taxonBase,
SynonymRelationshipType type,
Integer pageSize,
Integer pageNumber,
List<OrderHint> orderHints,
List<String> propertyPaths,
RelationshipBase.Direction relatedfrom)
List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCacheTaxon()
List<UuidAndTitleCache<TaxonBase>> getUuidAndTitleCacheSynonym()
List<UuidAndTitleCache<TaxonBase>> getTaxaByNameForEditor(boolean doTaxa,
boolean doSynonyms,
String queryString,
Classification classification,
MatchMode matchMode,
Set<NamedArea> namedAreas)
List<String> taxaByNameNotInDB(List<String> taxonNames)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||