butler.sql.query
Class ForeignKeySetFilter

java.lang.Object
  extended bybutler.sql.query.Filter
      extended bybutler.sql.query.ForeignKeyFilter
          extended bybutler.sql.query.ForeignKeySetFilter

public class ForeignKeySetFilter
extends ForeignKeyFilter

Filter for columns in a forein key constraint with multiple values for the foreign key.

Author:
Fredrik Bertilsson

Field Summary
 
Fields inherited from class butler.sql.query.ForeignKeyFilter
_alias, _fk, _operator, _values
 
Constructor Summary
ForeignKeySetFilter(ForeignKey fk)
           
ForeignKeySetFilter(ForeignKey fk, java.lang.String alias)
           
 
Method Summary
 Operator getOperator()
          Returns operator if operators is used, otherwise returning null.
 java.lang.String getSQL(Query.SQLBuilder callback)
           
static Filter parse(org.dom4j.Element element, java.util.Map tableDictonary, Filter rootQ)
           
 void setOperator(Operator operator)
          Sets the operator if operators is used, otherwise throws an exeption
 void setSize(int count)
           
 void toXML(org.xml.sax.ContentHandler handler)
           
 
Methods inherited from class butler.sql.query.ForeignKeyFilter
getCaption, getFK, getSQL, getValues, params2db, populate
 
Methods inherited from class butler.sql.query.Filter
copy, equals, getFilter, getFilterMap, getId, getLeafFilters, getNestedQuery, hashCode, modify, parseFilter, registerFilter, replaceFilter, setId, setSize, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForeignKeySetFilter

public ForeignKeySetFilter(ForeignKey fk)
                    throws java.lang.Exception

ForeignKeySetFilter

public ForeignKeySetFilter(ForeignKey fk,
                           java.lang.String alias)
                    throws java.lang.Exception
Method Detail

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 ForeignKeyFilter

getOperator

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

Overrides:
getOperator in class ForeignKeyFilter

setSize

public void setSize(int count)
Overrides:
setSize in class Filter

getSQL

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

toXML

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