Interface Query<T extends BusinessObject>


public interface Query<T extends BusinessObject>
Query bases on a BusinessObject
Author:
Matthias Reichart
  • Method Details

    • setOffset

      Query<T> setOffset(Long offset)
      Add offset and chunkSize for the search
    • setChunkSize

      Query<T> setChunkSize(Long chunkSize)
    • orderBy

      Query<T> orderBy(Attribute element, Boolean ascending)
      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

      Query<T> and(Attribute element, Boolean ascending)
    • where

      Query<T> where(SearchExpression elm)
      Add QueryExpressions for the search
    • and

    • exist

      <P extends BusinessObject> Query<T> exist(Query<P> subQuery, ForeignKeyAttribute element)
      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: