Class QueryWhere


  • public class QueryWhere
    extends Object
    THIS CLASS SHOULD NEVER BE EXPOSED IN THE PUBLIC API!!

    EXTERNAL USE OF THIS CLASS IS **NOT** SUPPORTED!

    This object can be seen as a (dynamic) representation of the WHERE part of a query.

    It has the following responsibilities:
    1. Hold a list of the added query criteria
    2. Keep track of the criteria preferences:
      • Are we adding a range, a regexp or just a normal criteria?
      • Is this the start or end of a group?
    • Constructor Detail

      • QueryWhere

        public QueryWhere()
      • QueryWhere

        public QueryWhere​(QueryWhere queryWhere)
    • Method Detail

      • addParameter

        public <T> QueryCriteria addParameter​(String listId,
                                              T... param)
        This method should be used for
        1. Normal parameters
        2. Regular expression parameters
        This method should not be used for
        1. Range parameters
        Parameters:
        listId -
        param -
        Returns:
      • addRangeParameter

        public <T> void addRangeParameter​(String listId,
                                          T param,
                                          boolean start)
      • addRangeParameters

        public <T> void addRangeParameters​(String listId,
                                           T paramMin,
                                           T paramMax)
      • newGroup

        public void newGroup()
      • endGroup

        public void endGroup()
      • setAscending

        public void setAscending​(String listId)
      • setDescending

        public void setDescending​(String listId)
      • setAscOrDesc

        public void setAscOrDesc​(Boolean ascendingOrDescending)
      • getAscOrDesc

        public Boolean getAscOrDesc()
      • setOrderByListId

        public void setOrderByListId​(String listId)
      • getOrderByListId

        public String getOrderByListId()
      • setCount

        public void setCount​(Integer maxResults)
      • getCount

        public Integer getCount()
      • setOffset

        public void setOffset​(Integer offset)
      • getOffset

        public Integer getOffset()
      • setToUnion

        public void setToUnion()
      • setToIntersection

        public void setToIntersection()
      • isUnion

        public boolean isUnion()
      • setToLike

        public void setToLike()
      • isLike

        public boolean isLike()
      • setToNormal

        public void setToNormal()
      • setToRange

        public void setToRange()
      • isRange

        public boolean isRange()
      • setToGroup

        public void setToGroup()
      • getJoinPredicates

        public Map<String,​javax.persistence.criteria.Predicate> getJoinPredicates()
      • clear

        public void clear()