org.josql
Class QueryResults

java.lang.Object
  extended by org.josql.QueryResults

public class QueryResults
extends Object

This class holds all the "result" information about the execution of a particular Query. It should be noted that this class holds no reference to the Query object so that a query can be executed, the results "processed" in some way and then the results can be cleaned up by the GC.

See Also:
Query.execute(List)

Constructor Summary
QueryResults()
           
 
Method Summary
 Map getGroupByResults()
          Get the group by results.
 Map getGroupBySaveValues(List k)
           
 List getHavingResults()
          Get the having results.
 List getResults()
          Get the results of executing the query, this is the "final" results, i.e.
 Object getSaveValue(Object id)
          Get a particular save value for the passed in key.
 Map getSaveValues()
          Get the save values.
 Map getTimings()
          Get the timing information, is a Map of string to double values.
 List getWhereResults()
          Get the where results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResults

public QueryResults()
Method Detail

getGroupBySaveValues

public Map getGroupBySaveValues(List k)

getSaveValues

public Map getSaveValues()
Get the save values.

Returns:
The save values.

getSaveValue

public Object getSaveValue(Object id)
Get a particular save value for the passed in key.

Parameters:
id - The key of the save value.
Returns:
The value it maps to.

getResults

public List getResults()
Get the results of executing the query, this is the "final" results, i.e. of executing ALL of the query.

Returns:
The results.

getTimings

public Map getTimings()
Get the timing information, is a Map of string to double values.

Returns:
The timings.

getGroupByResults

public Map getGroupByResults()
Get the group by results.

Returns:
The group by results.

getHavingResults

public List getHavingResults()
Get the having results.

Returns:
The having results.

getWhereResults

public List getWhereResults()
Get the where results.

Returns:
The where results.


  Copyright © 2008 Gary Bentley. All Rights Reserved.