public class HibernateScrollableStreamingValue extends HibernateStreamingValue
ScrollableResults
Modifier and Type | Field and Description |
---|---|
private org.hibernate.ScrollableResults |
scrollableResult |
private static long |
serialVersionUID |
featureOfInterest, observableProperty, procedure, valueDAO, valueTimeDAO
request, session, sessionHolder, temporalFilterCriterion
observationTemplate
Constructor and Description |
---|
HibernateScrollableStreamingValue(GetObservationRequest request,
long procedure,
long observableProperty,
long featureOfInterest)
constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
getNextResults()
Get the next results from database
|
boolean |
hasNextValue() |
AbstractValue |
nextEntity()
Get the next entity
|
OmObservation |
nextSingleObservation() |
TimeValuePair |
nextValue()
Get next
TimeValuePair from entity |
private void |
setScrollableResult(org.hibernate.ScrollableResults scrollableResult)
Set the queried
ScrollableResults to local variable |
queryTimes, queryUnit
createPhenomenonTime, createResutlTime, createValidTime, getObservationIds, mergeObservation, setTemporalFilterCriterion
getPhenomenonTime, getResultTime, getUnit, getValidTime, getValue, isSetPhenomenonTime, isSetResultTime, isSetUnit, isSetValidTime, setObservationTemplate, setPhenomenonTime, setResultTime, setUnit, setValidTime, setValue
add, checkForModifications, checkMaxNumberOfReturnedValues, contains, getAdditionalRequestParams, getMaxNumberOfValues, getObservation, getResponseFormat, isSetAdditionalRequestParams, isSetValue, setMaxNumberOfValues, setResponseFormat
getDecimalSeparator, getObservableProperty, getObservationID, getObservationType, getTokenSeparator, getTupleSeparator, isSetDecimalSeparator, isSetObservablePropertyD, isSetObservationID, isSetObservationType, isSetTokenSeparator, isSetTupleSeparator, setDecimalSeparator, setValuesForResultEncoding
private static final long serialVersionUID
private org.hibernate.ScrollableResults scrollableResult
public HibernateScrollableStreamingValue(GetObservationRequest request, long procedure, long observableProperty, long featureOfInterest)
request
- GetObservationRequest
procedure
- Datasource procedure idobservableProperty
- Datasource observableProperty idfeatureOfInterest
- Datasource featureOfInterest idpublic boolean hasNextValue() throws OwsExceptionReport
hasNextValue
in class AbstractStreaming
OwsExceptionReport
public AbstractValue nextEntity() throws OwsExceptionReport
StreamingValue
nextEntity
in class StreamingValue<AbstractValue>
OwsExceptionReport
- If an error occurspublic TimeValuePair nextValue() throws OwsExceptionReport
StreamingValue
TimeValuePair
from entitynextValue
in class StreamingValue<AbstractValue>
TimeValuePair
OwsExceptionReport
- If an error occurspublic OmObservation nextSingleObservation() throws OwsExceptionReport
nextSingleObservation
in class AbstractStreaming
OwsExceptionReport
private void getNextResults() throws OwsExceptionReport
OwsExceptionReport
- If an error occurs when querying the next resultsprivate void setScrollableResult(org.hibernate.ScrollableResults scrollableResult)
ScrollableResults
to local variablescrollableResult
- Queried ScrollableResults
Copyright © 2012-2015 52north.org. All Rights Reserved.