|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ontopia.topicmaps.query.impl.basic.ParsedQuery
public class ParsedQuery
INTERNAL: Class used to represent parsed queries. The class wraps a query executer and a tolog query intance (as generated by the parser). The actual query execution is delegated to the query processor.
| Field Summary | |
|---|---|
protected QueryProcessor |
processor
|
protected TologQuery |
query
|
| Constructor Summary | |
|---|---|
ParsedQuery(QueryProcessor processor,
TologQuery query)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TologQuery query
protected QueryProcessor processor
| Constructor Detail |
|---|
public ParsedQuery(QueryProcessor processor,
TologQuery query)
| Method Detail |
|---|
public List getClauses()
public List<String> getSelectedVariables()
ParsedQueryIF
getSelectedVariables in interface ParsedQueryIFpublic Collection<String> getAllVariables()
ParsedQueryIF
getAllVariables in interface ParsedQueryIFpublic Collection<String> getCountedVariables()
ParsedQueryIF
getCountedVariables in interface ParsedQueryIFpublic List<String> getOrderBy()
ParsedQueryIF
getOrderBy in interface ParsedQueryIFpublic boolean isOrderedAscending(String name)
ParsedQueryIF
isOrderedAscending in interface ParsedQueryIF
public QueryResultIF execute()
throws InvalidQueryException
ParsedQueryIF
execute in interface ParsedQueryIFInvalidQueryException
public QueryResultIF execute(Map<String,?> arguments)
throws InvalidQueryException
ParsedQueryIF
execute in interface ParsedQueryIFInvalidQueryExceptionpublic String toString()
toString in class Objectprotected List<String> getVariables(Collection<Variable> varnames)
public Object[] getVariableTypes(String varname)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||