com.jtri.base
Class FixedFilter

java.lang.Object
  extended bycom.jtri.base.FixedFilter
All Implemented Interfaces:
IFilter, IFilterDB, java.io.Serializable

public class FixedFilter
extends java.lang.Object
implements IFilter, IFilterDB

This is a filter with a fixed Query, independent if Field values.

Author:
atorres
See Also:
Serialized Form

Constructor Summary
FixedFilter()
           
 
Method Summary
 boolean checkIfValid()
          Returns true if the filter is in a valid state
 IFilterDB getFilterDB()
           
 java.lang.String getSql()
           
 boolean isRestrictive()
          A restrictive filter is meant to restrict the creation of beans only whith certain values.
 int setParams(java.lang.String from, org.hibernate.Query q, int pos)
           
 void setSql(java.lang.String string)
           
 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

FixedFilter

public FixedFilter()
Method Detail

getFilterDB

public IFilterDB getFilterDB()
Specified by:
getFilterDB in interface IFilter

isRestrictive

public boolean isRestrictive()
Description copied from interface: IFilter
A restrictive filter is meant to restrict the creation of beans only whith certain values.

Specified by:
isRestrictive in interface IFilter
Returns:
true if this filter is restrictive

toSql

public java.lang.String toSql(java.lang.String from)
Specified by:
toSql in interface IFilterDB

setParams

public int setParams(java.lang.String from,
                     org.hibernate.Query q,
                     int pos)
              throws org.hibernate.HibernateException
Specified by:
setParams in interface IFilterDB
Throws:
org.hibernate.HibernateException

getSql

public java.lang.String getSql()
Returns:

setSql

public void setSql(java.lang.String string)
Parameters:
string -

checkIfValid

public boolean checkIfValid()
Description copied from interface: IFilter
Returns true if the filter is in a valid state

Specified by:
checkIfValid in interface IFilter
Returns:
true