public int countPublishForSubtreeAcceptedTaxa(TreeIndex subTreeIndex, boolean publish, boolean includeSharedTaxa, boolean includeHybrids) {\r
String queryStr = forSubtreeAcceptedQueryStr(includeSharedTaxa, subTreeIndex, !includeHybrids, SelectMode.COUNT);\r
queryStr += " AND t.publish != :publish ";\r
- System.out.println(queryStr);\r
Query query = getSession().createQuery(queryStr);\r
query.setBoolean("publish", publish);\r
return ((Long)query.uniqueResult()).intValue();\r
*
* @author Anton Güntsch (author of original Transmission Engine Occurrence version 14 written in Visual Basic)
* @author Andreas Kohlbecker (2013, porting Transmission Engine Occurrence to Java)
+ * @author a.mueller (refactoring and merge with Structured Description Aggregation)
* @since Feb 22, 2013
*/
public class DistributionAggregation
public static final Logger logger = Logger.getLogger(DistributionAggregation.class);
-
protected static final List<String> TAXONDESCRIPTION_INIT_STRATEGY = Arrays.asList(new String [] {
"description.elements.area",
"description.elements.status",
// "name.status.type",
});
-
/**
* A map which contains the status terms as key and the priority as value
* The map will contain both, the PresenceTerms and the AbsenceTerms
return uuid;
}
-
@Override
public <T extends DescriptionAggregationBase<T,C>, C extends DescriptionAggregationConfigurationBase<T>>
UUID invoke(C config){
return uuid;
}
-
@Override
public UUID addRowWrapperToDataset(Collection<SpecimenRowWrapperDTO> wrapper, UUID datasetUuid){
RemotingProgressMonitorThread monitorThread = new RemotingProgressMonitorThread() {
}
monitor.setResult(updateResult);
return updateResult;
-
}
};
UUID uuid = progressMonitorService.registerNewRemotingMonitor(monitorThread);
}
monitor.setResult(updateResult);
return updateResult;
-
}
};
UUID uuid = progressMonitorService.registerNewRemotingMonitor(monitorThread);
monitorThread.start();
return uuid;
}
-}
+}
\ No newline at end of file