T
- Concrete SpatialFilteringProfile entity@Configurable @Deprecated public abstract class AbstractSpatialFilteringProfileDAO<T extends AbstractSpatialFilteringProfile> extends AbstractIdentifierNameDescriptionDAO
TimeCreator.MinMax
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER
Deprecated.
|
Constructor and Description |
---|
AbstractSpatialFilteringProfileDAO()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected org.hibernate.criterion.DetachedCriteria |
getDetachedCriteria(Class clazz,
SpatialFilter spatialFilter)
Deprecated.
Create detached observation criteria for spatial filter
|
abstract org.hibernate.criterion.DetachedCriteria |
getDetachedCriteriaFor(SpatialFilter filter)
Deprecated.
|
protected SosEnvelope |
getEnvelopeForOfferingId(Class clazz,
String offeringID,
org.hibernate.Session session)
Deprecated.
Get the Capabilities envelope for offering from Spatial Filtering Profile
|
abstract SosEnvelope |
getEnvelopeForOfferingId(String offeringID,
org.hibernate.Session session)
Deprecated.
Get envelope for offering id
|
protected com.vividsolutions.jts.geom.Geometry |
getGeomtery(AbstractSpatialFilteringProfile spatialFilteringProfile)
Deprecated.
Get geometry from SpatialFilteringProfile
|
protected org.hibernate.Criteria |
getObservationCriteria(Class clazz,
org.hibernate.criterion.DetachedCriteria detachedCriteria,
org.hibernate.Session session)
Deprecated.
Create criteria for entity and detached criteria
|
protected Set<Long> |
getObservationIdsForSpatialFilter(Class clazz,
SpatialFilter spatialFilter,
org.hibernate.Session session)
Deprecated.
Query observation ids which are OM_SpatialObservations and correspond to
the spatial filter
|
abstract Set<Long> |
getObservationIdsForSpatialFilter(SpatialFilter spatialFilter,
org.hibernate.Session session)
Deprecated.
Get observation ids for SpatialFilteringProfile spatial filter
|
protected List<AbstractSpatialFilteringProfile> |
getSpatialFileringProfiles(Class clazz,
org.hibernate.Session session)
Deprecated.
Query all SpatialFilteringProfiles
|
abstract List<AbstractSpatialFilteringProfile> |
getSpatialFileringProfiles(org.hibernate.Session session)
Deprecated.
Get SpatialFilteringProfile.
|
protected AbstractSpatialFilteringProfile |
getSpatialFilertingProfile(Class clazz,
Long observationId,
org.hibernate.Session session)
Deprecated.
Get SpatialFilteringProfile for observation id.
|
abstract AbstractSpatialFilteringProfile |
getSpatialFilertingProfile(Long observationId,
org.hibernate.Session session)
Deprecated.
Get SpatialFilteringProfile for observation id.
|
protected Map<Long,AbstractSpatialFilteringProfile> |
getSpatialFilertingProfiles(Class clazz,
Set<Long> observationIds,
org.hibernate.Session session)
Deprecated.
Get SpatialFilteringProfiles for observation ids
|
abstract Map<Long,AbstractSpatialFilteringProfile> |
getSpatialFilertingProfiles(Set<Long> observationIds,
org.hibernate.Session session)
Deprecated.
Get map with observation id key and related SpatialFilteringProfile
|
protected Long |
getSpatialFilteringProfileCount(Class clazz,
org.hibernate.Session session)
Deprecated.
Query the count of SpatialFilteringProfile contained in the database
|
protected abstract T |
getSpatialFilteringProfileImpl()
Deprecated.
Get concrete SpatialFilteringProfile entity object
|
protected boolean |
hasSpatialFilteringProfileValues(Class clazz,
Long count,
org.hibernate.Session session)
Deprecated.
Check if SpatialFilteringProfiles are contained in the database
|
protected void |
insertSpatialfilteringProfile(Class clazz,
NamedValue<com.vividsolutions.jts.geom.Geometry> namedValue,
AbstractObservation observation,
org.hibernate.Session session)
Deprecated.
Insert a new SpatialFilteringProfile into the database
|
abstract void |
insertSpatialfilteringProfile(NamedValue<com.vividsolutions.jts.geom.Geometry> namedValue,
AbstractObservation observation,
org.hibernate.Session session)
Deprecated.
Insert SpatialFilteringProfile definition into datasource
|
protected List<AbstractSpatialFilteringProfile> |
querySpatialFilteringProfileCriteria(Class clazz,
List<List<Long>> observationIdsList,
org.hibernate.Session session)
Deprecated.
Query all SpatialFilteringProfiles for observation ids
|
addDescription, addIdentifier, addIdentifierNameDescription, addName, getAndAddIdentifierNameDescription, getDescription, getIdentifier, getName, insertNameAndDescription, insertNames
addMinMaxProjection, createTimePeriod
public AbstractSpatialFilteringProfileDAO()
public abstract Set<Long> getObservationIdsForSpatialFilter(SpatialFilter spatialFilter, org.hibernate.Session session) throws OwsExceptionReport
spatialFilter
- Spatial filtersession
- Hibernate sessionOwsExceptionReport
- If SpatialFilteringProfile is not supportedpublic abstract void insertSpatialfilteringProfile(NamedValue<com.vividsolutions.jts.geom.Geometry> namedValue, AbstractObservation observation, org.hibernate.Session session) throws OwsExceptionReport
namedValue
- SpatialFilteringProfile definitionobservation
- Observation entitysession
- Hibernate sessionOwsExceptionReport
- If SpatialFilteringProfile is not supportedpublic abstract Map<Long,AbstractSpatialFilteringProfile> getSpatialFilertingProfiles(Set<Long> observationIds, org.hibernate.Session session)
observationIds
- Observation ids to get SpatialFilteringProfile forsession
- Hibernate sessionpublic abstract AbstractSpatialFilteringProfile getSpatialFilertingProfile(Long observationId, org.hibernate.Session session) throws CodedException
observationId
- Related observation idsession
- Hibernate sessionCodedException
- If SpatialFilteringProfile is not supportedpublic abstract List<AbstractSpatialFilteringProfile> getSpatialFileringProfiles(org.hibernate.Session session)
observationId
- Related observation idsession
- Hibernate sessionpublic abstract SosEnvelope getEnvelopeForOfferingId(String offeringID, org.hibernate.Session session) throws OwsExceptionReport
offeringID
- Offering idsession
- Hibernate sessionOwsExceptionReport
- If an error occurspublic abstract org.hibernate.criterion.DetachedCriteria getDetachedCriteriaFor(SpatialFilter filter) throws OwsExceptionReport
OwsExceptionReport
protected abstract T getSpatialFilteringProfileImpl()
protected Set<Long> getObservationIdsForSpatialFilter(Class clazz, SpatialFilter spatialFilter, org.hibernate.Session session) throws OwsExceptionReport
clazz
- Entity to create Criteria forspatialFilter
- Spatial filtersession
- Hibernate sessionOwsExceptionReport
- If an error occursprotected void insertSpatialfilteringProfile(Class clazz, NamedValue<com.vividsolutions.jts.geom.Geometry> namedValue, AbstractObservation observation, org.hibernate.Session session) throws OwsExceptionReport
clazz
- Entity to create Criteria fornamedValue
- Geometry to insertobservation
- Corresponding observationsession
- Hibernate sessionOwsExceptionReport
- If Spatial Filtering Profile is not supported or an error
occursprotected Map<Long,AbstractSpatialFilteringProfile> getSpatialFilertingProfiles(Class clazz, Set<Long> observationIds, org.hibernate.Session session)
clazz
- Entity to create Criteria forobservationIds
- Observation idssession
- Hibernate sessionprotected List<AbstractSpatialFilteringProfile> getSpatialFileringProfiles(Class clazz, org.hibernate.Session session)
clazz
- Entity to create Criteria forsession
- Hibernate sessionprotected AbstractSpatialFilteringProfile getSpatialFilertingProfile(Class clazz, Long observationId, org.hibernate.Session session) throws CodedException
observationId
- Related observation idsession
- Hibernate sessionCodedException
- If SpatialFilteringProfile is not supportedprotected List<AbstractSpatialFilteringProfile> querySpatialFilteringProfileCriteria(Class clazz, List<List<Long>> observationIdsList, org.hibernate.Session session)
clazz
- Entity to create Criteria forobservationIdsList
- List with Observation ids listsession
- Hibernate sessionprotected boolean hasSpatialFilteringProfileValues(Class clazz, Long count, org.hibernate.Session session)
clazz
- Entity to create Criteria forcount
- Current SpatialFilteringProfile countsession
- Hibernate sessiontrue
, if SpatialFilteringProfiles are contained in
the databaseprotected Long getSpatialFilteringProfileCount(Class clazz, org.hibernate.Session session)
clazz
- Entity to create Criteria forsession
- Hibernate sessionprotected com.vividsolutions.jts.geom.Geometry getGeomtery(AbstractSpatialFilteringProfile spatialFilteringProfile) throws OwsExceptionReport
spatialFilteringProfile
- SpatialFilteringProfile to get geomnetry fromOwsExceptionReport
- If an error occurs.protected org.hibernate.criterion.DetachedCriteria getDetachedCriteria(Class clazz, SpatialFilter spatialFilter) throws OwsExceptionReport
clazz
- Entity to create Criteria forspatialFilter
- OwsExceptionReport
- If coordinate switching failsprotected org.hibernate.Criteria getObservationCriteria(Class clazz, org.hibernate.criterion.DetachedCriteria detachedCriteria, org.hibernate.Session session)
clazz
- Entity to create Criteria fordetachedCriteria
- session
- Hibernate sessionprotected SosEnvelope getEnvelopeForOfferingId(Class clazz, String offeringID, org.hibernate.Session session) throws OwsExceptionReport
clazz
- Entity to create Criteria forofferingID
- Offering identifiersession
- Hibernate sessionOwsExceptionReport
- If coordinate switching failsCopyright © 2012-2015 52north.org. All Rights Reserved.