public abstract class AbstractValueDAO extends TimeCreator
AbstractValue
TimeCreator.MinMax
Constructor and Description |
---|
AbstractValueDAO() |
Modifier and Type | Method and Description |
---|---|
protected void |
addChunkValuesToCriteria(org.hibernate.Criteria c,
int chunkSize,
int currentRow,
GetObservationRequest request)
Add chunk information to
Criteria |
protected org.hibernate.Criteria |
addIndeterminateTimeRestriction(org.hibernate.Criteria c,
SosConstants.SosIndeterminateTime sosIndeterminateTime)
Add an indeterminate time restriction to a criteria.
|
protected abstract void |
addSpecificRestrictions(org.hibernate.Criteria c,
GetObservationRequest request) |
protected void |
checkAndAddSpatialFilteringProfileCriterion(org.hibernate.Criteria c,
GetObservationRequest request,
org.hibernate.Session session)
Check if a Spatial Filtering Profile filter is requested and add to
criteria
|
protected org.hibernate.criterion.Projection |
getIndeterminateTimeExtremaProjection(SosConstants.SosIndeterminateTime indetTime)
Get projection for
SosConstants.SosIndeterminateTime value |
protected String |
getIndeterminateTimeFilterProperty(SosConstants.SosIndeterminateTime indetTime)
Get the AbstractValue property to filter on for an
SosConstants.SosIndeterminateTime |
private String |
getOrderColumn(GetObservationRequest request) |
addMinMaxProjection, createTimePeriod
protected void checkAndAddSpatialFilteringProfileCriterion(org.hibernate.Criteria c, GetObservationRequest request, org.hibernate.Session session) throws OwsExceptionReport
c
- Criteria to add crtierionrequest
- GetObservation requestsession
- Hiberante SessionOwsExceptionReport
- If Spatial Filteirng Profile is not supported or an error
occurs.protected org.hibernate.Criteria addIndeterminateTimeRestriction(org.hibernate.Criteria c, SosConstants.SosIndeterminateTime sosIndeterminateTime)
c
- Criteria to add the restriction tososIndeterminateTime
- Indeterminate time restriction to addprotected org.hibernate.criterion.Projection getIndeterminateTimeExtremaProjection(SosConstants.SosIndeterminateTime indetTime)
SosConstants.SosIndeterminateTime
valueindetTime
- Value to get projection forprotected String getIndeterminateTimeFilterProperty(SosConstants.SosIndeterminateTime indetTime)
SosConstants.SosIndeterminateTime
indetTime
- Value to get property forprotected void addChunkValuesToCriteria(org.hibernate.Criteria c, int chunkSize, int currentRow, GetObservationRequest request)
Criteria
c
- Criteria
to add informationchunkSize
- Chunk sizecurrentRow
- Start rowrequest
- private String getOrderColumn(GetObservationRequest request)
protected abstract void addSpecificRestrictions(org.hibernate.Criteria c, GetObservationRequest request) throws CodedException
CodedException
Copyright © 2012-2015 52north.org. All Rights Reserved.