use of org.n52.series.db.beans.ComplexDataEntity in project SOS by 52North.
the class ObservationPersister method visit.
@Override
public DataEntity<?> visit(ComplexValue value) throws OwsExceptionReport {
ComplexDataEntity complex = observationFactory.complex();
DataEntity complexyDataEntity = persist((DataEntity) complex, new HashSet<DataEntity<?>>());
persistChildren(value.getValue(), complexyDataEntity);
return complexyDataEntity;
}
use of org.n52.series.db.beans.ComplexDataEntity in project SOS by 52North.
the class ObservationValueCreator method visit.
@Override
public ComplexValue visit(ComplexDataEntity o) throws OwsExceptionReport {
SweAbstractDataComponentCreator visitor = new SweAbstractDataComponentCreator(getDecoderRepository());
SweDataRecord record = visitor.visit(o);
return new ComplexValue(record);
}
use of org.n52.series.db.beans.ComplexDataEntity in project SOS by 52North.
the class SweAbstractDataComponentCreator method visit.
@Override
public SweDataRecord visit(ComplexDataEntity o) throws OwsExceptionReport {
SweDataRecord record = new SweDataRecord();
for (DataEntity<?> sub : o.getValue()) {
String fieldName = getFieldName(sub);
record.addField(new SweField(fieldName, this.visit(sub)));
}
return setCommonValues(record, o);
}
Aggregations