public class EntityProperty<E extends Persistent> extends BaseProperty<E> implements RelationshipProperty<E>
Usage examples in where clause:
ObjectSelect.query(Paintings.class)
.where(Painting.TO_ARTIST.dot(Artist.ARTIST_NAME).eq("Pablo Picasso"));
Usage examples in column select, in this case full Artist entity will be returned in the result:
ObjectSelect
.columnQuery(Paintings.class, Painting.PAINTING_TITLE, Painting.TO_ARTIST);org.apache.cayenne.exp.propertyexpressionSupplier, name, type| Modifier | Constructor and Description |
|---|---|
protected |
EntityProperty(String name,
Expression expression,
Class<E> type)
Constructs a new property with the given name and expression
|
| Modifier and Type | Method and Description |
|---|---|
EntityProperty<E> |
alias(String alias)
Creates alias with different name for this property
|
EntityProperty<E> |
enclosing() |
EntityProperty<E> |
outer()
Returns a version of this property that represents an OUTER join.
|
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, path, setIn, setInAllclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdisjoint, disjointById, dot, dot, dot, dot, dot, dot, dot, jointdot, dot, dot, dot, dotgetAlias, getExpression, getName, getTypeprotected EntityProperty(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 propertyPropertyFactory.createBase(String, Expression, Class)public EntityProperty<E> alias(String alias)
alias in class BaseProperty<E extends Persistent>public EntityProperty<E> outer()
outer in interface RelationshipProperty<E extends Persistent>public EntityProperty<E> enclosing()
enclosing in class BaseProperty<E extends Persistent>Copyright © 2001–2020 Apache Cayenne. All rights reserved.