butler.sql.query
Class ForeignKeyFilter
java.lang.Object
butler.sql.query.Filter
butler.sql.query.ForeignKeyFilter
- Direct Known Subclasses:
- ForeignKeySetFilter
- public class ForeignKeyFilter
- extends Filter
Filter for columns in a forein key constraint.
- Author:
- Fredrik Bertilsson
Methods inherited from class butler.sql.query.Filter |
copy, equals, getFilter, getFilterMap, getId, getLeafFilters, getNestedQuery, getSQL, hashCode, modify, parseFilter, registerFilter, replaceFilter, setId, setSize, setSize, toXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
_fk
protected ForeignKey _fk
_alias
protected java.lang.String _alias
_operator
protected Operator _operator
_values
protected java.util.List _values
ForeignKeyFilter
public ForeignKeyFilter(ForeignKey fk)
throws java.lang.Exception
ForeignKeyFilter
public ForeignKeyFilter(ForeignKey fk,
java.util.List values)
throws java.lang.Exception
ForeignKeyFilter
public ForeignKeyFilter(ForeignKey fk,
Record rec)
throws java.lang.Exception
ForeignKeyFilter
public ForeignKeyFilter(ForeignKey fk,
java.lang.String alias)
throws java.lang.Exception
getFK
public ForeignKey getFK()
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
getOperator
public Operator getOperator()
- Description copied from class:
Filter
- Returns operator if operators is used, otherwise returning null.
- Overrides:
getOperator
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,
java.lang.Object value)
throws java.lang.Exception
- Deprecated. Use getValues
- 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
params2db
public java.util.List params2db(java.util.List params)
throws java.lang.Exception
- Overrides:
params2db
in class Filter
- Throws:
java.lang.Exception
getCaption
public java.lang.String getCaption()
throws java.lang.Exception
- Overrides:
getCaption
in class Filter
- Throws:
java.lang.Exception
getValues
public java.util.List getValues()
- Overrides:
getValues
in class Filter