@Repository @Qualifier(value="taxonNodeDaoHibernateImpl") public class TaxonNodeDaoHibernateImpl extends AnnotatableDaoImpl<TaxonNode> implements ITaxonNodeDao
defaultBeanInitializer, flushAfterNo, LEFTOUTER_OPS, type
INCLUDE_UNPUBLISHED, NO_UNPUBLISHED
Constructor and Description |
---|
TaxonNodeDaoHibernateImpl() |
Modifier and Type | Method and Description |
---|---|
long |
count(java.lang.Class<? extends TaxonNode> type,
java.util.List<Restriction<?>> restrictions)
Counts the Cdm entities matching the restrictions defined by
the
parameters propertyName , value and matchMode . |
long |
count(java.lang.Class<? extends TaxonNode> type,
java.util.List<Restriction<?>> restrictions,
boolean includePublished) |
java.lang.Long |
countChildrenOf(TaxonNode node,
Classification classification,
boolean recursive,
boolean includeUnpublished) |
int |
countPublishForSubtreeAcceptedTaxa(TreeIndex subTreeIndex,
boolean publish,
boolean includeSharedTaxa,
boolean includeHybrids) |
int |
countPublishForSubtreeRelatedTaxa(TreeIndex subTreeIndex,
boolean publish,
boolean includeSharedTaxa,
boolean includeHybrids) |
int |
countPublishForSubtreeSynonyms(TreeIndex subTreeIndex,
boolean publish,
boolean includeSharedTaxa,
boolean includeHybrids) |
int |
countSecundumForSubtreeAcceptedTaxa(TreeIndex subTreeIndex,
Reference newSec,
boolean overwriteExisting,
boolean includeSharedTaxa,
boolean emptySecundumDetail) |
int |
countSecundumForSubtreeSynonyms(TreeIndex subTreeIndex,
Reference newSec,
boolean overwriteExisting,
boolean includeSharedTaxa,
boolean emptySecundumDetail) |
long |
countTaxonNodeAgentRelations(java.util.UUID taxonUuid,
java.util.UUID classificationUuid,
java.util.UUID agentUuid,
java.util.UUID rankUuid,
java.util.UUID relTypeUuid)
Returns the number of TaxonNodeAgentRelation entities which are associated with the TaxonNode for the
given TaxonUuid in the specified Classification.
|
int |
countTaxonOfAcceptedTaxaByClassification(Classification classification) |
java.util.UUID |
delete(TaxonNode persistentObject,
boolean deleteChildren) |
java.util.List<TaxonNodeDto> |
getParentTaxonNodeDtoForRank(Classification classification,
Rank rank,
TaxonBase<?> taxonBase) |
java.util.List<TaxonNodeDto> |
getParentTaxonNodeDtoForRank(Classification classification,
Rank rank,
TaxonName name) |
TaxonNodeDto |
getParentUuidAndTitleCache(TaxonNodeDto child)
Retrieves the parent node of the
TaxonNode represented by the given UuidAndTitleCache . |
java.util.List<TaxonNodeDto> |
getTaxonNodeDto(java.lang.Integer limit,
java.lang.String pattern,
java.util.UUID classificationUuid) |
java.util.List<UuidAndTitleCache<TaxonNode>> |
getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification,
java.lang.Integer limit,
java.lang.String pattern,
boolean searchForClassifications) |
java.util.List<TaxonNode> |
getTaxonOfAcceptedTaxaByClassification(Classification classification,
java.lang.Integer start,
java.lang.Integer end) |
java.util.List<TaxonNodeDto> |
getUuidAndTitleCache(java.lang.Integer limit,
java.lang.String pattern,
java.util.UUID classificationUuid)
Retrieves a list of
UuidAndTitleCache objects that have a matching titleCache |
<S extends TaxonNode> |
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)
Returns a list of Cdm entities stored in the database filtered by the restrictions defined by
the
parameters propertyName , value and matchMode
A maximum
of 'limit' objects are returned, starting at object with index 'start'. |
<S extends TaxonNode> |
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<TaxonNodeDto> |
listChildNodesAsTaxonNodeDto(TaxonNodeDto parent) |
java.util.List<TaxonNodeDto> |
listChildNodesAsUuidAndTitleCache(TaxonNodeDto parent)
Lists all direct child nodes of the given
UuidAndTitleCache which
represents the parent TaxonNode |
java.util.List<TaxonNode> |
listChildrenOf(TaxonNode node,
java.lang.Integer pageSize,
java.lang.Integer pageIndex,
boolean recursive,
boolean includeUnpublished,
java.util.List<java.lang.String> propertyPaths) |
java.util.List<TaxonNodeAgentRelation> |
listTaxonNodeAgentRelations(java.util.UUID taxonUuid,
java.util.UUID classificationUuid,
java.util.UUID agentUuid,
java.util.UUID rankUuid,
java.util.UUID relTypeUuid,
java.lang.Integer start,
java.lang.Integer limit,
java.util.List<java.lang.String> propertyPaths)
Returns the of TaxonNodeAgentRelation entities which are associated with the TaxonNode for the
given TaxonUuid in the specified Classification.
|
java.util.Map<TreeIndex,java.lang.Integer> |
rankOrderIndexForTreeIndex(java.util.List<TreeIndex> treeIndexes,
java.lang.Integer minRankOrderIndex,
java.lang.Integer maxRankOrderIndex)
Computes a map treeIndex->rank(sortIndex) for each given taxon node treeIndex.
|
java.util.Set<TaxonBase> |
setPublishForSubtreeAcceptedTaxa(TreeIndex subTreeIndex,
boolean publish,
boolean includeSharedTaxa,
boolean includeHybrids,
IProgressMonitor monitor) |
java.util.Set<TaxonBase> |
setPublishForSubtreeRelatedTaxa(TreeIndex subTreeIndex,
boolean publish,
java.util.Set<java.util.UUID> relationTypes,
boolean includeSharedTaxa,
boolean includeHybrids,
IProgressMonitor monitor) |
java.util.Set<TaxonBase> |
setPublishForSubtreeSynonyms(TreeIndex subTreeIndex,
boolean publish,
boolean includeSharedTaxa,
boolean includeHybrids,
IProgressMonitor monitor) |
java.util.Set<TaxonBase> |
setSecundumForSubtreeAcceptedTaxa(TreeIndex subTreeIndex,
Reference newSec,
boolean overwriteExisting,
boolean includeSharedTaxa,
boolean emptyDetail,
IProgressMonitor monitor) |
java.util.Set<TaxonBase> |
setSecundumForSubtreeSynonyms(TreeIndex subTreeIndex,
Reference newSec,
boolean overwriteExisting,
boolean includeSharedTaxa,
boolean emptyDetail,
IProgressMonitor monitor) |
java.util.Map<TreeIndex,UuidAndTitleCache<?>> |
taxonUuidsForTreeIndexes(java.util.Collection<TreeIndex> treeIndexes)
For a given set of taxon node tree indexes the uuid and title cache of the taxon represented
by this treeindex is returned.
|
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, countByParamWithRestrictions, countGroups, createCriteria, delete, entityType, findById, findByParam, findByUuid, findByUuidWithoutFlush, getAuditReader, getCriteria, getSession, getType, group, 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
countAnnotations, countMarkers, countMarkers, getAnnotations, getMarkers, groupMarkers
countAuditEvents, countAuditEvents, getAuditEvents, getAuditEvents, getNextAuditEvent, getPreviousAuditEvent
clear, 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, load, load, load, loadList, lock, merge, merge, refresh, refresh, replace, save, saveAll, saveOrUpdate, saveOrUpdateAll, update
public java.util.UUID delete(TaxonNode persistentObject, boolean deleteChildren)
delete
in interface ITaxonNodeDao
public java.util.List<TaxonNode> getTaxonOfAcceptedTaxaByClassification(Classification classification, java.lang.Integer start, java.lang.Integer end)
getTaxonOfAcceptedTaxaByClassification
in interface ITaxonNodeDao
public int countTaxonOfAcceptedTaxaByClassification(Classification classification)
countTaxonOfAcceptedTaxaByClassification
in interface ITaxonNodeDao
public java.util.List<TaxonNodeDto> listChildNodesAsUuidAndTitleCache(TaxonNodeDto parent)
ITaxonNodeDao
UuidAndTitleCache
which
represents the parent TaxonNode
listChildNodesAsUuidAndTitleCache
in interface ITaxonNodeDao
parent
- a UuidAndTitleCache object which represents a parent TaxonNode
public java.util.List<TaxonNodeDto> listChildNodesAsTaxonNodeDto(TaxonNodeDto parent)
listChildNodesAsTaxonNodeDto
in interface ITaxonNodeDao
public java.util.List<TaxonNodeDto> getUuidAndTitleCache(java.lang.Integer limit, java.lang.String pattern, java.util.UUID classificationUuid)
ITaxonNodeDao
UuidAndTitleCache
objects that have a matching titleCachegetUuidAndTitleCache
in interface ITaxonNodeDao
limit
- the maximum resultspattern
- the titleCache that is searched forclassificationUuid
- if specified only nodes of this classification are retrievedpublic TaxonNodeDto getParentUuidAndTitleCache(TaxonNodeDto child)
ITaxonNodeDao
TaxonNode
represented by the given UuidAndTitleCache
.getParentUuidAndTitleCache
in interface ITaxonNodeDao
child
- the child for which the parent should be retrievedpublic java.util.List<TaxonNode> listChildrenOf(TaxonNode node, java.lang.Integer pageSize, java.lang.Integer pageIndex, boolean recursive, boolean includeUnpublished, java.util.List<java.lang.String> propertyPaths)
listChildrenOf
in interface ITaxonNodeDao
public java.lang.Long countChildrenOf(TaxonNode node, Classification classification, boolean recursive, boolean includeUnpublished)
countChildrenOf
in interface ITaxonNodeDao
public java.util.List<TaxonNodeAgentRelation> listTaxonNodeAgentRelations(java.util.UUID taxonUuid, java.util.UUID classificationUuid, java.util.UUID agentUuid, java.util.UUID rankUuid, java.util.UUID relTypeUuid, java.lang.Integer start, java.lang.Integer limit, java.util.List<java.lang.String> propertyPaths)
ITaxonNodeDao
listTaxonNodeAgentRelations
in interface ITaxonNodeDao
agentUuid
- TODOrelTypeUuid
- TODOpublic <S extends TaxonNode> 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)
CdmEntityDaoBase
parameters
propertyName
, value and matchMode
A maximum
of 'limit' objects are returned, starting at object with index 'start'.
The bean properties specified by the parameter propertyPaths
and recursively initialized for each of the entities in the resultset
For detailed description and examples regarding
propertyPaths
please refer to:
IBeanInitializer.initialize(Object, List)
list
in interface ICdmEntityDao<TaxonNode>
list
in class CdmEntityDaoBase<TaxonNode>
type
- Restrict the query to objects of a certain class, or null for
all objects of type T or subclassesrestrictions
- This defines a filter for multiple properties represented by the map keys. Sine the keys are of the type
Restriction
for each property a single MatchMode is defined. Multiple alternative values
can be supplied per property, that is the values per property are combined with OR. The per property
restrictions are combined with AND.
NOTE: For non string type properties you must use
MatchMode.EXACT
. If set null
MatchMode.EXACT
will be used
as default.limit
- the maximum number of entities returned (can be null to return
all entities)start
- The list of criterion objects representing the restriction to be applied.orderHints
- Supports path like orderHints.propertyNames
which
include *-to-one properties like createdBy.username or
authorTeam.persistentTitleCachepublic <S extends TaxonNode> 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)
list
in interface ITaxonNodeDao
public long count(java.lang.Class<? extends TaxonNode> type, java.util.List<Restriction<?>> restrictions)
CdmEntityDaoBase
parameters
propertyName
, value and matchMode
.count
in interface ICdmEntityDao<TaxonNode>
count
in class CdmEntityDaoBase<TaxonNode>
type
- Restrict the query to objects of a certain class, or null for
all objects of type T or subclassesrestrictions
- This defines a filter for multiple properties represented by the map keys. Sine the keys are of the type
Restriction
for each property a single MatchMode is defined. Multiple alternative values
can be supplied per property, that is the values per property are combined with OR. The per property
restrictions are combined with AND.
NOTE: For non string type properties you must use
MatchMode.EXACT
. If set null
MatchMode.EXACT
will be used
as default.public long count(java.lang.Class<? extends TaxonNode> type, java.util.List<Restriction<?>> restrictions, boolean includePublished)
count
in interface ITaxonNodeDao
public long countTaxonNodeAgentRelations(java.util.UUID taxonUuid, java.util.UUID classificationUuid, java.util.UUID agentUuid, java.util.UUID rankUuid, java.util.UUID relTypeUuid)
ITaxonNodeDao
countTaxonNodeAgentRelations
in interface ITaxonNodeDao
agentUuid
- TODOrelTypeUuid
- TODOpublic java.util.Map<TreeIndex,java.lang.Integer> rankOrderIndexForTreeIndex(java.util.List<TreeIndex> treeIndexes, java.lang.Integer minRankOrderIndex, java.lang.Integer maxRankOrderIndex)
ITaxonNodeDao
rankOrderIndexForTreeIndex
in interface ITaxonNodeDao
treeIndexes
- the list of treeIndexesminRankOrderIndex
- min rankmaxRankOrderIndex
- max rankpublic java.util.Map<TreeIndex,UuidAndTitleCache<?>> taxonUuidsForTreeIndexes(java.util.Collection<TreeIndex> treeIndexes)
ITaxonNodeDao
taxonUuidsForTreeIndexes
in interface ITaxonNodeDao
treeIndexes
- set of taxon node tree indexespublic java.util.List<TaxonNodeDto> getParentTaxonNodeDtoForRank(Classification classification, Rank rank, TaxonBase<?> taxonBase)
getParentTaxonNodeDtoForRank
in interface ITaxonNodeDao
public java.util.List<TaxonNodeDto> getParentTaxonNodeDtoForRank(Classification classification, Rank rank, TaxonName name)
getParentTaxonNodeDtoForRank
in interface ITaxonNodeDao
public int countSecundumForSubtreeAcceptedTaxa(TreeIndex subTreeIndex, Reference newSec, boolean overwriteExisting, boolean includeSharedTaxa, boolean emptySecundumDetail)
countSecundumForSubtreeAcceptedTaxa
in interface ITaxonNodeDao
public int countSecundumForSubtreeSynonyms(TreeIndex subTreeIndex, Reference newSec, boolean overwriteExisting, boolean includeSharedTaxa, boolean emptySecundumDetail)
countSecundumForSubtreeSynonyms
in interface ITaxonNodeDao
public java.util.Set<TaxonBase> setSecundumForSubtreeAcceptedTaxa(TreeIndex subTreeIndex, Reference newSec, boolean overwriteExisting, boolean includeSharedTaxa, boolean emptyDetail, IProgressMonitor monitor)
setSecundumForSubtreeAcceptedTaxa
in interface ITaxonNodeDao
public java.util.Set<TaxonBase> setSecundumForSubtreeSynonyms(TreeIndex subTreeIndex, Reference newSec, boolean overwriteExisting, boolean includeSharedTaxa, boolean emptyDetail, IProgressMonitor monitor)
setSecundumForSubtreeSynonyms
in interface ITaxonNodeDao
public int countPublishForSubtreeAcceptedTaxa(TreeIndex subTreeIndex, boolean publish, boolean includeSharedTaxa, boolean includeHybrids)
countPublishForSubtreeAcceptedTaxa
in interface ITaxonNodeDao
public int countPublishForSubtreeSynonyms(TreeIndex subTreeIndex, boolean publish, boolean includeSharedTaxa, boolean includeHybrids)
countPublishForSubtreeSynonyms
in interface ITaxonNodeDao
public java.util.Set<TaxonBase> setPublishForSubtreeAcceptedTaxa(TreeIndex subTreeIndex, boolean publish, boolean includeSharedTaxa, boolean includeHybrids, IProgressMonitor monitor)
setPublishForSubtreeAcceptedTaxa
in interface ITaxonNodeDao
public java.util.Set<TaxonBase> setPublishForSubtreeSynonyms(TreeIndex subTreeIndex, boolean publish, boolean includeSharedTaxa, boolean includeHybrids, IProgressMonitor monitor)
setPublishForSubtreeSynonyms
in interface ITaxonNodeDao
public int countPublishForSubtreeRelatedTaxa(TreeIndex subTreeIndex, boolean publish, boolean includeSharedTaxa, boolean includeHybrids)
countPublishForSubtreeRelatedTaxa
in interface ITaxonNodeDao
public java.util.Set<TaxonBase> setPublishForSubtreeRelatedTaxa(TreeIndex subTreeIndex, boolean publish, java.util.Set<java.util.UUID> relationTypes, boolean includeSharedTaxa, boolean includeHybrids, IProgressMonitor monitor)
setPublishForSubtreeRelatedTaxa
in interface ITaxonNodeDao
public java.util.List<UuidAndTitleCache<TaxonNode>> getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification(Classification classification, java.lang.Integer limit, java.lang.String pattern, boolean searchForClassifications)
getTaxonNodeUuidAndTitleCacheOfAcceptedTaxaByClassification
in interface ITaxonNodeDao
public java.util.List<TaxonNodeDto> getTaxonNodeDto(java.lang.Integer limit, java.lang.String pattern, java.util.UUID classificationUuid)
getTaxonNodeDto
in interface ITaxonNodeDao
Copyright © 2007-2020 EDIT. All Rights Reserved.