public class InsertObservationDAO extends AbstractInsertObservationDAO
Modifier and Type | Field and Description |
---|---|
private static String |
CONSTRAINT_OBSERVATION_IDENTIFIER_IDENTITY |
private static String |
CONSTRAINT_OBSERVATION_IDENTITY |
private FeatureOfInterestDAO |
featureOfInterestDAO |
private static int |
FLUSH_THRESHOLD |
private ObservationConstellationDAO |
observationConstellationDAO |
private HibernateSessionHolder |
sessionHolder |
DATASOURCE_DAO_IDENTIFIER, IDEPENDET_IDENTIFIER
Constructor and Description |
---|
InsertObservationDAO()
constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
checkContainsAndThrow(String message,
org.hibernate.HibernateException he) |
private void |
checkEqualsAndThrow(String constraintName,
org.hibernate.HibernateException he) |
String |
getDatasourceDaoIdentifier() |
private FeatureOfInterest |
getFeature(AbstractFeature abstractFeature,
Map<AbstractFeature,FeatureOfInterest> featureCache,
org.hibernate.Session session)
Get the hibernate FeatureOfInterest object for an AbstractFeature,
returning it from the local cache if already requested
|
private Set<String> |
getParentProcedureOfferings(OmObservationConstellation sosObsConst)
Get parent offerings for requested procedure and observable property
|
InsertObservationResponse |
insertObservation(InsertObservationRequest request) |
setOperationsMetadata
addFeatureOfInterestParameter, addFeatureOfInterestParameter, addObservablePropertyParameter, addObservablePropertyParameter, addOfferingParameter, addOfferingParameter, addProcedureParameter, addProcedureParameter, getCache, getConfigurator, getConformanceClasses, getDCP, getOperationDAOKeyType, getOperationName, getOperationsMetadata
private final HibernateSessionHolder sessionHolder
private final ObservationConstellationDAO observationConstellationDAO
private final FeatureOfInterestDAO featureOfInterestDAO
private static final int FLUSH_THRESHOLD
private static final String CONSTRAINT_OBSERVATION_IDENTITY
private static final String CONSTRAINT_OBSERVATION_IDENTIFIER_IDENTITY
public String getDatasourceDaoIdentifier()
public InsertObservationResponse insertObservation(InsertObservationRequest request) throws OwsExceptionReport
insertObservation
in class AbstractInsertObservationDAO
OwsExceptionReport
private void checkEqualsAndThrow(String constraintName, org.hibernate.HibernateException he) throws OwsExceptionReport
OwsExceptionReport
private void checkContainsAndThrow(String message, org.hibernate.HibernateException he) throws OwsExceptionReport
OwsExceptionReport
private FeatureOfInterest getFeature(AbstractFeature abstractFeature, Map<AbstractFeature,FeatureOfInterest> featureCache, org.hibernate.Session session) throws OwsExceptionReport
sosObsConst
- featureCache
- session
- OwsExceptionReport
private Set<String> getParentProcedureOfferings(OmObservationConstellation sosObsConst)
sosObsConst
- Requested observation constellationCopyright © 2012-2015 52north.org. All Rights Reserved.