Package org.apache.cayenne.exp.property


package org.apache.cayenne.exp.property

Property API

This API allows to use type aware expression factories aka Properties.
These properties are normally generated as static constants in model classes, but they can also be created manually by PropertyFactory if needed.

Typical usage in select queries:


 Painting painting = ...
 Artist artist = ObjectSelect.query(Artist.class)
        .where(Artist.PAINTING_ARRAY.contains(painting))
        .and(Artist.DATE_OF_BIRTH.year().gt(1950))
        .and(Artist.ARTIST_NAME.like("Pablo%"))
        .orderBy(Artist.ARTIST_NAME.asc())
        .prefetch(Artist.PAINTING_ARRAY.disjointById())
        .selectOne(context);
 

Currently supported Property types:

Since:
4.2