public final class DateOperand extends BasicOperand<Date>
Predicate
instances through date-specific operators.BasicOperand.InnerSelectReferenceValue
constructionInterceptor, queryParameter
Constructor and Description |
---|
DateOperand(QueryParameter queryParameter)
Creates a new operand instance.
|
DateOperand(QueryParameter queryParameter,
ConstructionInterceptor constructionInterceptor)
Creates a new operand instance.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
after(Date referenceDate)
Builds a predicate representing a
queryParameter > referenceValue comparison. |
Predicate |
afterOrEq(Date referenceDate)
Builds a predicate representing a
queryParameter >= referenceValue comparison. |
Predicate |
before(Date referenceDate)
Builds a predicate representing a
queryParameter < referenceValue comparison. |
Predicate |
beforeOrEq(Date referenceDate)
Builds a predicate representing a
queryParameter <= referenceValue comparison. |
Predicate |
between(Date startDate,
Date endDate)
Builds a predicate representing a
queryParameter >= startDate AND queryParameter <= endDate comparison. |
public DateOperand(QueryParameter queryParameter)
queryParameter
- the left operand for all predicates to be builtpublic DateOperand(QueryParameter queryParameter, ConstructionInterceptor constructionInterceptor)
queryParameter
- the left operand for all predicates to be builtconstructionInterceptor
- the interceptor to be invoked upon construction of predicatespublic Predicate before(Date referenceDate)
queryParameter < referenceValue
comparison.referenceDate
- the reference date used for the comparisonpublic Predicate beforeOrEq(Date referenceDate)
queryParameter <= referenceValue
comparison.referenceDate
- the reference date used for the comparisonpublic Predicate after(Date referenceDate)
queryParameter > referenceValue
comparison.referenceDate
- the reference date used for the comparisonpublic Predicate afterOrEq(Date referenceDate)
queryParameter >= referenceValue
comparison.referenceDate
- the reference date used for the comparisonpublic Predicate between(Date startDate, Date endDate)
queryParameter >= startDate AND queryParameter <= endDate
comparison.startDate
- the inclusive lower bound of the date rangeendDate
- the inclusive upper bound of the date rangeCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.