|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbutler.sql.query.Filter
Filter used in database queries. A filter represents entire or part of the where-clause in a select SQL statement.
Constructor Summary | |
Filter()
|
|
Filter(java.lang.String id)
|
Method Summary | |
Filter |
copy()
|
boolean |
equals(Filter other)
|
java.lang.String |
getCaption()
|
Filter |
getFilter(java.lang.Object id)
Returns a registered filter. |
java.util.Map |
getFilterMap()
|
java.lang.Object |
getId()
|
java.util.List |
getLeafFilters()
|
Query |
getNestedQuery()
|
Operator |
getOperator()
Returns operator if operators is used, otherwise returning null. |
java.lang.String |
getSQL()
|
java.lang.String |
getSQL(Query.SQLBuilder callback)
|
java.util.List |
getValues()
|
int |
hashCode()
|
Filter |
modify(QueryParams params)
|
java.util.List |
params2db(java.util.List params)
|
static Filter |
parseFilter(org.dom4j.Element element,
java.util.Map tableDictonary,
Filter rootQ)
|
void |
registerFilter(java.lang.Object id,
Filter filter)
Registers a filter with a given id. |
void |
replaceFilter(Filter newFilter)
|
void |
setId(java.lang.Object id)
|
void |
setOperator(Operator op)
Sets the operator if operators is used, otherwise throws an exeption |
int |
setSize()
|
void |
setSize(int size)
|
java.lang.String |
toXML()
|
void |
toXML(org.xml.sax.ContentHandler handler)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Filter()
public Filter(java.lang.String id)
Method Detail |
public void setSize(int size)
public int setSize()
public Query getNestedQuery()
public java.lang.String getSQL() throws java.lang.Exception
java.lang.Exception
public java.lang.String getSQL(Query.SQLBuilder callback) throws java.lang.Exception
java.lang.Exception
public void setId(java.lang.Object id)
public java.lang.Object getId()
public java.lang.String getCaption() throws java.lang.Exception
java.lang.Exception
public java.util.List params2db(java.util.List params) throws java.lang.Exception
java.lang.Exception
public java.lang.String toXML() throws java.lang.Exception
java.lang.Exception
public void toXML(org.xml.sax.ContentHandler handler) throws java.lang.Exception
java.lang.Exception
public int hashCode()
public boolean equals(Filter other)
public static Filter parseFilter(org.dom4j.Element element, java.util.Map tableDictonary, Filter rootQ) throws java.lang.Exception
java.lang.Exception
public Filter getFilter(java.lang.Object id)
public java.util.Map getFilterMap()
public java.util.List getLeafFilters()
public void registerFilter(java.lang.Object id, Filter filter)
public void replaceFilter(Filter newFilter) throws java.lang.Exception
java.lang.Exception
public Operator getOperator()
public void setOperator(Operator op)
public java.util.List getValues() throws java.lang.Exception
java.lang.Exception
public Filter copy() throws java.lang.Exception
java.lang.Exception
public Filter modify(QueryParams params) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |