package org.apache.ojb.broker;
import java.util.*;
public class Child
{
    protected int childId = 0;
    
    protected int twoId = 0;

    protected int oneId = 0;

    protected String name = null;

    protected OneTable one = null; 

    protected TwoTable two = null; 

    public int getChildId() {
        return childId;
    }
    public void setChildId(int id) {
        this.childId = id;
    }
    
    public int getTwoId() {
        return twoId;
    }
    public void setTwoId(int id) {
        this.twoId = id;
    }
    public int getOneId() {
        return oneId;
    }
    public void setOneId(int id) {
        this.oneId = id;
    }
    
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
   
    public OneTable getOne() {
        return one;
    }
    public void setOne(OneTable one) {
        if (this.one != one) {
            if (this.one != null) this.one.removeChild(this);
            this.one = one;
            if (one != null) one.addChild(this);
        }
    }
    
    public TwoTable getTwo() {
        return two;
    }
    public void setTwo(TwoTable two){
        if (this.two != two) {
            if (this.two != null) this.two.removeChild(this);
            this.two = two;
            if (two != null) two.addChild(this);
        }
    }
}

