public static class TemporalRestriction.BeforeRestriction extends TemporalRestriction
Self/Other | Period | Instant |
Period | self.end < other.begin | self.end < other.position | Instant | self.position < other.begin | 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 |
---|
BeforeRestriction() |
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 |
filterPeriodWithInstant(String selfBegin,
String selfEnd,
Date otherPosition)
Applies this restriction to the specified time period and time instance.
|
protected org.hibernate.criterion.Criterion |
filterPeriodWithPeriod(String selfBegin,
String selfEnd,
Date otherBegin,
Date otherEnd)
Applies this restriction to the specified time periods.
|
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 filterPeriodWithInstant(String selfBegin, String selfEnd, Date otherPosition)
TemporalRestriction
filterPeriodWithInstant
in class TemporalRestriction
selfBegin
- the property name of the begin time stampselfEnd
- the property name of the end time stampotherPosition
- the position of the compared time instanceprotected 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.