org.apache.ojb.odmg
Class OQLTest.Fish

java.lang.Object
  extended byorg.apache.ojb.odmg.OQLTest.Fish
All Implemented Interfaces:
OQLTest.InterfaceFood, java.io.Serializable
Enclosing class:
OQLTest

public static class OQLTest.Fish
extends java.lang.Object
implements OQLTest.InterfaceFood, java.io.Serializable

See Also:
Serialized Form

Field Summary
(package private)  int calories
           
(package private)  int foodId
           
(package private)  java.lang.String name
           
(package private)  java.lang.String typeOfWater
           
 
Constructor Summary
OQLTest.Fish()
          Constructor for Fish.
OQLTest.Fish(java.lang.String name, int calories, java.lang.String typeOfWater)
           
 
Method Summary
 int getCalories()
           
 int getFoodId()
          Returns the foodId.
 java.lang.String getName()
           
 java.lang.String getTypeOfWater()
          Returns the typeOfWater.
 void setCalories(int calories)
          Sets the calories.
 void setFoodId(int foodId)
          Sets the foodId.
 void setName(java.lang.String name)
          Sets the name.
 void setTypeOfWater(java.lang.String typeOfWater)
          Sets the typeOfWater.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

foodId

int foodId

name

java.lang.String name

calories

int calories

typeOfWater

java.lang.String typeOfWater
Constructor Detail

OQLTest.Fish

public OQLTest.Fish()
Constructor for Fish.


OQLTest.Fish

public OQLTest.Fish(java.lang.String name,
                    int calories,
                    java.lang.String typeOfWater)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface OQLTest.InterfaceFood
See Also:
InterfaceFood.getName()

getCalories

public int getCalories()
Specified by:
getCalories in interface OQLTest.InterfaceFood
See Also:
InterfaceFood.getCalories()

getTypeOfWater

public java.lang.String getTypeOfWater()
Returns the typeOfWater.

Returns:
String

getFoodId

public int getFoodId()
Returns the foodId.

Returns:
int

toString

public java.lang.String toString()

setCalories

public void setCalories(int calories)
Sets the calories.

Parameters:
calories - The calories to set

setFoodId

public void setFoodId(int foodId)
Sets the foodId.

Parameters:
foodId - The foodId to set

setName

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

Parameters:
name - The name to set

setTypeOfWater

public void setTypeOfWater(java.lang.String typeOfWater)
Sets the typeOfWater.

Parameters:
typeOfWater - The typeOfWater 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