package open.dolphin.infomodel;
// Generated 2010/06/30 10:57:59 by Hibernate Tools 3.2.1.GA


import java.util.LinkedHashSet;
import java.util.Set;
import open.dolphin.queries.DolphinQuery;

/**
 * LaboSpecimenValue generated by hbm2java
 */
public class LaboSpecimenValue extends InfoModel {

    private long id;
    private LaboModuleValue laboModule;
    private String specimenName;
    private String specimenCode;
    private String specimenCodeId;
    private Set<LaboItemValue> laboItems;

    public LaboSpecimenValue() {
    }

    /**
     *
     * @param query
     * @return
     */
    @Override
    public boolean search(DolphinQuery query) {
        return false;
    }

    public long getId() {
        return id;
    }

    /**
     *
     * @param id
     */
    public void setId(long id) {
        this.id = id;
    }

    public LaboModuleValue getLaboModule() {
        return laboModule;
    }

    public void setLaboModule(LaboModuleValue laboModule) {
        this.laboModule = laboModule;
    }

    public Set<LaboItemValue> getLaboItems() {
        return laboItems;
    }

    public void setLaboItems(Set<LaboItemValue> laboItems) {
        this.laboItems = laboItems;
    }

    public void addLaboItem(LaboItemValue item) {
        if (laboItems == null) {
            laboItems = new LinkedHashSet<LaboItemValue>();
        }
        laboItems.add(item);
    }

    /**
     *
     * @return
     */
    public String getSpecimenCode() {
        return specimenCode;
    }

    public void setSpecimenCode(String specimenCode) {
        this.specimenCode = specimenCode;
    }

    public String getSpecimenCodeId() {
        return specimenCodeId;
    }

    /**
     *
     * @param specimenCodeId
     */
    public void setSpecimenCodeId(String specimenCodeId) {
        this.specimenCodeId = specimenCodeId;
    }

    /**
     *
     * @return
     */
    public String getSpecimenName() {
        return specimenName;
    }

    public void setSpecimenName(String specimenName) {
        this.specimenName = specimenName;
    }
}


