com.atlassian.query
Class QueryImpl
java.lang.Object
com.atlassian.query.QueryImpl
- All Implemented Interfaces:
- Query
@Internal
public class QueryImpl
- extends Object
- implements Query
Defines a structured graph of objects that can be used to represent query.
- Since:
- v4.0
QueryImpl
public QueryImpl()
QueryImpl
public QueryImpl(Clause whereClause)
QueryImpl
public QueryImpl(Clause whereClause,
String originalQuery)
QueryImpl
public QueryImpl(Clause whereClause,
OrderBy orderByClause,
String originalQuery)
getWhereClause
public Clause getWhereClause()
- Specified by:
getWhereClause
in interface Query
- Returns:
- the main clause of the search which can be any number of nested clauses that will make up the full
search query. Null indicates that no where clause is available and all issues should be returned.
getOrderByClause
public OrderBy getOrderByClause()
- Specified by:
getOrderByClause
in interface Query
- Returns:
- the sorting portion of the search which can be any number of
SearchSort
s that will make up the full order by clause. Null indicates that
no order by clause has been entered and we will not sort the query, empty sorts will cause the default
sorts to be used.
getQueryString
public String getQueryString()
- Specified by:
getQueryString
in interface Query
- Returns:
- the original query string that the user inputted into the system. If not provided, will return null.
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2002-2012 Atlassian. All Rights Reserved.