Package org.apache.cayenne.exp.property
Class CollectionProperty<V extends Persistent,E extends Collection<V>> 
java.lang.Object
org.apache.cayenne.exp.property.BaseProperty<E>
org.apache.cayenne.exp.property.CollectionProperty<V,E> 
- All Implemented Interfaces:
- PathProperty<E>,- Property<E>,- RelationshipProperty<E>
- Direct Known Subclasses:
- ListProperty,- SetProperty
public abstract class CollectionProperty<V extends Persistent,E extends Collection<V>> 
extends BaseProperty<E>
implements RelationshipProperty<E>
Base class for 
ListProperty and SetProperty- Since:
- 4.2
- 
Field SummaryFieldsFields inherited from class org.apache.cayenne.exp.property.BasePropertyexpressionSupplier, path, type
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCollectionProperty(CayennePath path, Expression expression, Class<? super E> collectionType, Class<V> entityType) Constructs a new property with the given name and expression
- 
Method SummaryModifier and TypeMethodDescriptioncontains(Collection<V> values) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsValue(V)Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsValues(V...)containsId(Object id) containsId(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsIds(Object...)containsId(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsIdsCollection(Collection)containsIds(Object... ids) containsIdsCollection(Collection<?> ids) containsValue(V value) final ExpressioncontainsValues(V... values) containsValuesCollection(Collection<V> values) flat()Create new "flat" property for toMany relationship.notContains(Collection<V> values) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsValuesCollection(Collection)notContains(V value) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsValue(V)final ExpressionnotContains(V firstValue, V... moreValues) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsValues(V...)notContainsId(Object id) notContainsId(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsIds(Object...)notContainsId(Collection<Object> ids) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsIdsCollection(Collection)notContainsIds(Object... ids) notContainsIdsCollection(Collection<?> ids) notContainsValue(V value) final ExpressionnotContainsValues(V... values) notContainsValuesCollection(Collection<V> values) Methods inherited from class org.apache.cayenne.exp.property.BasePropertyaggregate, alias, asc, ascInsensitive, ascInsensitives, ascs, count, countDistinct, desc, descInsensitive, descInsensitives, descs, enclosing, 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
- 
Field Details- 
entityType
 
- 
- 
Constructor Details- 
CollectionPropertyprotected CollectionProperty(CayennePath path, Expression expression, Class<? super E> collectionType, Class<V> entityType) 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 property
- collectionType- type of the collection
- entityType- type of related entity
 
 
- 
- 
Method Details- 
flatCreate new "flat" property for toMany relationship. Example: List<Object[]> result = ObjectSelect .columnQuery(Artist.class, Artist.ARTIST_NAME, Artist.PAINTING_ARRAY.flat()) .select(context);
- 
containsDeprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsValue(V)- Returns:
- An expression representing equality to a value.
 
- 
notContainsDeprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsValue(V)- Returns:
- An expression representing equality to a value.
 
- 
containsDeprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsValues(V...)- Returns:
- An expression for finding objects with values in the given set.
 
- 
containsDeprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsValuesCollection(Collection)- Returns:
- An expression for finding objects with values in the given set.
 
- 
containsId- Parameters:
- id- object id
- Returns:
- An expression for finding object with given id.
 
- 
containsId@Deprecated(since="5.0", forRemoval=true) public Expression containsId(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsIds(Object...)- Returns:
- An expression for finding objects with given id set
 
- 
containsIdDeprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofcontainsIdsCollection(Collection)- Returns:
- An expression for finding objects with given id set.
 
- 
notContainsId- Parameters:
- id- object id
- Returns:
- An expression for finding object without given id.
 
- 
notContainsId@Deprecated(since="5.0", forRemoval=true) public Expression notContainsId(Object firstId, Object... moreId) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsIds(Object...)- Returns:
- An expression for finding objects without given id set.
 
- 
notContainsIdDeprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsIdsCollection(Collection)- Returns:
- An expression for finding objects without given id set.
 
- 
notContainsDeprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsValuesCollection(Collection)- Returns:
- An expression for finding objects with values not in the given set.
 
- 
notContains@Deprecated(since="5.0", forRemoval=true) @SafeVarargs public final Expression notContains(V firstValue, V... moreValues) Deprecated, for removal: This API element is subject to removal in a future version.since 5.0 in favour ofnotContainsValues(V...)- Returns:
- An expression for finding objects with values not in the given set.
 
- 
containsValue- Returns:
- An expression representing equality to a value.
- Since:
- 5.0
 
- 
notContainsValue- Returns:
- An expression representing inequality to a value.
- Since:
- 5.0
 
- 
containsValues- Returns:
- An expression for finding objects with values in the given set.
- Since:
- 5.0
 
- 
containsValuesCollection- Returns:
- An expression for finding objects with values in the given set.
- Since:
- 5.0
 
- 
containsIds- Returns:
- An expression for finding objects with given id set
- Since:
- 5.0
 
- 
containsIdsCollection- Returns:
- An expression for finding objects with given id set.
- Since:
- 5.0
 
- 
notContainsIds- Returns:
- An expression for finding objects with given id set
- Since:
- 5.0
 
- 
notContainsIdsCollection- Returns:
- An expression for finding objects without given id set.
- Since:
- 5.0
 
- 
notContainsValuesCollection- Returns:
- An expression for finding objects with values not in the given set.
- Since:
- 5.0
 
- 
notContainsValues- Returns:
- An expression for finding objects with values not in the given set.
- Since:
- 5.0
 
- 
getEntityType- Returns:
- object entity type represented by this property
 
 
- 
containsValuesCollection(Collection)