public class IoosHibernateTestDataManager extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.n52.sos.ds.hibernate.dao.FeatureOfInterestDAO |
featureOfInterestDAO |
private static org.n52.sos.ds.hibernate.dao.FeatureOfInterestTypeDAO |
featureOfInterestTypeDAO |
static org.n52.sos.ioos.asset.NetworkAsset |
NETWORK_ALL |
private static int |
NUM_HEIGHTS_PER_PROFILE |
private static int |
NUM_OBS_PER_SENSOR |
static int |
NUM_STATIONS |
private static org.n52.sos.ds.hibernate.dao.ObservationConstellationDAO |
obsConstDAO |
private static org.n52.sos.ds.hibernate.dao.ObservablePropertyDAO |
observablePropertyDAO |
private static org.n52.sos.ds.hibernate.dao.ObservationTypeDAO |
observationTypeDAO |
private static org.n52.sos.ds.hibernate.dao.OfferingDAO |
offeringDAO |
private static List<String> |
PLATFORM_TYPES |
private static org.n52.sos.ds.hibernate.dao.ProcedureDAO |
procedureDAO |
private static org.n52.sos.ds.hibernate.dao.ProcedureDescriptionFormatDAO |
procedureDescriptionFormatDAO |
private static org.n52.sos.ds.hibernate.dao.observation.series.SeriesObservationDAO |
seriesObservationDAO |
private static org.n52.sos.ds.hibernate.HibernateSessionHolder |
sessionHolder |
static String |
TEST |
private static String |
TEST_NETWORK_PATTERN |
private static String |
TEST_SENSOR_PATTERN |
private static String |
TEST_STATION_PATTERN |
private static org.n52.sos.ds.hibernate.dao.ValidProcedureTimeDAO |
validProcedureTimeDAO |
| Constructor and Description |
|---|
IoosHibernateTestDataManager() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
createSensor(int i,
ucar.nc2.constants.CF.FeatureType featureType,
org.n52.sos.ds.hibernate.entities.Offering hNetworkOffering,
org.n52.sos.ds.hibernate.entities.Procedure networkProcedure,
org.n52.sos.ds.hibernate.entities.Offering hStationOffering,
org.n52.sos.ds.hibernate.entities.Procedure stationProcedure,
org.n52.sos.ioos.asset.StationAsset station,
org.n52.sos.ogc.om.features.samplingFeatures.SamplingFeature samplingFeature,
org.n52.sos.ds.hibernate.entities.FeatureOfInterest hStationFeature,
com.vividsolutions.jts.geom.Point stationPoint,
com.axiomalaska.phenomena.Phenomenon phen,
org.n52.sos.ogc.om.OmObservableProperty omObsProp,
org.n52.sos.ds.hibernate.entities.ObservableProperty obsProp,
String unit,
org.n52.sos.ds.hibernate.entities.ObservationType obsType,
org.n52.sos.ds.hibernate.entities.ProcedureDescriptionFormat pdf,
Map<String,org.n52.sos.ds.hibernate.entities.Codespace> codespaceCache,
Map<String,org.n52.sos.ds.hibernate.entities.Unit> unitCache,
org.hibernate.Session session) |
private static org.n52.sos.cache.ContentCache |
getCache() |
private static String |
getPhenomenonShortId(String phenomenon) |
static boolean |
hasTestData() |
private static void |
insertObservation(Set<org.n52.sos.ds.hibernate.entities.ObservationConstellation> obsConsts,
org.n52.sos.ogc.om.OmObservationConstellation omObsConst,
org.joda.time.DateTime obsEndTime,
org.n52.sos.ds.hibernate.entities.FeatureOfInterest feature,
String unit,
Map<String,org.n52.sos.ds.hibernate.entities.Codespace> codespaceCache,
Map<String,org.n52.sos.ds.hibernate.entities.Unit> unitCache,
org.hibernate.Session session) |
private static org.n52.sos.ds.hibernate.entities.Procedure |
insertProcedure(org.n52.sos.ogc.sos.SosProcedureDescription procedureDesc,
org.n52.sos.ds.hibernate.entities.ProcedureDescriptionFormat pdf,
String procedureXml,
org.hibernate.Session session) |
static void |
insertTestData() |
static double |
randomInRange(double min,
double max,
int decimalPlaces) |
static double |
randomLat() |
static double |
randomLng() |
static void |
removeTestData() |
public static final String TEST
private static final String TEST_NETWORK_PATTERN
private static final String TEST_STATION_PATTERN
private static final String TEST_SENSOR_PATTERN
public static final org.n52.sos.ioos.asset.NetworkAsset NETWORK_ALL
public static final int NUM_STATIONS
private static final int NUM_OBS_PER_SENSOR
private static final int NUM_HEIGHTS_PER_PROFILE
private static final org.n52.sos.ds.hibernate.HibernateSessionHolder sessionHolder
private static final org.n52.sos.ds.hibernate.dao.ProcedureDescriptionFormatDAO procedureDescriptionFormatDAO
private static final org.n52.sos.ds.hibernate.dao.ProcedureDAO procedureDAO
private static final org.n52.sos.ds.hibernate.dao.OfferingDAO offeringDAO
private static final org.n52.sos.ds.hibernate.dao.ObservationTypeDAO observationTypeDAO
private static final org.n52.sos.ds.hibernate.dao.FeatureOfInterestTypeDAO featureOfInterestTypeDAO
private static final org.n52.sos.ds.hibernate.dao.ObservablePropertyDAO observablePropertyDAO
private static final org.n52.sos.ds.hibernate.dao.ValidProcedureTimeDAO validProcedureTimeDAO
private static final org.n52.sos.ds.hibernate.dao.ObservationConstellationDAO obsConstDAO
private static final org.n52.sos.ds.hibernate.dao.FeatureOfInterestDAO featureOfInterestDAO
private static final org.n52.sos.ds.hibernate.dao.observation.series.SeriesObservationDAO seriesObservationDAO
public static void insertTestData()
throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportprivate static void createSensor(int i,
ucar.nc2.constants.CF.FeatureType featureType,
org.n52.sos.ds.hibernate.entities.Offering hNetworkOffering,
org.n52.sos.ds.hibernate.entities.Procedure networkProcedure,
org.n52.sos.ds.hibernate.entities.Offering hStationOffering,
org.n52.sos.ds.hibernate.entities.Procedure stationProcedure,
org.n52.sos.ioos.asset.StationAsset station,
org.n52.sos.ogc.om.features.samplingFeatures.SamplingFeature samplingFeature,
org.n52.sos.ds.hibernate.entities.FeatureOfInterest hStationFeature,
com.vividsolutions.jts.geom.Point stationPoint,
com.axiomalaska.phenomena.Phenomenon phen,
org.n52.sos.ogc.om.OmObservableProperty omObsProp,
org.n52.sos.ds.hibernate.entities.ObservableProperty obsProp,
String unit,
org.n52.sos.ds.hibernate.entities.ObservationType obsType,
org.n52.sos.ds.hibernate.entities.ProcedureDescriptionFormat pdf,
Map<String,org.n52.sos.ds.hibernate.entities.Codespace> codespaceCache,
Map<String,org.n52.sos.ds.hibernate.entities.Unit> unitCache,
org.hibernate.Session session)
throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportprivate static void insertObservation(Set<org.n52.sos.ds.hibernate.entities.ObservationConstellation> obsConsts, org.n52.sos.ogc.om.OmObservationConstellation omObsConst, org.joda.time.DateTime obsEndTime, org.n52.sos.ds.hibernate.entities.FeatureOfInterest feature, String unit, Map<String,org.n52.sos.ds.hibernate.entities.Codespace> codespaceCache, Map<String,org.n52.sos.ds.hibernate.entities.Unit> unitCache, org.hibernate.Session session) throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportprivate static org.n52.sos.ds.hibernate.entities.Procedure insertProcedure(org.n52.sos.ogc.sos.SosProcedureDescription procedureDesc,
org.n52.sos.ds.hibernate.entities.ProcedureDescriptionFormat pdf,
String procedureXml,
org.hibernate.Session session)
throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportpublic static boolean hasTestData()
throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportpublic static void removeTestData()
throws org.n52.sos.ogc.ows.OwsExceptionReport
org.n52.sos.ogc.ows.OwsExceptionReportpublic static double randomLng()
public static double randomLat()
public static double randomInRange(double min,
double max,
int decimalPlaces)
private static org.n52.sos.cache.ContentCache getCache()
Copyright © 2012-2016 52north.org. All Rights Reserved.