butler.sql.query
Class SetFilter

java.lang.Object
  extended bybutler.sql.query.Filter
      extended bybutler.sql.query.SetFilter
Direct Known Subclasses:
In

public class SetFilter
extends Filter

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

Author:
Fredrik Bertilsson

Constructor Summary
SetFilter(Column col)
           
SetFilter(Column col, java.util.Set values)
           
SetFilter(java.lang.String alias, Column col)
           
SetFilter(java.lang.String alias, Column col, java.util.Set values)
           
 
Method Summary
 Column getColumn()
           
 Operator getOperator()
          Returns operator if operators is used, otherwise returning null.
 java.lang.String getSQL()
           
static Filter parse(org.dom4j.Element element, java.util.Map tableDictonary, Filter rootQ)
           
 void populate(Populatable qi)
           
 void populate(Populatable qi, java.util.Set values)
           
 void setOperator(Operator operator)
          Sets the operator if operators is used, otherwise throws an exeption
 void toXML(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class butler.sql.query.Filter
copy, equals, getCaption, getFilter, getFilterMap, getId, getLeafFilters, getNestedQuery, getSQL, getValues, hashCode, modify, params2db, parseFilter, registerFilter, replaceFilter, setId, setSize, setSize, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetFilter

public SetFilter(Column col)

SetFilter

public SetFilter(java.lang.String alias,
                 Column col)

SetFilter

public SetFilter(Column col,
                 java.util.Set values)

SetFilter

public SetFilter(java.lang.String alias,
                 Column col,
                 java.util.Set values)
Method Detail

getColumn

public Column getColumn()

getOperator

public Operator getOperator()
Description copied from class: Filter
Returns operator if operators is used, otherwise returning null.

Overrides:
getOperator in class Filter

setOperator

public void setOperator(Operator operator)
Description copied from class: Filter
Sets the operator if operators is used, otherwise throws an exeption

Overrides:
setOperator in class Filter

getSQL

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

populate

public void populate(Populatable qi)
              throws java.lang.Exception
Throws:
java.lang.Exception

populate

public void populate(Populatable qi,
                     java.util.Set values)
              throws java.lang.Exception
Throws:
java.lang.Exception

toXML

public void toXML(org.xml.sax.ContentHandler handler)
           throws java.lang.Exception
Overrides:
toXML in class Filter
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