public class DateProperty<E> extends BaseProperty<E> implements ComparableProperty<E>
ObjectSelect.query(Artist.class)
.where(Artist.DATE_OF_BIRTH.year().lte(1900))
.or(Artist.DATE_OF_BIRTH.month().between(6, 8))
org.apache.cayenne.exp.property
expressionSupplier, name, type
Modifier | Constructor and Description |
---|---|
protected |
DateProperty(String name,
Expression expression,
Class<E> type)
Constructs a new property with the given name and expression
|
Modifier and Type | Method and Description |
---|---|
DateProperty<E> |
alias(String alias)
Creates alias with different name for this property
|
NumericProperty<Integer> |
dayOfMonth()
It is a caller responsibility to check that underlying attribute has day component
|
NumericProperty<Integer> |
dayOfYear()
It is a caller responsibility to check that underlying attribute has day component
|
DateProperty<E> |
enclosing() |
NumericProperty<Integer> |
hour()
It is a caller responsibility to check that underlying attribute has time component
|
DateProperty<E> |
max() |
DateProperty<E> |
min() |
NumericProperty<Integer> |
minute()
It is a caller responsibility to check that underlying attribute has time component
|
NumericProperty<Integer> |
month()
It is a caller responsibility to check that underlying attribute has month component
|
NumericProperty<Integer> |
second()
It is a caller responsibility to check that underlying attribute has time component
|
NumericProperty<Integer> |
year()
It is a caller responsibility to check that underlying attribute has year component
|
asc, ascInsensitive, ascInsensitives, ascs, count, countDistinct, desc, descInsensitive, descInsensitives, descs, eq, eq, equals, function, function, getAlias, getExpression, getFrom, getFromAll, getName, getType, hashCode, in, in, in, isFalse, isNotNull, isNull, isTrue, ne, ne, nin, nin, nin, operator, operator, path, setIn, setInAll
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
between, between, gt, gt, gte, gte, lt, lt, lte, lte
getAlias, getExpression, getName, getType
protected DateProperty(String name, Expression expression, Class<E> type)
name
- of the property (will be used as alias for the expression)expression
- expression for propertytype
- of the propertypublic NumericProperty<Integer> year()
FunctionExpressionFactory.yearExp(Expression)
public NumericProperty<Integer> month()
FunctionExpressionFactory.monthExp(Expression)
public NumericProperty<Integer> dayOfMonth()
FunctionExpressionFactory.dayOfMonthExp(Expression)
public NumericProperty<Integer> dayOfYear()
FunctionExpressionFactory.dayOfMonthExp(Expression)
public NumericProperty<Integer> hour()
FunctionExpressionFactory.hourExp(Expression)
public NumericProperty<Integer> minute()
FunctionExpressionFactory.minuteExp(Expression)
public NumericProperty<Integer> second()
FunctionExpressionFactory.secondExp(Expression)
public DateProperty<E> alias(String alias)
alias
in class BaseProperty<E>
public DateProperty<E> max()
max
in interface ComparableProperty<E>
FunctionExpressionFactory.maxExp(Expression)
public DateProperty<E> min()
min
in interface ComparableProperty<E>
FunctionExpressionFactory.minExp(Expression)
public DateProperty<E> enclosing()
enclosing
in class BaseProperty<E>
Copyright © 2001–2021 Apache Cayenne. All rights reserved.