Search in sources :

Example 1 with ComplexDataEntity

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;
}
Also used : DataEntity(org.n52.series.db.beans.DataEntity) DataArrayDataEntity(org.n52.series.db.beans.DataArrayDataEntity) GeometryDataEntity(org.n52.series.db.beans.GeometryDataEntity) ProfileDataEntity(org.n52.series.db.beans.ProfileDataEntity) ComplexDataEntity(org.n52.series.db.beans.ComplexDataEntity) ReferencedDataEntity(org.n52.series.db.beans.ReferencedDataEntity) ComplexDataEntity(org.n52.series.db.beans.ComplexDataEntity)

Example 2 with ComplexDataEntity

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);
}
Also used : ComplexValue(org.n52.shetland.ogc.om.values.ComplexValue) SweDataRecord(org.n52.shetland.ogc.swe.SweDataRecord)

Example 3 with ComplexDataEntity

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);
}
Also used : SweDataRecord(org.n52.shetland.ogc.swe.SweDataRecord) SweField(org.n52.shetland.ogc.swe.SweField)

Aggregations

SweDataRecord (org.n52.shetland.ogc.swe.SweDataRecord)2 ComplexDataEntity (org.n52.series.db.beans.ComplexDataEntity)1 DataArrayDataEntity (org.n52.series.db.beans.DataArrayDataEntity)1 DataEntity (org.n52.series.db.beans.DataEntity)1 GeometryDataEntity (org.n52.series.db.beans.GeometryDataEntity)1 ProfileDataEntity (org.n52.series.db.beans.ProfileDataEntity)1 ReferencedDataEntity (org.n52.series.db.beans.ReferencedDataEntity)1 ComplexValue (org.n52.shetland.ogc.om.values.ComplexValue)1 SweField (org.n52.shetland.ogc.swe.SweField)1