public final class ParsedQuery extends Object implements ParsedQueryIF
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ParsedQuery(QueryProcessor rprocessor,
QueryProcessor bprocessor,
TologQuery query) |
Modifier and Type | Method and Description |
---|---|
protected net.ontopia.topicmaps.query.impl.rdbms.ParsedQuery.QueryContext |
compile(QueryBuilder builder,
List clauses) |
protected void |
compileQuery(QueryBuilder builder,
TologQuery query) |
QueryResultIF |
execute()
PUBLIC: Executes the query, returning the query result.
|
QueryResultIF |
execute(Map arguments)
PUBLIC: Executes the query binding the parameters in the query to
the values given in the 'arguments' map, returning the query
result.
|
Collection |
getAllVariables()
PUBLIC: Returns all the variables used in the query, in no
particular order.
|
List |
getClauses() |
Collection |
getCountedVariables()
PUBLIC: Returns the variables that are counted in the
select clause of the query.
|
List |
getOrderBy()
PUBLIC: Returns the variables listed in the order by
clause in the order they are given there.
|
List |
getSelectedVariables()
PUBLIC: Returns the variables in the select clause of
the query, in the order given there.
|
protected List |
getVariables(Collection varnames) |
protected boolean |
isIndependent(JDOExpressionIF expr) |
protected boolean |
isOrderableTypes(TologQuery query) |
boolean |
isOrderedAscending(String name)
PUBLIC: Returns true if the named variable is to be sorted in
ascending order.
|
protected boolean |
isSupportedArguments(QueryBuilder builder,
List arguments) |
protected JDOQuery |
makeJDOQuery(QueryBuilder builder,
net.ontopia.topicmaps.query.impl.rdbms.ParsedQuery.QueryContext qcontext,
boolean aggfunc,
boolean orderby) |
protected QueryMatches |
prepareQueryMatches(Map arguments) |
protected void |
prescan(QueryBuilder builder,
List clauses) |
String |
toString() |
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
public ParsedQuery(QueryProcessor rprocessor, QueryProcessor bprocessor, TologQuery query) throws InvalidQueryException
InvalidQueryException
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 List getClauses()
public List getSelectedVariables()
ParsedQueryIF
getSelectedVariables
in interface ParsedQueryIF
public Collection getAllVariables()
ParsedQueryIF
getAllVariables
in interface ParsedQueryIF
public Collection getCountedVariables()
ParsedQueryIF
getCountedVariables
in interface ParsedQueryIF
public List getOrderBy()
ParsedQueryIF
getOrderBy
in interface ParsedQueryIF
public boolean isOrderedAscending(String name)
ParsedQueryIF
isOrderedAscending
in interface ParsedQueryIF
protected List getVariables(Collection varnames)
public QueryResultIF execute() throws InvalidQueryException
ParsedQueryIF
execute
in interface ParsedQueryIF
InvalidQueryException
public QueryResultIF execute(Map arguments) throws InvalidQueryException
ParsedQueryIF
execute
in interface ParsedQueryIF
InvalidQueryException
protected QueryMatches prepareQueryMatches(Map arguments)
protected void prescan(QueryBuilder builder, List clauses)
protected boolean isSupportedArguments(QueryBuilder builder, List arguments)
protected net.ontopia.topicmaps.query.impl.rdbms.ParsedQuery.QueryContext compile(QueryBuilder builder, List clauses) throws InvalidQueryException
InvalidQueryException
protected boolean isIndependent(JDOExpressionIF expr)
protected boolean isOrderableTypes(TologQuery query)