Package org.apache.cayenne.exp.property
Class SetProperty<V extends Persistent>
java.lang.Object
org.apache.cayenne.exp.property.BaseProperty<E>
org.apache.cayenne.exp.property.CollectionProperty<V,Set<V>>
 
org.apache.cayenne.exp.property.SetProperty<V>
- All Implemented Interfaces:
- PathProperty<Set<V>>,- Property<Set<V>>,- RelationshipProperty<Set<V>>
Property that represents to-many relationship mapped on 
Set.- Since:
- 4.2
- See Also:
- 
Field SummaryFields inherited from class org.apache.cayenne.exp.property.CollectionPropertyentityTypeFields inherited from class org.apache.cayenne.exp.property.BasePropertyexpressionSupplier, path, type
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSetProperty(CayennePath path, Expression expression, Class<V> entityType) Constructs a new property with the given path and expression
- 
Method SummaryModifier and TypeMethodDescriptionCreates alias with different name for this propertyThis operator allows to access properties of the enclosing query from the subquery.outer()Returns a version of this property that represents an OUTER join.Methods inherited from class org.apache.cayenne.exp.property.CollectionPropertycontains, contains, contains, containsId, containsId, containsId, containsIds, containsIdsCollection, containsValue, containsValues, containsValuesCollection, flat, getEntityType, notContains, notContains, notContains, notContainsId, notContainsId, notContainsId, notContainsIds, notContainsIdsCollection, notContainsValue, notContainsValues, notContainsValuesCollectionMethods inherited from class org.apache.cayenne.exp.property.BasePropertyaggregate, 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, setInAllMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cayenne.exp.property.PathPropertydot, dot, dot, dot, dot
- 
Constructor Details- 
SetPropertyConstructs a new property with the given path and expression- Parameters:
- path- of the property (will be used as alias for the expression)
- expression- expression for property
- entityType- type of related entity
 
 
- 
- 
Method Details- 
aliasCreates alias with different name for this property- Overrides:
- aliasin class- BaseProperty<Set<V extends Persistent>>
 
- 
outerReturns a version of this property that represents an OUTER join.
- 
enclosingDescription copied from class:BasePropertyThis operator allows to access properties of the enclosing query from the subquery. It allows multiple nesting levels to access a corresponding query in case of multiple levels of subqueries. Example:ObjectSelect.query(Artist.class) .where(ExpressionFactory.notExists(ObjectSelect.query(Painting.class) .where(Painting.TO_ARTIST.eq(Artist.ARTIST_ID_PK_PROPERTY.enclosing()))))- Overrides:
- enclosingin class- BaseProperty<Set<V extends Persistent>>
- Returns:
- property that will be translated relative to parent query
 
 
-