public class TimestampValueImpl<T> extends BasicValueImpl<T,Instant> implements TimestampValue<T>
Constructor and Description |
---|
TimestampValueImpl(String name,
ValueConverter<T,Instant> valueConverter,
TimestampOperand<T> timestampOperand,
boolean supportsOrderBy) |
Modifier and Type | Method and Description |
---|---|
Predicate |
after(T referenceDate)
Builds a predicate for a
queryParameter > referenceValue comparison. |
Predicate |
afterOrEq(T referenceDate)
Builds a predicate for a
queryParameter >= referenceValue comparison. |
Predicate |
before(T referenceDate)
Builds a predicate for a
queryParameter < referenceValue comparison. |
Predicate |
beforeOrEq(T referenceDate)
Builds a predicate for a
queryParameter <= referenceValue comparison. |
Predicate |
between(T startDate,
T endDate)
Builds a predicate for a
queryParameter >= startDate AND queryParameter <= endDate comparison. |
eq, eq, eq, exists, getQueryParameter, in, in, in, in, in, in, in, isNotNull, isNull, notEq, notIn, notIn, notIn, notIn, notIn, orderAsc, orderDesc
getName, getValueConverter
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getValueConverter
public TimestampValueImpl(String name, ValueConverter<T,Instant> valueConverter, TimestampOperand<T> timestampOperand, boolean supportsOrderBy)
public Predicate before(T referenceDate)
TimestampOperand
Builds a predicate for a queryParameter < referenceValue
comparison.
before
in interface TimestampOperand<T>
referenceDate
- the reference datepublic Predicate beforeOrEq(T referenceDate)
TimestampOperand
Builds a predicate for a queryParameter <= referenceValue
comparison.
beforeOrEq
in interface TimestampOperand<T>
referenceDate
- the reference datepublic Predicate after(T referenceDate)
TimestampOperand
Builds a predicate for a queryParameter > referenceValue
comparison.
after
in interface TimestampOperand<T>
referenceDate
- the reference datepublic Predicate afterOrEq(T referenceDate)
TimestampOperand
Builds a predicate for a queryParameter >= referenceValue
comparison.
afterOrEq
in interface TimestampOperand<T>
referenceDate
- the reference datepublic Predicate between(T startDate, T endDate)
TimestampOperand
Builds a predicate for a queryParameter >= startDate AND queryParameter <= endDate
comparison.
between
in interface TimestampOperand<T>
startDate
- the inclusive lower bound of the date rangeendDate
- the inclusive upper bound of the date rangeCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.