public class TemporalRestrictions extends Object
Criterions
for
TemporalFilters
.TemporalRestriction.AfterRestriction
,
TemporalRestriction.BeforeRestriction
,
TemporalRestriction.BeginsRestriction
,
TemporalRestriction.BegunByRestriction
,
TemporalRestriction.ContainsRestriction
,
TemporalRestriction.DuringRestriction
,
TemporalRestriction.EndedByRestriction
,
TemporalRestriction.EndsRestriction
,
TemporalRestriction.TEqualsRestriction
,
TemporalRestriction.MeetsRestriction
,
TemporalRestriction.MetByRestriction
,
TemporalRestriction.OverlappedByRestriction
,
TemporalRestriction.OverlapsRestriction
Modifier and Type | Field and Description |
---|---|
static TimePrimitiveFieldDescriptor |
PHENOMENON_TIME_FIELDS
Fields describing the phenomenon time of a Observation.
|
static String |
PHENOMENON_TIME_VALUE_REFERENCE
Marker for a value reference referencing the phenomenon time ("phenomenonTime" ).
|
static TimePrimitiveFieldDescriptor |
RESULT_TIME_FIELDS
Fields describing the result time of a Observation.
|
static String |
RESULT_TIME_VALUE_REFERENCE
Marker for a value reference referencing the result time ("resultTime" ).
|
static String |
VALID_DESCRIBE_SENSOR_TIME_VALUE_REFERENCE
Marker for a value reference referencing the valid time ("validDescribeSensorTime" ).
|
static TimePrimitiveFieldDescriptor |
VALID_TIME_DESCRIBE_SENSOR_FIELDS
Fields describing the valid time of a ValidProcedureTime.
|
static TimePrimitiveFieldDescriptor |
VALID_TIME_FIELDS
Fields describing the valid time of a Observation.
|
static String |
VALID_TIME_VALUE_REFERENCE
Marker for a value reference referencing the valid time ("validTime" ).
|
Modifier | Constructor and Description |
---|---|
private |
TemporalRestrictions()
Private constructor due to static access.
|
Modifier and Type | Method and Description |
---|---|
static org.hibernate.criterion.Criterion |
after(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
after(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
after(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
before(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
before(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
before(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
begins(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
begins(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
begins(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
begunBy(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
begunBy(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
begunBy(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
contains(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
contains(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
contains(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
during(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
during(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
during(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
endedBy(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
endedBy(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
endedBy(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
ends(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
ends(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
ends(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
filter(Iterable<TemporalFilter> temporalFilters)
Creates a
Conjunction for the specified temporal filters. |
static org.hibernate.criterion.Criterion |
filter(TemporalFilter filter)
Create a new Criterion using the specified filter.
|
private static org.hibernate.criterion.Criterion |
filter(TemporalRestriction restriction,
String begin,
String end,
Time value)
Create a new Criterion using the specified property, restricion
and value.
|
private static org.hibernate.criterion.Criterion |
filter(TemporalRestriction restriction,
String property,
Time value)
Create a new Criterion using the specified property, restricion
and value.
|
private static org.hibernate.criterion.Criterion |
filter(TemporalRestriction restriction,
TimePrimitiveFieldDescriptor property,
Time value)
Create a new Criterion using the specified property, restricion
and value.
|
private static Collection<org.hibernate.criterion.Disjunction> |
getDisjunction(Iterable<TemporalFilter> temporalFilters)
Creates
Disjunction s for the specified temporal filters with the
same valueReference. |
private static TimePrimitiveFieldDescriptor |
getFields(String valueReference)
Gets the field descriptor for the specified value reference.
|
static org.hibernate.criterion.Criterion |
meets(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
meets(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
meets(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
metBy(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
metBy(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
metBy(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
overlappedBy(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
overlappedBy(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
overlappedBy(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
overlaps(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
overlaps(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
overlaps(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
tEquals(String begin,
String end,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
tEquals(String property,
Time value)
Creates a temporal restriction for the specified time and property.
|
static org.hibernate.criterion.Criterion |
tEquals(TimePrimitiveFieldDescriptor property,
Time value)
Creates a temporal restriction for the specified time and property.
|
public static final String PHENOMENON_TIME_VALUE_REFERENCE
PHENOMENON_TIME_FIELDS
,
Constant Field Valuespublic static final String RESULT_TIME_VALUE_REFERENCE
RESULT_TIME_FIELDS
,
Constant Field Valuespublic static final String VALID_TIME_VALUE_REFERENCE
VALID_TIME_FIELDS
,
Constant Field Valuespublic static final String VALID_DESCRIBE_SENSOR_TIME_VALUE_REFERENCE
VALID_TIME_FIELDS
,
Constant Field Valuespublic static final TimePrimitiveFieldDescriptor PHENOMENON_TIME_FIELDS
public static final TimePrimitiveFieldDescriptor RESULT_TIME_FIELDS
public static final TimePrimitiveFieldDescriptor VALID_TIME_FIELDS
public static final TimePrimitiveFieldDescriptor VALID_TIME_DESCRIBE_SENSOR_FIELDS
private TemporalRestrictions()
public static org.hibernate.criterion.Criterion before(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BeforeRestriction
public static org.hibernate.criterion.Criterion before(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BeforeRestriction
public static org.hibernate.criterion.Criterion before(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BeforeRestriction
public static org.hibernate.criterion.Criterion after(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.AfterRestriction
public static org.hibernate.criterion.Criterion after(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.AfterRestriction
public static org.hibernate.criterion.Criterion after(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.AfterRestriction
public static org.hibernate.criterion.Criterion begins(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BeginsRestriction
public static org.hibernate.criterion.Criterion begins(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BeginsRestriction
public static org.hibernate.criterion.Criterion begins(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BeginsRestriction
public static org.hibernate.criterion.Criterion ends(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.EndsRestriction
public static org.hibernate.criterion.Criterion ends(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.EndsRestriction
public static org.hibernate.criterion.Criterion ends(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.EndsRestriction
public static org.hibernate.criterion.Criterion endedBy(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.EndedByRestriction
public static org.hibernate.criterion.Criterion endedBy(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.EndedByRestriction
public static org.hibernate.criterion.Criterion endedBy(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.EndedByRestriction
public static org.hibernate.criterion.Criterion begunBy(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BegunByRestriction
public static org.hibernate.criterion.Criterion begunBy(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BegunByRestriction
public static org.hibernate.criterion.Criterion begunBy(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.BegunByRestriction
public static org.hibernate.criterion.Criterion during(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.DuringRestriction
public static org.hibernate.criterion.Criterion during(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.DuringRestriction
public static org.hibernate.criterion.Criterion during(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.DuringRestriction
public static org.hibernate.criterion.Criterion tEquals(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.TEqualsRestriction
public static org.hibernate.criterion.Criterion tEquals(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.TEqualsRestriction
public static org.hibernate.criterion.Criterion tEquals(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.TEqualsRestriction
public static org.hibernate.criterion.Criterion contains(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.ContainsRestriction
public static org.hibernate.criterion.Criterion contains(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.ContainsRestriction
public static org.hibernate.criterion.Criterion contains(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.ContainsRestriction
public static org.hibernate.criterion.Criterion overlaps(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.OverlapsRestriction
public static org.hibernate.criterion.Criterion overlaps(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.OverlapsRestriction
public static org.hibernate.criterion.Criterion overlaps(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.OverlapsRestriction
public static org.hibernate.criterion.Criterion meets(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.MeetsRestriction
public static org.hibernate.criterion.Criterion meets(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.MeetsRestriction
public static org.hibernate.criterion.Criterion meets(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.MeetsRestriction
public static org.hibernate.criterion.Criterion metBy(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.MetByRestriction
public static org.hibernate.criterion.Criterion metBy(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.MetByRestriction
public static org.hibernate.criterion.Criterion metBy(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.MetByRestriction
public static org.hibernate.criterion.Criterion overlappedBy(String begin, String end, Time value) throws UnsupportedTimeException
begin
- the begin property nameend
- the end property namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.OverlappedByRestriction
public static org.hibernate.criterion.Criterion overlappedBy(String property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.OverlappedByRestriction
public static org.hibernate.criterion.Criterion overlappedBy(TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
property
- the propertyvalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionTemporalRestriction.OverlappedByRestriction
private static org.hibernate.criterion.Criterion filter(TemporalRestriction restriction, String begin, String end, Time value) throws UnsupportedTimeException
restriction
- the restrictionbegin
- the begin property field nameend
- the end property field namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionprivate static org.hibernate.criterion.Criterion filter(TemporalRestriction restriction, String property, Time value) throws UnsupportedTimeException
restriction
- the restrictionproperty
- the property field namevalue
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionprivate static org.hibernate.criterion.Criterion filter(TemporalRestriction restriction, TimePrimitiveFieldDescriptor property, Time value) throws UnsupportedTimeException
restriction
- the restrictionproperty
- the property field name(s)value
- the valueUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionpublic static org.hibernate.criterion.Criterion filter(TemporalFilter filter) throws UnsupportedTimeException, UnsupportedValueReferenceException, UnsupportedOperatorException
filter
- the filterUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionUnsupportedValueReferenceException
- if the value
reference
can not be decodedUnsupportedOperatorException
- if no restriction definition for the FilterConstants.TimeOperator
is
foundpublic static org.hibernate.criterion.Criterion filter(Iterable<TemporalFilter> temporalFilters) throws UnsupportedTimeException, UnsupportedValueReferenceException, UnsupportedOperatorException
Conjunction
for the specified temporal filters.temporalFilters
- the filtersUnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionUnsupportedValueReferenceException
- if the value
reference
can not be decodedUnsupportedOperatorException
- if no restriction definition for the FilterConstants.TimeOperator
is
foundprivate static Collection<org.hibernate.criterion.Disjunction> getDisjunction(Iterable<TemporalFilter> temporalFilters) throws UnsupportedTimeException, UnsupportedValueReferenceException, UnsupportedOperatorException
Disjunction
s for the specified temporal filters with the
same valueReference.temporalFilters
- the filtersCollection
of Disjunction
UnsupportedTimeException
- if the value and property combination is not applicable for
this restrictionUnsupportedValueReferenceException
- if the value
reference
can not be decodedUnsupportedOperatorException
- if no restriction definition for the FilterConstants.TimeOperator
is
foundprivate static TimePrimitiveFieldDescriptor getFields(String valueReference) throws UnsupportedValueReferenceException
valueReference
- the value referenceUnsupportedValueReferenceException
- if the valueReference can not be decodedPHENOMENON_TIME_VALUE_REFERENCE
,
RESULT_TIME_VALUE_REFERENCE
,
VALID_TIME_VALUE_REFERENCE
,
PHENOMENON_TIME_FIELDS
,
RESULT_TIME_FIELDS
,
VALID_TIME_FIELDS
Copyright © 2012-2015 52north.org. All Rights Reserved.