butler.sql.filter
Class NestedFilter

java.lang.Object
  extended by butler.sql.filter.Filter
      extended by butler.sql.filter.RecursiveFilter
          extended by butler.sql.filter.NestedFilter
Direct Known Subclasses:
NestedSetFilter

public class NestedFilter
extends RecursiveFilter

Filter with a nested query.

Author:
Fredrik Bertilsson

Field Summary
 
Fields inherited from class butler.sql.filter.RecursiveFilter
_childFilters, _operator
 
Constructor Summary
NestedFilter(Column col, Query query)
           
NestedFilter(java.lang.String alias, Column col, Query query, boolean set)
           
 
Method Summary
 Query getNestedQuery()
           
 java.lang.String getSQL()
           
 java.util.List getValues(QueryParams params)
           
static Filter parse(org.dom4j.Element element, java.util.Map tableDictonary)
           
 void toXML(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class butler.sql.filter.RecursiveFilter
addChildFilter, copy, createId, getChildren, getFilter, getFilterA, getFilterB, getLeafFilters, modify, parse2, replaceChild, reset
 
Methods inherited from class butler.sql.filter.Filter
and, copy, equals, filter, getCaption, getId, getOperator, getParamDatatypes, getValues, hashCode, not, or, params2db, parseFilter, registerFilterParser, setCaption, setId, setOperator, setSize, setSize, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedFilter

public NestedFilter(Column col,
                    Query query)
             throws java.lang.Exception
Throws:
java.lang.Exception

NestedFilter

public NestedFilter(java.lang.String alias,
                    Column col,
                    Query query,
                    boolean set)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getNestedQuery

public Query getNestedQuery()
Overrides:
getNestedQuery in class Filter

getSQL

public java.lang.String getSQL()
                        throws java.lang.Exception
Overrides:
getSQL in class RecursiveFilter
Throws:
java.lang.Exception

toXML

public void toXML(org.xml.sax.ContentHandler handler)
           throws java.lang.Exception
Overrides:
toXML in class RecursiveFilter
Throws:
java.lang.Exception

parse

public static Filter parse(org.dom4j.Element element,
                           java.util.Map tableDictonary)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getValues

public java.util.List getValues(QueryParams params)
                         throws java.lang.Exception
Overrides:
getValues in class RecursiveFilter
Throws:
java.lang.Exception