@Repository @Qualifier(value="classificationDaoHibernateImpl") public class ClassificationDaoHibernateImpl extends IdentifiableDaoBase<Classification> implements IClassificationDao
defaultField, indexedClasses
defaultBeanInitializer, flushAfterNo, LEFTOUTER_OPS, type
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
ClassificationDaoHibernateImpl() |
Modifier and Type | Method and Description |
---|---|
ClassificationLookupDTO |
classificationLookup(Classification classification) |
java.lang.Long |
countChildrenOf(Taxon taxon,
Classification classification,
TaxonNode subtree,
boolean includeUnpublished) |
long[] |
countRankSpecificRootNodes(Classification classification,
TaxonNode subtree,
boolean includeUnpublished,
Rank rank) |
java.lang.Long |
countSiblingsOf(Taxon taxon,
Classification classification,
boolean includeUnpublished) |
java.util.UUID |
delete(Classification persistentObject) |
java.util.Set<TreeIndex> |
getMarkedTreeIndexes(MarkerType markerType,
java.lang.Boolean flag) |
TaxonNode |
getRootNode(java.util.UUID classificationUuid) |
java.util.Map<java.util.UUID,java.util.UUID> |
getTaxonNodeUuidByTaxonUuid(java.util.UUID classificationUuid,
java.util.List<java.util.UUID> taxonUuids)
Returns a map of taxon uuids mapping to taxon node uuids in the given classification
|
java.util.List<TaxonNode> |
listChildrenOf(Taxon taxon,
Classification classification,
TaxonNode subtree,
boolean includeUnpublished,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<TaxonNode> |
listRankSpecificRootNodes(Classification classification,
TaxonNode taxonNode,
Rank rank,
boolean includeUnpublished,
java.lang.Integer limit,
java.lang.Integer start,
java.util.List<java.lang.String> propertyPaths,
int queryIndex)
Lists all TaxonNodes of the specified tree for a given Rank.
|
java.util.List<TaxonNode> |
listSiblingsOf(Taxon taxon,
Classification classification,
boolean includeUnpublished,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
java.util.List<java.lang.String> propertyPaths) |
java.util.Map<java.util.UUID,TreeIndex> |
treeIndexForTaxonUuids(java.util.UUID classificationUuid,
java.util.List<java.util.UUID> taxonUuids)
Returns the tree indexes for a given set of taxon uuids as a map.
|
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, rebuildIndex, 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, 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, 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
public java.util.List<TaxonNode> listRankSpecificRootNodes(Classification classification, TaxonNode taxonNode, Rank rank, boolean includeUnpublished, java.lang.Integer limit, java.lang.Integer start, java.util.List<java.lang.String> propertyPaths, int queryIndex)
IClassificationDao
Lists all TaxonNodes of the specified tree for a given Rank. If a branch
does not contain a TaxonNode with a TaxonName at the given Rank the node
associated with the next lower Rank is taken as root node. If the
rank
is null the absolute root nodes will be returned.
See http://dev.e-taxonomy.eu/trac/wiki/CdmClassificationRankSpecificRootnodes
Since this method is using two queries which need to be run sequentially the handling of limit and start is more complex and requires the total count of the items matched by the first query is known. Therefore the handling of limit and start must be managed in the service method that is using this dao method.
listRankSpecificRootNodes
in interface IClassificationDao
rank
- may be nulllimit
- The maximum number of objects returned (can be null for all
matching objects)start
- The offset from the start of the result set (0 - based, can be
null - equivalent of starting at the beginning of the
recordset)queryIndex
- 0: execute first query, 1: excute second query, the second
query is only available when parameter
rank != null
.public long[] countRankSpecificRootNodes(Classification classification, TaxonNode subtree, boolean includeUnpublished, Rank rank)
countRankSpecificRootNodes
in interface IClassificationDao
public java.util.List<TaxonNode> listChildrenOf(Taxon taxon, Classification classification, TaxonNode subtree, boolean includeUnpublished, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<java.lang.String> propertyPaths)
listChildrenOf
in interface IClassificationDao
public TaxonNode getRootNode(java.util.UUID classificationUuid)
getRootNode
in interface IClassificationDao
public java.util.List<TaxonNode> listSiblingsOf(Taxon taxon, Classification classification, boolean includeUnpublished, java.lang.Integer pageSize, java.lang.Integer pageIndex, java.util.List<java.lang.String> propertyPaths)
listSiblingsOf
in interface IClassificationDao
public java.lang.Long countChildrenOf(Taxon taxon, Classification classification, TaxonNode subtree, boolean includeUnpublished)
countChildrenOf
in interface IClassificationDao
public java.lang.Long countSiblingsOf(Taxon taxon, Classification classification, boolean includeUnpublished)
countSiblingsOf
in interface IClassificationDao
public java.util.UUID delete(Classification persistentObject)
delete
in interface ICdmEntityDao<Classification>
delete
in class CdmEntityDaoBase<Classification>
public ClassificationLookupDTO classificationLookup(Classification classification)
classificationLookup
in interface IClassificationDao
public java.util.Map<java.util.UUID,TreeIndex> treeIndexForTaxonUuids(java.util.UUID classificationUuid, java.util.List<java.util.UUID> taxonUuids)
IClassificationDao
treeIndexForTaxonUuids
in interface IClassificationDao
public java.util.Set<TreeIndex> getMarkedTreeIndexes(MarkerType markerType, java.lang.Boolean flag)
getMarkedTreeIndexes
in interface IClassificationDao
public java.util.Map<java.util.UUID,java.util.UUID> getTaxonNodeUuidByTaxonUuid(java.util.UUID classificationUuid, java.util.List<java.util.UUID> taxonUuids)
IClassificationDao
getTaxonNodeUuidByTaxonUuid
in interface IClassificationDao
Copyright © 2007-2020 EDIT. All Rights Reserved.