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()
ParsedQueryIFgetSelectedVariables in interface ParsedQueryIFpublic Collection<String> getAllVariables()
ParsedQueryIFgetAllVariables in interface ParsedQueryIFpublic Collection<String> getCountedVariables()
ParsedQueryIFgetCountedVariables in interface ParsedQueryIFpublic List<String> getOrderBy()
ParsedQueryIFgetOrderBy in interface ParsedQueryIFpublic boolean isOrderedAscending(String name)
ParsedQueryIFisOrderedAscending in interface ParsedQueryIFpublic QueryResultIF execute() throws InvalidQueryException
ParsedQueryIFexecute in interface ParsedQueryIFInvalidQueryExceptionpublic QueryResultIF execute(Map<String,?> arguments) throws InvalidQueryException
ParsedQueryIFexecute in interface ParsedQueryIFInvalidQueryExceptionprotected List<String> getVariables(Collection<Variable> varnames)