org.apache.ojb.broker
Class Mammal

java.lang.Object
  extended byorg.apache.ojb.broker.Mammal
All Implemented Interfaces:
InterfaceAnimal, java.io.Serializable

public class Mammal
extends java.lang.Object
implements InterfaceAnimal, java.io.Serializable

Author:
Georg Schneider
See Also:
Serialized Form

Constructor Summary
Mammal()
          Constructor for Animal.
Mammal(int age, java.lang.String name, int numLegs)
           
 
Method Summary
 int getAge()
           
 int getAnimalId()
          Returns the animalId.
 java.lang.String getName()
           
 int getNumLegs()
           
 int getZooId()
          Returns the zooId.
 void setAge(int age)
          Sets the age.
 void setAnimalId(int animalId)
          Sets the animalId.
 void setName(java.lang.String name)
          Sets the name.
 void setNumLegs(int numLegs)
          Sets the numLegs.
 void setZooId(int zooId)
          Sets the zooId.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Mammal

public Mammal()
Constructor for Animal.


Mammal

public Mammal(int age,
              java.lang.String name,
              int numLegs)
Method Detail

getAge

public int getAge()
Specified by:
getAge in interface InterfaceAnimal

getName

public java.lang.String getName()
Specified by:
getName in interface InterfaceAnimal

getNumLegs

public int getNumLegs()

toString

public java.lang.String toString()

getAnimalId

public int getAnimalId()
Returns the animalId.

Returns:
int

getZooId

public int getZooId()
Returns the zooId.

Returns:
int

setAge

public void setAge(int age)
Sets the age.

Parameters:
age - The age to set

setAnimalId

public void setAnimalId(int animalId)
Sets the animalId.

Parameters:
animalId - The animalId to set

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - The name to set

setNumLegs

public void setNumLegs(int numLegs)
Sets the numLegs.

Parameters:
numLegs - The numLegs to set

setZooId

public void setZooId(int zooId)
Sets the zooId.

Parameters:
zooId - The zooId to set


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