net.sf.jso.query
Class CountQueryExecutor

java.lang.Object
  extended bynet.sf.jso.query.QueryExecutor
      extended bynet.sf.jso.query.CountQueryExecutor

public class CountQueryExecutor
extends net.sf.jso.query.QueryExecutor

Executes queries for object counting.


Field Summary
protected  int count
           
protected  java.lang.String internalFrom
           
protected  JSOTransaction jsotx
           
protected  Variable mainVar
           
protected  java.lang.String order
           
protected  SchemaProxy schema
           
protected  java.lang.String select
           
protected  net.sf.jso.query.QueryValidator validator
           
protected  java.util.List values
           
protected  java.util.List valuesTypes
           
protected  Variable[] variables
           
protected  java.lang.String where
           
 
Constructor Summary
CountQueryExecutor(net.sf.jso.query.QueryValidator aValidator, JSOTransaction aTx)
           
 
Method Summary
 java.lang.Object execute()
           
protected  java.lang.Object getResult()
           
protected  java.lang.String getSelect()
           
protected  void processResult(java.sql.ResultSet rs)
           
protected  void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

protected int count

variables

protected Variable[] variables

validator

protected net.sf.jso.query.QueryValidator validator

jsotx

protected JSOTransaction jsotx

schema

protected SchemaProxy schema

values

protected java.util.List values

valuesTypes

protected java.util.List valuesTypes

mainVar

protected Variable mainVar

select

protected java.lang.String select

where

protected java.lang.String where

order

protected java.lang.String order

internalFrom

protected java.lang.String internalFrom
Constructor Detail

CountQueryExecutor

public CountQueryExecutor(net.sf.jso.query.QueryValidator aValidator,
                          JSOTransaction aTx)
Method Detail

getSelect

protected java.lang.String getSelect()

processResult

protected void processResult(java.sql.ResultSet rs)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getResult

protected java.lang.Object getResult()

setup

protected void setup()

execute

public java.lang.Object execute()
                         throws StorageException
Throws:
StorageException