Package org.apache.cayenne.exp.property
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:
Usage example:
Listinvalid input: '<'Object[]> result = Artist.SELF.columnQuery(Artist.SELF, Artist.PAINTING_ARRAY.count()).select(context);
- Since:
- 5.0
-
Field Summary
Fields inherited from class org.apache.cayenne.exp.property.BaseProperty
expressionSupplier, path, type
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SelfProperty
(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 org.apache.cayenne.exp.property.EntityProperty
alias, enclosing, eqId, idsIn, idsInCollection, idsNotIn, idsNotInCollection, inId, inId, neqId, ninId, ninId, outer
Methods inherited from class org.apache.cayenne.exp.property.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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.cayenne.exp.property.PathProperty
dot, dot, dot, dot, dot
-
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
-