butler.sql.query
Class SetFilter
java.lang.Object
butler.sql.query.Filter
butler.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
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 |
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)
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