public interface ITaxonNameDao extends IIdentifiableDao<TaxonName>
Modifier and Type | Method and Description |
---|---|
long |
count(java.lang.Class<? extends TaxonName> type,
java.util.List<Restriction<?>> restrictions,
boolean includePublished) |
long |
countByFullTitle(java.lang.Class<TaxonName> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria) |
long |
countByName(java.lang.Class<TaxonName> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria) |
java.lang.Integer |
countByName(java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria) |
int |
countHybridNames(INonViralName name,
HybridRelationshipType type)
Return a count of hybrids related to this name, optionally filtered by
hybrid relationship type
|
long |
countHybridRelationships(java.util.Set<HybridRelationshipType> types)
Returns the number of hybrid relationships of the given hybrid relationship types or
all types if types is
null . |
long |
countNameRelationships(java.util.Set<NameRelationshipType> types)
Returns the number of name relationships of the given name relationship types or
all types if types is
null . |
int |
countNameRelationships(TaxonName name,
RelationshipBase.Direction direction,
NameRelationshipType type)
Return a count of names related to or from this name, optionally filtered
by relationship type.
|
long |
countNames(java.lang.String queryString)
Returns a count of TaxonName instances which nameCache matches the
String queryString
|
long |
countNames(java.lang.String queryString,
MatchMode matchMode,
java.util.List<org.hibernate.criterion.Criterion> criteria)
Returns a count of TaxonName instances that match the properties passed
|
long |
countNames(java.lang.String uninomial,
java.lang.String infraGenericEpithet,
java.lang.String specificEpithet,
java.lang.String infraspecificEpithet,
Rank rank)
Returns a count of TaxonName instances that match the properties
passed
|
long |
countTaxonNameParts(java.util.Optional<java.lang.String> genusOrUninomial,
java.util.Optional<java.lang.String> infraGenericEpithet,
java.util.Optional<java.lang.String> specificEpithet,
java.util.Optional<java.lang.String> infraSpecificEpithet,
Rank rank,
java.util.Collection<java.util.UUID> excludedNames)
Count method complementing
#findTaxonNameParts(Optional, Optional, Optional, Optional, Rank) |
long |
countTypeDesignations(TaxonName name,
SpecimenTypeDesignationStatus status)
Return a count of types related to this name, optionally filtered by type
designation status
|
java.util.List<TaxonName> |
findByFullTitle(java.lang.String queryString,
MatchMode matchmode,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<TaxonName> |
findByName(boolean doIncludeAuthors,
java.lang.String queryString,
MatchMode matchmode,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<TaxonName> |
findByName(java.lang.Class<TaxonName> clazz,
java.lang.String queryString,
MatchMode matchmode,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<TaxonName> |
findByTitle(java.lang.String queryString,
MatchMode matchmode,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.util.List<java.lang.String> propertyPaths) |
TaxonName |
findByUuid(java.util.UUID uuid,
java.util.List<org.hibernate.criterion.Criterion> criteria,
java.util.List<java.lang.String> propertyPaths)
Returns a taxon name corresponding to the given uuid
|
java.util.List<TaxonNameParts> |
findTaxonNameParts(java.util.Optional<java.lang.String> genusOrUninomial,
java.util.Optional<java.lang.String> infraGenericEpithet,
java.util.Optional<java.lang.String> specificEpithet,
java.util.Optional<java.lang.String> infraSpecificEpithet,
Rank rank,
java.util.Collection<java.util.UUID> excludedNamesUuids,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<OrderHint> orderHints)
Supports using wildcards in the query parameters.
|
IZoologicalName |
findZoologicalNameByUUID(java.util.UUID uuid) |
java.util.List<HybridRelationship> |
getHybridNames(INonViralName name,
HybridRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of hybrids related to this name, optionally filtered by
hybrid relationship type
|
java.util.List<HybridRelationship> |
getHybridRelationships(java.util.Set<HybridRelationshipType> types,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> |
getNameRecords() |
java.util.List<NameRelationship> |
getNameRelationships(java.util.Set<NameRelationshipType> types,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<NameRelationship> |
getNameRelationships(TaxonName name,
RelationshipBase.Direction direction,
NameRelationshipType type,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Return a List of relationships related to or from this name, optionally filtered
by relationship type.
|
<T extends TypeDesignationBase> |
getTypeDesignations(TaxonName name,
java.lang.Class<T> type,
TypeDesignationStatusBase status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Return a List of types related to this name, optionally filtered by type
designation status
|
java.util.List<TypeDesignationBase> |
getTypeDesignations(TaxonName name,
TypeDesignationStatusBase status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<java.lang.String> propertyPaths)
Deprecated.
|
java.util.List<java.lang.Integer> |
getTypeSpecimenIdsForTaxonName(TaxonName name,
TypeDesignationStatusBase status,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Return a list ids of specimens that are type specimens for the given name
|
java.util.List<UuidAndTitleCache> |
getUuidAndTitleCacheOfNames(java.lang.Integer limit,
java.lang.String pattern) |
<S extends TaxonName> |
list(java.lang.Class<S> type,
java.util.List<Restriction<?>> restrictions,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths,
boolean includePublished) |
java.util.List<TaxonName> |
searchNames(java.lang.String queryString,
java.lang.Integer pageSize,
java.lang.Integer pageNumber)
Returns a List of TaxonName instances which nameCache matches the
query string
|
java.util.List<TaxonName> |
searchNames(java.lang.String uninomial,
java.lang.String infraGenericEpithet,
java.lang.String specificEpithet,
java.lang.String infraspecificEpithet,
Rank rank,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.util.List<OrderHint> orderHints,
java.util.List<java.lang.String> propertyPaths)
Returns a List of TaxonName instances that match the properties
passed
|
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
int countNameRelationships(TaxonName name, RelationshipBase.Direction direction, NameRelationshipType type)
direction
parameter.name
- the namedirection
- specifies the direction of the relationshiptype
- the relationship type (or null to return all relationships)java.util.List<NameRelationship> getNameRelationships(TaxonName name, RelationshipBase.Direction direction, NameRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
direction
parameter.
If both name and direction is null all name relationships will be returned.name
- the namedirection
- specifies the direction of the relationship, may be null to return all relationshipstype
- the relationship type (or null to return all relationships)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) of the result set (0 - based)orderHints
- may be nullpropertyPaths
- properties to initialize - see IBeanInitializer.initialize(Object, List)
int countHybridNames(INonViralName name, HybridRelationshipType type)
name
- the nametype
- the hybrid relationship type (or null to return all hybrid)java.util.List<HybridRelationship> getHybridNames(INonViralName name, HybridRelationshipType type, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
name
- the nametype
- the hybrid relationship type (or null to return all hybrids)pageSize
- The maximum number of hybrid relationships returned (can be
null for all relationships)pageNumber
- The offset (in pageSize chunks) from the start of the result
set (0 - based)long countTypeDesignations(TaxonName name, SpecimenTypeDesignationStatus status)
name
- the namestatus
- the type designation status (or null to return all types)<T extends TypeDesignationBase> java.util.List<T> getTypeDesignations(TaxonName name, java.lang.Class<T> type, TypeDesignationStatusBase status, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
name
- the nametype
- limit the result set to a specific subtype of TypeDesignationBase, may be nullstatus
- the type designation status (or null to return all types)pageSize
- The maximum number of types returned (can be null for all
types)pageNumber
- The offset (in pageSize chunks) from the start of the result
set (0 - based)propertyPaths
- java.util.List<java.lang.Integer> getTypeSpecimenIdsForTaxonName(TaxonName name, TypeDesignationStatusBase status, java.lang.Integer pageSize, java.lang.Integer pageNumber)
name
- status
- pageSize
- pageNumber
- @Deprecated java.util.List<TypeDesignationBase> getTypeDesignations(TaxonName name, TypeDesignationStatusBase status, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<java.lang.String> propertyPaths)
getTypeDesignations(TaxonName, Class, TypeDesignationStatusBase, Integer, Integer, List)
insteadname
- the namestatus
- the type designation status (or null to return all types)pageSize
- The maximum number of types returned (can be null for all
types)pageNumber
- The offset (in pageSize chunks) from the start of the result
set (0 - based)propertyPaths
- java.util.List<TaxonName> searchNames(java.lang.String uninomial, java.lang.String infraGenericEpithet, java.lang.String specificEpithet, java.lang.String infraspecificEpithet, Rank rank, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
uninomial
- infraGenericEpithet
- specificEpithet
- infraspecificEpithet
- rank
- pageSize
- The maximum number of names returned (can be null for all
names)pageNumber
- The offset (in pageSize chunks) from the start of the result
set (0 - based)propertyPaths
- orderHints
- long countNames(java.lang.String uninomial, java.lang.String infraGenericEpithet, java.lang.String specificEpithet, java.lang.String infraspecificEpithet, Rank rank)
uninomial
- infraGenericEpithet
- specificEpithet
- infraspecificEpithet
- rank
- long countNames(java.lang.String queryString, MatchMode matchMode, java.util.List<org.hibernate.criterion.Criterion> criteria)
queryString
- matchMode
- criteria
- java.util.List<TaxonName> searchNames(java.lang.String queryString, java.lang.Integer pageSize, java.lang.Integer pageNumber)
queryString
- pageSize
- The maximum number of names returned (can be null for all
names)pageNumber
- The offset (in pageSize chunks) from the start of the result
set (0 - based)long countNames(java.lang.String queryString)
queryString
- java.util.List<TaxonName> findByName(boolean doIncludeAuthors, java.lang.String queryString, MatchMode matchmode, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<org.hibernate.criterion.Criterion> criteria, java.util.List<java.lang.String> propertyPaths)
queryString
- matchmode
- pageSize
- pageNumber
- criteria
- propertyPaths
- TODOjava.util.List<TaxonName> findByFullTitle(java.lang.String queryString, MatchMode matchmode, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<org.hibernate.criterion.Criterion> criteria, java.util.List<java.lang.String> propertyPaths)
queryString
- matchmode
- pageSize
- pageNumber
- criteria
- propertyPaths
- TODOjava.util.List<TaxonName> findByTitle(java.lang.String queryString, MatchMode matchmode, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<org.hibernate.criterion.Criterion> criteria, java.util.List<java.lang.String> propertyPaths)
queryString
- matchmode
- pageSize
- pageNumber
- criteria
- propertyPaths
- TODOTaxonName findByUuid(java.util.UUID uuid, java.util.List<org.hibernate.criterion.Criterion> criteria, java.util.List<java.lang.String> propertyPaths)
uuid
- The uuid of the taxon name requestedcriteria
- Custom criteria to be added to the default list of applied criteria.propertyPaths
- java.lang.Integer countByName(java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria)
queryString
- matchmode
- criteria
- java.util.List<UuidAndTitleCache> getUuidAndTitleCacheOfNames(java.lang.Integer limit, java.lang.String pattern)
java.util.List<TaxonName> findByName(java.lang.Class<TaxonName> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
clazz
- queryString
- matchmode
- pageSize
- pageNumber
- criteria
- orderHints
- propertyPaths
- TODOlong countByName(java.lang.Class<TaxonName> clazz, java.lang.String queryString, MatchMode matchmode, java.util.List<org.hibernate.criterion.Criterion> criteria)
clazz
- queryString
- matchmode
- criteria
- IZoologicalName findZoologicalNameByUUID(java.util.UUID uuid)
java.util.List<java.util.HashMap<java.lang.String,java.lang.String>> getNameRecords()
java.util.List<TaxonNameParts> findTaxonNameParts(java.util.Optional<java.lang.String> genusOrUninomial, java.util.Optional<java.lang.String> infraGenericEpithet, java.util.Optional<java.lang.String> specificEpithet, java.util.Optional<java.lang.String> infraSpecificEpithet, Rank rank, java.util.Collection<java.util.UUID> excludedNamesUuids, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<OrderHint> orderHints)
A query parameter which is passed as NULL
value will be ignored.
A parameter passed as Optional
object containing a NULL
value will be used
to filter select taxon names where the according field is null
.
genusOrUninomial
- infraGenericEpithet
- specificEpithet
- infraSpecificEpithet
- rank
- Only name having the specified rank are taken into account.excludedNamesUuids
- Names to be excluded from the result setlong countTaxonNameParts(java.util.Optional<java.lang.String> genusOrUninomial, java.util.Optional<java.lang.String> infraGenericEpithet, java.util.Optional<java.lang.String> specificEpithet, java.util.Optional<java.lang.String> infraSpecificEpithet, Rank rank, java.util.Collection<java.util.UUID> excludedNames)
#findTaxonNameParts(Optional, Optional, Optional, Optional, Rank)
genusOrUninomial
- infraGenericEpithet
- specificEpithet
- infraSpecificEpithet
- rank
- Only name having the specified rank are taken into account.excludedNamesUuids
- Names to be excluded from the result set<S extends TaxonName> java.util.List<S> list(java.lang.Class<S> type, java.util.List<Restriction<?>> restrictions, java.lang.Integer limit, java.lang.Integer start, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths, boolean includePublished)
long count(java.lang.Class<? extends TaxonName> type, java.util.List<Restriction<?>> restrictions, boolean includePublished)
long countNameRelationships(java.util.Set<NameRelationshipType> types)
null
.types
- java.util.List<NameRelationship> getNameRelationships(java.util.Set<NameRelationshipType> types, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
long countHybridRelationships(java.util.Set<HybridRelationshipType> types)
null
.types
- java.util.List<HybridRelationship> getHybridRelationships(java.util.Set<HybridRelationshipType> types, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.util.List<OrderHint> orderHints, java.util.List<java.lang.String> propertyPaths)
Copyright © 2007-2020 EDIT. All Rights Reserved.