|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.query.impl.rdbms.ParsedQuery
public final 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 executer.
Field Summary | |
---|---|
protected QueryProcessor |
bprocessor
|
protected QueryComponentIF[] |
components
|
protected boolean |
has_bclauses
|
protected int |
qresult
|
protected TologQuery |
query
|
protected QueryProcessor |
rprocessor
|
protected SQLGeneratorIF |
sqlgen
|
protected QueryIF |
sqlquery
|
Constructor Summary | |
---|---|
ParsedQuery(QueryProcessor rprocessor,
QueryProcessor bprocessor,
TologQuery query)
|
Method Summary | |
---|---|
protected net.ontopia.topicmaps.query.impl.rdbms.ParsedQuery.QueryContext |
compile(QueryBuilder builder,
java.util.List clauses)
|
protected void |
compileQuery(QueryBuilder builder,
TologQuery query)
|
QueryResultIF |
execute()
PUBLIC: Executes the query, returning the query result. |
QueryResultIF |
execute(java.util.Map 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 |
getAllVariables()
PUBLIC: Returns all the variables used in the query, in no particular order. |
java.util.List |
getClauses()
|
java.util.Collection |
getCountedVariables()
PUBLIC: Returns the variables that are counted in the select clause of the query. |
java.util.List |
getOrderBy()
PUBLIC: Returns the variables listed in the order by clause in the order they are given there. |
java.util.List |
getSelectedVariables()
PUBLIC: Returns the variables in the select clause of the query, in the order given there. |
protected java.util.List |
getVariables(java.util.Collection varnames)
|
protected boolean |
isIndependent(JDOExpressionIF expr)
|
protected boolean |
isOrderableTypes(TologQuery query)
|
boolean |
isOrderedAscending(java.lang.String name)
PUBLIC: Returns true if the named variable is to be sorted in ascending order. |
protected boolean |
isSupportedArguments(QueryBuilder builder,
java.util.List arguments)
|
protected JDOQuery |
makeJDOQuery(QueryBuilder builder,
net.ontopia.topicmaps.query.impl.rdbms.ParsedQuery.QueryContext qcontext,
boolean aggfunc,
boolean orderby)
|
protected QueryMatches |
prepareQueryMatches(java.util.Map arguments)
|
protected void |
prescan(QueryBuilder builder,
java.util.List clauses)
|
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 rprocessor
protected QueryProcessor bprocessor
protected QueryComponentIF[] components
protected QueryIF sqlquery
protected int qresult
protected boolean has_bclauses
protected SQLGeneratorIF sqlgen
Constructor Detail |
---|
public ParsedQuery(QueryProcessor rprocessor, QueryProcessor bprocessor, TologQuery query) throws InvalidQueryException
InvalidQueryException
Method Detail |
---|
protected void compileQuery(QueryBuilder builder, TologQuery query) throws InvalidQueryException
InvalidQueryException
protected JDOQuery makeJDOQuery(QueryBuilder builder, net.ontopia.topicmaps.query.impl.rdbms.ParsedQuery.QueryContext qcontext, boolean aggfunc, boolean orderby) throws InvalidQueryException
InvalidQueryException
public java.util.List getClauses()
public java.util.List getSelectedVariables()
ParsedQueryIF
getSelectedVariables
in interface ParsedQueryIF
public java.util.Collection getAllVariables()
ParsedQueryIF
getAllVariables
in interface ParsedQueryIF
public java.util.Collection getCountedVariables()
ParsedQueryIF
getCountedVariables
in interface ParsedQueryIF
public java.util.List getOrderBy()
ParsedQueryIF
getOrderBy
in interface ParsedQueryIF
public boolean isOrderedAscending(java.lang.String name)
ParsedQueryIF
isOrderedAscending
in interface ParsedQueryIF
protected java.util.List getVariables(java.util.Collection varnames)
public QueryResultIF execute() throws InvalidQueryException
ParsedQueryIF
execute
in interface ParsedQueryIF
InvalidQueryException
public QueryResultIF execute(java.util.Map arguments) throws InvalidQueryException
ParsedQueryIF
execute
in interface ParsedQueryIF
InvalidQueryException
protected QueryMatches prepareQueryMatches(java.util.Map arguments)
protected void prescan(QueryBuilder builder, java.util.List clauses)
protected boolean isSupportedArguments(QueryBuilder builder, java.util.List arguments)
protected net.ontopia.topicmaps.query.impl.rdbms.ParsedQuery.QueryContext compile(QueryBuilder builder, java.util.List clauses) throws InvalidQueryException
InvalidQueryException
protected boolean isIndependent(JDOExpressionIF expr)
protected boolean isOrderableTypes(TologQuery query)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |