Class StringIdQuery

java.lang.Object
org.apache.cayenne.lifecycle.id.StringIdQuery
All Implemented Interfaces:
Serializable, Query

public class StringIdQuery extends Object implements Query
A query that allows to fetch objects based on one or more String IDs. The returned objects do not have to be of the same type, be related via inheritance, or come from the same DB table. Note that if you expect multiple types of objects, use ObjectContext.performGenericQuery(Query). The returned QueryResponse will contain separate lists of DataRows for each type in no particular order.

As of this writing, a limitation of this query is that it returns DataRows that need to be manually converted to objects if needed. In that it is similar to QueryChain.

Since:
3.1
See Also: