All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.n52.proxy.connector.constellations.CountDatasetConstellation Maven / Gradle / Ivy

There is a newer version: 1.0.0-alpha.9
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.n52.proxy.connector.constellations;

import java.util.Date;

import org.n52.proxy.db.beans.ProxyServiceEntity;
import org.n52.series.db.beans.CountDatasetEntity;

/**
 * @author Jan Schulte
 */
public class CountDatasetConstellation extends DatasetConstellation {

    public CountDatasetConstellation(String procedure, String offering, String category, String phenomenon,
            String feature) {
        super(procedure, offering, category, phenomenon, feature);
    }

    @Override
    protected CountDatasetEntity createDatasetEntity(ProxyServiceEntity service) {
        CountDatasetEntity countDataset = new CountDatasetEntity();
        countDataset.setFirstValueAt(new Date());
        countDataset.setLastValueAt(new Date());
        return countDataset;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy