butler.sql.query
Class NestedSetFilter

java.lang.Object
  extended bybutler.sql.query.Filter
      extended bybutler.sql.query.RecursiveFilter
          extended bybutler.sql.query.NestedSetFilter

public class NestedSetFilter
extends RecursiveFilter

Filter that checks if a column values belongs to a given set of values ("in").

Author:
Fredrik Bertilsson

Field Summary
 
Fields inherited from class butler.sql.query.RecursiveFilter
_childFilters, _operator
 
Constructor Summary
NestedSetFilter(Column col, Query query)
           
NestedSetFilter(java.lang.String alias, Column col, Query query)
           
 
Method Summary
 Query getNestedQuery()
           
 java.lang.String getSQL(Query.SQLBuilder callback)
           
static Filter parse(org.dom4j.Element element, java.util.Map tableDictonary, Filter rootQ)
           
 void toXML(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class butler.sql.query.RecursiveFilter
addChildFilter, copy, getChildren, getFilterA, getFilterB, getLeafFilters, modify, parse2, replaceChild, reset
 
Methods inherited from class butler.sql.query.Filter
copy, equals, getCaption, getFilter, getFilterMap, getId, getOperator, getSQL, getValues, hashCode, params2db, parseFilter, registerFilter, replaceFilter, setId, setOperator, setSize, setSize, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedSetFilter

public NestedSetFilter(Column col,
                       Query query)
                throws java.lang.Exception

NestedSetFilter

public NestedSetFilter(java.lang.String alias,
                       Column col,
                       Query query)
                throws java.lang.Exception
Method Detail

getNestedQuery

public Query getNestedQuery()
Overrides:
getNestedQuery in class Filter

getSQL

public java.lang.String getSQL(Query.SQLBuilder callback)
                        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,
                           Filter rootQ)
                    throws java.lang.Exception
Throws:
java.lang.Exception