butler.sql.filter
Class PrimaryKeyFilter

java.lang.Object
  extended by butler.sql.filter.Filter
      extended by butler.sql.filter.PrimaryKeyFilter
Direct Known Subclasses:
PrimaryKeySetFilter

public class PrimaryKeyFilter
extends Filter

Author:
Fredrik Bertilsson

Field Summary
protected  java.lang.String _alias
           
protected  Operator _operator
           
protected  Table _table
           
 
Constructor Summary
PrimaryKeyFilter(Record rec)
           
PrimaryKeyFilter(Table table)
           
PrimaryKeyFilter(Table table, java.lang.String alias)
           
 
Method Summary
 java.lang.String getCaption()
           
 Operator getOperator()
          Returns operator if operators is used, otherwise returning null.
 java.lang.String getSQL()
           
 Table getTable()
           
 java.util.List params2db(java.util.List tuple)
           
static Filter parse(org.dom4j.Element element, java.util.Map tableDictonary)
           
 void populate(Populatable qi, PrimaryKeyTuple tuple)
           
 void populate(Populatable qi, butler.util.Tuple tuple)
           
 void setOperator(Operator operator)
          Sets the operator if operators is used
 void toXML(org.xml.sax.ContentHandler handler)
           
 
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
 

Field Detail

_table

protected Table _table

_alias

protected java.lang.String _alias

_operator

protected Operator _operator
Constructor Detail

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
Method Detail

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