net.ontopia.topicmaps.query.core
Interface ParsedQueryIF

All Superinterfaces:
ParsedStatementIF
All Known Implementing Classes:
ParsedQuery, ParsedQuery

public interface ParsedQueryIF
extends ParsedStatementIF

PUBLIC: Used to represent parsed queries.


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.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.
 boolean isOrderedAscending(java.lang.String name)
          PUBLIC: Returns true if the named variable is to be sorted in ascending order.
 

Method Detail

getSelectedVariables

java.util.List<java.lang.String> getSelectedVariables()
PUBLIC: Returns the variables in the select clause of the query, in the order given there. If there is no select clause all the variables used in the query are returned, in no particular order.

Returns:
An immutable List of String objects.

getCountedVariables

java.util.Collection<java.lang.String> getCountedVariables()
PUBLIC: Returns the variables that are counted in the select clause of the query. They are returned in no particular order. If there are no counted variables, or if there is no select clause an empty collection is returned.

Returns:
An immutable Collection of String objects.

getAllVariables

java.util.Collection<java.lang.String> getAllVariables()
PUBLIC: Returns all the variables used in the query, in no particular order.

Returns:
An immutable Collection of String objects.

getOrderBy

java.util.List<java.lang.String> getOrderBy()
PUBLIC: Returns the variables listed in the order by clause in the order they are given there. In order to see which ones are ascending and which descending, use the isOrderedAscending method.

Returns:
An immutable List of String objects.

isOrderedAscending

boolean isOrderedAscending(java.lang.String name)
PUBLIC: Returns true if the named variable is to be sorted in ascending order.


execute

QueryResultIF execute()
                      throws InvalidQueryException
PUBLIC: Executes the query, returning the query result. Query results are not cached, so results are up to date.

Throws:
InvalidQueryException

execute

QueryResultIF execute(java.util.Map<java.lang.String,?> arguments)
                      throws InvalidQueryException
PUBLIC: Executes the query binding the parameters in the query to the values given in the 'arguments' map, returning the query result. Query results are not cached, so results are up to date.

Throws:
InvalidQueryException
Since:
2.0


Copyright © 2000-2012 Ontopia.