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.property
expressionSupplier, 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() |
Expression |
eqId(Object id) |
Expression |
inId(Collection<Object> ids) |
Expression |
inId(Object firstId,
Object... moreIds) |
Expression |
neqId(Object id) |
Expression |
ninId(Collection<Object> ids) |
Expression |
ninId(Object firstId,
Object... moreIds) |
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, operator, operator, path, setIn, setInAll
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
disjoint, disjointById, dot, dot, dot, dot, dot, dot, dot, joint
dot, dot, dot, dot, dot
getAlias, getExpression, getName, getType
protected 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 Expression eqId(Object id)
public Expression inId(Collection<Object> ids)
public Expression inId(Object firstId, Object... moreIds)
public Expression neqId(Object id)
public Expression ninId(Collection<Object> ids)
public Expression ninId(Object firstId, Object... moreIds)
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–2021 Apache Cayenne. All rights reserved.