Class SelfProperty<E extends Persistent>
java.lang.Object
org.apache.cayenne.exp.property.BaseProperty<E>
org.apache.cayenne.exp.property.EntityProperty<E>
org.apache.cayenne.exp.property.SelfProperty<E>
- Type Parameters:
E- type of the property
- All Implemented Interfaces:
PathProperty<E>, Property<E>, RelationshipProperty<E>
Property that represents root entity
Usage example:
List<Object[]> result = Artist.SELF
.columnQuery(Artist.SELF, Artist.PAINTING_ARRAY.count())
.select(context);
- Since:
- 5.0
-
Field Summary
Fields inherited from class BaseProperty
expressionSupplier, path, type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSelfProperty(CayennePath path, Expression expression, Class<E> type) Constructs a new property with the given name and expression -
Method Summary
Modifier and TypeMethodDescriptioncolumnQuery(Property<?>... properties) <T> ColumnSelect<T> columnQuery(Property<T> property) exists(Expression where) notExists(Expression where) query()query(Expression where) Methods inherited from class EntityProperty
alias, enclosing, eqId, idsIn, idsInCollection, idsNotIn, idsNotInCollection, inId, inId, neqId, ninId, ninId, outerMethods inherited from class BaseProperty
aggregate, asc, ascInsensitive, ascInsensitives, ascs, count, countDistinct, desc, descInsensitive, descInsensitives, descs, eq, eq, equals, function, function, getAlias, getExpression, getFrom, getFromAll, getName, getPath, getType, hashCode, in, in, in, isFalse, isNotNull, isNull, isTrue, ne, ne, nin, nin, nin, operator, operator, setIn, setInAll
-
Constructor Details
-
SelfProperty
Constructs a new property with the given name and expression- Parameters:
path- of the property (will be used as alias for the expression)expression- expression for propertytype- of the property- See Also:
-
-
Method Details
-
exists
-
notExists
-
query
-
query
-
columnQuery
-
columnQuery
-