View Javadoc

1   package com.atlassian.user.search.query;
2   
3   public interface TermQuery extends Query
4   {
5       final String SUBSTRING_STARTS_WITH = "starts_with";
6       final String SUBSTRING_ENDS_WITH = "ends_with";
7       final String SUBSTRING_CONTAINS = "contains";
8       final String WILDCARD = "*";
9       
10      /**
11       * @return a String holding the system indepdent value of the term to match for equality.
12       *
13       * For example, in a ColourQuery this term might be 'red' but, when rendered, would be
14       * represented as "select colour from colour_table where colour = 'red'"
15       */
16      String getTerm();
17  
18      String getMatchingRule();
19  
20      boolean isMatchingSubstring();
21  
22  }