01: /*
02: * Created by IntelliJ IDEA.
03: * User: tom
04: * Date: May 28, 2001
05: * Time: 10:30:56 PM
06: * To change template for new interface use
07: * Code Style | Class Templates options (Tools | IDE Options).
08: */
09: package org.apache.ojb.odmg.shared;
10:
11: import java.io.Serializable;
12:
13: public interface Person extends Serializable {
14: int getId();
15:
16: void setId(int id);
17:
18: public abstract String getFirstname();
19:
20: public abstract String getLastname();
21:
22: public abstract Person getMother();
23:
24: public abstract Person getFather();
25:
26: public abstract Person[] getChildren();
27:
28: public abstract void setFirstname(String pFirstname);
29:
30: public abstract void setLastname(String pLastname);
31:
32: public abstract void setMother(Person pMother);
33:
34: public abstract void setFather(Person pFather);
35:
36: public abstract void setChildren(Person[] pChildren);
37:
38: public abstract void addChild(Person pChild);
39: }
|