| java.lang.Object org.mdarad.framework.util.struts.criteria.FormCriterion
All known Subclasses: org.mdarad.framework.util.struts.criteria.ListCriterion, org.mdarad.framework.util.struts.criteria.FormCriterionWithOperator,
FormCriterion | public FormCriterion(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 |
FormCriterion | public FormCriterion(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: dynamic - boolean that indicates if the criterion is dynamic |
FormCriterion | public FormCriterion(FormCriterion 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 FormCriterion exception: CriterionException - lancé si le critère à copier est nul. |
getAssociatedEntity | public Class getAssociatedEntity()(Code) | | |
getExprCriterion | abstract public Criterion getExprCriterion()(Code) | | Abstract 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 |
getFormPattern | abstract public CriterionFormPattern getFormPattern()(Code) | | Abstract method that should return the display pattern of the search
criterion. The patterns are documented in the class
CriterionFormPatterns CriterionFormPatterns To implement, use the CriterionFormPatterns class to
obtain an object of type :
CriterionFormPattern CriterionFormPattern return the display pattern |
getObjectType | abstract public Class getObjectType()(Code) | | Abstract method to be implemented and that is used to
specifies the type of the value object of the criterion.
EX: for numeric property, the typical implementation should be
the following :
public Class getObjectType() {
return Integer.class;
}
the class type of the value object |
getPropertyLabel | public String getPropertyLabel()(Code) | | Method that return the label of the property associated to the
search criterion.
property label. |
getPropertyValue | public String getPropertyValue()(Code) | | Method that returns the value associated to the search criterion.
The return value is a string to be used with the forms. By default,
the toString() method is called.
value used by the criterion. |
setAssociatedEntity | public void setAssociatedEntity(Class class1)(Code) | | |
setPropertyValue | abstract public void setPropertyValue(String object)(Code) | | Method used by the form to set the value of the object.
The arg is a string because the forms cannot use Object
Parameters: object - value of the property |
setValue | protected void setValue(Object object, Class type)(Code) | | Setter of the value of the search criterion
Parameters: object - value associated to the criterion Parameters: type - class type of the value object |
|
|