|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jtri.base.DynaFilter
This is the default class for a filter that knows how to resolve itself back to sql. It contains a list of fields by name and filterfields objects to resolve the query.
| Constructor Summary | |
DynaFilter()
|
|
DynaFilter(boolean restrictive)
|
|
| Method Summary | |
boolean |
checkIfValid()
Returns true if the filter is in a valid state |
java.util.Map |
getDbFields()
|
java.lang.Object |
getField(java.lang.String prop)
|
java.util.Map |
getFields()
|
IFilterDB |
getFilterDB()
|
boolean |
isRestrictive()
A restrictive filter is meant to restrict the creation of beans only whith certain values. |
void |
restrict(java.lang.Object bean)
Restrict the bean object, setting all properties to the same value as the filter. |
void |
setDbFields(java.util.Map map)
|
void |
setField(java.lang.String prop,
DynaFilterField field,
java.lang.Object val)
|
void |
setFields(java.util.Map map)
|
void |
setFromMapFilter(java.util.Map map)
|
int |
setParams(java.lang.String from,
java.sql.PreparedStatement st,
int pos)
Deprecated. |
int |
setParams(java.lang.String from,
org.hibernate.Query q,
int pos)
|
java.lang.String |
toSql(java.lang.String from)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DynaFilter()
public DynaFilter(boolean restrictive)
| Method Detail |
public java.util.Map getFields()
public void setFields(java.util.Map map)
map -
public void setField(java.lang.String prop,
DynaFilterField field,
java.lang.Object val)
public java.lang.Object getField(java.lang.String prop)
public java.lang.String toSql(java.lang.String from)
toSql in interface IFilterDB
public int setParams(java.lang.String from,
java.sql.PreparedStatement st,
int pos)
throws java.sql.SQLException
from - st - pos -
java.sql.SQLException
public int setParams(java.lang.String from,
org.hibernate.Query q,
int pos)
throws org.hibernate.HibernateException
setParams in interface IFilterDBorg.hibernate.HibernateExceptionpublic java.util.Map getDbFields()
public void setDbFields(java.util.Map map)
map - public void setFromMapFilter(java.util.Map map)
public IFilterDB getFilterDB()
getFilterDB in interface IFilter
public void restrict(java.lang.Object bean)
throws java.lang.Exception
bean -
java.lang.Exceptionpublic boolean isRestrictive()
IFilter
isRestrictive in interface IFilterpublic boolean checkIfValid()
IFilter
checkIfValid in interface IFilter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||