Package org.nuclos.api.businessobject
Interface Query<T extends BusinessObject>
public interface Query<T extends BusinessObject>
Query bases on a 
BusinessObject- Author:
 - Matthias Reichart
 
- 
Method Summary
Modifier and TypeMethodDescriptionand(SearchExpression elm) <P extends BusinessObject>
Query<T>exist(Query<P> subQuery, ForeignKeyAttribute element) Combining the query with a subquery.<P extends BusinessObject>
Query<T>exist(Query<P> subQuery, ForeignKeyAttribute elementMainQuery, ForeignKeyAttribute elementSubQuery) Combining the query with a subquery.Use this method to set the Map of element that must be considered for ordering Attach for each field a Boolean.TRUE for ascending a boolean.FALSE for descending orderingsetChunkSize(Long chunkSize) Add offset and chunkSize for the searchwhere(SearchExpression elm) Add QueryExpressions for the search 
- 
Method Details
- 
setOffset
Add offset and chunkSize for the search - 
setChunkSize
 - 
orderBy
Use this method to set the Map of element that must be considered for ordering Attach for each field a Boolean.TRUE for ascending a boolean.FALSE for descending ordering - 
and
 - 
where
Add QueryExpressions for the search - 
and
 - 
exist
Combining the query with a subquery. The attribute must be a ForeignKey of the main query. It is used for field-comparison with the id of the subquery- Parameters:
 subQuery-element-
 - 
exist
<P extends BusinessObject> Query<T> exist(Query<P> subQuery, ForeignKeyAttribute elementMainQuery, ForeignKeyAttribute elementSubQuery) Combining the query with a subquery. The given attributes are used for field-comparison. Notice that both fields must be of type ForeignKeyAttribute- Parameters:
 subQuery-elementMainQuery-elementSubQuery-- Returns:
 
 
 -