public abstract class DescriptionAggregationBase<T extends DescriptionAggregationBase<T,CONFIG>,CONFIG extends DescriptionAggregationConfigurationBase<T>>
extends java.lang.Object
and QuantitativeData
, Distribution
,
Media
, etc.Modifier and Type | Class and Description |
---|---|
protected static interface |
DescriptionAggregationBase.ResultHolder |
Constructor and Description |
---|
DescriptionAggregationBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
accumulateSingleTaxon(TaxonNode taxonNode) |
protected abstract void |
addAggregationResultToDescription(TaxonDescription targetDescription,
DescriptionAggregationBase.ResultHolder resultHolder) |
protected void |
addSourcesDeduplicated(java.util.Set<DescriptionElementSource> target,
java.util.Set<DescriptionElementSource> sourcesToAdd) |
protected void |
aggregate(java.util.List<java.lang.Integer> taxonNodeIdList,
IProgressMonitor subMonitor) |
protected abstract void |
aggregateToParentTaxon(TaxonNode taxonNode,
DescriptionAggregationBase.ResultHolder resultHolder,
java.util.Set<TaxonDescription> excludedDescriptions) |
protected abstract void |
aggregateWithinSingleTaxon(Taxon taxon,
DescriptionAggregationBase.ResultHolder resultHolder,
java.util.Set<TaxonDescription> excludedDescriptions) |
protected void |
beginTask(java.lang.String name,
int totalWork) |
protected void |
commitTransaction(org.springframework.transaction.TransactionStatus txStatus) |
protected abstract TaxonDescription |
createNewDescription(Taxon taxon) |
protected abstract DescriptionAggregationBase.ResultHolder |
createResultHolder() |
protected abstract java.util.List<java.lang.String> |
descriptionInitStrategy() |
protected UpdateResult |
doInvoke() |
protected void |
done() |
protected IClassificationService |
getClassificationService() |
protected CONFIG |
getConfig() |
protected IDescriptionService |
getDescriptionService() |
protected IDescriptiveDataSetService |
getDescriptiveDatasetService() |
protected IProgressMonitor |
getMonitor() |
protected ICdmRepository |
getRepository() |
protected UpdateResult |
getResult() |
protected org.hibernate.Session |
getSession() |
protected ITaxonNodeService |
getTaxonNodeService() |
protected ITaxonService |
getTaxonService() |
protected ITermService |
getTermService() |
protected org.springframework.transaction.PlatformTransactionManager |
getTransactionManager() |
protected abstract boolean |
hasDescriptionType(TaxonDescription description) |
protected abstract void |
initTransaction()
hook for initializing object when a new transaction starts
|
UpdateResult |
invoke(CONFIG config,
ICdmRepository repository) |
protected abstract java.lang.String |
pluralDataType() |
protected abstract void |
preAggregate() |
protected void |
removeDescriptionIfEmpty(TaxonDescription description) |
void |
setBatchMinFreeHeap(long batchMinFreeHeap) |
protected abstract void |
setDescriptionTitle(TaxonDescription description,
Taxon taxon) |
protected org.springframework.transaction.TransactionStatus |
startTransaction(java.lang.Boolean readOnly) |
protected void |
subTask(java.lang.String name) |
protected java.lang.String |
taxonToString(TaxonBase<?> taxon) |
protected void |
worked(int work) |
protected void |
workedAndNewTask(int work,
java.lang.String newTask) |
public static final Logger logger
public final UpdateResult invoke(CONFIG config, ICdmRepository repository) throws JvmLimitsException
JvmLimitsException
protected UpdateResult doInvoke() throws JvmLimitsException
JvmLimitsException
protected void aggregate(java.util.List<java.lang.Integer> taxonNodeIdList, IProgressMonitor subMonitor) throws JvmLimitsException
JvmLimitsException
protected void accumulateSingleTaxon(TaxonNode taxonNode)
protected void removeDescriptionIfEmpty(TaxonDescription description)
protected abstract void addAggregationResultToDescription(TaxonDescription targetDescription, DescriptionAggregationBase.ResultHolder resultHolder)
protected abstract void aggregateToParentTaxon(TaxonNode taxonNode, DescriptionAggregationBase.ResultHolder resultHolder, java.util.Set<TaxonDescription> excludedDescriptions)
protected abstract void aggregateWithinSingleTaxon(Taxon taxon, DescriptionAggregationBase.ResultHolder resultHolder, java.util.Set<TaxonDescription> excludedDescriptions)
protected abstract DescriptionAggregationBase.ResultHolder createResultHolder()
protected abstract TaxonDescription createNewDescription(Taxon taxon)
protected abstract boolean hasDescriptionType(TaxonDescription description)
protected abstract void setDescriptionTitle(TaxonDescription description, Taxon taxon)
protected java.lang.String taxonToString(TaxonBase<?> taxon)
protected abstract java.util.List<java.lang.String> descriptionInitStrategy()
protected abstract void preAggregate()
protected abstract void initTransaction()
protected abstract java.lang.String pluralDataType()
protected void addSourcesDeduplicated(java.util.Set<DescriptionElementSource> target, java.util.Set<DescriptionElementSource> sourcesToAdd)
protected IDescriptionService getDescriptionService()
protected IDescriptiveDataSetService getDescriptiveDatasetService()
protected ITaxonService getTaxonService()
protected ITaxonNodeService getTaxonNodeService()
protected ITermService getTermService()
protected IClassificationService getClassificationService()
protected org.springframework.transaction.PlatformTransactionManager getTransactionManager()
protected void commitTransaction(org.springframework.transaction.TransactionStatus txStatus)
protected org.springframework.transaction.TransactionStatus startTransaction(java.lang.Boolean readOnly)
protected org.hibernate.Session getSession()
protected ICdmRepository getRepository()
protected CONFIG getConfig()
protected UpdateResult getResult()
protected IProgressMonitor getMonitor()
protected void beginTask(java.lang.String name, int totalWork)
protected void worked(int work)
protected void workedAndNewTask(int work, java.lang.String newTask)
protected void subTask(java.lang.String name)
protected void done()
public void setBatchMinFreeHeap(long batchMinFreeHeap)
Copyright © 2007-2020 EDIT. All Rights Reserved.