org.gusdb.wdk.model.implementation
Class SqlQueryInstance

java.lang.Object
  extended by org.gusdb.wdk.model.QueryInstance
      extended by org.gusdb.wdk.model.implementation.SqlQueryInstance

public class SqlQueryInstance
extends QueryInstance


Constructor Summary
SqlQueryInstance(SqlQuery 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 getSql()
           
 java.lang.String getSqlForCache()
           
 
Methods inherited from class org.gusdb.wdk.model.QueryInstance
getIsCacheable, getIsPersistent, getJoinMode, getQuery, getValues, setIsCacheable, setValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlQueryInstance

public SqlQueryInstance(SqlQuery query)
Method Detail

getSql

public java.lang.String getSql()
                        throws WdkModelException
Returns:
Sql to run. If join mode, it is modified for joining
Throws:
WdkModelException

getResultAsTableName

public java.lang.String getResultAsTableName()
                                      throws WdkModelException
Specified by:
getResultAsTableName in class QueryInstance
Returns:
Full name of table containing result
Throws:
WdkModelException

getResult

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

getPersistentResultPage

public ResultList getPersistentResultPage(int startRow,
                                          int endRow)
                                   throws WdkModelException
Specified by:
getPersistentResultPage 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