Package org.apache.cayenne.exp.property
Interface ComparableProperty<E>
- All Superinterfaces:
Property<E>
- All Known Implementing Classes:
DateProperty
,NumericIdProperty
,NumericProperty
,Property
,StringProperty
Interface (or "Trait") that provides basic functionality for comparable properties.
- Since:
- 4.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Expression
default Expression
between
(ComparableProperty<?> lower, ComparableProperty<?> upper) default Expression
default Expression
gt
(ComparableProperty<?> value) default Expression
default Expression
gte
(ComparableProperty<?> value) default Expression
default Expression
lt
(ComparableProperty<?> value) default Expression
default Expression
lte
(ComparableProperty<?> value) default BaseProperty
<E> max()
default BaseProperty
<E> min()
Methods inherited from interface org.apache.cayenne.exp.property.Property
getAlias, getExpression, getName, getType
-
Method Details
-
between
- Parameters:
lower
- The lower bound.upper
- The upper bound.- Returns:
- An expression checking for objects between a lower and upper bound inclusive
-
between
- Parameters:
lower
- The lower bound.upper
- The upper bound.- Returns:
- An expression checking for objects between a lower and upper bound inclusive
-
gt
- Returns:
- A greater than Expression.
-
gt
- Returns:
- Represents a greater than relationship between two attributes (columns).
-
gte
- Returns:
- A greater than or equal to Expression.
-
gte
- Returns:
- Represents a greater than or equal relationship between two attributes (columns).
-
lt
- Returns:
- A less than Expression.
-
lt
- Returns:
- Represents a less than relationship between two attributes (columns).
-
lte
- Returns:
- A less than or equal to Expression.
-
lte
- Returns:
- Represents a less than or equal relationship between two attributes (columns).
-
max
- See Also:
-
min
- See Also:
-