public final T createDatasetEntity( ProcedureEntity procedure, CategoryEntity category, FeatureEntity feature, OfferingEntity offering, PhenomenonEntity phenomenon, ProxyServiceEntity service) { T datasetEntity = createDatasetEntity(service); datasetEntity.setDomainId(getDomainId()); datasetEntity.setProcedure(procedure); datasetEntity.setCategory(category); datasetEntity.setFeature(feature); datasetEntity.setPhenomenon(phenomenon); datasetEntity.setOffering(offering); datasetEntity.setPublished(true); datasetEntity.setDeleted(false); datasetEntity.setService(service); getLatest().map(DataEntity::getTimestart).ifPresent(datasetEntity::setLastValueAt); getFirst().map(DataEntity::getTimestart).ifPresent(datasetEntity::setFirstValueAt); return datasetEntity; }
private DatasetEntity insertDataset(DatasetEntity dataset, CategoryEntity category, ProcedureEntity procedure, OfferingEntity offering, FeatureEntity feature, PhenomenonEntity phenomenon, Session session) { dataset.setCategory(category); dataset.setProcedure(procedure); dataset.setOffering(offering); dataset.setFeature(feature); dataset.setPhenomenon(phenomenon); if (dataset.getUnit() != null) { dataset.getUnit().setService(dataset.getService()); } return new ProxyDatasetDao<>(session).getOrInsertInstance(dataset); }
setPhenomenon(dataset.getPhenomenon()); setPlatform(dataset.getPlatform()); setProcedure(dataset.getProcedure()); setPublished(dataset.isPublished()); if (dataset.getRelatedDatasets() != null) {
hObservationConstellationReferenceSeries.setObservableProperty(hObservableProperty); hObservationConstellationReferenceSeries.setOffering(hOfferingReferenceSeries); hObservationConstellationReferenceSeries.setProcedure(hProcedureReferenceSeries); Map<String, CodespaceEntity> codespaceCache = CollectionHelper.synchronizedMap(); Map<UoM, UnitEntity> unitCache = CollectionHelper.synchronizedMap();
hObservationConstellationReferenceSeries.setObservableProperty(hObservableProperty); hObservationConstellationReferenceSeries.setOffering(hOfferingReferenceSeries); hObservationConstellationReferenceSeries.setProcedure(hProcedureReferenceSeries); Map<String, CodespaceEntity> codespaceCache = CollectionHelper.synchronizedMap(); Map<UoM, UnitEntity> unitCache = CollectionHelper.synchronizedMap();
public void addValuesToSeries(DatasetEntity contextual) { if (!contextual.isSetFeature() && isSetFeatureOfInterest()) { contextual.setFeature(getFeatureOfInterest()); } if (contextual.getPhenomenon() == null && isSetPhenomenon()) { contextual.setPhenomenon(getPhenomenon()); } if (contextual.getProcedure() == null && isSetProcedure()) { contextual.setProcedure(getProcedure()); } if (!contextual.isSetOffering() && isSetOffering()) { contextual.setOffering(getOffering()); } if (contextual.getCategory() == null && isSetCategory()) { contextual.setCategory(getCategory()); } if (!contextual.isSetObservationType() && isSetObservationType()) { contextual.setObservationType(getObservationType()); } if (!contextual.hasUnit() && isSetUnit()) { contextual.setUnit(getUnit()); } contextual.setHidden(isHiddenChild()); contextual.setMobile(isMobile()); contextual.setInsitu(isInsitu()); }
public void addValuesToSeries(DatasetEntity contextual) { if (!contextual.isSetFeature() && isSetFeatureOfInterest()) { contextual.setFeature(getFeatureOfInterest()); } if (contextual.getPhenomenon() == null && isSetPhenomenon()) { contextual.setPhenomenon(getPhenomenon()); } if (contextual.getProcedure() == null && isSetProcedure()) { contextual.setProcedure(getProcedure()); } if (!contextual.isSetOffering() && isSetOffering()) { contextual.setOffering(getOffering()); } if (contextual.getCategory() == null && isSetCategory()) { contextual.setCategory(getCategory()); } if (!contextual.isSetObservationType() && isSetObservationType()) { contextual.setObservationType(getObservationType()); } if (!contextual.hasUnit() && isSetUnit()) { contextual.setUnit(getUnit()); } contextual.setHidden(isHiddenChild()); contextual.setMobile(isMobile()); contextual.setInsitu(isInsitu()); }