public static class TemporalRestriction.TEqualsRestriction extends TemporalRestriction
Self/Other | Period | Instant |
Period | self.begin = other.begin AND self.end = other.end | if period is from a reduced precision instant, self.begin ≥ other.begin and self.end ≤ other.end, otherwise not defined | Instant | not defined | self.position = other.position |
TemporalRestriction.AfterRestriction, TemporalRestriction.BeforeRestriction, TemporalRestriction.BeginsRestriction, TemporalRestriction.BegunByRestriction, TemporalRestriction.ContainsRestriction, TemporalRestriction.DuringRestriction, TemporalRestriction.EndedByRestriction, TemporalRestriction.EndsRestriction, TemporalRestriction.MeetsRestriction, TemporalRestriction.MetByRestriction, TemporalRestriction.OverlappedByRestriction, TemporalRestriction.OverlapsRestriction, TemporalRestriction.TEqualsRestriction
Constructor and Description |
---|
TEqualsRestriction() |
Modifier and Type | Method and Description |
---|---|
protected org.hibernate.criterion.Criterion |
filterInstantWithInstant(String selfPosition,
Date otherPosition)
Applies this restriction to the specified time instantes.
|
protected org.hibernate.criterion.Criterion |
filterInstantWithPeriod(String selfPosition,
Date otherBegin,
Date otherEnd,
boolean isOtherPeriodFromReducedPrecisionInstant)
Applies this restriction to the specified time instance and time period.
|
protected org.hibernate.criterion.Criterion |
filterPeriodWithPeriod(String selfBegin,
String selfEnd,
Date otherBegin,
Date otherEnd)
Applies this restriction to the specified time periods.
|
filterPeriodWithInstant, get, getPropertyCheckingCriterion, greater, isInstant, isPeriod, lower
protected org.hibernate.criterion.Criterion filterPeriodWithPeriod(String selfBegin, String selfEnd, Date otherBegin, Date otherEnd)
TemporalRestriction
filterPeriodWithPeriod
in class TemporalRestriction
selfBegin
- the property name of the begin time stampselfEnd
- the property name of the end time stampotherBegin
- the begin instance of the compared time periodotherEnd
- the end instance of the compared time periodprotected org.hibernate.criterion.Criterion filterInstantWithPeriod(String selfPosition, Date otherBegin, Date otherEnd, boolean isOtherPeriodFromReducedPrecisionInstant)
TemporalRestriction
filterInstantWithPeriod
in class TemporalRestriction
selfPosition
- the property name of the instanceotherBegin
- the begin instance of the compared time periodotherEnd
- the end instance of the compared time periodisOtherPeriodFromReducedPrecisionInstant
- was the period interpreted from a reduced precision time?
see DateTimeHelper.setDateTime2EndOfMostPreciseUnit4RequestedEndPositionprotected org.hibernate.criterion.Criterion filterInstantWithInstant(String selfPosition, Date otherPosition)
TemporalRestriction
filterInstantWithInstant
in class TemporalRestriction
selfPosition
- the property name of the time instanceotherPosition
- the position of the compared time instanceCopyright © 2012-2015 52north.org. All Rights Reserved.