org.apache.ojb.odmg
Class PersonImpl

java.lang.Object
  extended byorg.apache.ojb.odmg.PersonImpl
All Implemented Interfaces:
Person, java.io.Serializable

public class PersonImpl
extends java.lang.Object
implements Person, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
PersonImpl()
           
PersonImpl(int pId, java.lang.String pFirstname, java.lang.String pLastname, int pMotherId, int pFatherId)
           
 
Method Summary
 void addChild(Person pChild)
           
 Person[] getChildren()
           
 Person getFather()
           
 int getFatherId()
          Gets the fatherId.
 java.lang.String getFirstname()
           
 int getId()
          Gets the id.
 java.lang.String getLastname()
           
 Person getMother()
           
 int getMotherId()
          Gets the motherId.
 void setChildren(Person[] pChildren)
           
 void setFather(Person pFather)
           
 void setFatherId(int fatherId)
          Sets the fatherId.
 void setFirstname(java.lang.String pFirstname)
           
 void setId(int id)
          Sets the id.
 void setLastname(java.lang.String pLastname)
           
 void setMother(Person pMother)
           
 void setMotherId(int motherId)
          Sets the motherId.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersonImpl

public PersonImpl()

PersonImpl

public PersonImpl(int pId,
                  java.lang.String pFirstname,
                  java.lang.String pLastname,
                  int pMotherId,
                  int pFatherId)
Method Detail

getFirstname

public java.lang.String getFirstname()
Specified by:
getFirstname in interface Person

getLastname

public java.lang.String getLastname()
Specified by:
getLastname in interface Person

getMother

public Person getMother()
Specified by:
getMother in interface Person

getFather

public Person getFather()
Specified by:
getFather in interface Person

getChildren

public Person[] getChildren()
Specified by:
getChildren in interface Person

setFirstname

public void setFirstname(java.lang.String pFirstname)
Specified by:
setFirstname in interface Person

setLastname

public void setLastname(java.lang.String pLastname)
Specified by:
setLastname in interface Person

setMother

public void setMother(Person pMother)
Specified by:
setMother in interface Person

setFather

public void setFather(Person pFather)
Specified by:
setFather in interface Person

setChildren

public void setChildren(Person[] pChildren)
Specified by:
setChildren in interface Person

addChild

public void addChild(Person pChild)
Specified by:
addChild in interface Person

getFatherId

public int getFatherId()
Gets the fatherId.

Returns:
Returns a int

setFatherId

public void setFatherId(int fatherId)
Sets the fatherId.

Parameters:
fatherId - The fatherId to set

getId

public int getId()
Gets the id.

Returns:
Returns a int

setId

public void setId(int id)
Sets the id.

Parameters:
id - The id to set

getMotherId

public int getMotherId()
Gets the motherId.

Returns:
Returns a int

setMotherId

public void setMotherId(int motherId)
Sets the motherId.

Parameters:
motherId - The motherId to set

toString

public java.lang.String toString()


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14