|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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(java.util.Map<java.lang.String,?> arguments)
PUBLIC: Executes the query binding the parameters in the query to the values given in the 'arguments' map, returning the query result. |
java.util.Collection<java.lang.String> |
getAllVariables()
PUBLIC: Returns all the variables used in the query, in no particular order. |
java.util.List |
getClauses()
|
java.util.Collection<java.lang.String> |
getCountedVariables()
PUBLIC: Returns the variables that are counted in the select clause of the query. |
java.util.List<java.lang.String> |
getOrderBy()
PUBLIC: Returns the variables listed in the order by clause in the order they are given there. |
java.util.List<java.lang.String> |
getSelectedVariables()
PUBLIC: Returns the variables in the select clause of the query, in the order given there. |
protected java.util.List<java.lang.String> |
getVariables(java.util.Collection<Variable> varnames)
|
java.lang.Object[] |
getVariableTypes(java.lang.String varname)
|
boolean |
isOrderedAscending(java.lang.String name)
PUBLIC: Returns true if the named variable is to be sorted in ascending order. |
java.lang.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 java.util.List getClauses()
public java.util.List<java.lang.String> getSelectedVariables()
ParsedQueryIF
getSelectedVariables
in interface ParsedQueryIF
public java.util.Collection<java.lang.String> getAllVariables()
ParsedQueryIF
getAllVariables
in interface ParsedQueryIF
public java.util.Collection<java.lang.String> getCountedVariables()
ParsedQueryIF
getCountedVariables
in interface ParsedQueryIF
public java.util.List<java.lang.String> getOrderBy()
ParsedQueryIF
getOrderBy
in interface ParsedQueryIF
public boolean isOrderedAscending(java.lang.String name)
ParsedQueryIF
isOrderedAscending
in interface ParsedQueryIF
public QueryResultIF execute() throws InvalidQueryException
ParsedQueryIF
execute
in interface ParsedQueryIF
InvalidQueryException
public QueryResultIF execute(java.util.Map<java.lang.String,?> arguments) throws InvalidQueryException
ParsedQueryIF
execute
in interface ParsedQueryIF
InvalidQueryException
public java.lang.String toString()
toString
in class java.lang.Object
protected java.util.List<java.lang.String> getVariables(java.util.Collection<Variable> varnames)
public java.lang.Object[] getVariableTypes(java.lang.String varname)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |