Interface DateExpression
-
- All Superinterfaces:
DateExpressionType
,Expression
,OrderableExpression
,ScalarExpression
public interface DateExpression extends DateExpressionType, ScalarExpression
An expression representing a date value
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Predicate
before(Instant beforeNotInclusive)
Returns a Predicate specifying the period before a given instant.Predicate
before(LocalDateTime beforeNotInclusive)
Returns a Predicate specifying the period before a given instant.Predicate
before(Date beforeNotInclusive)
Returns a Predicate specifying the period before a given instant.Predicate
between(Instant fromInclusive, Instant beforeNotInclusive)
Returns a Predicate specifying the period between two different instants.Predicate
between(LocalDateTime fromInclusive, LocalDateTime beforeNotInclusive)
Returns a Predicate specifying the period between two different instants.Predicate
between(Date fromInclusive, Date beforeNotInclusive)
Returns a Predicate specifying the period between two different instants.Predicate
from(Instant fromInclusive)
Returns a Predicate specifying the period including and after a given instant.Predicate
from(LocalDateTime fromInclusive)
Returns a Predicate specifying the period including and after a given instant.Predicate
from(Date fromInclusive)
Returns a Predicate specifying the period including and after a given instant.-
Methods inherited from interface com.iknowbase.api.contentservices.query.content.expressions.Expression
getObjectReference
-
Methods inherited from interface com.iknowbase.api.contentservices.query.content.expressions.OrderableExpression
asc, desc, order, order
-
Methods inherited from interface com.iknowbase.api.contentservices.query.content.expressions.ScalarExpression
isNotNull, isNull
-
-
-
-
Method Detail
-
from
Predicate from(Instant fromInclusive)
Returns a Predicate specifying the period including and after a given instant.- Parameters:
fromInclusive
- starting instant of the predicate- Returns:
- the Predicate
-
before
Predicate before(Instant beforeNotInclusive)
Returns a Predicate specifying the period before a given instant.- Parameters:
beforeNotInclusive
- end of period, not included- Returns:
- the Predicate
-
between
Predicate between(Instant fromInclusive, Instant beforeNotInclusive)
Returns a Predicate specifying the period between two different instants. The first instant will be included in the period, while the second will not.- Parameters:
fromInclusive
- starting instant of the predicate, inclusivebeforeNotInclusive
- end of period, not inclusive- Returns:
- the Predicate
-
from
Predicate from(LocalDateTime fromInclusive)
Returns a Predicate specifying the period including and after a given instant.- Parameters:
fromInclusive
- starting instant of the predicate- Returns:
- the Predicate
-
before
Predicate before(LocalDateTime beforeNotInclusive)
Returns a Predicate specifying the period before a given instant.- Parameters:
beforeNotInclusive
- end of period, not included- Returns:
- the Predicate
-
between
Predicate between(LocalDateTime fromInclusive, LocalDateTime beforeNotInclusive)
Returns a Predicate specifying the period between two different instants. The first instant will be included in the period, while the second will not.- Parameters:
fromInclusive
- starting instant of the predicate, inclusivebeforeNotInclusive
- end of period, not inclusive- Returns:
- the Predicate
-
from
Predicate from(Date fromInclusive)
Returns a Predicate specifying the period including and after a given instant.- Parameters:
fromInclusive
- starting instant of the predicate- Returns:
- the Predicate
-
before
Predicate before(Date beforeNotInclusive)
Returns a Predicate specifying the period before a given instant.- Parameters:
beforeNotInclusive
- end of period, not included- Returns:
- the Predicate
-
between
Predicate between(Date fromInclusive, Date beforeNotInclusive)
Returns a Predicate specifying the period between two different instants. The first instant will be included in the period, while the second will not.- Parameters:
fromInclusive
- starting instant of the predicate, inclusivebeforeNotInclusive
- end of period, not inclusive- Returns:
- the Predicate
-
-