| java.lang.Object org.mdarad.framework.util.struts.criteria.FormCriterion org.mdarad.framework.util.struts.criteria.FormCriterionWithOperator
All known Subclasses: org.mdarad.framework.util.struts.criteria.StringCriterion, org.mdarad.framework.util.struts.criteria.BooleanCriterion, org.mdarad.framework.util.struts.criteria.NumericCriterion,
FormCriterionWithOperator | abstract public class FormCriterionWithOperator extends FormCriterion implements Serializable(Code) | | This abstract class is a search criterion that uses an operator (ex: =, <, >, etc).
USAGE: To use the search criterion, the implementation should derive from
FormCriterionWithOperator and implements the method
#getOperators()() getOperators .
author: Philippe Brouillette version: 1.0 |
FormCriterionWithOperator | public FormCriterionWithOperator(String name, Class associatedEntity, CriterionProperty property, String bundleName, Locale locale)(Code) | | Constructor that takes all the properties to initialize a search
criterion. By default, the criterion is dynamic.
Parameters: name - name of the criterion. This name must be uniqueas it is a key in a map. Parameters: associatedEntity - class type associated to this criterion Parameters: property - property used for the query criterion Parameters: bundleName - bundle name Parameters: locale - locale information See Also: FormCriterion.FormCriterion(StringCriterionPropertyStringLocale) See Also: FormCriterion |
FormCriterionWithOperator | public FormCriterionWithOperator(String name, Class associatedEntity, CriterionProperty property, String bundleName, Locale locale, boolean isDynamic)(Code) | | Constructor that takes all the properties to initialize a search
criterion.
Parameters: name - name of the criterion. This name must be uniqueas it is a key in a map. Parameters: associatedEntity - class type associated to this criterion Parameters: property - property used for the query criterion Parameters: bundleName - bundle name Parameters: locale - locale information Parameters: isDynamic - boolean that indicates if the criterion is dynamic See Also: FormCriterion.FormCriterion(StringCriterionPropertyStringLocale) See Also: FormCriterion |
FormCriterionWithOperator | public FormCriterionWithOperator(FormCriterionWithOperator criterion)(Code) | | Constructor that clones a query criterion. This constructor is used
to instanciate a criterion in a search form when the form
contains dynamic criteria.
Parameters: criterion - query criterion that must be oftype FormCriterionWithOperator See Also: FormCriterion.FormCriterion(FormCriterion) See Also: FormCriterion |
getExprCriterion | public Criterion getExprCriterion()(Code) | | Method that returns the criterion from the expression
framework. (
Criterion )
NOTE: The implementation must take care of the type
of operator that is used to determine the criterion to use.
the criterion |
getOperator | public String getOperator()(Code) | | Return the opertator selected in the user interface as a string
the selected operator as a string. |
getOperatorObject | public Operator getOperatorObject()(Code) | | Return the operator as an object type
Operator Operator operator as an object. |
getOperators | abstract public Operator[] getOperators()(Code) | | Returns the list of operators that can be used with this criterion. The operator
must be instanciated as
Operator Operator .
array of operators |
setOperator | public void setOperator(String operator)(Code) | | Method that set an operator using a string.
Parameters: operator - stirng that contains the key of the operator. |
|
|