if this is just an issue with isnotnull could you not just add a geter 
int getFieldsize(){
    return fields.size();
}
 
then in the xml map
 
<isGreaterThan property="fieldSize" compareValue="0">
</isGreaterThan>
 
or is this an issue with the iterate?
 
Steve
 

________________________________

From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED]
Sent: Wed 03/08/2005 13:21
To: [email protected]
Subject: Re: iterate over 2 collections



On Wed, Aug 03, 2005 at 01:07:25PM +0100, James, Steven wrote:
> Can we see the parameter class?

the rule(parameter) class

import java.util.ArrayList;
import java.util.List;

public class Rule extends iBATISSearchable {

    private static final String RULE_SEARCH_COUNT_SQL = "dynamicGetRuleCount";

    private int rule_id = -1;

    private String name = null;

    private String description = null;

    private ArrayList fields;

    public Rule() {
        fields = new ArrayList();
    }

    /**
     * @return Returns the description.
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description The description to set.
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return Returns the fields.
     */
    public List getFields() {
        return fields;
    }

    /**
     * @param fields The fields to set.
     */
    public void setFields(ArrayList fields) {
        this.fields = fields;
    }

    /**
     * @return Returns the name.
     */
    public String getName() {
        return name;
    }

    /**
     * @param name The name to set.
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return Returns the rule_id.
     */
    public int getRule_id() {
        return rule_id;
    }

    /**
     * @param rule_id The rule_id to set.
     */
    public void setRule_id(int rule_id) {
        this.rule_id = rule_id;
    }

    public String getSearchName() {
        return RULE_SEARCH_COUNT_SQL;
    }
}

and field class ( for rule.getFields() )

public class Field {

    private String name;

    private String value;

    public Field() {
    }

    public Field(String name, String value) {
        this.name = name;
        this.value = value;
    }

    /**
     * @return Returns the name.
     */
    public String getName() {
        return name;
    }

    /**
     * @param name The name to set.
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return Returns the value.
     */
    public String getValue() {
        return value;
    }

    /**
     * @param value The value to set.
     */
    public void setValue(String value) {
        this.value = value;
    }
}

--
Eugene N Dzhurinsky




This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

<<inline: winmail.dat>>

Reply via email to