public class ParsedQuery extends Object implements ParsedQueryIF
Modifier and Type | Field and Description |
---|---|
protected QueryProcessor |
processor |
protected TologQuery |
query |
Constructor and Description |
---|
ParsedQuery(QueryProcessor processor,
TologQuery query) |
Modifier and Type | Method and Description |
---|---|
QueryResultIF |
execute()
PUBLIC: Executes the query, returning the query result.
|
QueryResultIF |
execute(Map<String,?> arguments)
PUBLIC: Executes the query binding the parameters in the query to
the values given in the 'arguments' map, returning the query
result.
|
Collection<String> |
getAllVariables()
PUBLIC: Returns all the variables used in the query, in no
particular order.
|
List |
getClauses() |
Collection<String> |
getCountedVariables()
PUBLIC: Returns the variables that are counted in the
select clause of the query.
|
List<String> |
getOrderBy()
PUBLIC: Returns the variables listed in the order by
clause in the order they are given there.
|
List<String> |
getSelectedVariables()
PUBLIC: Returns the variables in the select clause of
the query, in the order given there.
|
protected List<String> |
getVariables(Collection<Variable> varnames) |
Object[] |
getVariableTypes(String varname) |
boolean |
isOrderedAscending(String name)
PUBLIC: Returns true if the named variable is to be sorted in
ascending order.
|
String |
toString() |
protected TologQuery query
protected QueryProcessor processor
public ParsedQuery(QueryProcessor processor, TologQuery query)
public List getClauses()
public List<String> getSelectedVariables()
ParsedQueryIF
getSelectedVariables
in interface ParsedQueryIF
public Collection<String> getAllVariables()
ParsedQueryIF
getAllVariables
in interface ParsedQueryIF
public Collection<String> getCountedVariables()
ParsedQueryIF
getCountedVariables
in interface ParsedQueryIF
public List<String> getOrderBy()
ParsedQueryIF
getOrderBy
in interface ParsedQueryIF
public boolean isOrderedAscending(String name)
ParsedQueryIF
isOrderedAscending
in interface ParsedQueryIF
public QueryResultIF execute() throws InvalidQueryException
ParsedQueryIF
execute
in interface ParsedQueryIF
InvalidQueryException
public QueryResultIF execute(Map<String,?> arguments) throws InvalidQueryException
ParsedQueryIF
execute
in interface ParsedQueryIF
InvalidQueryException
protected List<String> getVariables(Collection<Variable> varnames)