ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <eugeny...@jdevelop.com>
Subject Re: iterate over 2 collections
Date Wed, 03 Aug 2005 12:21:11 GMT
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

Mime
View raw message