butler.sql.filter
Class PrimaryKeyFilter
java.lang.Object
butler.sql.filter.Filter
butler.sql.filter.PrimaryKeyFilter
- Direct Known Subclasses:
- PrimaryKeySetFilter
public class PrimaryKeyFilter
- extends Filter
- Author:
- Fredrik Bertilsson
Methods inherited from class butler.sql.filter.Filter |
and, copy, createId, equals, filter, getFilter, getId, getLeafFilters, getNestedQuery, getParamDatatypes, getValues, getValues, hashCode, modify, not, or, parseFilter, registerFilterParser, setCaption, setId, setSize, setSize, toXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
_table
protected Table _table
_alias
protected java.lang.String _alias
_operator
protected Operator _operator
PrimaryKeyFilter
public PrimaryKeyFilter(Record rec)
throws java.lang.Exception
- Throws:
java.lang.Exception
PrimaryKeyFilter
public PrimaryKeyFilter(Table table)
throws java.lang.Exception
- Throws:
java.lang.Exception
PrimaryKeyFilter
public PrimaryKeyFilter(Table table,
java.lang.String alias)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSQL
public java.lang.String getSQL()
throws java.lang.Exception
- Overrides:
getSQL
in class Filter
- Throws:
java.lang.Exception
getTable
public Table getTable()
populate
public void populate(Populatable qi,
PrimaryKeyTuple tuple)
throws java.lang.Exception
- Throws:
java.lang.Exception
populate
public void populate(Populatable qi,
butler.util.Tuple tuple)
throws java.lang.Exception
- Throws:
java.lang.Exception
setOperator
public void setOperator(Operator operator)
- Description copied from class:
Filter
- Sets the operator if operators is used
- 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
getCaption
public java.lang.String getCaption()
throws java.lang.Exception
- Overrides:
getCaption
in class Filter
- 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)
throws java.lang.Exception
- Throws:
java.lang.Exception
params2db
public java.util.List params2db(java.util.List tuple)
throws java.lang.Exception
- Overrides:
params2db
in class Filter
- Throws:
java.lang.Exception