public class HibernateDeleteObservationCacheFeederDAO extends DeleteObservationCacheFeederDAO
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
private AbstractObservationDAO |
observationDAO |
private OfferingDAO |
offeringDAO |
private ProcedureDAO |
procedureDAO |
private org.hibernate.Session |
session |
private HibernateSessionHolder |
sessionHolder |
EPSILON, log
Constructor and Description |
---|
HibernateDeleteObservationCacheFeederDAO() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup()
Will be called after the update is finished.
|
protected org.hibernate.Session |
getConnection() |
protected org.joda.time.DateTime |
getMaxDateForOffering(String offering) |
protected org.joda.time.DateTime |
getMaxDateForProcedure(String procedure) |
protected org.joda.time.DateTime |
getMaxPhenomenonTime() |
protected org.joda.time.DateTime |
getMaxResultTime() |
protected org.joda.time.DateTime |
getMaxResultTimeForOffering(String offering) |
protected org.joda.time.DateTime |
getMinDateForOffering(String offering) |
protected org.joda.time.DateTime |
getMinDateForProcedure(String procedure) |
protected org.joda.time.DateTime |
getMinPhenomenonTime() |
protected org.joda.time.DateTime |
getMinResultTime() |
protected org.joda.time.DateTime |
getMinResultTimeForOffering(String offering) |
protected boolean |
isEmpty(org.hibernate.Criteria q)
Checks if the specified query has no results.
|
protected boolean |
isLastForOffering(String feature,
String offering)
Checks if there is no observation with the specified offering/feature
combination.
|
protected boolean |
isLastForProcedure(String feature,
String procedure)
Check if there is no observation with the specified dbProcedure/feature
combination.
|
protected void |
prepare()
Will be called before the update starts.
|
execute, getDeletedObservation, getEnvelope, isCritical, setDeletedObservation, updateFeatureOfInterest, updateSpatialBoundingBoxes, updateSpatialBoundingBoxes, updateTemporalBoundingBoxes
getCache, getErrors, getFeatureQueryHandler, setCache, setErrors, toString
run, setParentCountDownLatch
getStopwatchResult, startStopwatch
private static final org.slf4j.Logger LOGGER
private final HibernateSessionHolder sessionHolder
private org.hibernate.Session session
private AbstractObservationDAO observationDAO
private final OfferingDAO offeringDAO
private final ProcedureDAO procedureDAO
public HibernateDeleteObservationCacheFeederDAO()
protected boolean isLastForProcedure(String feature, String procedure) throws OwsExceptionReport
DeleteObservationCacheFeederDAO
isLastForProcedure
in class DeleteObservationCacheFeederDAO
feature
- the feature identifierprocedure
- the procedure identifierCodedException
OwsExceptionReport
protected boolean isLastForOffering(String feature, String offering) throws OwsExceptionReport
DeleteObservationCacheFeederDAO
isLastForOffering
in class DeleteObservationCacheFeederDAO
feature
- the feature identifieroffering
- the offering identifierOwsExceptionReport
protected boolean isEmpty(org.hibernate.Criteria q)
q
- the queryprotected org.joda.time.DateTime getMaxResultTime()
getMaxResultTime
in class DeleteObservationCacheFeederDAO
protected org.joda.time.DateTime getMinResultTime()
getMinResultTime
in class DeleteObservationCacheFeederDAO
protected org.joda.time.DateTime getMaxPhenomenonTime()
getMaxPhenomenonTime
in class DeleteObservationCacheFeederDAO
protected org.joda.time.DateTime getMinPhenomenonTime()
getMinPhenomenonTime
in class DeleteObservationCacheFeederDAO
protected org.joda.time.DateTime getMaxDateForOffering(String offering) throws OwsExceptionReport
getMaxDateForOffering
in class DeleteObservationCacheFeederDAO
OwsExceptionReport
protected org.joda.time.DateTime getMaxDateForProcedure(String procedure) throws OwsExceptionReport
getMaxDateForProcedure
in class DeleteObservationCacheFeederDAO
OwsExceptionReport
protected org.joda.time.DateTime getMinResultTimeForOffering(String offering) throws OwsExceptionReport
getMinResultTimeForOffering
in class DeleteObservationCacheFeederDAO
OwsExceptionReport
protected org.joda.time.DateTime getMaxResultTimeForOffering(String offering) throws OwsExceptionReport
getMaxResultTimeForOffering
in class DeleteObservationCacheFeederDAO
OwsExceptionReport
protected org.joda.time.DateTime getMinDateForOffering(String offering) throws OwsExceptionReport
getMinDateForOffering
in class DeleteObservationCacheFeederDAO
OwsExceptionReport
protected org.joda.time.DateTime getMinDateForProcedure(String procedure) throws OwsExceptionReport
getMinDateForProcedure
in class DeleteObservationCacheFeederDAO
OwsExceptionReport
protected org.hibernate.Session getConnection()
getConnection
in class DeleteObservationCacheFeederDAO
protected void prepare() throws OwsExceptionReport
DeleteObservationCacheFeederDAO
prepare
in class DeleteObservationCacheFeederDAO
OwsExceptionReport
- if an error occures during preperationprotected void cleanup()
DeleteObservationCacheFeederDAO
OwsExceptionReport
is thrown while updating or not.cleanup
in class DeleteObservationCacheFeederDAO
Copyright © 2012-2015 52north.org. All Rights Reserved.