org.gusdb.wdk.model
Class BooleanQueryInstance

java.lang.Object
  extended by org.gusdb.wdk.model.QueryInstance
      extended by org.gusdb.wdk.model.BooleanQueryInstance

public class BooleanQueryInstance
extends QueryInstance

BooleanQueryInstance.java Instance instantiated by a BooleanQuery. Takes Answers as values for its parameters along with a boolean operation, and returns a result. Created: Wed May 19 15:11:30 2004


Constructor Summary
BooleanQueryInstance(BooleanQuery query)
           
 
Method Summary
 java.util.Collection getCacheValues()
           
 java.lang.String getLowLevelQuery()
           
 ResultList getPersistentResultPage(int startRow, int endRow)
           
 ResultList getResult()
           
 java.lang.String getResultAsTableName()
           
 java.lang.String getSqlForCache()
           
 void setValues(java.util.Map values)
           
 
Methods inherited from class org.gusdb.wdk.model.QueryInstance
getIsCacheable, getIsPersistent, getJoinMode, getQuery, getValues, setIsCacheable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanQueryInstance

public BooleanQueryInstance(BooleanQuery query)
Method Detail

setValues

public void setValues(java.util.Map values)
               throws WdkUserException,
                      WdkModelException
Overrides:
setValues in class QueryInstance
Parameters:
values - Map where the keys are the names for BooleanQuery parameters found as static variables in BooleanQuery, and the values are the expected values for those parameters (Answers for the two AnswerParam and the name of the boolean operation for the StringParam). Columns are set at this time for the BooleanQuery this instance points to.
Throws:
WdkUserException
WdkModelException

getResult

public ResultList getResult()
                     throws WdkModelException
Specified by:
getResult in class QueryInstance
Throws:
WdkModelException

getSqlForCache

public java.lang.String getSqlForCache()
                                throws WdkModelException
Throws:
WdkModelException

getCacheValues

public java.util.Collection getCacheValues()
                                    throws WdkModelException
Specified by:
getCacheValues in class QueryInstance
Throws:
WdkModelException

getLowLevelQuery

public java.lang.String getLowLevelQuery()
                                  throws WdkModelException
Specified by:
getLowLevelQuery in class QueryInstance
Throws:
WdkModelException

getPersistentResultPage

public ResultList getPersistentResultPage(int startRow,
                                          int endRow)
                                   throws WdkModelException
Specified by:
getPersistentResultPage in class QueryInstance
Throws:
WdkModelException

getResultAsTableName

public java.lang.String getResultAsTableName()
                                      throws WdkModelException
Specified by:
getResultAsTableName in class QueryInstance
Throws:
WdkModelException