public class ObservationConstellationDAO extends Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
ObservationConstellationDAO() |
Modifier and Type | Method and Description |
---|---|
ObservationConstellation |
checkObservationConstellation(OmObservationConstellation sosObservationConstellation,
String offering,
org.hibernate.Session session,
String parameterName)
Check and Update and/or get observation constellation objects
|
ObservationConstellation |
checkOrInsertObservationConstellation(Procedure procedure,
ObservableProperty observableProperty,
Offering offering,
boolean hiddenChild,
org.hibernate.Session session)
Insert or update and get observation constellation for procedure,
observable property and offering
|
ObservationConstellation |
getFirstObservationConstellationForOfferings(Procedure p,
ObservableProperty op,
Collection<Offering> o,
org.hibernate.Session session)
Get first ObservationConstellation for procedure, observableProperty and
offerings
|
List<ObservationConstellation> |
getObservationConstellation(Procedure procedure,
ObservableProperty observableProperty,
Collection<String> offerings,
org.hibernate.Session session)
Get observation constellation objects for procedure and observable
property object and offering identifiers
|
List<ObservationConstellationInfo> |
getObservationConstellationInfo(org.hibernate.Session session)
Get info for all observation constellation objects
|
List<ObservationConstellation> |
getObservationConstellations(List<String> procedures,
List<String> observedProperties,
List<String> offerings,
org.hibernate.Session session)
Get ObservationCollection entities for procedures, observableProperties
and offerings where observationType is not null;
|
List<ObservationConstellation> |
getObservationConstellations(org.hibernate.Session session)
Get all observation constellation objects
|
protected Set<ObservationConstellation> |
getObservationConstellations(org.hibernate.Session session,
Procedure procedure) |
List<ObservationConstellation> |
getObservationConstellations(String procedure,
String observableProperty,
org.hibernate.Session session)
Get ObservationConstellations for procedure and observableProperty
|
List<ObservationConstellation> |
getObservationConstellationsForOffering(Offering offering,
org.hibernate.Session session)
Return the non-deleted observation constellations for an offering
|
List<ObservationConstellation> |
getObservationConstellationsForOfferings(Procedure procedure,
ObservableProperty observableProperty,
Collection<Offering> offerings,
org.hibernate.Session session)
Get ObservationConstellations for procedure, observableProperty and
offerings
|
void |
updateObservatioConstellationSetAsDeletedForProcedure(String procedure,
boolean deleteFlag,
org.hibernate.Session session)
Update ObservationConstellation for procedure and set deleted flag
|
ObservationConstellation |
updateObservationConstellation(ObservationConstellation observationConstellation,
String observationType,
org.hibernate.Session session)
Update observation constellation with observation type
|
public List<ObservationConstellation> getObservationConstellation(Procedure procedure, ObservableProperty observableProperty, Collection<String> offerings, org.hibernate.Session session)
procedure
- Procedure objectobservableProperty
- Observable property objectofferings
- Offering identifierssession
- Hibernate sessionpublic List<ObservationConstellation> getObservationConstellationsForOfferings(Procedure procedure, ObservableProperty observableProperty, Collection<Offering> offerings, org.hibernate.Session session)
procedure
- Procedure to get ObservaitonConstellation forobservableProperty
- observableProperty to get ObservaitonConstellation forofferings
- Offerings to get ObservaitonConstellation forsession
- Hibernate sessionpublic ObservationConstellation getFirstObservationConstellationForOfferings(Procedure p, ObservableProperty op, Collection<Offering> o, org.hibernate.Session session)
p
- Procedure to get ObservaitonConstellation forop
- ObservedProperty to get ObservaitonConstellation foro
- Offerings to get ObservaitonConstellation forsession
- Hibernate sessionpublic List<ObservationConstellation> getObservationConstellations(String procedure, String observableProperty, org.hibernate.Session session)
procedure
- Procedure to get ObservaitonConstellation forobservableProperty
- observableProperty to get ObservaitonConstellation forsession
- Hibernate sessionpublic List<ObservationConstellation> getObservationConstellations(org.hibernate.Session session)
session
- Hibernate sessionpublic List<ObservationConstellationInfo> getObservationConstellationInfo(org.hibernate.Session session)
session
- Hibernate sessionpublic ObservationConstellation checkOrInsertObservationConstellation(Procedure procedure, ObservableProperty observableProperty, Offering offering, boolean hiddenChild, org.hibernate.Session session)
procedure
- Procedure objectobservableProperty
- Observable property objectoffering
- Offering objecthiddenChild
- Is observation constellation hidden childsession
- Hibernate sessionpublic ObservationConstellation checkObservationConstellation(OmObservationConstellation sosObservationConstellation, String offering, org.hibernate.Session session, String parameterName) throws OwsExceptionReport
sosObservationConstellation
- SOS observation constellationoffering
- Offering identifiersession
- Hibernate sessionparameterName
- Parameter name for exceptionOwsExceptionReport
- If the requested observation type is invalidpublic ObservationConstellation updateObservationConstellation(ObservationConstellation observationConstellation, String observationType, org.hibernate.Session session)
observationConstellation
- Observation constellation objectobservationType
- Observation typesession
- Hibernate sessionpublic List<ObservationConstellation> getObservationConstellationsForOffering(Offering offering, org.hibernate.Session session)
offering
- Offering to fetch observation constellations forsession
- Session to usepublic void updateObservatioConstellationSetAsDeletedForProcedure(String procedure, boolean deleteFlag, org.hibernate.Session session)
procedure
- Procedure for which the ObservationConstellations should be
changeddeleteFlag
- New deleted flag valuesession
- Hibernate sessionpublic List<ObservationConstellation> getObservationConstellations(List<String> procedures, List<String> observedProperties, List<String> offerings, org.hibernate.Session session)
procedures
- Procedures to get ObservationCollection entities forobservedProperties
- ObservableProperties to get ObservationCollection entities forofferings
- Offerings to get ObservationCollection entities forsession
- Hibernate sessionprotected Set<ObservationConstellation> getObservationConstellations(org.hibernate.Session session, Procedure procedure)
Copyright © 2012-2015 52north.org. All Rights Reserved.